mirror of
https://github.com/wekan/wekan.git
synced 2025-12-16 15:30:13 +01:00
Switch tap:i18n to custom TAPi18n implementation
This commit is contained in:
parent
40265144af
commit
60af7766bf
157 changed files with 1991 additions and 5190 deletions
|
|
@ -1,4 +1,5 @@
|
|||
/*
|
||||
import { TAPi18n } from '/imports/i18n';
|
||||
|
||||
const passwordField = AccountsTemplates.removeField('password');
|
||||
const emailField = AccountsTemplates.removeField('email');
|
||||
|
||||
|
|
@ -89,5 +90,3 @@ if (Meteor.isServer) {
|
|||
};
|
||||
});
|
||||
}
|
||||
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -1,3 +1,5 @@
|
|||
import moment from 'moment';
|
||||
import { TAPi18n } from '/imports/i18n';
|
||||
import {
|
||||
OPERATOR_ASSIGNEE,
|
||||
OPERATOR_BOARD,
|
||||
|
|
@ -46,7 +48,6 @@ import {
|
|||
PREDICATE_YEAR,
|
||||
} from './search-const';
|
||||
import Boards from '../models/boards';
|
||||
import moment from 'moment';
|
||||
|
||||
export class QueryDebug {
|
||||
predicate = null;
|
||||
|
|
|
|||
|
|
@ -1,3 +1,5 @@
|
|||
import { TAPi18n } from '/imports/i18n';
|
||||
|
||||
let previousPath;
|
||||
FlowRouter.triggers.exit([
|
||||
({ path }) => {
|
||||
|
|
@ -7,7 +9,7 @@ FlowRouter.triggers.exit([
|
|||
|
||||
FlowRouter.route('/', {
|
||||
name: 'home',
|
||||
//triggersEnter: [qAccountsTemplates.ensureSignedIn],
|
||||
triggersEnter: [AccountsTemplates.ensureSignedIn],
|
||||
action() {
|
||||
Session.set('currentBoard', null);
|
||||
Session.set('currentList', null);
|
||||
|
|
@ -31,7 +33,7 @@ FlowRouter.route('/', {
|
|||
|
||||
FlowRouter.route('/public', {
|
||||
name: 'public',
|
||||
//triggersEnter: [AccountsTemplates.ensureSignedIn],
|
||||
triggersEnter: [AccountsTemplates.ensureSignedIn],
|
||||
action() {
|
||||
Session.set('currentBoard', null);
|
||||
Session.set('currentList', null);
|
||||
|
|
@ -150,7 +152,7 @@ FlowRouter.route('/b/templates', {
|
|||
|
||||
FlowRouter.route('/my-cards', {
|
||||
name: 'my-cards',
|
||||
//triggersEnter: [AccountsTemplates.ensureSignedIn],
|
||||
triggersEnter: [AccountsTemplates.ensureSignedIn],
|
||||
action() {
|
||||
Filter.reset();
|
||||
Session.set('sortBy', '');
|
||||
|
|
@ -170,7 +172,7 @@ FlowRouter.route('/my-cards', {
|
|||
|
||||
FlowRouter.route('/due-cards', {
|
||||
name: 'due-cards',
|
||||
//triggersEnter: [AccountsTemplates.ensureSignedIn],
|
||||
triggersEnter: [AccountsTemplates.ensureSignedIn],
|
||||
action() {
|
||||
Filter.reset();
|
||||
Session.set('sortBy', '');
|
||||
|
|
@ -190,7 +192,7 @@ FlowRouter.route('/due-cards', {
|
|||
|
||||
FlowRouter.route('/global-search', {
|
||||
name: 'global-search',
|
||||
//triggersEnter: [AccountsTemplates.ensureSignedIn],
|
||||
triggersEnter: [AccountsTemplates.ensureSignedIn],
|
||||
action() {
|
||||
Filter.reset();
|
||||
Session.set('sortBy', '');
|
||||
|
|
@ -236,7 +238,7 @@ FlowRouter.route('/broken-cards', {
|
|||
|
||||
FlowRouter.route('/import/:source', {
|
||||
name: 'import',
|
||||
//triggersEnter: [AccountsTemplates.ensureSignedIn],
|
||||
triggersEnter: [AccountsTemplates.ensureSignedIn],
|
||||
action(params) {
|
||||
if (Session.get('currentBoard')) {
|
||||
Session.set('fromBoard', Session.get('currentBoard'));
|
||||
|
|
@ -261,7 +263,7 @@ FlowRouter.route('/import/:source', {
|
|||
FlowRouter.route('/setting', {
|
||||
name: 'setting',
|
||||
triggersEnter: [
|
||||
//AccountsTemplates.ensureSignedIn,
|
||||
AccountsTemplates.ensureSignedIn,
|
||||
() => {
|
||||
Session.set('currentBoard', null);
|
||||
Session.set('currentList', null);
|
||||
|
|
@ -286,7 +288,7 @@ FlowRouter.route('/setting', {
|
|||
FlowRouter.route('/information', {
|
||||
name: 'information',
|
||||
triggersEnter: [
|
||||
//AccountsTemplates.ensureSignedIn,
|
||||
AccountsTemplates.ensureSignedIn,
|
||||
() => {
|
||||
Session.set('currentBoard', null);
|
||||
Session.set('currentList', null);
|
||||
|
|
@ -310,7 +312,7 @@ FlowRouter.route('/information', {
|
|||
FlowRouter.route('/people', {
|
||||
name: 'people',
|
||||
triggersEnter: [
|
||||
//AccountsTemplates.ensureSignedIn,
|
||||
AccountsTemplates.ensureSignedIn,
|
||||
() => {
|
||||
Session.set('currentBoard', null);
|
||||
Session.set('currentList', null);
|
||||
|
|
@ -334,7 +336,7 @@ FlowRouter.route('/people', {
|
|||
FlowRouter.route('/admin-reports', {
|
||||
name: 'admin-reports',
|
||||
triggersEnter: [
|
||||
//AccountsTemplates.ensureSignedIn,
|
||||
AccountsTemplates.ensureSignedIn,
|
||||
() => {
|
||||
Session.set('currentBoard', null);
|
||||
Session.set('currentList', null);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue