2016-11-30 02:07:53 +08:00
|
|
|
export default function() {
|
|
|
|
this.route('admin', { resetNamespace: true }, function() {
|
2013-02-23 04:41:12 +08:00
|
|
|
this.route('dashboard', { path: '/' });
|
2016-11-03 01:38:54 +08:00
|
|
|
this.route('adminSiteSettings', { path: '/site_settings', resetNamespace: true }, function() {
|
|
|
|
this.route('adminSiteSettingsCategory', { path: 'category/:category_id', resetNamespace: true} );
|
2013-11-14 03:02:47 +08:00
|
|
|
});
|
2013-04-05 00:59:44 +08:00
|
|
|
|
2016-11-03 01:38:54 +08:00
|
|
|
this.route('adminEmail', { path: '/email', resetNamespace: true}, function() {
|
2014-02-15 07:50:08 +08:00
|
|
|
this.route('sent');
|
2014-02-15 02:06:21 +08:00
|
|
|
this.route('skipped');
|
2016-05-03 05:15:32 +08:00
|
|
|
this.route('bounced');
|
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' });
|
|
|
|
});
|
|
|
|
|
2016-11-03 01:38:54 +08:00
|
|
|
this.route('adminCustomize', { path: '/customize', resetNamespace: true } ,function() {
|
2015-08-07 00:43:56 +08:00
|
|
|
|
2017-04-12 22:52:52 +08:00
|
|
|
this.route('colors', function() {
|
|
|
|
this.route('show', {path: '/:scheme_id'});
|
|
|
|
});
|
|
|
|
|
|
|
|
this.route('adminCustomizeThemes', { path: 'themes', resetNamespace: true }, function() {
|
|
|
|
this.route('show', {path: '/:theme_id'});
|
|
|
|
this.route('edit', {path: '/:theme_id/:target/:field_name/edit'});
|
2015-08-07 00:43:56 +08:00
|
|
|
});
|
|
|
|
|
2016-11-03 01:38:54 +08:00
|
|
|
this.route('adminSiteText', { path: '/site_texts', resetNamespace: true }, 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
|
|
|
|
2016-11-03 01:38:54 +08:00
|
|
|
this.route('adminUserFields', { path: '/user_fields', resetNamespace: true });
|
|
|
|
this.route('adminEmojis', { path: '/emojis', resetNamespace: true });
|
|
|
|
this.route('adminPermalinks', { path: '/permalinks', resetNamespace: true });
|
|
|
|
this.route('adminEmbedding', { path: '/embedding', resetNamespace: true });
|
|
|
|
this.route('adminCustomizeEmailTemplates', { path: '/email_templates', resetNamespace: true }, function() {
|
2015-11-13 05:08:19 +08:00
|
|
|
this.route('edit', { path: '/:id' });
|
|
|
|
});
|
2014-04-16 21:49:06 +08:00
|
|
|
});
|
2016-09-19 16:43:06 +08:00
|
|
|
|
2016-11-03 01:38:54 +08:00
|
|
|
this.route('adminApi', { path: '/api', resetNamespace: true }, function() {
|
|
|
|
this.route('adminApiKeys', { path: '/keys', resetNamespace: true });
|
2016-09-19 16:43:06 +08:00
|
|
|
|
2016-11-03 01:38:54 +08:00
|
|
|
this.route('adminWebHooks', { path: '/web_hooks', resetNamespace: true }, function() {
|
2016-09-19 16:43:06 +08:00
|
|
|
this.route('show', { path: '/:web_hook_id' });
|
|
|
|
this.route('showEvents', { path: '/:web_hook_id/events' });
|
|
|
|
});
|
2016-06-16 01:49:57 +08:00
|
|
|
});
|
2014-02-13 12:34:57 +08:00
|
|
|
|
2016-11-03 01:38:54 +08:00
|
|
|
this.route('admin.backups', { path: '/backups', resetNamespace: true }, function() {
|
2014-02-13 12:34:57 +08:00
|
|
|
this.route('logs');
|
|
|
|
});
|
2013-02-22 03:09:28 +08:00
|
|
|
|
2016-11-03 01:38:54 +08:00
|
|
|
this.route('adminReports', { path: '/reports/:type', resetNamespace: true });
|
2013-02-28 11:39:42 +08:00
|
|
|
|
2016-11-03 01:38:54 +08:00
|
|
|
this.route('adminFlags', { path: '/flags', resetNamespace: true }, function() {
|
2017-09-06 03:29:53 +08:00
|
|
|
this.route('postsActive', { path: 'active' });
|
|
|
|
this.route('postsOld', { path: 'old' });
|
2017-09-06 22:21:07 +08:00
|
|
|
this.route('topics', { path: 'topics' }, function() {
|
|
|
|
this.route('show', { path: ":id" });
|
|
|
|
});
|
2013-02-23 04:41:12 +08:00
|
|
|
});
|
2013-02-22 03:09:28 +08:00
|
|
|
|
2016-11-03 01:38:54 +08:00
|
|
|
this.route('adminLogs', { path: '/logs', resetNamespace: true }, 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' });
|
2017-08-01 05:06:26 +08:00
|
|
|
this.route('adminWatchedWords', { path: '/watched_words', resetNamespace: true}, function() {
|
|
|
|
this.route('index', { path: '/' } );
|
|
|
|
this.route('action', { path: '/action/:action_id' } );
|
|
|
|
});
|
2013-08-02 09:30:13 +08:00
|
|
|
});
|
|
|
|
|
2016-11-03 01:38:54 +08:00
|
|
|
this.route('adminGroups', { path: '/groups', resetNamespace: true }, function() {
|
2015-10-27 03:56:59 +08:00
|
|
|
this.route('bulk');
|
|
|
|
this.route('bulkComplete', { path: 'bulk-complete' });
|
2016-11-03 01:38:54 +08:00
|
|
|
this.route('adminGroupsType', { path: '/:type', resetNamespace: true }, function() {
|
|
|
|
this.route('adminGroup', { path: '/:name', resetNamespace: true });
|
2015-01-22 03:52:48 +08:00
|
|
|
});
|
2014-04-24 01:25:02 +08:00
|
|
|
});
|
2013-04-17 15:08:21 +08:00
|
|
|
|
2016-11-03 01:38:54 +08:00
|
|
|
this.route('adminUsers', { path: '/users', resetNamespace: true }, function() {
|
|
|
|
this.route('adminUser', { path: '/:user_id/:username', resetNamespace: true }, 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
|
|
|
|
2016-11-03 01:38:54 +08:00
|
|
|
this.route('adminUsersList', { path: '/list', resetNamespace: true }, 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
|
|
|
|
2016-11-03 01:38:54 +08:00
|
|
|
this.route('adminBadges', { path: '/badges', resetNamespace: true }, function() {
|
2014-10-18 02:27:40 +08:00
|
|
|
this.route('show', { path: '/:badge_id' });
|
|
|
|
});
|
2016-11-30 02:07:53 +08:00
|
|
|
|
2016-11-30 17:06:42 +08:00
|
|
|
this.route('adminPlugins', { path: '/plugins', resetNamespace: true }, function() {
|
|
|
|
this.route('index', { path: '/' });
|
|
|
|
});
|
2016-11-30 02:07:53 +08:00
|
|
|
});
|
2015-01-31 02:29:32 +08:00
|
|
|
};
|