From 0d93d46c25380bc6d1b54b06fa93beac4b617ec1 Mon Sep 17 00:00:00 2001 From: Maxim Kadushkin Date: Tue, 19 Oct 2021 23:58:29 +0300 Subject: [PATCH 01/10] [all] fix bug 53110 --- apps/documenteditor/mobile/src/page/main.jsx | 7 ++++++- apps/presentationeditor/mobile/src/page/main.jsx | 7 ++++++- apps/spreadsheeteditor/mobile/src/page/main.jsx | 7 ++++++- 3 files changed, 18 insertions(+), 3 deletions(-) diff --git a/apps/documenteditor/mobile/src/page/main.jsx b/apps/documenteditor/mobile/src/page/main.jsx index ba64208dc..70af4945e 100644 --- a/apps/documenteditor/mobile/src/page/main.jsx +++ b/apps/documenteditor/mobile/src/page/main.jsx @@ -86,7 +86,12 @@ class MainPage extends Component { render() { const appOptions = this.props.storeAppOptions; const config = appOptions.config; - const showLogo = !(appOptions.canBrandingExt && (config.customization && (config.customization.loaderName || config.customization.loaderLogo))); + + let showLogo = !(appOptions.canBrandingExt && (config.customization && (config.customization.loaderName || config.customization.loaderLogo))); + if ( !Object.keys(config).length ) { + showLogo = !/&(?:customer|logo)=/.test(window.location.search); + } + const showPlaceholder = !appOptions.isDocReady && (!config.customization || !(config.customization.loaderName || config.customization.loaderLogo)); return ( diff --git a/apps/presentationeditor/mobile/src/page/main.jsx b/apps/presentationeditor/mobile/src/page/main.jsx index 403e3b8f5..9125fed22 100644 --- a/apps/presentationeditor/mobile/src/page/main.jsx +++ b/apps/presentationeditor/mobile/src/page/main.jsx @@ -92,7 +92,12 @@ class MainPage extends Component { render() { const appOptions = this.props.storeAppOptions; const config = appOptions.config; - const showLogo = !(appOptions.canBrandingExt && (config.customization && (config.customization.loaderName || config.customization.loaderLogo))); + + let showLogo = !(appOptions.canBrandingExt && (config.customization && (config.customization.loaderName || config.customization.loaderLogo))); + if ( !Object.keys(config).length ) { + showLogo = !/&(?:customer|logo)=/.test(window.location.search); + } + const showPlaceholder = !appOptions.isDocReady && (!config.customization || !(config.customization.loaderName || config.customization.loaderLogo)); return ( diff --git a/apps/spreadsheeteditor/mobile/src/page/main.jsx b/apps/spreadsheeteditor/mobile/src/page/main.jsx index 28ee52ed7..8e22d0c84 100644 --- a/apps/spreadsheeteditor/mobile/src/page/main.jsx +++ b/apps/spreadsheeteditor/mobile/src/page/main.jsx @@ -89,7 +89,12 @@ class MainPage extends Component { render() { const appOptions = this.props.storeAppOptions; const config = appOptions.config; - const showLogo = !(appOptions.canBrandingExt && (config.customization && (config.customization.loaderName || config.customization.loaderLogo))); + + let showLogo = !(appOptions.canBrandingExt && (config.customization && (config.customization.loaderName || config.customization.loaderLogo))); + if ( !Object.keys(config).length ) { + showLogo = !/&(?:customer|logo)=/.test(window.location.search); + } + const showPlaceholder = !appOptions.isDocReady && (!config.customization || !(config.customization.loaderName || config.customization.loaderLogo)); return ( From 690867b159fc1b22294825a7f5288b3a2429bb6f Mon Sep 17 00:00:00 2001 From: Maxim Kadushkin Date: Wed, 20 Oct 2021 00:25:28 +0300 Subject: [PATCH 02/10] [all] for bug 53110 --- apps/documenteditor/mobile/src/page/main.jsx | 2 +- apps/presentationeditor/mobile/src/page/main.jsx | 2 +- apps/spreadsheeteditor/mobile/src/page/main.jsx | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/apps/documenteditor/mobile/src/page/main.jsx b/apps/documenteditor/mobile/src/page/main.jsx index 70af4945e..5f117d818 100644 --- a/apps/documenteditor/mobile/src/page/main.jsx +++ b/apps/documenteditor/mobile/src/page/main.jsx @@ -89,7 +89,7 @@ class MainPage extends Component { let showLogo = !(appOptions.canBrandingExt && (config.customization && (config.customization.loaderName || config.customization.loaderLogo))); if ( !Object.keys(config).length ) { - showLogo = !/&(?:customer|logo)=/.test(window.location.search); + showLogo = !/&(?:logo)=/.test(window.location.search); } const showPlaceholder = !appOptions.isDocReady && (!config.customization || !(config.customization.loaderName || config.customization.loaderLogo)); diff --git a/apps/presentationeditor/mobile/src/page/main.jsx b/apps/presentationeditor/mobile/src/page/main.jsx index 9125fed22..d891958a5 100644 --- a/apps/presentationeditor/mobile/src/page/main.jsx +++ b/apps/presentationeditor/mobile/src/page/main.jsx @@ -95,7 +95,7 @@ class MainPage extends Component { let showLogo = !(appOptions.canBrandingExt && (config.customization && (config.customization.loaderName || config.customization.loaderLogo))); if ( !Object.keys(config).length ) { - showLogo = !/&(?:customer|logo)=/.test(window.location.search); + showLogo = !/&(?:logo)=/.test(window.location.search); } const showPlaceholder = !appOptions.isDocReady && (!config.customization || !(config.customization.loaderName || config.customization.loaderLogo)); diff --git a/apps/spreadsheeteditor/mobile/src/page/main.jsx b/apps/spreadsheeteditor/mobile/src/page/main.jsx index 8e22d0c84..01048e601 100644 --- a/apps/spreadsheeteditor/mobile/src/page/main.jsx +++ b/apps/spreadsheeteditor/mobile/src/page/main.jsx @@ -92,7 +92,7 @@ class MainPage extends Component { let showLogo = !(appOptions.canBrandingExt && (config.customization && (config.customization.loaderName || config.customization.loaderLogo))); if ( !Object.keys(config).length ) { - showLogo = !/&(?:customer|logo)=/.test(window.location.search); + showLogo = !/&(?:logo)=/.test(window.location.search); } const showPlaceholder = !appOptions.isDocReady && (!config.customization || !(config.customization.loaderName || config.customization.loaderLogo)); From ec46276beac951de5e3c39b22e6e4701e6ae5577 Mon Sep 17 00:00:00 2001 From: Maxim Kadushkin Date: Fri, 22 Oct 2021 23:03:03 +0300 Subject: [PATCH 03/10] [mobile] for bug 53253 --- apps/common/mobile/resources/less/about.less | 3 ++- apps/common/mobile/resources/less/ios/icons.less | 4 +++- apps/common/mobile/resources/less/material/icons.less | 4 +++- build/documenteditor.json | 6 ++++++ build/presentationeditor.json | 6 ++++++ build/spreadsheeteditor.json | 10 ++++++++-- vendor/framework7-react/build/webpack.config.js | 8 ++++++-- 7 files changed, 34 insertions(+), 7 deletions(-) diff --git a/apps/common/mobile/resources/less/about.less b/apps/common/mobile/resources/less/about.less index 8a7559530..3072fb575 100644 --- a/apps/common/mobile/resources/less/about.less +++ b/apps/common/mobile/resources/less/about.less @@ -1,4 +1,5 @@ @text-normal: #000; +// @common-image-about-path - defined in webpack config .about { .page-content { @@ -36,6 +37,6 @@ display: inline-block; width: 100%; height: 55px; - background: url('../../../../common/main/resources/img/about/logo_s.svg') no-repeat center; + background: ~"url(@{common-image-about-path}/logo_s.svg) no-repeat center"; } } diff --git a/apps/common/mobile/resources/less/ios/icons.less b/apps/common/mobile/resources/less/ios/icons.less index 4339dc06a..401956832 100644 --- a/apps/common/mobile/resources/less/ios/icons.less +++ b/apps/common/mobile/resources/less/ios/icons.less @@ -1,3 +1,5 @@ +// @common-image-header-path - defined in webpack config + .device-ios { i.icon { &.icon_mask { @@ -6,7 +8,7 @@ &.icon-logo { width: 100px; height: 14px; - background: url('../../img/header/logo-ios.svg') no-repeat center; + background: ~"url(@{common-image-header-path}/logo-ios.svg)" no-repeat center; } &.icon-prev { width: 22px; diff --git a/apps/common/mobile/resources/less/material/icons.less b/apps/common/mobile/resources/less/material/icons.less index ffc52be05..53577e587 100644 --- a/apps/common/mobile/resources/less/material/icons.less +++ b/apps/common/mobile/resources/less/material/icons.less @@ -1,3 +1,5 @@ +// @common-image-header-path - defined in webpack config + .device-android { i.icon { &.icon_mask { @@ -6,7 +8,7 @@ &.icon-logo { width: 100px; height: 14px; - background: url('../../img/header/logo-android.svg') no-repeat center; + background: ~"url(@{common-image-header-path}/logo-android.svg) no-repeat center"; } &.icon-prev { width: 20px; diff --git a/build/documenteditor.json b/build/documenteditor.json index 9f20bf075..6158c01bb 100644 --- a/build/documenteditor.json +++ b/build/documenteditor.json @@ -293,6 +293,12 @@ "cwd": "../apps/common/mobile/resources/img/", "src": "**", "dest": "../deploy/web-apps/apps/documenteditor/mobile/resources/img/" + }, + { + "expand": true, + "cwd": "../apps/common/main/resources/img/about", + "src": "**", + "dest": "../deploy/web-apps/apps/documenteditor/mobile/resources/img/about" } ], "assets": [ diff --git a/build/presentationeditor.json b/build/presentationeditor.json index 9e5961a4a..4d2ebeee0 100644 --- a/build/presentationeditor.json +++ b/build/presentationeditor.json @@ -309,6 +309,12 @@ "cwd": "../apps/common/mobile/resources/img/", "src": "**", "dest": "../deploy/web-apps/apps/presentationeditor/mobile/resources/img/" + }, + { + "expand": true, + "cwd": "../apps/common/main/resources/img/about", + "src": "**", + "dest": "../deploy/web-apps/apps/presentationeditor/mobile/resources/img/about" } ] } diff --git a/build/spreadsheeteditor.json b/build/spreadsheeteditor.json index 784cea7d4..c0b8bddb8 100644 --- a/build/spreadsheeteditor.json +++ b/build/spreadsheeteditor.json @@ -319,7 +319,13 @@ "images-common": [ { "expand": true, - "cwd": "../apps/common/mobile/resources/img/about", + "cwd": "../apps/common/mobile/resources/img/", + "src": "**", + "dest": "../deploy/web-apps/apps/spreadsheeteditor/mobile/resources/img/" + }, + { + "expand": true, + "cwd": "../apps/common/main/resources/img/about", "src": "**", "dest": "../deploy/web-apps/apps/spreadsheeteditor/mobile/resources/img/about" } @@ -369,7 +375,7 @@ "index-page": { "../deploy/web-apps/apps/spreadsheeteditor/embed/index.html": "../apps/spreadsheeteditor/embed/index.html.deploy", "../deploy/web-apps/apps/spreadsheeteditor/embed/index_loader.html": "../apps/spreadsheeteditor/embed/index_loader.html.deploy" - }, + }, "images-app": [ { "expand": true, diff --git a/vendor/framework7-react/build/webpack.config.js b/vendor/framework7-react/build/webpack.config.js index 359731620..66f9eb5ca 100644 --- a/vendor/framework7-react/build/webpack.config.js +++ b/vendor/framework7-react/build/webpack.config.js @@ -116,7 +116,7 @@ module.exports = { publicPath: '../' } }), - 'css-loader', + 'css-loader?url=false', { loader: 'postcss-loader', options: { @@ -129,7 +129,11 @@ module.exports = { loader: "less-loader", options: { lessOptions: { - javascriptEnabled: true + javascriptEnabled: true, + globalVars: { + "common-image-header-path": env === 'production' ? `../../../${editor}/mobile/resources/img/header` : '../../common/mobile/resources/img/header', + "common-image-about-path": env === 'production' ? `../../../${editor}/mobile/resources/img/about` : '../../common/main/resources/img/about', + } } } }, From 1b0b18b6910830961111b0e9a00bc11ffe2b5f37 Mon Sep 17 00:00:00 2001 From: Maxim Kadushkin Date: Fri, 22 Oct 2021 23:04:06 +0300 Subject: [PATCH 04/10] [mobile] fix bug 53253 --- apps/documenteditor/mobile/src/index_dev.html | 5 +++-- apps/documenteditor/mobile/src/lib/i18n.js | 2 +- apps/presentationeditor/mobile/src/index_dev.html | 2 +- apps/presentationeditor/mobile/src/lib/i18n.js | 2 +- apps/spreadsheeteditor/mobile/src/index_dev.html | 2 +- apps/spreadsheeteditor/mobile/src/lib/i18n.js | 2 +- vendor/framework7-react/build/webpack.config.js | 5 +++++ 7 files changed, 13 insertions(+), 7 deletions(-) diff --git a/apps/documenteditor/mobile/src/index_dev.html b/apps/documenteditor/mobile/src/index_dev.html index a0ead6c1a..6ae9d2c6a 100644 --- a/apps/documenteditor/mobile/src/index_dev.html +++ b/apps/documenteditor/mobile/src/index_dev.html @@ -59,12 +59,13 @@ return urlParams; }; + window.Common = {Locale: {defaultLang: <%= htmlWebpackPlugin.options.system.env.defaultLang %>}}; let params = getUrlParams(), - lang = (params["lang"] || 'en').split(/[\-\_]/)[0]; + lang = (params["lang"] || window.Common.Locale.defaultLang).split(/[\-\_]/)[0]; + window.Common.Locale.currentLang = lang; window.frameEditorId = params["frameEditorId"]; window.parentOrigin = params["parentOrigin"]; - window.Common = {Locale: {currentLang: lang}}; diff --git a/apps/documenteditor/mobile/src/lib/i18n.js b/apps/documenteditor/mobile/src/lib/i18n.js index b3d3566ee..10a886dd5 100644 --- a/apps/documenteditor/mobile/src/lib/i18n.js +++ b/apps/documenteditor/mobile/src/lib/i18n.js @@ -6,7 +6,7 @@ i18n.use(initReactI18next) .use(Fetch) .init({ lng: Common.Locale.currentLang, - fallbackLng: "en", + fallbackLng: Common.Locale.defaultLang, escapeValue: false, backend: { loadPath: './locale/{{lng}}.json' diff --git a/apps/presentationeditor/mobile/src/index_dev.html b/apps/presentationeditor/mobile/src/index_dev.html index 867a5ff63..cf7dad3ca 100644 --- a/apps/presentationeditor/mobile/src/index_dev.html +++ b/apps/presentationeditor/mobile/src/index_dev.html @@ -60,7 +60,7 @@ } let params = getUrlParams(), - lang = (params["lang"] || 'en').split(/[\-\_]/)[0]; + lang = (params["lang"] || <%= htmlWebpackPlugin.options.system.env.defaultLang %>).split(/[\-\_]/)[0]; window.frameEditorId = params["frameEditorId"]; window.parentOrigin = params["parentOrigin"]; diff --git a/apps/presentationeditor/mobile/src/lib/i18n.js b/apps/presentationeditor/mobile/src/lib/i18n.js index b3d3566ee..10a886dd5 100644 --- a/apps/presentationeditor/mobile/src/lib/i18n.js +++ b/apps/presentationeditor/mobile/src/lib/i18n.js @@ -6,7 +6,7 @@ i18n.use(initReactI18next) .use(Fetch) .init({ lng: Common.Locale.currentLang, - fallbackLng: "en", + fallbackLng: Common.Locale.defaultLang, escapeValue: false, backend: { loadPath: './locale/{{lng}}.json' diff --git a/apps/spreadsheeteditor/mobile/src/index_dev.html b/apps/spreadsheeteditor/mobile/src/index_dev.html index 18a92b021..8447a97cb 100644 --- a/apps/spreadsheeteditor/mobile/src/index_dev.html +++ b/apps/spreadsheeteditor/mobile/src/index_dev.html @@ -60,7 +60,7 @@ } let params = getUrlParams(), - lang = (params["lang"] || 'en').split(/[\-\_]/)[0]; + lang = (params["lang"] || <%= htmlWebpackPlugin.options.system.env.defaultLang %>).split(/[\-\_]/)[0]; window.frameEditorId = params["frameEditorId"]; window.parentOrigin = params["parentOrigin"]; diff --git a/apps/spreadsheeteditor/mobile/src/lib/i18n.js b/apps/spreadsheeteditor/mobile/src/lib/i18n.js index b3d3566ee..10a886dd5 100644 --- a/apps/spreadsheeteditor/mobile/src/lib/i18n.js +++ b/apps/spreadsheeteditor/mobile/src/lib/i18n.js @@ -6,7 +6,7 @@ i18n.use(initReactI18next) .use(Fetch) .init({ lng: Common.Locale.currentLang, - fallbackLng: "en", + fallbackLng: Common.Locale.defaultLang, escapeValue: false, backend: { loadPath: './locale/{{lng}}.json' diff --git a/vendor/framework7-react/build/webpack.config.js b/vendor/framework7-react/build/webpack.config.js index 66f9eb5ca..781084fd0 100644 --- a/vendor/framework7-react/build/webpack.config.js +++ b/vendor/framework7-react/build/webpack.config.js @@ -204,6 +204,11 @@ module.exports = { removeStyleLinkTypeAttributes: true, useShortDoctype: true } : false, + system: { + env: { + defaultLang: JSON.stringify(process.env.DEFAULT_LANG || "en"), + } + }, }), new MiniCssExtractPlugin({ filename: 'css/[name].css', From b6f00e7b40ce8b1183bb7dd7edcc488f445bd31b Mon Sep 17 00:00:00 2001 From: Maxim Kadushkin Date: Sat, 23 Oct 2021 11:34:31 +0300 Subject: [PATCH 05/10] [mobile] fix app default lang --- apps/presentationeditor/mobile/src/index_dev.html | 3 ++- apps/spreadsheeteditor/mobile/src/index_dev.html | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/apps/presentationeditor/mobile/src/index_dev.html b/apps/presentationeditor/mobile/src/index_dev.html index cf7dad3ca..60a5d6523 100644 --- a/apps/presentationeditor/mobile/src/index_dev.html +++ b/apps/presentationeditor/mobile/src/index_dev.html @@ -59,8 +59,9 @@ return urlParams; } + window.Common = {Locale: {defaultLang: <%= htmlWebpackPlugin.options.system.env.defaultLang %>}}; let params = getUrlParams(), - lang = (params["lang"] || <%= htmlWebpackPlugin.options.system.env.defaultLang %>).split(/[\-\_]/)[0]; + lang = (params["lang"] || window.Common.Locale.defaultLang).split(/[\-\_]/)[0]; window.frameEditorId = params["frameEditorId"]; window.parentOrigin = params["parentOrigin"]; diff --git a/apps/spreadsheeteditor/mobile/src/index_dev.html b/apps/spreadsheeteditor/mobile/src/index_dev.html index 8447a97cb..c4686125b 100644 --- a/apps/spreadsheeteditor/mobile/src/index_dev.html +++ b/apps/spreadsheeteditor/mobile/src/index_dev.html @@ -59,8 +59,9 @@ return urlParams; } + window.Common = {Locale: {defaultLang: <%= htmlWebpackPlugin.options.system.env.defaultLang %>}}; let params = getUrlParams(), - lang = (params["lang"] || <%= htmlWebpackPlugin.options.system.env.defaultLang %>).split(/[\-\_]/)[0]; + lang = (params["lang"] || window.Common.Locale.defaultLang).split(/[\-\_]/)[0]; window.frameEditorId = params["frameEditorId"]; window.parentOrigin = params["parentOrigin"]; From b828bf616f9f2a0d48590d5e5ea46643844fd3cc Mon Sep 17 00:00:00 2001 From: Maxim Kadushkin Date: Sat, 23 Oct 2021 11:35:46 +0300 Subject: [PATCH 06/10] [mobile] get "about" info from enviroment variables --- vendor/framework7-react/build/webpack.config.js | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/vendor/framework7-react/build/webpack.config.js b/vendor/framework7-react/build/webpack.config.js index 781084fd0..75e255341 100644 --- a/vendor/framework7-react/build/webpack.config.js +++ b/vendor/framework7-react/build/webpack.config.js @@ -51,7 +51,7 @@ module.exports = { jquery: 'jQuery' }, - devtool: env === 'production' ? /*false*/'source-map' : 'source-map', // TODO: turn off debugger source map before release + devtool: env === 'production' ? false/*'source-map'*/ : 'source-map', // TODO: turn off debugger source map before release optimization: { minimizer: [new TerserPlugin({ })], @@ -165,14 +165,14 @@ module.exports = { 'process.env.NODE_ENV': JSON.stringify(env), 'process.env.TARGET': JSON.stringify(target), __PRODUCT_VERSION__: JSON.stringify(process.env.PRODUCT_VERSION ? process.env.PRODUCT_VERSION : '6.2.0d'), - __PUBLISHER_ADDRESS__: JSON.stringify('20A-12 Ernesta Birznieka-Upisha street, Riga, Latvia, EU, LV-1050'), - __SUPPORT_EMAIL__: JSON.stringify('support@onlyoffice.com'), - __PUBLISHER_PHONE__: JSON.stringify('+371 633-99867'), - __PUBLISHER_URL__: JSON.stringify('https://www.onlyoffice.com'), - __PUBLISHER_NAME__: JSON.stringify('Ascensio System SIA'), + __PUBLISHER_ADDRESS__: JSON.stringify(process.env.PUBLISHER_ADDRESS || '20A-12 Ernesta Birznieka-Upisha street, Riga, Latvia, EU, LV-1050'), + __SUPPORT_EMAIL__: JSON.stringify(process.env.SUPPORT_EMAIL || 'support@onlyoffice.com'), + __PUBLISHER_PHONE__: JSON.stringify(process.env.PUBLISHER_PHONE || '+371 633-99867'), + __PUBLISHER_URL__: JSON.stringify(process.env.PUBLISHER_URL || 'https://www.onlyoffice.com'), + __PUBLISHER_NAME__: JSON.stringify(process.env.PUBLISHER_NAME || 'Ascensio System SIA'), __APP_TITLE_TEXT__: JSON.stringify(process.env.APP_TITLE_TEXT ? process.env.APP_TITLE_TEXT : 'ONLYOFFICE'), __COMPANY_NAME__: JSON.stringify(process.env.COMPANY_NAME ? process.env.COMPANY_NAME : 'ONLYOFFICE'), - __HELP_URL__: JSON.stringify('https://helpcenter.onlyoffice.com') + __HELP_URL__: JSON.stringify(process.env.HELP_URL || 'https://helpcenter.onlyoffice.com') }), new webpack.BannerPlugin(`\n* Version: ${process.env.PRODUCT_VERSION} (build: ${process.env.BUILD_NUMBER})\n`), From 8abe782d9a0aa80287ec3d670f9a2ae07e06d7d1 Mon Sep 17 00:00:00 2001 From: Maxim Kadushkin Date: Sat, 23 Oct 2021 11:43:09 +0300 Subject: [PATCH 07/10] [mobile] fix header logo --- apps/presentationeditor/mobile/src/less/icons-ios.less | 2 +- apps/presentationeditor/mobile/src/less/icons-material.less | 2 +- apps/spreadsheeteditor/mobile/src/less/icons-ios.less | 2 +- apps/spreadsheeteditor/mobile/src/less/icons-material.less | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/apps/presentationeditor/mobile/src/less/icons-ios.less b/apps/presentationeditor/mobile/src/less/icons-ios.less index b72ce6628..738e6b7cb 100644 --- a/apps/presentationeditor/mobile/src/less/icons-ios.less +++ b/apps/presentationeditor/mobile/src/less/icons-ios.less @@ -4,7 +4,7 @@ &.icon-logo { width: 100px; height: 14px; - background: url('../../../../common/mobile/resources/img/header/logo-ios.svg') no-repeat center; + //background: url('../../../../common/mobile/resources/img/header/logo-ios.svg') no-repeat center; } &.icon-search { diff --git a/apps/presentationeditor/mobile/src/less/icons-material.less b/apps/presentationeditor/mobile/src/less/icons-material.less index ecd71da8f..90ffdba25 100644 --- a/apps/presentationeditor/mobile/src/less/icons-material.less +++ b/apps/presentationeditor/mobile/src/less/icons-material.less @@ -489,7 +489,7 @@ &.icon-logo { width: 100px; height: 14px; - background: url('../../../../common/mobile/resources/img/header/logo-android.svg') no-repeat center; + //background: url('../../../../common/mobile/resources/img/header/logo-android.svg') no-repeat center; } &.icon-undo { diff --git a/apps/spreadsheeteditor/mobile/src/less/icons-ios.less b/apps/spreadsheeteditor/mobile/src/less/icons-ios.less index 9f308f240..af734d8ca 100644 --- a/apps/spreadsheeteditor/mobile/src/less/icons-ios.less +++ b/apps/spreadsheeteditor/mobile/src/less/icons-ios.less @@ -5,7 +5,7 @@ &.icon-logo { width: 100px; height: 14px; - background: url('../../../../common/mobile/resources/img/header/logo-ios.svg') no-repeat center; + //background: url('../../../../common/mobile/resources/img/header/logo-ios.svg') no-repeat center; } &.icon-search { width: 24px; diff --git a/apps/spreadsheeteditor/mobile/src/less/icons-material.less b/apps/spreadsheeteditor/mobile/src/less/icons-material.less index 928c5806f..082c7f232 100644 --- a/apps/spreadsheeteditor/mobile/src/less/icons-material.less +++ b/apps/spreadsheeteditor/mobile/src/less/icons-material.less @@ -414,7 +414,7 @@ &.icon-logo { width: 100px; height: 14px; - background: url('../../../../common/mobile/resources/img/header/logo-android.svg') no-repeat center; + //background: url('../../../../common/mobile/resources/img/header/logo-android.svg') no-repeat center; } &.icon-undo { width: 22px; From 15fb1e9ddabd49f638aed8719ed71b626a889f95 Mon Sep 17 00:00:00 2001 From: Maxim Kadushkin Date: Sat, 23 Oct 2021 16:14:30 +0300 Subject: [PATCH 08/10] [mobile] remove wrong chars in "about" --- apps/common/mobile/lib/view/About.jsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/apps/common/mobile/lib/view/About.jsx b/apps/common/mobile/lib/view/About.jsx index 039533f22..e1bed1425 100644 --- a/apps/common/mobile/lib/view/About.jsx +++ b/apps/common/mobile/lib/view/About.jsx @@ -18,7 +18,8 @@ const PageAbout = props => { const logoCustomer = customer ? customer.logo : null; const publisherUrl = __PUBLISHER_URL__, - publisherPrintUrl = publisherUrl.replace(/https?:\/{2}|\/$/,""); + publisherPrintUrl = publisherUrl.replace(/https?:\/{2}|\/$/g,""); + const publisherName = __PUBLISHER_NAME__.replace(/\\"/g, '"'); const editors = { de: 'DOCUMENT EDITOR', From 116b4e15ab6a44ecd27a7791d7b65b878ceab3f8 Mon Sep 17 00:00:00 2001 From: Maxim Kadushkin Date: Sun, 24 Oct 2021 13:25:10 +0300 Subject: [PATCH 09/10] [mobile] fix bug 53325 --- apps/common/mobile/lib/view/About.jsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/common/mobile/lib/view/About.jsx b/apps/common/mobile/lib/view/About.jsx index e1bed1425..3dd4cac9a 100644 --- a/apps/common/mobile/lib/view/About.jsx +++ b/apps/common/mobile/lib/view/About.jsx @@ -80,7 +80,7 @@ const PageAbout = props => {

-

{__PUBLISHER_NAME__}

+

{publisherName}

{publisherPrintUrl}

@@ -96,7 +96,7 @@ const PageAbout = props => {

{_t.textVersion} {__PRODUCT_VERSION__}

-

{__PUBLISHER_NAME__}

+

{publisherName}

{__PUBLISHER_ADDRESS__} From fb3599293bda23d172f851eecd694f1da903f0ee Mon Sep 17 00:00:00 2001 From: Maxim Kadushkin Date: Mon, 25 Oct 2021 00:32:35 +0300 Subject: [PATCH 10/10] [embed] fix bug 53324 --- apps/common/embed/resources/less/common.less | 2 +- build/Gruntfile.js | 2 ++ build/common.json | 14 +++++++++++++- 3 files changed, 16 insertions(+), 2 deletions(-) diff --git a/apps/common/embed/resources/less/common.less b/apps/common/embed/resources/less/common.less index 9b525cacd..de8ee589a 100644 --- a/apps/common/embed/resources/less/common.less +++ b/apps/common/embed/resources/less/common.less @@ -239,7 +239,7 @@ display: block; width: 100px; height: 24px; - background: data-uri('../../../../common/embed/resources/img/logo.svg') no-repeat; + background: url(../../../../common/embed/resources/img/logo.svg) no-repeat; } // Control buttons diff --git a/build/Gruntfile.js b/build/Gruntfile.js index 3437ccbd1..a3de8346c 100644 --- a/build/Gruntfile.js +++ b/build/Gruntfile.js @@ -252,6 +252,7 @@ module.exports = function(grunt) { doRegisterTask('es6-promise'); doRegisterTask('jszip'); doRegisterTask('jsziputils'); + doRegisterTask('common-embed'); doRegisterTask('requirejs', function(defaultConfig, packageFile) { return { uglify: { @@ -622,6 +623,7 @@ module.exports = function(grunt) { grunt.registerTask('deploy-jsziputils', ['jsziputils-init', 'clean', 'copy']); grunt.registerTask('deploy-requirejs', ['requirejs-init', 'clean', 'uglify']); grunt.registerTask('deploy-es6-promise', ['es6-promise-init', 'clean', 'copy']); + grunt.registerTask('deploy-common-embed', ['common-embed-init', 'clean', 'copy']); grunt.registerTask('deploy-app-main', ['prebuild-icons-sprite', 'main-app-init', 'clean:prebuild', 'imagemin', 'less', 'requirejs', 'concat', 'copy', 'svgmin', 'inline', 'json-minify', diff --git a/build/common.json b/build/common.json index ae094a888..c483c7640 100644 --- a/build/common.json +++ b/build/common.json @@ -227,6 +227,17 @@ "dest": "../deploy/web-apps/vendor/requirejs/require.js" } }, + "common-embed": { + "clean": [ + "../deploy/web-apps/apps/common/embed" + ], + "copy": { + "app-logo": { + "dest": "../deploy/web-apps/apps/common/embed/resources/img/logo.svg", + "src": "../apps/common/embed/resources/img/logo.svg" + } + } + }, "tasks": { "deploy": [ "increment-build", @@ -243,7 +254,8 @@ "deploy-fetch", "deploy-jszip", "deploy-jsziputils", - "deploy-es6-promise" + "deploy-es6-promise", + "deploy-common-embed" ] } } \ No newline at end of file