2015-01-31 02:29:32 +08:00
|
|
|
export default {
|
|
|
|
resource: 'admin',
|
|
|
|
|
2015-02-07 06:32:59 +08:00
|
|
|
map() {
|
2013-02-23 04:41:12 +08:00
|
|
|
this.route('dashboard', { path: '/' });
|
2013-11-14 03:02:47 +08:00
|
|
|
this.resource('adminSiteSettings', { path: '/site_settings' }, function() {
|
|
|
|
this.resource('adminSiteSettingsCategory', { path: 'category/:category_id'} );
|
|
|
|
});
|
2013-04-05 00:59:44 +08:00
|
|
|
|
2013-06-04 04:12:24 +08:00
|
|
|
this.resource('adminEmail', { path: '/email'}, function() {
|
2014-02-15 07:50:08 +08:00
|
|
|
this.route('sent');
|
2014-02-15 02:06:21 +08:00
|
|
|
this.route('skipped');
|
2016-01-19 07:57:55 +08:00
|
|
|
this.route('received');
|
|
|
|
this.route('rejected');
|
2013-06-04 04:12:24 +08:00
|
|
|
this.route('previewDigest', { path: '/preview-digest' });
|
|
|
|
});
|
|
|
|
|
2014-04-16 21:49:06 +08:00
|
|
|
this.resource('adminCustomize', { path: '/customize' } ,function() {
|
|
|
|
this.route('colors');
|
2015-08-07 00:43:56 +08:00
|
|
|
|
|
|
|
this.resource('adminCustomizeCssHtml', { path: 'css_html' }, function() {
|
|
|
|
this.route('show', {path: '/:site_customization_id/:section'});
|
|
|
|
});
|
|
|
|
|
2015-08-08 02:05:08 +08:00
|
|
|
this.resource('adminSiteText', { path: '/site_texts' }, function() {
|
2015-11-24 05:45:05 +08:00
|
|
|
this.route('edit', { path: '/:id' });
|
2014-09-24 05:12:01 +08:00
|
|
|
});
|
2015-11-24 05:45:05 +08:00
|
|
|
|
2014-12-23 08:12:26 +08:00
|
|
|
this.resource('adminUserFields', { path: '/user_fields' });
|
|
|
|
this.resource('adminEmojis', { path: '/emojis' });
|
2015-07-15 20:54:28 +08:00
|
|
|
this.resource('adminPermalinks', { path: '/permalinks' });
|
2015-08-19 05:15:46 +08:00
|
|
|
this.resource('adminEmbedding', { path: '/embedding' });
|
2015-11-13 05:08:19 +08:00
|
|
|
this.resource('adminCustomizeEmailTemplates', { path: '/email_templates' }, function() {
|
|
|
|
this.route('edit', { path: '/:id' });
|
|
|
|
});
|
2014-04-16 21:49:06 +08:00
|
|
|
});
|
2014-02-13 12:34:57 +08:00
|
|
|
this.route('api');
|
|
|
|
|
|
|
|
this.resource('admin.backups', { path: '/backups' }, function() {
|
|
|
|
this.route('logs');
|
|
|
|
});
|
2013-02-22 03:09:28 +08:00
|
|
|
|
2013-02-28 11:39:42 +08:00
|
|
|
this.resource('adminReports', { path: '/reports/:type' });
|
|
|
|
|
2013-02-23 04:41:12 +08:00
|
|
|
this.resource('adminFlags', { path: '/flags' }, function() {
|
2014-11-12 04:48:13 +08:00
|
|
|
this.route('list', { path: '/:filter' });
|
2013-02-23 04:41:12 +08:00
|
|
|
});
|
2013-02-22 03:09:28 +08:00
|
|
|
|
2013-08-02 09:30:13 +08:00
|
|
|
this.resource('adminLogs', { path: '/logs' }, function() {
|
2013-08-08 04:04:12 +08:00
|
|
|
this.route('staffActionLogs', { path: '/staff_action_logs' });
|
2013-08-15 22:48:30 +08:00
|
|
|
this.route('screenedEmails', { path: '/screened_emails' });
|
2013-10-22 02:49:51 +08:00
|
|
|
this.route('screenedIpAddresses', { path: '/screened_ip_addresses' });
|
2013-08-15 22:48:30 +08:00
|
|
|
this.route('screenedUrls', { path: '/screened_urls' });
|
2013-08-02 09:30:13 +08:00
|
|
|
});
|
|
|
|
|
2015-01-22 03:52:48 +08:00
|
|
|
this.resource('adminGroups', { path: '/groups' }, function() {
|
2015-10-27 03:56:59 +08:00
|
|
|
this.route('bulk');
|
|
|
|
this.route('bulkComplete', { path: 'bulk-complete' });
|
2015-01-22 03:52:48 +08:00
|
|
|
this.resource('adminGroupsType', { path: '/:type' }, function() {
|
|
|
|
this.resource('adminGroup', { path: '/:name' });
|
|
|
|
});
|
2014-04-24 01:25:02 +08:00
|
|
|
});
|
2013-04-17 15:08:21 +08:00
|
|
|
|
2013-02-23 04:41:12 +08:00
|
|
|
this.resource('adminUsers', { path: '/users' }, function() {
|
2014-01-23 06:09:56 +08:00
|
|
|
this.resource('adminUser', { path: '/:username' }, function() {
|
2014-03-19 22:27:21 +08:00
|
|
|
this.route('badges');
|
2014-09-25 08:19:26 +08:00
|
|
|
this.route('tl3Requirements', { path: '/tl3_requirements' });
|
2014-01-23 06:09:56 +08:00
|
|
|
});
|
2014-11-27 02:05:49 +08:00
|
|
|
|
2013-02-23 04:41:12 +08:00
|
|
|
this.resource('adminUsersList', { path: '/list' }, function() {
|
2015-01-22 03:52:48 +08:00
|
|
|
this.route('show', { path: '/:filter' });
|
2013-02-23 04:41:12 +08:00
|
|
|
});
|
2013-02-21 02:15:50 +08:00
|
|
|
});
|
2013-02-23 04:41:12 +08:00
|
|
|
|
2014-10-18 02:27:40 +08:00
|
|
|
this.resource('adminBadges', { path: '/badges' }, function() {
|
|
|
|
this.route('show', { path: '/:badge_id' });
|
|
|
|
});
|
2015-01-31 02:29:32 +08:00
|
|
|
}
|
|
|
|
};
|