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,22 @@
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 {
set,
Route,
RSVP,
} = Ember;
export default Route.extend(AuthenticatedRouteMixin, CheckinByDate, {
beforeModel: function(transition){
set(this, 'date', transition.queryParams.date);
},
model(params) {
const date = params.date_key || moment(new Date()).format('YYYY-MM-DD');
return RSVP.hash({ checkins: this.checkinByDate(date), date: date })
},
});