PLT-2345 Switch "help" link below text input box to localizable version (#3794)

Этот коммит содержится в:
enahum
2016-08-18 17:36:43 -05:00
коммит произвёл Corey Hulen
родитель b95bd3d8cc
Коммит a820b1640b
12 изменённых файлов: 748 добавлений и 2 удалений

66
webapp/routes/route_help.jsx Обычный файл
Просмотреть файл

@@ -0,0 +1,66 @@
// Copyright (c) 2016 Mattermost, Inc. All Rights Reserved.
// See License.txt for license information.
import * as RouteUtils from 'routes/route_utils.jsx';
export default {
path: 'help',
indexRoute: {onEnter: (nextState, replace) => replace('/help/messaging')},
childRoutes: [
{
getComponents: (location, callback) => {
System.import('components/help/help_controller.jsx').then(RouteUtils.importComponentSuccess(callback));
},
childRoutes: [
{
path: 'messaging',
indexRoute: {
getComponents: (location, callback) => {
System.import('components/help/components/messaging.jsx').then(RouteUtils.importComponentSuccess(callback));
}
}
},
{
path: 'composing',
indexRoute: {
getComponents: (location, callback) => {
System.import('components/help/components/composing.jsx').then(RouteUtils.importComponentSuccess(callback));
}
}
},
{
path: 'mentioning',
indexRoute: {
getComponents: (location, callback) => {
System.import('components/help/components/mentioning.jsx').then(RouteUtils.importComponentSuccess(callback));
}
}
},
{
path: 'formatting',
indexRoute: {
getComponents: (location, callback) => {
System.import('components/help/components/formatting.jsx').then(RouteUtils.importComponentSuccess(callback));
}
}
},
{
path: 'attaching',
indexRoute: {
getComponents: (location, callback) => {
System.import('components/help/components/attaching.jsx').then(RouteUtils.importComponentSuccess(callback));
}
}
},
{
path: 'commands',
indexRoute: {
getComponents: (location, callback) => {
System.import('components/help/components/commands.jsx').then(RouteUtils.importComponentSuccess(callback));
}
}
}
]
}
]
};

Просмотреть файл

@@ -8,6 +8,7 @@ import Root from 'components/root.jsx';
import claimAccountRoute from 'routes/route_claim.jsx';
import createTeamRoute from 'routes/route_create_team.jsx';
import teamRoute from 'routes/route_team.jsx';
import helpRoute from 'routes/route_help.jsx';
import BrowserStore from 'stores/browser_store.jsx';
import ErrorStore from 'stores/error_store.jsx';
@@ -79,7 +80,8 @@ export default {
getComponents: (location, callback) => {
System.import('components/do_verify_email.jsx').then(RouteUtils.importComponentSuccess(callback));
}
}
},
helpRoute
]
)
},