From 4d93ac917dfd26c204a7346457a20bed787cea28 Mon Sep 17 00:00:00 2001 From: JuliaSvinareva Date: Fri, 16 Jul 2021 14:24:41 +0300 Subject: [PATCH] [mobile] Remove unused code --- .../mobile/src/controller/ContextMenu.jsx | 2 -- .../mobile/src/controller/Main.jsx | 1 - apps/documenteditor/mobile/src/index_dev.html | 32 +------------------ .../mobile/src/controller/Main.jsx | 2 -- .../mobile/src/index_dev.html | 32 +------------------ .../mobile/src/controller/edit/EditCell.jsx | 1 - .../mobile/src/index_dev.html | 32 +------------------ .../mobile/src/store/cellSettings.js | 1 - 8 files changed, 3 insertions(+), 100 deletions(-) diff --git a/apps/documenteditor/mobile/src/controller/ContextMenu.jsx b/apps/documenteditor/mobile/src/controller/ContextMenu.jsx index c205270ce..a64f6620f 100644 --- a/apps/documenteditor/mobile/src/controller/ContextMenu.jsx +++ b/apps/documenteditor/mobile/src/controller/ContextMenu.jsx @@ -113,8 +113,6 @@ class ContextMenu extends ContextMenuController { }, 400); break; } - - console.log("click context menu item: " + action); } showCopyCutPasteModal() { diff --git a/apps/documenteditor/mobile/src/controller/Main.jsx b/apps/documenteditor/mobile/src/controller/Main.jsx index 471070499..dc2d27292 100644 --- a/apps/documenteditor/mobile/src/controller/Main.jsx +++ b/apps/documenteditor/mobile/src/controller/Main.jsx @@ -78,7 +78,6 @@ class MainController extends Component { const _t = this._t; EditorUIController.isSupportEditFeature(); - console.log('load config'); this.editorConfig = Object.assign({}, this.editorConfig, data.config); diff --git a/apps/documenteditor/mobile/src/index_dev.html b/apps/documenteditor/mobile/src/index_dev.html index 34e64efc6..a0ead6c1a 100644 --- a/apps/documenteditor/mobile/src/index_dev.html +++ b/apps/documenteditor/mobile/src/index_dev.html @@ -59,42 +59,12 @@ return urlParams; }; - const encodeUrlParam = str => str.replace(/&/g, '&') - .replace(/"/g, '"') - .replace(/'/g, ''') - .replace(//g, '>'); - let params = getUrlParams(), - lang = (params["lang"] || 'en').split(/[\-\_]/)[0], - logo = /*params["headerlogo"] ? encodeUrlParam(params["headerlogo"]) : */null, - logoOO = null; - if (!logo) { - logoOO = isAndroid ? "../../common/mobile/resources/img/header/header-logo-android.png" : "../../common/mobile/resources/img/header/header-logo-ios.png"; - } + lang = (params["lang"] || 'en').split(/[\-\_]/)[0]; window.frameEditorId = params["frameEditorId"]; window.parentOrigin = params["parentOrigin"]; window.Common = {Locale: {currentLang: lang}}; - - let brendpanel = document.getElementsByClassName('brendpanel')[0]; - if (brendpanel) { - if ( isAndroid ) { - brendpanel.classList.add('android'); - } - brendpanel.classList.add('visible'); - - let elem = document.querySelector('.loading-logo'); - if (elem) { - logo && (elem.innerHTML = ''); - logoOO && (elem.innerHTML = ''); - elem.style.opacity = 1; - } - var placeholder = document.getElementsByClassName('placeholder')[0]; - if (placeholder && isAndroid) { - placeholder.classList.add('android'); - } - } diff --git a/apps/presentationeditor/mobile/src/controller/Main.jsx b/apps/presentationeditor/mobile/src/controller/Main.jsx index 386ed5b50..832eea745 100644 --- a/apps/presentationeditor/mobile/src/controller/Main.jsx +++ b/apps/presentationeditor/mobile/src/controller/Main.jsx @@ -75,8 +75,6 @@ class MainController extends Component { EditorUIController.isSupportEditFeature(); - console.log('load config'); - this.editorConfig = Object.assign({}, this.editorConfig, data.config); this.props.storeAppOptions.setConfigOptions(this.editorConfig, _t); diff --git a/apps/presentationeditor/mobile/src/index_dev.html b/apps/presentationeditor/mobile/src/index_dev.html index cb2743791..867a5ff63 100644 --- a/apps/presentationeditor/mobile/src/index_dev.html +++ b/apps/presentationeditor/mobile/src/index_dev.html @@ -59,42 +59,12 @@ return urlParams; } - const encodeUrlParam = str => str.replace(/&/g, '&') - .replace(/"/g, '"') - .replace(/'/g, ''') - .replace(//g, '>'); - let params = getUrlParams(), - lang = (params["lang"] || 'en').split(/[\-\_]/)[0], - logo = /*params["headerlogo"] ? encodeUrlParam(params["headerlogo"]) : */null, - logoOO = null; - if (!logo) { - logoOO = isAndroid ? "../../common/mobile/resources/img/header/header-logo-android.png" : "../../common/mobile/resources/img/header/header-logo-ios.png"; - } + lang = (params["lang"] || 'en').split(/[\-\_]/)[0]; window.frameEditorId = params["frameEditorId"]; window.parentOrigin = params["parentOrigin"]; window.Common = {Locale: {currentLang: lang}}; - - let brendpanel = document.getElementsByClassName('brendpanel')[0]; - if (brendpanel) { - if ( isAndroid ) { - brendpanel.classList.add('android'); - } - brendpanel.classList.add('visible'); - - let elem = document.querySelector('.loading-logo'); - if (elem) { - logo && (elem.innerHTML = ''); - logoOO && (elem.innerHTML = ''); - elem.style.opacity = 1; - } - var placeholder = document.getElementsByClassName('placeholder')[0]; - if (placeholder && isAndroid) { - placeholder.classList.add('android'); - } - } diff --git a/apps/spreadsheeteditor/mobile/src/controller/edit/EditCell.jsx b/apps/spreadsheeteditor/mobile/src/controller/edit/EditCell.jsx index b0d7bd9b7..b70b4fa91 100644 --- a/apps/spreadsheeteditor/mobile/src/controller/edit/EditCell.jsx +++ b/apps/spreadsheeteditor/mobile/src/controller/edit/EditCell.jsx @@ -97,7 +97,6 @@ class EditCellController extends Component { onWrapTextChange(checked) { const api = Common.EditorApi.get(); - console.log(checked); api.asc_setCellTextWrap(checked); } diff --git a/apps/spreadsheeteditor/mobile/src/index_dev.html b/apps/spreadsheeteditor/mobile/src/index_dev.html index 4494d3717..18a92b021 100644 --- a/apps/spreadsheeteditor/mobile/src/index_dev.html +++ b/apps/spreadsheeteditor/mobile/src/index_dev.html @@ -59,42 +59,12 @@ return urlParams; } - const encodeUrlParam = str => str.replace(/&/g, '&') - .replace(/"/g, '"') - .replace(/'/g, ''') - .replace(//g, '>'); - let params = getUrlParams(), - lang = (params["lang"] || 'en').split(/[\-\_]/)[0], - logo = /*params["headerlogo"] ? encodeUrlParam(params["headerlogo"]) : */null, - logoOO = null; - if (!logo) { - logoOO = isAndroid ? "../../common/mobile/resources/img/header/header-logo-android.png" : "../../common/mobile/resources/img/header/header-logo-ios.png"; - } + lang = (params["lang"] || 'en').split(/[\-\_]/)[0]; window.frameEditorId = params["frameEditorId"]; window.parentOrigin = params["parentOrigin"]; window.Common = {Locale: {currentLang: lang}}; - - let brendpanel = document.getElementsByClassName('brendpanel')[0]; - if (brendpanel) { - if ( isAndroid ) { - brendpanel.classList.add('android'); - } - brendpanel.classList.add('visible'); - - let elem = document.querySelector('.loading-logo'); - if (elem) { - logo && (elem.innerHTML = ''); - logoOO && (elem.innerHTML = ''); - elem.style.opacity = 1; - } - var placeholder = document.getElementsByClassName('placeholder')[0]; - if (placeholder && isAndroid) { - placeholder.classList.add('android'); - } - } diff --git a/apps/spreadsheeteditor/mobile/src/store/cellSettings.js b/apps/spreadsheeteditor/mobile/src/store/cellSettings.js index 838aefe52..a06ba3ea6 100644 --- a/apps/spreadsheeteditor/mobile/src/store/cellSettings.js +++ b/apps/spreadsheeteditor/mobile/src/store/cellSettings.js @@ -169,7 +169,6 @@ export class storeCellSettings { changeBorderSize(size) { this.borderInfo.width = size; - console.log('change border width ' + size); } changeBorderStyle(type) {