Files
habitica/website/common/script/content/tasks.js
negue 5f2032a9d5 Style fixes: Onboarding (#11241)
* wip: createIntro / onboard ui rework

* extract more methods - working body settings component

* move justin above the dialog

* extract submenu + fix styles

* white background on items, working example of "none" item, item border radius

* extract options as component

* move more subMenu's to the component

* add chair margins

* move tasks to common/content

* add menu indicator

* extract more parts of onboarding-intro

* refactor / fully converted hair-settings

* extract extra-settings

* fix sprite positions / lint

* extract task-strings to be translatable

* style fixes - hide submenu's if not editing

* style / margin fixes

* more style fixes

* show hair styles at onboarding - use arrowleft/right as svg instead of image fix next color

* finish button style - full set background/purchase button

* fix footer - prev/next hover

* Add Default Tasks + `byHabitica` property

* customize-options click item on the full zone

* purple tasks

* footer animation => none

* fix onboarding task habit up/down

* onboarding circle color/position

* task styles

* fix onboarding position

* show seasonal options

* add hover to (locked-) options

* added the correct behavior of shop-items to onboarding options

* hide hover on active options
2019-09-26 12:43:47 +02:00

159 lines
2.9 KiB
JavaScript

import t from './translation';
export const tasksByCategory = {
work: [
{
type: 'habit',
text: t('workHabitMail'),
up: true,
down: false,
},
{
type: 'daily',
text: t('workDailyImportantTask'),
notes: t('workDailyImportantTaskNotes'),
},
{
type: 'todo',
text: t('workTodoProject'),
notes: t('workTodoProjectNotes'),
},
],
exercise: [
{
type: 'habit',
text: t('exerciseHabit'),
up: true,
down: false,
},
{
type: 'daily',
text: t('exerciseDailyText'),
notes: t('exerciseDailyNotes'),
},
{
type: 'todo',
text: t('exerciseTodoText'),
notes: t('exerciseTodoNotes'),
},
],
health_wellness: [ // eslint-disable-line
{
type: 'habit',
text: t('healthHabit'),
up: true,
down: true,
},
{
type: 'daily',
text: t('healthDailyText'),
notes: t('healthDailyNotes'),
},
{
type: 'todo',
text: t('healthTodoText'),
notes: t('healthTodoNotes'),
},
],
school: [
{
type: 'habit',
text: t('schoolHabit'),
up: true,
down: true,
},
{
type: 'daily',
text: t('schoolDailyText'),
notes: t('schoolDailyNotes'),
},
{
type: 'todo',
text: t('schoolTodoText'),
notes: t('schoolTodoNotes'),
},
],
self_care: [ // eslint-disable-line
{
type: 'habit',
text: t('selfCareHabit'),
up: true,
down: false,
},
{
type: 'daily',
text: t('selfCareDailyText'),
notes: t('selfCareDailyNotes'),
},
{
type: 'todo',
text: t('selfCareTodoText'),
notes: t('selfCareTodoNotes'),
},
],
chores: [
{
type: 'habit',
text: t('choresHabit'),
up: true,
down: false,
},
{
type: 'daily',
text: t('choresDailyText'),
notes: t('choresDailyNotes'),
},
{
type: 'todo',
text: t('choresTodoText'),
notes: t('choresTodoNotes'),
},
],
creativity: [
{
type: 'habit',
text: t('creativityHabit'),
up: true,
down: false,
},
{
type: 'daily',
text: t('creativityDailyText'),
notes: t('creativityDailyNotes'),
},
{
type: 'todo',
text: t('creativityTodoText'),
notes: t('creativityTodoNotes'),
},
],
defaults: [
{
type: 'habit',
text: t('defaultHabit4Text'),
notes: t('defaultHabit4Notes'),
up: true,
down: false,
},
{
type: 'habit',
text: t('defaultHabitText'),
notes: t('defaultHabitNotes'),
up: false,
down: true,
},
{
type: 'todo',
text: t('defaultTodo1Text'),
notes: t('defaultTodoNotes'),
byHabitica: true,
},
{
type: 'reward',
text: t('defaultReward2Text'),
notes: t('defaultReward2Notes'),
value: 10,
},
],
};