diff options
author | Christopher Speller <crspeller@gmail.com> | 2016-06-22 10:30:01 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-06-22 10:30:01 -0400 |
commit | 14510ce19470c176a7f286d4a3238e813f7dc959 (patch) | |
tree | 3aeb058bd9fc0395a040785c876a2762e523df96 /webapp/routes/route_utils.jsx | |
parent | 00dc8e734c5af9e2a7de778b60a2eeaa0e1be269 (diff) | |
download | chat-14510ce19470c176a7f286d4a3238e813f7dc959.tar.gz chat-14510ce19470c176a7f286d4a3238e813f7dc959.tar.bz2 chat-14510ce19470c176a7f286d4a3238e813f7dc959.zip |
Adding webpack code splitting (#3377)
Diffstat (limited to 'webapp/routes/route_utils.jsx')
-rw-r--r-- | webapp/routes/route_utils.jsx | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/webapp/routes/route_utils.jsx b/webapp/routes/route_utils.jsx new file mode 100644 index 000000000..f3a159cbc --- /dev/null +++ b/webapp/routes/route_utils.jsx @@ -0,0 +1,20 @@ +// Copyright (c) 2016 Mattermost, Inc. All Rights Reserved. +// See License.txt for license information. + +import * as Utils from 'utils/utils.jsx'; + +export function importComponentSuccess(callback) { + return (comp) => callback(null, comp.default); +} + +export function createGetChildComponentsFunction(arrayOfComponents) { + return (locaiton, callback) => callback(null, arrayOfComponents); +} + +export const notFoundParams = { + title: Utils.localizeMessage('error.not_found.title', 'Page not found'), + message: Utils.localizeMessage('error.not_found.message', 'The page you were trying to reach does not exist'), + link: '/', + linkmessage: Utils.localizeMessage('error.not_found.link_message', 'Back to Mattermost') +}; + |