[de] delayed loading for: protection and utils dialogs

This commit is contained in:
Konstantin Kireyev
2024-04-03 20:25:40 +05:00
parent 2ed4c1cab2
commit e89c1ff96d
16 changed files with 31 additions and 53 deletions

View File

@ -44,10 +44,7 @@ Common.Controllers = Common.Controllers || {};
define([
'core',
'common/main/lib/view/Draw',
'common/main/lib/view/PasswordDialog',
'common/main/lib/view/SignDialog',
'common/main/lib/view/SignSettingsDialog'
'common/main/lib/view/Draw'
], function () {
'use strict';

View File

@ -44,10 +44,7 @@ Common.Controllers = Common.Controllers || {};
define([
'core',
'common/main/lib/view/Protection',
'common/main/lib/view/PasswordDialog',
'common/main/lib/view/SignDialog',
'common/main/lib/view/SignSettingsDialog'
'common/main/lib/view/Protection'
], function () {
'use strict';

View File

@ -39,9 +39,7 @@
*
*/
define([
'common/main/lib/component/Window'
], function () {
define([], function () {
'use strict';
Common.Views.PasswordDialog = Common.UI.Window.extend(_.extend({

View File

@ -34,10 +34,7 @@
* Copyright (c) 2018 Ascensio System SIA. All rights reserved.
*/
define([
'common/main/lib/component/Window',
'common/main/lib/component/LoadMask'
], function () { 'use strict';
define([], function () { 'use strict';
Common.Views.SaveAsDlg = Common.UI.Window.extend(_.extend({
initialize : function(options) {

View File

@ -41,12 +41,7 @@
if (Common === undefined)
var Common = {};
define([
'common/main/lib/util/utils',
'common/main/lib/component/InputField',
'common/main/lib/component/Window',
'common/main/lib/component/ComboBoxFonts'
], function () { 'use strict';
define([], function () { 'use strict';
Common.Views.SignDialog = Common.UI.Window.extend(_.extend({
options: {

View File

@ -41,12 +41,7 @@
if (Common === undefined)
var Common = {};
define([
'common/main/lib/util/utils',
'common/main/lib/component/InputField',
'common/main/lib/component/CheckBox',
'common/main/lib/component/Window'
], function () { 'use strict';
define([], function () { 'use strict';
Common.Views.SignSettingsDialog = Common.UI.Window.extend(_.extend({
options: {

View File

@ -40,8 +40,7 @@
define([
'core',
'common/main/lib/view/Protection',
'documenteditor/main/app/view/DocProtection',
'documenteditor/main/app/view/ProtectDialog'
'documenteditor/main/app/view/DocProtection'
], function () {
'use strict';

View File

@ -42,7 +42,6 @@
define([
'core',
'common/main/lib/util/Shortcuts',
'common/main/lib/view/SaveAsDlg',
'documenteditor/main/app/view/LeftMenu',
'documenteditor/main/app/view/FileMenu',
'documenteditor/main/app/view/ViewTab'

View File

@ -38,12 +38,7 @@
*
*/
define([
'common/main/lib/component/Window',
'common/main/lib/component/ComboBox',
'common/main/lib/component/MetricSpinner',
'common/main/lib/component/RadioBox'
], function () { 'use strict';
define([], function () { 'use strict';
DE.Views.CellsAddDialog = Common.UI.Window.extend(_.extend({
options: {

View File

@ -46,10 +46,7 @@ define([
'gateway',
'common/main/lib/util/utils',
'common/main/lib/component/Menu',
'common/main/lib/component/Calendar',
'documenteditor/main/app/view/NumberingValueDialog',
'documenteditor/main/app/view/CellsAddDialog',
'documenteditor/main/app/view/ListIndentsDialog'
'common/main/lib/component/Calendar'
], function ($, _, Backbone, gateway) { 'use strict';
DE.Views.DocumentHolder = Backbone.View.extend(_.extend({

View File

@ -38,10 +38,7 @@
*
*/
define([
'common/main/lib/component/Window',
'common/main/lib/component/MetricSpinner'
], function () { 'use strict';
define([], function () { 'use strict';
DE.Views.ListIndentsDialog = Common.UI.Window.extend(_.extend({
options: {

View File

@ -41,7 +41,6 @@ define([
'backbone',
'common/main/lib/component/Button',
'common/main/lib/component/CheckBox',
'common/main/lib/view/SaveAsDlg',
'documenteditor/main/app/view/MailMergeEmailDlg'
], function (menuTemplate, $, _, Backbone) {
'use strict';

View File

@ -37,10 +37,7 @@
*
*/
define([
'common/main/lib/component/Window',
'common/main/lib/component/MetricSpinner'
], function () { 'use strict';
define([], function () { 'use strict';
DE.Views.NumberingValueDialog = Common.UI.Window.extend(_.extend({
options: {

View File

@ -37,9 +37,7 @@
*
*/
define([
'common/main/lib/component/Window'
], function () {
define([], function () {
'use strict';
DE.Views.ProtectDialog = Common.UI.Window.extend(_.extend({

View File

@ -210,6 +210,11 @@ require([
'common/main/lib/view/InsertTableDialog',
'common/main/lib/view/SelectFileDlg',
'common/main/lib/view/SymbolTableDialog',
'common/main/lib/view/PasswordDialog',
'common/main/lib/view/SignDialog',
'common/main/lib/view/SignSettingsDialog',
'common/main/lib/view/SaveAsDlg',
'documenteditor/main/app/view/ParagraphSettingsAdvanced',
'documenteditor/main/app/view/ImageSettingsAdvanced',
'documenteditor/main/app/view/TableSettingsAdvanced',
@ -240,6 +245,10 @@ require([
'documenteditor/main/app/view/ListSettingsDialog',
'documenteditor/main/app/view/LineNumbersDialog',
'documenteditor/main/app/view/HyphenationDialog',
'documenteditor/main/app/view/CellsAddDialog',
'documenteditor/main/app/view/NumberingValueDialog',
'documenteditor/main/app/view/ListIndentsDialog',
'documenteditor/main/app/view/ProtectDialog'
];
window.compareVersions = true;

View File

@ -7,6 +7,11 @@ require([
'common/main/lib/view/InsertTableDialog',
'common/main/lib/view/SelectFileDlg',
'common/main/lib/view/SymbolTableDialog',
'common/main/lib/view/PasswordDialog',
'common/main/lib/view/SignDialog',
'common/main/lib/view/SignSettingsDialog',
'common/main/lib/view/SaveAsDlg',
'documenteditor/main/app/view/ParagraphSettingsAdvanced',
'documenteditor/main/app/view/ImageSettingsAdvanced',
'documenteditor/main/app/view/TableSettingsAdvanced',
@ -36,6 +41,10 @@ require([
'documenteditor/main/app/view/CustomColumnsDialog',
'documenteditor/main/app/view/ListSettingsDialog',
'documenteditor/main/app/view/LineNumbersDialog',
'documenteditor/main/app/view/HyphenationDialog'
'documenteditor/main/app/view/HyphenationDialog',
'documenteditor/main/app/view/CellsAddDialog',
'documenteditor/main/app/view/NumberingValueDialog',
'documenteditor/main/app/view/ListIndentsDialog',
'documenteditor/main/app/view/ProtectDialog'
], function () {
});