2021-07-10 10:55:54 +02:00
|
|
|
import { TAPi18n } from '/imports/i18n';
|
|
|
|
|
2015-08-27 00:27:23 +02:00
|
|
|
let previousPath;
|
2019-06-28 12:52:09 -05:00
|
|
|
FlowRouter.triggers.exit([
|
|
|
|
({ path }) => {
|
|
|
|
previousPath = path;
|
|
|
|
},
|
|
|
|
]);
|
2015-08-27 00:27:23 +02:00
|
|
|
|
2015-08-22 22:59:03 +02:00
|
|
|
FlowRouter.route('/', {
|
|
|
|
name: 'home',
|
2021-07-10 10:55:54 +02:00
|
|
|
triggersEnter: [AccountsTemplates.ensureSignedIn],
|
2015-09-03 23:12:46 +02:00
|
|
|
action() {
|
2015-08-27 00:27:23 +02:00
|
|
|
Session.set('currentBoard', null);
|
2017-11-29 17:06:33 +09:00
|
|
|
Session.set('currentList', null);
|
2015-08-27 00:27:23 +02:00
|
|
|
Session.set('currentCard', null);
|
2021-11-08 11:55:14 +01:00
|
|
|
Session.set('popupCardId', null);
|
2021-11-08 11:47:41 +01:00
|
|
|
Session.set('popupCardBoardId', null);
|
2015-08-22 22:59:03 +02:00
|
|
|
|
2015-08-31 23:14:31 +02:00
|
|
|
Filter.reset();
|
2021-03-31 17:52:22 +03:00
|
|
|
Session.set('sortBy', '');
|
2015-08-31 23:14:31 +02:00
|
|
|
EscapeActions.executeAll();
|
|
|
|
|
2018-12-15 20:39:01 +02:00
|
|
|
Utils.manageCustomUI();
|
2018-07-27 18:08:09 +02:00
|
|
|
Utils.manageMatomo();
|
|
|
|
|
2024-10-09 22:57:05 +02:00
|
|
|
BlazeLayout.render('defaultLayout', {
|
2015-12-08 16:05:59 -05:00
|
|
|
headerBar: 'boardListHeaderBar',
|
|
|
|
content: 'boardList',
|
|
|
|
});
|
2015-09-03 23:12:46 +02:00
|
|
|
},
|
2015-08-22 22:59:03 +02:00
|
|
|
});
|
|
|
|
|
2020-04-12 00:56:35 +02:00
|
|
|
FlowRouter.route('/public', {
|
|
|
|
name: 'public',
|
2021-07-10 10:55:54 +02:00
|
|
|
triggersEnter: [AccountsTemplates.ensureSignedIn],
|
2020-04-12 00:56:35 +02:00
|
|
|
action() {
|
|
|
|
Session.set('currentBoard', null);
|
|
|
|
Session.set('currentList', null);
|
|
|
|
Session.set('currentCard', null);
|
2021-11-08 11:55:14 +01:00
|
|
|
Session.set('popupCardId', null);
|
2021-11-08 11:47:41 +01:00
|
|
|
Session.set('popupCardBoardId', null);
|
2020-04-12 00:56:35 +02:00
|
|
|
|
|
|
|
Filter.reset();
|
2021-03-31 17:52:22 +03:00
|
|
|
Session.set('sortBy', '');
|
2020-04-12 00:56:35 +02:00
|
|
|
EscapeActions.executeAll();
|
|
|
|
|
|
|
|
Utils.manageCustomUI();
|
|
|
|
Utils.manageMatomo();
|
|
|
|
|
2024-10-09 22:57:05 +02:00
|
|
|
BlazeLayout.render('defaultLayout', {
|
2020-04-12 00:56:35 +02:00
|
|
|
headerBar: 'boardListHeaderBar',
|
|
|
|
content: 'boardList',
|
|
|
|
});
|
2024-12-02 14:17:58 +02:00
|
|
|
},
|
|
|
|
});
|
|
|
|
|
|
|
|
FlowRouter.route('/accessibility', {
|
|
|
|
name: 'accessibility',
|
|
|
|
triggersEnter: [AccountsTemplates.ensureSignedIn],
|
|
|
|
action() {
|
|
|
|
Session.set('currentBoard', null);
|
|
|
|
Session.set('currentList', null);
|
|
|
|
Session.set('currentCard', null);
|
|
|
|
Session.set('popupCardId', null);
|
|
|
|
Session.set('popupCardBoardId', null);
|
|
|
|
|
|
|
|
Filter.reset();
|
|
|
|
Session.set('sortBy', '');
|
|
|
|
EscapeActions.executeAll();
|
|
|
|
|
|
|
|
Utils.manageCustomUI();
|
|
|
|
Utils.manageMatomo();
|
|
|
|
|
|
|
|
BlazeLayout.render('defaultLayout', {
|
|
|
|
headerBar: 'accessibilityHeaderBar',
|
|
|
|
content: 'accessibility',
|
|
|
|
});
|
2020-04-12 00:56:35 +02:00
|
|
|
},
|
|
|
|
});
|
|
|
|
|
2015-08-22 22:59:03 +02:00
|
|
|
FlowRouter.route('/b/:id/:slug', {
|
|
|
|
name: 'board',
|
2015-09-03 23:12:46 +02:00
|
|
|
action(params) {
|
|
|
|
const currentBoard = params.id;
|
|
|
|
const previousBoard = Session.get('currentBoard');
|
2015-08-31 23:14:31 +02:00
|
|
|
Session.set('currentBoard', currentBoard);
|
|
|
|
Session.set('currentCard', null);
|
2021-11-08 11:55:14 +01:00
|
|
|
Session.set('popupCardId', null);
|
2021-11-08 11:47:41 +01:00
|
|
|
Session.set('popupCardBoardId', null);
|
2015-08-31 23:14:31 +02:00
|
|
|
|
2015-08-25 22:18:43 +02:00
|
|
|
// If we close a card, we'll execute again this route action but we don't
|
|
|
|
// want to excape every current actions (filters, etc.)
|
2015-08-31 23:14:31 +02:00
|
|
|
if (previousBoard !== currentBoard) {
|
2017-06-20 16:52:58 +09:00
|
|
|
Filter.reset();
|
2021-03-31 17:52:22 +03:00
|
|
|
Session.set('sortBy', '');
|
2015-08-25 22:18:43 +02:00
|
|
|
EscapeActions.executeAll();
|
2015-09-04 16:30:33 +02:00
|
|
|
} else {
|
|
|
|
EscapeActions.executeUpTo('popup-close');
|
2015-08-25 22:18:43 +02:00
|
|
|
}
|
|
|
|
|
2018-12-15 20:39:01 +02:00
|
|
|
Utils.manageCustomUI();
|
2018-07-27 18:08:09 +02:00
|
|
|
Utils.manageMatomo();
|
|
|
|
|
2024-10-09 22:57:05 +02:00
|
|
|
BlazeLayout.render('defaultLayout', {
|
2015-12-08 16:05:59 -05:00
|
|
|
headerBar: 'boardHeaderBar',
|
|
|
|
content: 'board',
|
|
|
|
});
|
2015-09-03 23:12:46 +02:00
|
|
|
},
|
2015-08-22 22:59:03 +02:00
|
|
|
});
|
|
|
|
|
|
|
|
FlowRouter.route('/b/:boardId/:slug/:cardId', {
|
|
|
|
name: 'card',
|
2015-09-03 23:12:46 +02:00
|
|
|
action(params) {
|
2015-09-10 19:11:19 +02:00
|
|
|
EscapeActions.executeUpTo('inlinedForm');
|
|
|
|
|
2015-08-22 22:59:03 +02:00
|
|
|
Session.set('currentBoard', params.boardId);
|
|
|
|
Session.set('currentCard', params.cardId);
|
2021-11-08 11:55:14 +01:00
|
|
|
Session.set('popupCardId', null);
|
2021-11-08 11:47:41 +01:00
|
|
|
Session.set('popupCardBoardId', null);
|
2015-08-22 22:59:03 +02:00
|
|
|
|
2018-12-15 20:39:01 +02:00
|
|
|
Utils.manageCustomUI();
|
2018-07-27 18:08:09 +02:00
|
|
|
Utils.manageMatomo();
|
|
|
|
|
2024-10-09 22:57:05 +02:00
|
|
|
BlazeLayout.render('defaultLayout', {
|
2015-12-08 16:05:59 -05:00
|
|
|
headerBar: 'boardHeaderBar',
|
|
|
|
content: 'board',
|
|
|
|
});
|
2015-09-03 23:12:46 +02:00
|
|
|
},
|
2015-08-22 22:59:03 +02:00
|
|
|
});
|
|
|
|
|
2015-08-27 00:27:23 +02:00
|
|
|
FlowRouter.route('/shortcuts', {
|
|
|
|
name: 'shortcuts',
|
2015-09-03 23:12:46 +02:00
|
|
|
action() {
|
2015-08-27 00:27:23 +02:00
|
|
|
const shortcutsTemplate = 'keyboardShortcuts';
|
|
|
|
|
|
|
|
EscapeActions.executeUpTo('popup-close');
|
|
|
|
|
|
|
|
if (previousPath) {
|
|
|
|
Modal.open(shortcutsTemplate, {
|
2015-12-08 16:05:59 -05:00
|
|
|
header: 'shortcutsModalTitle',
|
2015-09-03 23:12:46 +02:00
|
|
|
onCloseGoTo: previousPath,
|
2015-08-27 00:27:23 +02:00
|
|
|
});
|
|
|
|
} else {
|
2024-10-09 22:57:05 +02:00
|
|
|
BlazeLayout.render('defaultLayout', {
|
2015-12-08 16:05:59 -05:00
|
|
|
headerBar: 'shortcutsHeaderBar',
|
|
|
|
content: shortcutsTemplate,
|
|
|
|
});
|
2015-08-27 00:27:23 +02:00
|
|
|
}
|
2015-09-03 23:12:46 +02:00
|
|
|
},
|
2015-08-27 00:27:23 +02:00
|
|
|
});
|
|
|
|
|
2021-12-25 21:59:43 +02:00
|
|
|
FlowRouter.route('/b/templates', {
|
|
|
|
name: 'template-container',
|
|
|
|
triggersEnter: [AccountsTemplates.ensureSignedIn],
|
|
|
|
action() {
|
|
|
|
Session.set('currentBoard', null);
|
|
|
|
Session.set('currentList', null);
|
|
|
|
Session.set('currentCard', null);
|
|
|
|
Session.set('popupCardId', null);
|
|
|
|
Session.set('popupCardBoardId', null);
|
|
|
|
|
|
|
|
Filter.reset();
|
|
|
|
Session.set('sortBy', '');
|
|
|
|
EscapeActions.executeAll();
|
|
|
|
|
|
|
|
Utils.manageCustomUI();
|
|
|
|
Utils.manageMatomo();
|
|
|
|
|
2024-10-09 22:57:05 +02:00
|
|
|
BlazeLayout.render('defaultLayout', {
|
2021-12-25 21:59:43 +02:00
|
|
|
headerBar: 'boardListHeaderBar',
|
|
|
|
content: 'boardList',
|
|
|
|
});
|
|
|
|
},
|
|
|
|
});
|
|
|
|
|
2020-12-31 19:14:55 +02:00
|
|
|
FlowRouter.route('/my-cards', {
|
|
|
|
name: 'my-cards',
|
2021-07-10 10:55:54 +02:00
|
|
|
triggersEnter: [AccountsTemplates.ensureSignedIn],
|
2020-12-31 19:14:55 +02:00
|
|
|
action() {
|
|
|
|
Filter.reset();
|
2021-03-31 17:52:22 +03:00
|
|
|
Session.set('sortBy', '');
|
2020-12-31 19:14:55 +02:00
|
|
|
// EscapeActions.executeAll();
|
|
|
|
EscapeActions.executeUpTo('popup-close');
|
|
|
|
|
|
|
|
Utils.manageCustomUI();
|
|
|
|
Utils.manageMatomo();
|
|
|
|
|
2024-10-09 22:57:05 +02:00
|
|
|
BlazeLayout.render('defaultLayout', {
|
2021-01-01 22:03:29 +02:00
|
|
|
headerBar: 'myCardsHeaderBar',
|
2021-01-10 18:08:03 +02:00
|
|
|
content: 'myCards',
|
2021-01-01 22:03:29 +02:00
|
|
|
});
|
|
|
|
// }
|
2020-12-31 19:14:55 +02:00
|
|
|
},
|
|
|
|
});
|
|
|
|
|
2021-01-07 22:36:10 +02:00
|
|
|
FlowRouter.route('/due-cards', {
|
2021-01-08 12:18:05 +02:00
|
|
|
name: 'due-cards',
|
2021-07-10 10:55:54 +02:00
|
|
|
triggersEnter: [AccountsTemplates.ensureSignedIn],
|
2021-01-07 22:36:10 +02:00
|
|
|
action() {
|
|
|
|
Filter.reset();
|
2021-03-31 17:52:22 +03:00
|
|
|
Session.set('sortBy', '');
|
2021-01-07 22:36:10 +02:00
|
|
|
// EscapeActions.executeAll();
|
|
|
|
EscapeActions.executeUpTo('popup-close');
|
|
|
|
|
|
|
|
Utils.manageCustomUI();
|
|
|
|
Utils.manageMatomo();
|
|
|
|
|
2024-10-09 22:57:05 +02:00
|
|
|
BlazeLayout.render('defaultLayout', {
|
2021-01-07 22:36:10 +02:00
|
|
|
headerBar: 'dueCardsHeaderBar',
|
2021-01-10 18:08:03 +02:00
|
|
|
content: 'dueCards',
|
2021-01-07 22:36:10 +02:00
|
|
|
});
|
|
|
|
// }
|
|
|
|
},
|
|
|
|
});
|
|
|
|
|
2021-01-10 21:52:25 +02:00
|
|
|
FlowRouter.route('/global-search', {
|
|
|
|
name: 'global-search',
|
2021-07-10 10:55:54 +02:00
|
|
|
triggersEnter: [AccountsTemplates.ensureSignedIn],
|
2021-01-10 21:52:25 +02:00
|
|
|
action() {
|
|
|
|
Filter.reset();
|
2021-03-31 17:52:22 +03:00
|
|
|
Session.set('sortBy', '');
|
2021-01-10 21:52:25 +02:00
|
|
|
// EscapeActions.executeAll();
|
|
|
|
EscapeActions.executeUpTo('popup-close');
|
|
|
|
|
|
|
|
Utils.manageCustomUI();
|
|
|
|
Utils.manageMatomo();
|
2025-08-09 14:23:40 +03:00
|
|
|
DocHead.setTitle(TAPi18n.__('globalSearch-title'));
|
|
|
|
|
2021-01-17 21:18:45 +02:00
|
|
|
if (FlowRouter.getQueryParam('q')) {
|
|
|
|
Session.set(
|
|
|
|
'globalQuery',
|
|
|
|
decodeURIComponent(FlowRouter.getQueryParam('q')),
|
|
|
|
);
|
|
|
|
}
|
2024-10-09 22:57:05 +02:00
|
|
|
BlazeLayout.render('defaultLayout', {
|
2021-01-10 21:52:25 +02:00
|
|
|
headerBar: 'globalSearchHeaderBar',
|
|
|
|
content: 'globalSearch',
|
|
|
|
});
|
2021-01-13 01:29:46 +02:00
|
|
|
},
|
|
|
|
});
|
|
|
|
|
2021-01-10 00:17:59 +02:00
|
|
|
FlowRouter.route('/broken-cards', {
|
|
|
|
name: 'broken-cards',
|
|
|
|
action() {
|
|
|
|
const brokenCardsTemplate = 'brokenCards';
|
|
|
|
|
|
|
|
Filter.reset();
|
2021-03-31 17:52:22 +03:00
|
|
|
Session.set('sortBy', '');
|
2021-01-10 00:17:59 +02:00
|
|
|
// EscapeActions.executeAll();
|
|
|
|
EscapeActions.executeUpTo('popup-close');
|
|
|
|
|
|
|
|
Utils.manageCustomUI();
|
|
|
|
Utils.manageMatomo();
|
|
|
|
|
2024-10-09 22:57:05 +02:00
|
|
|
BlazeLayout.render('defaultLayout', {
|
2021-01-10 00:17:59 +02:00
|
|
|
headerBar: 'brokenCardsHeaderBar',
|
|
|
|
content: brokenCardsTemplate,
|
|
|
|
});
|
2021-01-10 21:52:25 +02:00
|
|
|
},
|
|
|
|
});
|
|
|
|
|
2017-07-08 13:23:33 +01:00
|
|
|
FlowRouter.route('/import/:source', {
|
2015-12-08 16:18:44 -05:00
|
|
|
name: 'import',
|
2021-07-10 10:55:54 +02:00
|
|
|
triggersEnter: [AccountsTemplates.ensureSignedIn],
|
2017-07-08 13:23:33 +01:00
|
|
|
action(params) {
|
2017-07-24 23:56:51 +01:00
|
|
|
if (Session.get('currentBoard')) {
|
|
|
|
Session.set('fromBoard', Session.get('currentBoard'));
|
|
|
|
}
|
2017-07-08 13:23:33 +01:00
|
|
|
Session.set('currentBoard', null);
|
2017-11-29 17:06:33 +09:00
|
|
|
Session.set('currentList', null);
|
2017-07-08 13:23:33 +01:00
|
|
|
Session.set('currentCard', null);
|
2021-11-08 11:55:14 +01:00
|
|
|
Session.set('popupCardId', null);
|
2021-11-08 11:47:41 +01:00
|
|
|
Session.set('popupCardBoardId', null);
|
2017-07-08 13:23:33 +01:00
|
|
|
Session.set('importSource', params.source);
|
2015-12-08 16:18:44 -05:00
|
|
|
|
2017-07-08 13:23:33 +01:00
|
|
|
Filter.reset();
|
2021-03-31 17:52:22 +03:00
|
|
|
Session.set('sortBy', '');
|
2017-07-08 13:23:33 +01:00
|
|
|
EscapeActions.executeAll();
|
2024-10-09 22:57:05 +02:00
|
|
|
BlazeLayout.render('defaultLayout', {
|
2015-12-08 16:18:44 -05:00
|
|
|
headerBar: 'importHeaderBar',
|
|
|
|
content: 'import',
|
|
|
|
});
|
|
|
|
},
|
|
|
|
});
|
|
|
|
|
2017-02-24 22:10:38 +08:00
|
|
|
FlowRouter.route('/setting', {
|
|
|
|
name: 'setting',
|
2017-02-26 21:11:15 +08:00
|
|
|
triggersEnter: [
|
2021-07-10 10:55:54 +02:00
|
|
|
AccountsTemplates.ensureSignedIn,
|
2017-02-26 21:11:15 +08:00
|
|
|
() => {
|
|
|
|
Session.set('currentBoard', null);
|
2017-11-29 17:06:33 +09:00
|
|
|
Session.set('currentList', null);
|
2017-02-26 21:11:15 +08:00
|
|
|
Session.set('currentCard', null);
|
2021-11-08 11:55:14 +01:00
|
|
|
Session.set('popupCardId', null);
|
2021-11-08 11:47:41 +01:00
|
|
|
Session.set('popupCardBoardId', null);
|
2017-02-26 21:11:15 +08:00
|
|
|
|
|
|
|
Filter.reset();
|
2021-03-31 17:52:22 +03:00
|
|
|
Session.set('sortBy', '');
|
2017-02-26 21:11:15 +08:00
|
|
|
EscapeActions.executeAll();
|
|
|
|
},
|
|
|
|
],
|
2017-02-24 22:10:38 +08:00
|
|
|
action() {
|
2018-12-15 20:39:01 +02:00
|
|
|
Utils.manageCustomUI();
|
2024-10-09 22:57:05 +02:00
|
|
|
BlazeLayout.render('defaultLayout', {
|
2017-02-24 22:10:38 +08:00
|
|
|
headerBar: 'settingHeaderBar',
|
|
|
|
content: 'setting',
|
|
|
|
});
|
|
|
|
},
|
|
|
|
});
|
|
|
|
|
2017-08-03 09:24:40 +09:00
|
|
|
FlowRouter.route('/information', {
|
|
|
|
name: 'information',
|
|
|
|
triggersEnter: [
|
2021-07-10 10:55:54 +02:00
|
|
|
AccountsTemplates.ensureSignedIn,
|
2017-08-03 09:24:40 +09:00
|
|
|
() => {
|
|
|
|
Session.set('currentBoard', null);
|
2017-11-29 17:06:33 +09:00
|
|
|
Session.set('currentList', null);
|
2017-08-03 09:24:40 +09:00
|
|
|
Session.set('currentCard', null);
|
2021-11-08 11:55:14 +01:00
|
|
|
Session.set('popupCardId', null);
|
2021-11-08 11:47:41 +01:00
|
|
|
Session.set('popupCardBoardId', null);
|
2017-08-03 09:24:40 +09:00
|
|
|
|
|
|
|
Filter.reset();
|
2021-03-31 17:52:22 +03:00
|
|
|
Session.set('sortBy', '');
|
2017-08-03 09:24:40 +09:00
|
|
|
EscapeActions.executeAll();
|
|
|
|
},
|
|
|
|
],
|
|
|
|
action() {
|
2024-10-09 22:57:05 +02:00
|
|
|
BlazeLayout.render('defaultLayout', {
|
2017-08-03 09:24:40 +09:00
|
|
|
headerBar: 'settingHeaderBar',
|
|
|
|
content: 'information',
|
|
|
|
});
|
|
|
|
},
|
|
|
|
});
|
|
|
|
|
2017-11-07 14:01:27 +07:00
|
|
|
FlowRouter.route('/people', {
|
|
|
|
name: 'people',
|
|
|
|
triggersEnter: [
|
2021-07-10 10:55:54 +02:00
|
|
|
AccountsTemplates.ensureSignedIn,
|
2017-11-07 14:01:27 +07:00
|
|
|
() => {
|
|
|
|
Session.set('currentBoard', null);
|
2017-11-29 17:06:33 +09:00
|
|
|
Session.set('currentList', null);
|
2017-11-07 14:01:27 +07:00
|
|
|
Session.set('currentCard', null);
|
2021-11-08 11:55:14 +01:00
|
|
|
Session.set('popupCardId', null);
|
2021-11-08 11:47:41 +01:00
|
|
|
Session.set('popupCardBoardId', null);
|
2017-11-07 14:01:27 +07:00
|
|
|
|
|
|
|
Filter.reset();
|
2021-03-31 17:52:22 +03:00
|
|
|
Session.set('sortBy', '');
|
2017-11-07 14:01:27 +07:00
|
|
|
EscapeActions.executeAll();
|
|
|
|
},
|
|
|
|
],
|
|
|
|
action() {
|
2024-10-09 22:57:05 +02:00
|
|
|
BlazeLayout.render('defaultLayout', {
|
2017-11-07 14:01:27 +07:00
|
|
|
headerBar: 'settingHeaderBar',
|
|
|
|
content: 'people',
|
|
|
|
});
|
|
|
|
},
|
|
|
|
});
|
|
|
|
|
2021-04-06 12:24:08 +02:00
|
|
|
FlowRouter.route('/admin-reports', {
|
|
|
|
name: 'admin-reports',
|
|
|
|
triggersEnter: [
|
2021-07-10 10:55:54 +02:00
|
|
|
AccountsTemplates.ensureSignedIn,
|
2021-04-06 12:24:08 +02:00
|
|
|
() => {
|
|
|
|
Session.set('currentBoard', null);
|
|
|
|
Session.set('currentList', null);
|
|
|
|
Session.set('currentCard', null);
|
2021-11-08 11:55:14 +01:00
|
|
|
Session.set('popupCardId', null);
|
2021-11-08 11:47:41 +01:00
|
|
|
Session.set('popupCardBoardId', null);
|
2021-04-06 12:24:08 +02:00
|
|
|
|
|
|
|
Filter.reset();
|
|
|
|
Session.set('sortBy', '');
|
|
|
|
EscapeActions.executeAll();
|
|
|
|
},
|
|
|
|
],
|
|
|
|
action() {
|
2024-10-09 22:57:05 +02:00
|
|
|
BlazeLayout.render('defaultLayout', {
|
2021-04-06 12:24:08 +02:00
|
|
|
headerBar: 'settingHeaderBar',
|
|
|
|
content: 'adminReports',
|
|
|
|
});
|
|
|
|
},
|
|
|
|
});
|
|
|
|
|
2022-04-08 00:27:56 +02:00
|
|
|
FlowRouter.route('/attachments', {
|
|
|
|
name: 'attachments',
|
|
|
|
triggersEnter: [
|
|
|
|
AccountsTemplates.ensureSignedIn,
|
|
|
|
() => {
|
|
|
|
Session.set('currentBoard', null);
|
|
|
|
Session.set('currentList', null);
|
|
|
|
Session.set('currentCard', null);
|
|
|
|
Session.set('popupCardId', null);
|
|
|
|
Session.set('popupCardBoardId', null);
|
|
|
|
|
|
|
|
Filter.reset();
|
|
|
|
Session.set('sortBy', '');
|
|
|
|
EscapeActions.executeAll();
|
|
|
|
},
|
|
|
|
],
|
|
|
|
action() {
|
2024-10-09 22:57:05 +02:00
|
|
|
BlazeLayout.render('defaultLayout', {
|
2022-04-08 00:27:56 +02:00
|
|
|
headerBar: 'settingHeaderBar',
|
|
|
|
content: 'attachments',
|
|
|
|
});
|
|
|
|
},
|
|
|
|
});
|
|
|
|
|
2023-08-17 21:54:14 +09:00
|
|
|
FlowRouter.route('/translation', {
|
|
|
|
name: 'translation',
|
|
|
|
triggersEnter: [
|
|
|
|
AccountsTemplates.ensureSignedIn,
|
|
|
|
() => {
|
|
|
|
Session.set('currentBoard', null);
|
|
|
|
Session.set('currentList', null);
|
|
|
|
Session.set('currentCard', null);
|
|
|
|
Session.set('popupCardId', null);
|
|
|
|
Session.set('popupCardBoardId', null);
|
|
|
|
|
|
|
|
Filter.reset();
|
|
|
|
Session.set('sortBy', '');
|
|
|
|
EscapeActions.executeAll();
|
|
|
|
},
|
|
|
|
],
|
|
|
|
action() {
|
2024-10-09 22:57:05 +02:00
|
|
|
BlazeLayout.render('defaultLayout', {
|
2023-08-17 21:54:14 +09:00
|
|
|
headerBar: 'settingHeaderBar',
|
|
|
|
content: 'translation',
|
|
|
|
});
|
|
|
|
},
|
|
|
|
});
|
|
|
|
|
2024-10-09 22:57:05 +02:00
|
|
|
FlowRouter.notFound = {
|
2015-09-03 23:12:46 +02:00
|
|
|
action() {
|
2024-10-09 22:57:05 +02:00
|
|
|
BlazeLayout.render('defaultLayout', { content: 'notFound' });
|
2015-09-03 23:12:46 +02:00
|
|
|
},
|
2024-10-09 22:57:05 +02:00
|
|
|
};
|
2015-08-22 22:59:03 +02:00
|
|
|
|
|
|
|
// We maintain a list of redirections to ensure that we don't break old URLs
|
|
|
|
// when we change our routing scheme.
|
2015-09-03 23:12:46 +02:00
|
|
|
const redirections = {
|
2015-08-22 22:59:03 +02:00
|
|
|
'/boards': '/',
|
|
|
|
'/boards/:id/:slug': '/b/:id/:slug',
|
2015-09-03 23:12:46 +02:00
|
|
|
'/boards/:id/:slug/:cardId': '/b/:id/:slug/:cardId',
|
2017-07-08 13:23:33 +01:00
|
|
|
'/import': '/import/trello',
|
2015-08-22 22:59:03 +02:00
|
|
|
};
|
|
|
|
|
2015-09-03 23:12:46 +02:00
|
|
|
_.each(redirections, (newPath, oldPath) => {
|
2015-08-22 22:59:03 +02:00
|
|
|
FlowRouter.route(oldPath, {
|
2019-06-28 12:52:09 -05:00
|
|
|
triggersEnter: [
|
|
|
|
(context, redirect) => {
|
|
|
|
redirect(FlowRouter.path(newPath, context.params));
|
|
|
|
},
|
|
|
|
],
|
2015-08-22 22:59:03 +02:00
|
|
|
});
|
Renaissance
_,,ad8888888888bba,_
,ad88888I888888888888888ba,
,88888888I88888888888888888888a,
,d888888888I8888888888888888888888b,
d88888PP"""" ""YY88888888888888888888b,
,d88"'__,,--------,,,,.;ZZZY8888888888888,
,8IIl'" ;;l"ZZZIII8888888888,
,I88l;' ;lZZZZZ888III8888888,
,II88Zl;. ;llZZZZZ888888I888888,
,II888Zl;. .;;;;;lllZZZ888888I8888b
,II8888Z;; `;;;;;''llZZ8888888I8888,
II88888Z;' .;lZZZ8888888I888b
II88888Z; _,aaa, .,aaaaa,__.l;llZZZ88888888I888
II88888IZZZZZZZZZ, .ZZZZZZZZZZZZZZ;llZZ88888888I888,
II88888IZZ<'(@@>Z| |ZZZ<'(@@>ZZZZ;;llZZ888888888I88I
,II88888; `""" ;| |ZZ; `""" ;;llZ8888888888I888
II888888l `;; .;llZZ8888888888I888,
,II888888Z; ;;; .;;llZZZ8888888888I888I
III888888Zl; .., `;; ,;;lllZZZ88888888888I888
II88888888Z;;...;(_ _) ,;;;llZZZZ88888888888I888,
II88888888Zl;;;;;' `--'Z;. .,;;;;llZZZZ88888888888I888b
]I888888888Z;;;;' ";llllll;..;;;lllZZZZ88888888888I8888,
II888888888Zl.;;"Y88bd888P";;,..;lllZZZZZ88888888888I8888I
II8888888888Zl;.; `"PPP";;;,..;lllZZZZZZZ88888888888I88888
II888888888888Zl;;. `;;;l;;;;lllZZZZZZZZW88888888888I88888
`II8888888888888Zl;. ,;;lllZZZZZZZZWMZ88888888888I88888
II8888888888888888ZbaalllZZZZZZZZZWWMZZZ8888888888I888888,
`II88888888888888888b"WWZZZZZWWWMMZZZZZZI888888888I888888b
`II88888888888888888;ZZMMMMMMZZZZZZZZllI888888888I8888888
`II8888888888888888 `;lZZZZZZZZZZZlllll888888888I8888888,
II8888888888888888, `;lllZZZZllllll;;.Y88888888I8888888b,
,II8888888888888888b .;;lllllll;;;.;..88888888I88888888b,
II888888888888888PZI;. .`;;;.;;;..; ...88888888I8888888888,
II888888888888PZ;;';;. ;. .;. .;. .. Y8888888I88888888888b,
,II888888888PZ;;' `8888888I8888888888888b,
II888888888' 888888I8888888888888888
,II888888888 ,888888I8888888888888888
,d88888888888 d888888I8888888888ZZZZZZ
,ad888888888888I 8888888I8888ZZZZZZZZZZZZ
888888888888888' 888888IZZZZZZZZZZZZZZZZZ
8888888888P'8P' Y888ZZZZZZZZZZZZZZZZZZZZ
888888888, " ,ZZZZZZZZZZZZZZZZZZZZZZZ
8888888888, ,ZZZZZZZZZZZZZZZZZZZZZZZZZZ
888888888888a, _ ,ZZZZZZZZZZZZZZZZZZZZ88888888
888888888888888ba,_d' ,ZZZZZZZZZZZZZZZZZ8888888888888
8888888888888888888888bbbaaa,,,______,ZZZZZZZZZZZZZZZ88888888888888888
88888888888888888888888888888888888ZZZZZZZZZZZZZZZ88888888888888888888
8888888888888888888888888888888888ZZZZZZZZZZZZZZ8888888888888888888888
888888888888888888888888888888888ZZZZZZZZZZZZZZ88888888888888888888888
8888888888888888888888888888888ZZZZZZZZZZZZZZ8888888888888888888888888
88888888888888888888888888888ZZZZZZZZZZZZZZ888888888888888888888888888
8888888888888888888888888888ZZZZZZZZZZZZZZ88888888888888888 Normand 8
88888888888888888888888888ZZZZZZZZZZZZZZ8888888888888888888 Veilleux 8
8888888888888888888888888ZZZZZZZZZZZZZZ8888888888888888888888888888888
2015-05-12 19:20:58 +02:00
|
|
|
});
|
2015-10-22 18:08:39 +02:00
|
|
|
|
|
|
|
// As it is not possible to use template helpers in the page <head> we create a
|
|
|
|
// reactive function whose role is to set any page-specific tag in the <head>
|
|
|
|
// using the `kadira:dochead` package. Currently we only use it to display the
|
|
|
|
// board title if we are in a board page (see #364) but we may want to support
|
|
|
|
// some <meta> tags in the future.
|
2018-12-15 20:39:01 +02:00
|
|
|
//const appTitle = Utils.manageCustomUI();
|
2015-10-22 18:08:39 +02:00
|
|
|
|
|
|
|
// XXX The `Meteor.startup` should not be necessary -- we don't need to wait for
|
|
|
|
// the complete DOM to be ready to call `DocHead.setTitle`. But the problem is
|
|
|
|
// that the global variable `Boards` is undefined when this file loads so we
|
|
|
|
// wait a bit until hopefully all files are loaded. This will be fixed in a
|
|
|
|
// clean way once Meteor will support ES6 modules -- hopefully in Meteor 1.3.
|
2018-12-15 20:39:01 +02:00
|
|
|
//Meteor.isClient && Meteor.startup(() => {
|
|
|
|
// Tracker.autorun(() => {
|
|
|
|
|
2022-12-15 22:26:08 +01:00
|
|
|
// const currentBoard = Utils.getCurrentBoard();
|
2018-12-15 20:39:01 +02:00
|
|
|
// const titleStack = [appTitle];
|
|
|
|
// if (currentBoard) {
|
|
|
|
// titleStack.push(currentBoard.title);
|
|
|
|
// }
|
|
|
|
// DocHead.setTitle(titleStack.reverse().join(' - '));
|
|
|
|
// });
|
|
|
|
//});
|