Rename the spreadsheet app

This commit is contained in:
yflory
2019-01-25 17:13:55 +01:00
parent 3d1d79e379
commit e93c9c3faa
6 changed files with 10 additions and 10 deletions

View File

@@ -11,7 +11,7 @@ define(function() {
* redirected to the drive.
* You should never remove the drive from this list.
*/
config.availablePadTypes = ['drive', 'pad', 'oocell', 'code', 'slide', 'poll', 'kanban', 'whiteboard',
config.availablePadTypes = ['drive', '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', 'oocell'];
config.registeredOnlyTypes = ['file', 'contacts', 'oodoc', 'ooslide', 'sheet'];
/* Cryptpad apps use a common API to display notifications to users
* by default, notifications are hidden after 5 seconds
@@ -95,7 +95,7 @@ define(function() {
kanban: 'cptools-kanban',
oodoc: 'fa-file-word-o',
ooslide: 'fa-file-powerpoint-o',
oocell: 'fa-file-excel-o',
sheet: 'fa-file-excel-o',
drive: 'fa-hdd-o',
};

View File

@@ -1,11 +1,11 @@
@import (reference) "../../customize/src/less2/include/framework.less";
// body
body.cp-app-oocell, body.cp-app-oodoc, body.cp-app-ooslide {
body.cp-app-sheet, body.cp-app-oodoc, body.cp-app-ooslide {
display: flex;
flex-flow: column;
&.cp-app-oocell {
&.cp-app-sheet {
.framework_main(
@bg-color: @colortheme_oocell-bg,
@warn-color: @colortheme_oocell-warn,

View File

@@ -154,7 +154,7 @@ define([
file.title = title + '.docx' || 'document.docx';
file.doc = 'text';
break;
case 'oocell':
case 'sheet':
file.type = 'xlsx';
file.title = title + '.xlsx' || 'spreadsheet.xlsx';
file.doc = 'spreadsheet';
@@ -701,7 +701,7 @@ define([
}
var newText;
switch (type) {
case 'oocell' :
case 'sheet' :
newText = EmptyCell();
break;
case 'oodoc':

View File

@@ -7,7 +7,7 @@
.loading-hidden { display: none; }
</style>
</head>
<body class="cp-app-oocell">
<body class="cp-app-sheet">
<div id="cp-toolbar" class="cp-toolbar-container"></div>
<div id="cp-app-oo-container">
<div id="cp-app-oo-placeholder"></div>