Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
W
web-apps
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Boris Kocherov
web-apps
Commits
7a231fbc
Commit
7a231fbc
authored
Oct 07, 2017
by
Boris Kocherov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
improve async loader now it use build config
parent
476aeff1
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
46 additions
and
104 deletions
+46
-104
apps/common/main/gadget_ooffice.js
apps/common/main/gadget_ooffice.js
+3
-71
apps/sdk_async_loader.js
apps/sdk_async_loader.js
+43
-33
No files found.
apps/common/main/gadget_ooffice.js
View file @
7a231fbc
...
...
@@ -346,29 +346,7 @@ DocsAPI.DocEditor.version = function () {
'
Common.Controllers.Plugins
'
];
define
(
"
sdk_files
"
,
[],
function
()
{
return
[
"
../common/browser.js
"
,
"
../common/commonDefines.js
"
,
"
../common/docscoapicommon.js
"
,
"
../common/docscoapi.js
"
,
"
../common/apiCommon.js
"
,
"
../common/SerializeCommonWordExcel.js
"
,
"
../common/editorscommon.js
"
,
"
../common/HistoryCommon.js
"
,
"
../common/TableId.js
"
,
"
../common/TableIdChanges.js
"
,
"
../common/AdvancedOptions.js
"
,
"
../cell/apiDefines.js
"
,
"
../cell/utils/utils.js
"
,
"
../cell/view/HandlerList.js
"
,
"
../cell/model/CollaborativeEditing.js
"
,
"
../common/apiBase.js
"
,
"
../common/Private/license.js
"
,
"
../word/apiCommon.js
"
,
"
../cell/api.js
"
,
"
../common/Local/license.js
"
,
"
../common/Local/jio.js
"
];
return
"
webexcel.json
"
;
});
styles
=
[
'
css!../sdkjs/cell/css/main.css
'
,
...
...
@@ -396,31 +374,7 @@ DocsAPI.DocEditor.version = function () {
'
Common.Controllers.ReviewChanges
'
];
define
(
"
sdk_files
"
,
[],
function
()
{
return
[
"
../common/browser.js
"
,
"
../common/commonDefines.js
"
,
"
../common/docscoapicommon.js
"
,
"
../common/docscoapi.js
"
,
"
../common/spellcheckapi.js
"
,
"
../common/spellCheckLanguage.js
"
,
"
../common/spellCheckLanguagesAll.js
"
,
"
../common/apiCommon.js
"
,
"
../common/SerializeCommonWordExcel.js
"
,
"
../common/editorscommon.js
"
,
"
../common/HistoryCommon.js
"
,
"
../common/TableId.js
"
,
"
../common/TableIdChanges.js
"
,
"
../common/AdvancedOptions.js
"
,
"
../word/apiDefines.js
"
,
"
../common/CollaborativeEditingBase.js
"
,
"
../word/Editor/CollaborativeEditing.js
"
,
"
../common/apiBase.js
"
,
"
../common/Private/license.js
"
,
"
../word/apiCommon.js
"
,
"
../word/api.js
"
,
"
../common/Local/license.js
"
,
"
../common/Local/jio.js
"
];
return
"
webword.json
"
;
});
styles
=
[
'
css!documenteditor/main/resources/css/app.css
'
...
...
@@ -444,29 +398,7 @@ DocsAPI.DocEditor.version = function () {
'
Common.Controllers.ExternalDiagramEditor
'
];
define
(
"
sdk_files
"
,
[],
function
()
{
return
[
"
../common/browser.js
"
,
"
../common/commonDefines.js
"
,
"
../common/docscoapicommon.js
"
,
"
../common/docscoapi.js
"
,
"
../common/apiCommon.js
"
,
"
../common/SerializeCommonWordExcel.js
"
,
"
../common/editorscommon.js
"
,
"
../common/HistoryCommon.js
"
,
"
../common/TableId.js
"
,
"
../common/TableIdChanges.js
"
,
"
../common/AdvancedOptions.js
"
,
"
../slide/apiDefines.js
"
,
"
../common/CollaborativeEditingBase.js
"
,
"
../slide/Editor/CollaborativeEditing.js
"
,
"
../common/apiBase.js
"
,
"
../common/Private/license.js
"
,
"
../word/apiCommon.js
"
,
"
../slide/api.js
"
,
"
../common/Local/license.js
"
,
"
../common/Local/empty_slide.js
"
,
"
../common/Local/jio.js
"
];
return
"
webpowerpoint.json
"
;
});
styles
=
[
'
css!presentationeditor/main/resources/css/app.css
'
...
...
apps/sdk_async_loader.js
View file @
7a231fbc
...
...
@@ -12,40 +12,50 @@ define([
'
sockjs
'
,
'
jsziputils
'
,
'
jsrsasign
'
],
function
(
urls
)
{
var
script_src
=
""
,
queue
=
new
RSVP
.
Queue
();
function
loadScript
(
src
)
{
return
new
RSVP
.
Promise
(
function
(
resolve
,
reject
)
{
var
s
;
s
=
document
.
createElement
(
'
script
'
);
s
.
src
=
src
;
s
.
onload
=
resolve
;
s
.
onerror
=
reject
;
document
.
head
.
appendChild
(
s
);
});
}
],
function
(
config_file
)
{
return
new
RSVP
.
Queue
()
.
push
(
function
()
{
return
jIO
.
util
.
ajax
({
type
:
"
GET
"
,
dataType
:
"
json
"
,
url
:
"
sdkjs/build/configs/
"
+
config_file
});
})
.
push
(
function
(
response
)
{
var
script_src
=
""
,
queue
=
new
RSVP
.
Queue
();
urls
.
forEach
(
function
(
url
)
{
url
=
url
.
replace
(
'
../
'
,
'
./sdkjs/
'
);
queue
.
push
(
function
()
{
return
jIO
.
util
.
ajax
({
type
:
"
GET
"
,
url
:
url
function
loadScript
(
src
)
{
return
new
RSVP
.
Promise
(
function
(
resolve
,
reject
)
{
var
s
;
s
=
document
.
createElement
(
'
script
'
);
s
.
src
=
src
;
s
.
onload
=
resolve
;
s
.
onerror
=
reject
;
document
.
head
.
appendChild
(
s
);
});
})
.
push
(
function
(
result
)
{
script_src
+=
"
\n
"
+
result
.
target
.
response
;
}
response
.
target
.
response
.
compile
.
sdk
.
min
.
forEach
(
function
(
url
)
{
url
=
url
.
replace
(
'
../
'
,
'
./sdkjs/
'
);
queue
.
push
(
function
()
{
return
jIO
.
util
.
ajax
({
type
:
"
GET
"
,
url
:
url
});
})
.
push
(
function
(
result
)
{
script_src
+=
"
\n
"
+
result
.
target
.
response
;
});
});
queue
.
push
(
function
()
{
var
url
=
URL
.
createObjectURL
(
new
Blob
([
script_src
],
{
type
:
"
text/javascript
"
}));
return
loadScript
(
url
);
}).
push
(
undefined
,
function
(
error
)
{
console
.
log
(
error
);
throw
error
;
});
});
queue
.
push
(
function
()
{
var
url
=
URL
.
createObjectURL
(
new
Blob
([
script_src
],
{
type
:
"
text/javascript
"
}));
return
loadScript
(
url
);
}).
push
(
undefined
,
function
(
error
)
{
console
.
log
(
error
);
throw
error
;
});
return
queue
;
return
queue
;
});
});
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment