Files
ember-panda/addon/utils/panda-route-setup.js
2023-11-28 14:30:02 -05:00

92 lines
2.6 KiB
JavaScript

// Generated by CoffeeScript 2.7.0
var pandaRouteSetup;
pandaRouteSetup = function(context) {
context.route('project', function() {
return this.route('show', {
path: ':project_id'
}, function() {
this.route('dunlop');
this.route('tracker-subjects');
this.route('tracker-subject', {
path: 'tracker-subject/:tracker_subject_id'
});
this.route('add-progress');
//@route 'tracker-subject', ->
// @route 'show'
this.route('dunlop-generator');
this.route('analysis');
this.route('operate');
this.route('project-instance', function() {
return this.route('show', {
path: ':project_instance_id'
}, function() {
this.route('groups');
this.route('list');
this.route('actions');
return this.route('graphs');
});
});
this.route('project-instance-group', function() {
return this.route('show', {
path: ':project_instance_group_id'
});
});
return this.route('project-instance-action', function() {
return this.route('show', {
path: ':project_instance_action_id'
});
});
});
});
//@route 'project/views', path: 'views'
context.route('login');
//@route 'organization', path: 'organizations/:organization_id'
context.route('action-list');
context.route('organization', function() {
return this.route('show', {
path: ':organization_id'
}, function() {
return this.route('project-actions');
});
});
context.route('user', function() {
this.route('profile');
return this.route('show', {
path: ':user_id'
});
});
context.route('tracker-subject', function() {
return this.route('show', {
path: ':tracker_subject_id'
}, function() {
this.route('tracking-connections');
this.route('tracker-group', {
path: 'tracker-groups/:tracker_group_id'
});
return this.route('project', {
path: 'projects/:project_id'
});
});
});
//@route 'tracker-subject/tracker-group', path: 'tracker-subjects/:tracker_subject_id/tracker-groups/:tracker_group_id'
context.route('event');
context.route('action-event');
context.route('meeting-reports');
context.route('manual', function() {
this.route('project', function() {
return this.route('dunlop');
});
return this.route('tracker', function() {
return this.route('tricks'); // dummy/empty now, to genate the index
});
});
return true;
};
export {
pandaRouteSetup
};
export default pandaRouteSetup;