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,24 @@
import Ember from 'ember';
const {
get,
Mixin,
inject: {
service,
},
} = Ember;
export default Mixin.create({
routeHistory: service(),
afterModel(model, transition) {
get(this, 'routeHistory').pushEntry(this.historyEntry(model, transition));
},
historyEntry(model, transition) {
// Redefine this method in every route this mixin included to if it relies on params
// It should return an array of route name and params
// return null if the route should be skipped from adding to history
return [transition.targetName];
},
});