-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3001 from lauzonhomeschool/alarm_type_and_settings
Alarm type and settings; fix drag keyboards colors settings
- Loading branch information
Showing
12 changed files
with
94 additions
and
12 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
(function(back) { | ||
let settings = Object.assign({ | ||
showConfirm : true, | ||
showAutoSnooze : true, | ||
showHidden : true | ||
}, require('Storage').readJSON('alarm.json',1)||{}); | ||
|
||
const save = () => require('Storage').write('alarm.json', settings); | ||
const DATE_FORMATS = ['default', 'mmdd']; | ||
const DATE_FORMATS_LABELS = [/*LANG*/'Default', /*LANG*/'MMDD']; | ||
|
||
const appMenu = { | ||
'': {title: 'alarm'}, '< Back': back, | ||
/*LANG*/'Menu Date Format': { | ||
value: DATE_FORMATS.indexOf(settings.menuDateFormat || 'default'), | ||
format: v => DATE_FORMATS_LABELS[v], | ||
min: 0, | ||
max: DATE_FORMATS.length - 1, | ||
onchange : v => { | ||
if(v > 0) { | ||
settings.menuDateFormat=DATE_FORMATS[v]; | ||
} else { | ||
delete settings.menuDateFormat; | ||
} | ||
save(); | ||
} | ||
}, | ||
/*LANG*/'Show Menu Auto Snooze': { | ||
value : !!settings.showAutoSnooze, | ||
onchange : v => { settings.showAutoSnooze=v; save();} | ||
}, | ||
/*LANG*/'Show Menu Confirm': { | ||
value : !!settings.showConfirm, | ||
onchange : v => { settings.showConfirm=v; save();} | ||
}, | ||
/*LANG*/'Show Menu Hidden': { | ||
value : !!settings.showHidden, | ||
onchange : v => { settings.showHidden=v; save();} | ||
}, | ||
/*LANG*/'Show Menu Group': { | ||
value : !!settings.showGroup, | ||
onchange : v => { settings.showGroup=v; save();} | ||
}, | ||
/*LANG*/'Show Text Overflow': { | ||
value : !!settings.showOverflow, | ||
onchange : v => { settings.showOverflow=v; save();} | ||
}, | ||
}; | ||
|
||
E.showMenu(appMenu); | ||
}); |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
0.01: New App based on dragboard, but with a U shaped drag area | ||
0.02: Catch and discard swipe events on fw2v19 and up (as well as some cutting | ||
edge 2v18 ones), allowing compatability with the Back Swipe app. | ||
0.03: Fix "Uncaught Error: Unhandled promise rejection: ReferenceError: "dragHandlerDB" is not defined" |
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