diff --git a/customize.dist/src/less2/include/colortheme.less b/customize.dist/src/less2/include/colortheme.less index 8aa99e403..cfa971c48 100644 --- a/customize.dist/src/less2/include/colortheme.less +++ b/customize.dist/src/less2/include/colortheme.less @@ -93,6 +93,10 @@ @colortheme_drive-color: #fff; @colortheme_drive-warn: #cd2532; +@colortheme_team-bg: #0b0061; +@colortheme_team-color: #fff; +@colortheme_team-warn: #cd2532; + @colortheme_file-bg: #cd2532; @colortheme_file-color: #fff; @colortheme_file-warn: #ffae00; diff --git a/www/common/application_config_internal.js b/www/common/application_config_internal.js index 6a362b133..4bfe1383a 100644 --- a/www/common/application_config_internal.js +++ b/www/common/application_config_internal.js @@ -11,7 +11,7 @@ define(function() { * redirected to the drive. * You should never remove the drive from this list. */ - config.availablePadTypes = ['drive', 'pad', 'sheet', 'code', 'slide', 'poll', 'kanban', 'whiteboard', + config.availablePadTypes = ['drive', 'team', 'pad', 'sheet', 'code', 'slide', 'poll', 'kanban', 'whiteboard', /*'oodoc', 'ooslide',*/ 'file', 'todo', 'contacts']; /* The registered only types are apps restricted to registered users. * You should never remove apps from this list unless you know what you're doing. The apps @@ -20,7 +20,7 @@ define(function() { * users and these users will be redirected to the login page if they still try to access * the app */ - config.registeredOnlyTypes = ['file', 'contacts', 'oodoc', 'ooslide', 'sheet', 'notifications']; + config.registeredOnlyTypes = ['team', 'file', 'contacts', 'oodoc', 'ooslide', 'sheet', 'notifications']; /* CryptPad is available is multiple languages, but only English and French are maintained * by the developers. The other languages may be outdated, and any missing string for a langauge diff --git a/www/common/common-ui-elements.js b/www/common/common-ui-elements.js index bdfa56d7d..dfd109d15 100644 --- a/www/common/common-ui-elements.js +++ b/www/common/common-ui-elements.js @@ -2473,6 +2473,7 @@ define([ var i = 0; var types = AppConfig.availablePadTypes.filter(function (p) { if (p === 'drive') { return; } + if (p === 'team') { return; } if (p === 'contacts') { return; } if (p === 'todo') { return; } if (p === 'file') { return; } diff --git a/www/common/toolbar3.js b/www/common/toolbar3.js index 224f7eeb6..e7de1f684 100644 --- a/www/common/toolbar3.js +++ b/www/common/toolbar3.js @@ -922,6 +922,7 @@ MessengerUI, Messages) { var pads_options = []; Config.availablePadTypes.forEach(function (p) { if (p === 'drive') { return; } + if (p === 'team') { return; } if (!Common.isLoggedIn() && Config.registeredOnlyTypes && Config.registeredOnlyTypes.indexOf(p) !== -1) { return; } pads_options.push({ diff --git a/www/team/app-team.less b/www/team/app-team.less new file mode 100644 index 000000000..e2cf57fae --- /dev/null +++ b/www/team/app-team.less @@ -0,0 +1,13 @@ +@import (reference) '../../customize/src/less2/include/framework.less'; +@import (reference) '../../customize/src/less2/include/drive.less'; + +&.cp-app-team { + .framework_min_main( + @bg-color: @colortheme_team-bg, + @warn-color: @colortheme_team-warn, + @color: @colortheme_team-color + ); + + .drive_main(); +} + diff --git a/www/team/index.html b/www/team/index.html new file mode 100644 index 000000000..79a96c97b --- /dev/null +++ b/www/team/index.html @@ -0,0 +1,12 @@ + + +
+