mirror of
https://github.com/ONLYOFFICE/web-apps.git
synced 2026-07-24 05:30:15 +08:00
[common] delay loading for plugin, rename, color dialogs
This commit is contained in:
@ -32,11 +32,7 @@
|
||||
if (Common === undefined)
|
||||
var Common = {};
|
||||
|
||||
define([
|
||||
'common/main/lib/component/BaseView',
|
||||
'common/main/lib/util/utils'
|
||||
|
||||
], function () {
|
||||
define([], function () {
|
||||
'use strict';
|
||||
|
||||
Common.UI.HSBColorPicker = Common.UI.BaseView.extend({
|
||||
|
||||
@ -32,9 +32,7 @@
|
||||
if (Common === undefined)
|
||||
var Common = {};
|
||||
|
||||
define([
|
||||
'common/main/lib/component/BaseView'
|
||||
], function () {
|
||||
define([], function () {
|
||||
'use strict';
|
||||
|
||||
Common.UI.MaskedField = Common.UI.BaseView.extend({
|
||||
|
||||
@ -39,8 +39,6 @@ define([
|
||||
'core',
|
||||
'common/main/lib/collection/Plugins',
|
||||
'common/main/lib/view/Plugins',
|
||||
'common/main/lib/view/PluginDlg',
|
||||
'common/main/lib/view/PluginPanel',
|
||||
'common/main/lib/component/Switcher'
|
||||
], function () {
|
||||
'use strict';
|
||||
|
||||
@ -35,9 +35,7 @@ if (Common === undefined)
|
||||
define([
|
||||
'text!common/main/lib/template/ExtendedColorDialog.template',
|
||||
'common/main/lib/component/HSBColorPicker',
|
||||
'common/main/lib/component/MetricSpinner',
|
||||
'common/main/lib/component/MaskedField',
|
||||
'common/main/lib/component/Window'
|
||||
'common/main/lib/component/MaskedField'
|
||||
], function (dlgTemplate) {
|
||||
'use strict';
|
||||
|
||||
|
||||
@ -45,8 +45,7 @@ Common.Views = Common.Views || {};
|
||||
define([
|
||||
'backbone',
|
||||
'text!common/main/lib/template/Header.template',
|
||||
'core',
|
||||
'common/main/lib/view/RenameDialog'
|
||||
'core'
|
||||
], function (Backbone, headerTemplate) { 'use strict';
|
||||
|
||||
Common.Views.Header = Backbone.View.extend(_.extend(function(){
|
||||
|
||||
@ -40,12 +40,7 @@ if (Common === undefined)
|
||||
|
||||
Common.Views = Common.Views || {};
|
||||
|
||||
define([
|
||||
'common/main/lib/util/utils',
|
||||
'common/main/lib/component/BaseView',
|
||||
'common/main/lib/component/Layout',
|
||||
'common/main/lib/component/Window'
|
||||
], function (template) {
|
||||
define([], function () {
|
||||
'use strict';
|
||||
|
||||
Common.Views.PluginDlg = Common.UI.Window.extend(_.extend({
|
||||
|
||||
@ -40,11 +40,7 @@ if (Common === undefined)
|
||||
|
||||
Common.Views = Common.Views || {};
|
||||
|
||||
define([
|
||||
'common/main/lib/util/utils',
|
||||
'common/main/lib/component/BaseView',
|
||||
'common/main/lib/component/Layout'
|
||||
], function (template) {
|
||||
define([], function () {
|
||||
'use strict';
|
||||
|
||||
Common.Views.PluginPanel = Common.UI.BaseView.extend(_.extend({
|
||||
|
||||
@ -37,9 +37,7 @@
|
||||
*
|
||||
*/
|
||||
|
||||
define([
|
||||
'common/main/lib/component/Window'
|
||||
], function () { 'use strict';
|
||||
define([], function () { 'use strict';
|
||||
|
||||
Common.Views.RenameDialog = Common.UI.Window.extend(_.extend({
|
||||
options: {
|
||||
|
||||
@ -221,6 +221,10 @@ require([
|
||||
'common/main/lib/view/UserNameDialog',
|
||||
'common/main/lib/view/SearchDialog',
|
||||
'common/main/lib/view/AdvancedSettingsWindow',
|
||||
'common/main/lib/view/PluginDlg',
|
||||
'common/main/lib/view/PluginPanel',
|
||||
'common/main/lib/view/ExtendedColorDialog',
|
||||
'common/main/lib/view/RenameDialog',
|
||||
|
||||
'documenteditor/main/app/view/ParagraphSettingsAdvanced',
|
||||
'documenteditor/main/app/view/ImageSettingsAdvanced',
|
||||
|
||||
@ -18,6 +18,10 @@ require([
|
||||
'common/main/lib/view/OpenDialog',
|
||||
'common/main/lib/view/UserNameDialog',
|
||||
'common/main/lib/view/SearchDialog',
|
||||
'common/main/lib/view/PluginDlg',
|
||||
'common/main/lib/view/PluginPanel',
|
||||
'common/main/lib/view/ExtendedColorDialog',
|
||||
'common/main/lib/view/RenameDialog',
|
||||
|
||||
'documenteditor/main/app/view/ParagraphSettingsAdvanced',
|
||||
'documenteditor/main/app/view/ImageSettingsAdvanced',
|
||||
|
||||
Reference in New Issue
Block a user