added 260907 version of worker toolkit

This commit is contained in:
2026-09-08 20:30:51 -04:00
parent cbd3f0f8ca
commit 97aca37663
1283 changed files with 142951 additions and 0 deletions

View File

@@ -0,0 +1,29 @@
import Ember from 'ember';
import AuthenticatedRouteMixin from 'flaredown/mixins/authenticated-route-mixin';
import CheckinByDate from 'flaredown/mixins/checkin-by-date';
import moment from 'moment';
const {
get,
set,
Route,
} = Ember;
export default Route.extend(AuthenticatedRouteMixin, CheckinByDate, {
beforeModel: function(transition){
set(this, 'date', transition.queryParams.date);
},
model() {
const date = get(this, 'date') || moment(new Date()).format('YYYY-MM-DD');
this.checkinByDate(date).then(
() => {
this.routeToCheckin(date);
},
() => {
this.routeToNewCheckin(date);
}
);
},
});