-
-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(settings): Make the setup page's new timer presets available…
… on the settings panel, too (#147) * refactor(i18n): Move timer preset translations to root * refactor: Move timer presets to global file * refactor: Allow overriding translation key on SettingsOption * refactor(settings): Set custom translation key for timer preset * refactor(settings): Import timer presets from separate file * fix(settings): Fix timer presets not applying correctly * fix(settings): Fix option group layout with more items
- Loading branch information
Showing
9 changed files
with
91 additions
and
83 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
/** | ||
* Timer presets for quick setting of work, pause and long pause session lengths, and long pause intervals. | ||
* When updating these, make sure to also update their translations keys (`timerpreset`) | ||
*/ | ||
export default { | ||
default: { | ||
lengths: { | ||
work: 25 * 60 * 1000, // 25 minutes | ||
shortpause: 5 * 60 * 1000, // 5 minutes | ||
longpause: 15 * 60 * 1000 // 15 minutes | ||
}, | ||
longPauseInterval: 3 // every 3rd pause is a long one | ||
}, | ||
easy: { | ||
lengths: { | ||
work: 15 * 60 * 1000, // 15 minutes | ||
shortpause: 5 * 60 * 1000, // 5 minutes | ||
longpause: 15 * 60 * 1000 // 15 minutes | ||
}, | ||
longPauseInterval: 2 // every 2nd pause is a long one | ||
}, | ||
advanced: { | ||
lengths: { | ||
work: 40 * 60 * 1000, // 40 minutes | ||
shortpause: 10 * 60 * 1000, // 10 minutes | ||
longpause: 30 * 60 * 1000 // 30 minutes | ||
}, | ||
longPauseInterval: 3 // every 3rd pause is a long one | ||
}, | ||
workaholic: { | ||
lengths: { | ||
work: 50 * 60 * 1000, // 50 minutes | ||
shortpause: 10 * 60 * 1000, // 5 minutes | ||
longpause: 30 * 60 * 1000 // 20 minutes | ||
}, | ||
longPauseInterval: 3 // every 3rd pause is a long one | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters