From e78fc2abcb7b45f18e30cdbc6efc16781a7f9533 Mon Sep 17 00:00:00 2001 From: yflory Date: Fri, 25 Jan 2019 17:30:27 +0100 Subject: [PATCH] Add the spreadsheet app to the home page --- customize.dist/pages/index.js | 1 + customize.dist/src/less2/pages/page-index.less | 1 + www/common/onlyoffice/inner.js | 4 ++-- www/common/translations/messages.fr.js | 1 + www/common/translations/messages.js | 1 + 5 files changed, 6 insertions(+), 2 deletions(-) diff --git a/customize.dist/pages/index.js b/customize.dist/pages/index.js index 34c0b6db4..ab2a01fc5 100644 --- a/customize.dist/pages/index.js +++ b/customize.dist/pages/index.js @@ -29,6 +29,7 @@ define([ [ 'pad', Msg.main_richTextPad], [ 'code', Msg.main_codePad], [ 'slide', Msg.main_slidePad], + [ 'sheet', Msg.main_sheetPad], [ 'poll', Msg.main_pollPad], [ 'kanban', Msg.main_kanbanPad], [ 'whiteboard', Msg.main_whiteboardPad], diff --git a/customize.dist/src/less2/pages/page-index.less b/customize.dist/src/less2/pages/page-index.less index 662a0e0fe..a989b7d88 100644 --- a/customize.dist/src/less2/pages/page-index.less +++ b/customize.dist/src/less2/pages/page-index.less @@ -167,6 +167,7 @@ .cp-callout-kanban .cptools { background-color: @colortheme_kanban-bg; } .cp-callout-whiteboard .cptools { background-color: @colortheme_whiteboard-bg; } .cp-callout-drive .fa { background-color: @colortheme_drive-bg; } + .cp-callout-sheet .fa { background-color: @colortheme_oocell-bg; } .cp-hidden { display: none !important; } .cp-callout-more { display: inline-block; diff --git a/www/common/onlyoffice/inner.js b/www/common/onlyoffice/inner.js index 69f540db7..a1b7d0c95 100644 --- a/www/common/onlyoffice/inner.js +++ b/www/common/onlyoffice/inner.js @@ -799,10 +799,10 @@ define([ var $rightside = toolbar.$rightside; - var $save = common.createButton('save', true, {}, function () { + /*var $save = common.createButton('save', true, {}, function () { saveToServer(); }); - $save.appendTo($rightside); + $save.appendTo($rightside);*/ if (common.isLoggedIn()) { common.createButton('hashtag', true).appendTo($rightside); diff --git a/www/common/translations/messages.fr.js b/www/common/translations/messages.fr.js index 7d86040b2..c6cd64df2 100644 --- a/www/common/translations/messages.fr.js +++ b/www/common/translations/messages.fr.js @@ -780,6 +780,7 @@ define(function () { out.main_richTextPad = 'Éditeur de texte'; out.main_codePad = 'Éditeur de code'; + out.main_sheetPad = 'Tableur (Beta)'; out.main_slidePad = 'Éditeur de Présentations'; out.main_pollPad = 'Sondage ou Planning'; out.main_whiteboardPad = 'Tableau blanc'; diff --git a/www/common/translations/messages.js b/www/common/translations/messages.js index 42a2f1b61..ec9de1bce 100644 --- a/www/common/translations/messages.js +++ b/www/common/translations/messages.js @@ -787,6 +787,7 @@ define(function () { out.main_richTextPad = 'Rich Text Pad'; out.main_codePad = 'Markdown/Code Pad'; + out.main_sheetPad = 'Spreadsheets (Beta)'; out.main_slidePad = 'Markdown Presentation'; out.main_pollPad = 'Poll or Schedule'; out.main_whiteboardPad = 'Whiteboard';