Simplify and split config.json into defaultPreferences and buildConfig

This commit is contained in:
Yuya Ochiai
2017-10-21 23:41:57 +09:00
parent 73a7476de8
commit 3613f70a72
12 changed files with 132 additions and 101 deletions

View File

@@ -0,0 +1,19 @@
/**
* Build-time configuration. End-users can't change these parameters.
* @prop {Object[]} defaultTeams
* @prop {string} defaultTeams[].name - The tab name for default team.
* @prop {string} defaultTeams[].url - The URL for default team.
* @prop {string} helpLink - The URL for "Help->Learn More..." menu item.
* If null is specified, the menu disappears.
*/
const buildConfig = {
defaultTeams: [/*
{
name: 'example',
url: 'https://example.com'
}*/
],
helpLink: 'https://docs.mattermost.com/help/apps/desktop-guide.html'
};
module.exports = buildConfig;