Merge pull request #990 from ONLYOFFICE/fix/fix-bugs-on-mobiles

[mobile] Remove unused code
This commit is contained in:
Julia Radzhabova 2021-07-16 15:37:55 +03:00 committed by GitHub
commit 8158877aa7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 3 additions and 100 deletions

View file

@ -113,8 +113,6 @@ class ContextMenu extends ContextMenuController {
}, 400); }, 400);
break; break;
} }
console.log("click context menu item: " + action);
} }
showCopyCutPasteModal() { showCopyCutPasteModal() {

View file

@ -78,7 +78,6 @@ class MainController extends Component {
const _t = this._t; const _t = this._t;
EditorUIController.isSupportEditFeature(); EditorUIController.isSupportEditFeature();
console.log('load config');
this.editorConfig = Object.assign({}, this.editorConfig, data.config); this.editorConfig = Object.assign({}, this.editorConfig, data.config);

View file

@ -59,42 +59,12 @@
return urlParams; return urlParams;
}; };
const encodeUrlParam = str => str.replace(/&/g, '&')
.replace(/"/g, '"')
.replace(/'/g, ''')
.replace(/</g, '&lt;')
.replace(/>/g, '&gt;');
let params = getUrlParams(), let params = getUrlParams(),
lang = (params["lang"] || 'en').split(/[\-\_]/)[0], 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";
}
window.frameEditorId = params["frameEditorId"]; window.frameEditorId = params["frameEditorId"];
window.parentOrigin = params["parentOrigin"]; window.parentOrigin = params["parentOrigin"];
window.Common = {Locale: {currentLang: lang}}; 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 = '<img src=' + logo + '>');
logoOO && (elem.innerHTML = '<img src=' + logoOO + '>');
elem.style.opacity = 1;
}
var placeholder = document.getElementsByClassName('placeholder')[0];
if (placeholder && isAndroid) {
placeholder.classList.add('android');
}
}
</script> </script>
<script type="text/javascript" src="../../../vendor/jquery/jquery.min.js"></script> <script type="text/javascript" src="../../../vendor/jquery/jquery.min.js"></script>

View file

@ -75,8 +75,6 @@ class MainController extends Component {
EditorUIController.isSupportEditFeature(); EditorUIController.isSupportEditFeature();
console.log('load config');
this.editorConfig = Object.assign({}, this.editorConfig, data.config); this.editorConfig = Object.assign({}, this.editorConfig, data.config);
this.props.storeAppOptions.setConfigOptions(this.editorConfig, _t); this.props.storeAppOptions.setConfigOptions(this.editorConfig, _t);

View file

@ -59,42 +59,12 @@
return urlParams; return urlParams;
} }
const encodeUrlParam = str => str.replace(/&/g, '&amp;')
.replace(/"/g, '&quot;')
.replace(/'/g, '&#39;')
.replace(/</g, '&lt;')
.replace(/>/g, '&gt;');
let params = getUrlParams(), let params = getUrlParams(),
lang = (params["lang"] || 'en').split(/[\-\_]/)[0], 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";
}
window.frameEditorId = params["frameEditorId"]; window.frameEditorId = params["frameEditorId"];
window.parentOrigin = params["parentOrigin"]; window.parentOrigin = params["parentOrigin"];
window.Common = {Locale: {currentLang: lang}}; 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 = '<img src=' + logo + '>');
logoOO && (elem.innerHTML = '<img src=' + logoOO + '>');
elem.style.opacity = 1;
}
var placeholder = document.getElementsByClassName('placeholder')[0];
if (placeholder && isAndroid) {
placeholder.classList.add('android');
}
}
</script> </script>
<script type="text/javascript" src="../../../vendor/jquery/jquery.min.js"></script> <script type="text/javascript" src="../../../vendor/jquery/jquery.min.js"></script>

View file

@ -97,7 +97,6 @@ class EditCellController extends Component {
onWrapTextChange(checked) { onWrapTextChange(checked) {
const api = Common.EditorApi.get(); const api = Common.EditorApi.get();
console.log(checked);
api.asc_setCellTextWrap(checked); api.asc_setCellTextWrap(checked);
} }

View file

@ -59,42 +59,12 @@
return urlParams; return urlParams;
} }
const encodeUrlParam = str => str.replace(/&/g, '&amp;')
.replace(/"/g, '&quot;')
.replace(/'/g, '&#39;')
.replace(/</g, '&lt;')
.replace(/>/g, '&gt;');
let params = getUrlParams(), let params = getUrlParams(),
lang = (params["lang"] || 'en').split(/[\-\_]/)[0], 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";
}
window.frameEditorId = params["frameEditorId"]; window.frameEditorId = params["frameEditorId"];
window.parentOrigin = params["parentOrigin"]; window.parentOrigin = params["parentOrigin"];
window.Common = {Locale: {currentLang: lang}}; 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 = '<img src=' + logo + '>');
logoOO && (elem.innerHTML = '<img src=' + logoOO + '>');
elem.style.opacity = 1;
}
var placeholder = document.getElementsByClassName('placeholder')[0];
if (placeholder && isAndroid) {
placeholder.classList.add('android');
}
}
</script> </script>
<script type="text/javascript" src="../../../vendor/jquery/jquery.min.js"></script> <script type="text/javascript" src="../../../vendor/jquery/jquery.min.js"></script>

View file

@ -169,7 +169,6 @@ export class storeCellSettings {
changeBorderSize(size) { changeBorderSize(size) {
this.borderInfo.width = size; this.borderInfo.width = size;
console.log('change border width ' + size);
} }
changeBorderStyle(type) { changeBorderStyle(type) {