1
0
Fork 0
mirror of https://github.com/documize/community.git synced 2025-07-19 05:09:42 +02:00
documize/gui/app/router.js

156 lines
2.5 KiB
JavaScript
Raw Normal View History

2016-07-07 18:54:16 -07:00
// Copyright 2016 Documize Inc. <legal@documize.com>. All rights reserved.
//
// This software (Documize Community Edition) is licensed under
// GNU AGPL v3 http://www.gnu.org/licenses/agpl-3.0.en.html
//
// You can operate outside the AGPL restrictions by purchasing
// Documize Enterprise Edition and obtaining a commercial license
// by contacting <sales@documize.com>.
//
// https://documize.com
import config from './config/environment';
2019-01-24 15:28:14 +00:00
import EmberRouter from '@ember/routing/router';
2016-07-07 18:54:16 -07:00
var Router = EmberRouter.extend({
2019-01-24 15:28:14 +00:00
location: config.locationType,
rootURL: config.rootURL
2016-07-07 18:54:16 -07:00
});
2018-03-15 17:11:53 +00:00
export default Router.map(function () {
2016-11-05 14:53:44 -07:00
this.route('folders', {
path: '/'
2016-11-06 20:11:21 -08:00
});
this.route('action', {
});
this.route('analytics', {
});
this.route('activity', {
});
this.route(
'folder',
{
path: 's/:folder_id/:folder_slug'
},
2018-03-15 17:11:53 +00:00
function () {
this.route('settings', {
});
this.route('block', {
path: 'block/:block_id'
});
}
);
2016-11-06 20:11:21 -08:00
this.route(
'document',
{
path: 's/:folder_id/:folder_slug/d/:document_id/:document_slug'
},
2018-03-15 17:11:53 +00:00
function () {
this.route('section', {
path: 'section/:page_id'
});
this.route('settings', {
});
2018-12-20 13:05:22 +00:00
this.route('revisions', {
});
this.route('activity', {
});
}
);
2016-07-07 18:54:16 -07:00
this.route(
'customize',
{
path: 'settings'
},
2018-03-15 17:11:53 +00:00
function () {
this.route('general', {
});
this.route('labels', {
});
this.route('groups', {
});
this.route('users', {
});
this.route('folders', {
});
this.route('smtp', {
});
2018-11-07 15:56:05 +00:00
this.route('product', {
});
2019-03-24 17:53:22 -04:00
this.route('notice', {
});
this.route('auth', {
});
this.route('audit', {
});
2018-03-29 12:23:09 +01:00
this.route('search', {
});
this.route('integrations', {
});
this.route('backup', {
});
2018-11-07 15:56:05 +00:00
this.route('billing', {
});
}
);
2016-07-07 18:54:16 -07:00
2016-11-05 14:53:44 -07:00
this.route('setup', {
});
2016-07-07 18:54:16 -07:00
2017-03-22 12:21:18 +00:00
this.route('secure', {
path: 'secure/:token'
});
this.route('jumpto', {
path: 'link/:jump_type/:jump_id'
});
this.route(
'auth',
{
},
2018-03-15 17:11:53 +00:00
function () {
this.route('sso', {
path: 'sso/:token'
});
this.route('keycloak', {
});
this.route('login', {
});
this.route('forgot', {
});
this.route('reset', {
path: 'reset/:token'
});
this.route('logout', {
});
this.route('share', {
path: 'share/:id/:slug/:serial'
});
2019-08-09 13:44:03 +08:00
this.route('cas', {
});
}
);
2016-07-07 18:54:16 -07:00
2022-03-03 18:21:16 -05:00
this.route('profile', {});
2017-11-27 19:07:36 +00:00
2022-03-03 18:21:16 -05:00
this.route('search', {});
2017-11-27 19:07:36 +00:00
2022-03-03 18:21:16 -05:00
this.route('accounts', {});
2016-07-07 18:54:16 -07:00
2022-03-03 18:21:16 -05:00
this.route('theming', {});
2018-05-18 20:11:24 +01:00
2022-03-03 18:21:16 -05:00
this.route('updates', {});
2021-08-19 13:02:56 -04:00
this.route('auth/login', {
2016-11-05 14:53:44 -07:00
path: '/*wildcard'
2021-08-19 13:02:56 -04:00
// path: '/*wildcard'
2016-11-05 14:53:44 -07:00
});
2016-07-07 18:54:16 -07:00
});