Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
sdkjs
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
sdkjs
Commits
2b43e348
Commit
2b43e348
authored
May 10, 2016
by
Alexander.Trofimov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add desktop min files
parent
9e7b349c
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
44 additions
and
31 deletions
+44
-31
build/Gruntfile.js
build/Gruntfile.js
+4
-2
build/configs/webexcel.json
build/configs/webexcel.json
+9
-4
build/configs/webpowerpoint.json
build/configs/webpowerpoint.json
+9
-4
build/configs/webword.json
build/configs/webword.json
+10
-5
common/Local/common.js
common/Local/common.js
+0
-16
common/Local/license.js
common/Local/license.js
+12
-0
No files found.
build/Gruntfile.js
View file @
2b43e348
...
@@ -70,6 +70,7 @@ module.exports = function(grunt) {
...
@@ -70,6 +70,7 @@ module.exports = function(grunt) {
grunt
.
registerTask
(
'
concat_sdk_init
'
,
function
()
{
grunt
.
registerTask
(
'
concat_sdk_init
'
,
function
()
{
var
sdkTmp
=
'
sdk-tmp.js
'
,
sdkAllTmp
=
'
sdk-all-tmp.js
'
,
sdkAllMinTmp
=
'
sdk-all-min-tmp.js
'
;
var
sdkTmp
=
'
sdk-tmp.js
'
,
sdkAllTmp
=
'
sdk-all-tmp.js
'
,
sdkAllMinTmp
=
'
sdk-all-min-tmp.js
'
;
var
srcFilesMin
=
packageFile
[
'
compile
'
][
'
sdk
'
][
'
min
'
];
var
srcFilesAll
=
packageFile
[
'
compile
'
][
'
sdk
'
][
'
common
'
];
var
srcFilesAll
=
packageFile
[
'
compile
'
][
'
sdk
'
][
'
common
'
];
var
sdkOpt
=
{
var
sdkOpt
=
{
compilation_level
:
'
WHITESPACE_ONLY
'
,
compilation_level
:
'
WHITESPACE_ONLY
'
,
...
@@ -92,7 +93,8 @@ module.exports = function(grunt) {
...
@@ -92,7 +93,8 @@ module.exports = function(grunt) {
srcFilesAll
=
srcFilesAll
.
concat
(
packageFile
[
'
compile
'
][
'
sdk
'
][
'
private
'
]);
srcFilesAll
=
srcFilesAll
.
concat
(
packageFile
[
'
compile
'
][
'
sdk
'
][
'
private
'
]);
}
}
if
(
grunt
.
option
(
'
desktop
'
))
{
if
(
grunt
.
option
(
'
desktop
'
))
{
srcFilesAll
=
srcFilesAll
.
concat
(
packageFile
[
'
compile
'
][
'
sdk
'
][
'
desktop
'
]);
srcFilesMin
=
srcFilesMin
.
concat
(
packageFile
[
'
compile
'
][
'
sdk
'
][
'
desktop
'
][
'
min
'
]);
srcFilesAll
=
srcFilesAll
.
concat
(
packageFile
[
'
compile
'
][
'
sdk
'
][
'
desktop
'
][
'
common
'
]);
}
}
if
(
grunt
.
option
(
'
builder
'
))
{
if
(
grunt
.
option
(
'
builder
'
))
{
srcFilesAll
=
srcFilesAll
.
concat
(
packageFile
[
'
compile
'
][
'
sdk
'
][
'
builder
'
]);
srcFilesAll
=
srcFilesAll
.
concat
(
packageFile
[
'
compile
'
][
'
sdk
'
][
'
builder
'
]);
...
@@ -107,7 +109,7 @@ module.exports = function(grunt) {
...
@@ -107,7 +109,7 @@ module.exports = function(grunt) {
banner
:
''
,
banner
:
''
,
footer
:
'
window["split"]="split";
'
footer
:
'
window["split"]="split";
'
},
},
src
:
packageFile
[
'
compile
'
][
'
sdk
'
][
'
min
'
]
,
src
:
srcFilesMin
,
dest
:
sdkAllMinTmp
dest
:
sdkAllMinTmp
},
},
sdk
:
{
sdk
:
{
...
...
build/configs/webexcel.json
View file @
2b43e348
...
@@ -172,10 +172,15 @@
...
@@ -172,10 +172,15 @@
],
],
"builder"
:
[
"builder"
:
[
],
],
"desktop"
:
[
"desktop"
:
{
"../common/Local/common.js"
,
"min"
:
[
"../cell/Local/api.js"
"../common/Local/license.js"
],
],
"common"
:
[
"../common/Local/common.js"
,
"../cell/Local/api.js"
]
},
"mobile_banners"
:
[
"mobile_banners"
:
[
"../../web-apps/vendor/xregexp/xregexp-all-min.js"
,
"../../web-apps/vendor/xregexp/xregexp-all-min.js"
,
"../../web-apps/vendor/underscore/underscore-min.js"
,
"../../web-apps/vendor/underscore/underscore-min.js"
,
...
...
build/configs/webpowerpoint.json
View file @
2b43e348
...
@@ -163,10 +163,15 @@
...
@@ -163,10 +163,15 @@
],
],
"builder"
:
[
"builder"
:
[
],
],
"desktop"
:
[
"desktop"
:
{
"../common/Local/common.js"
,
"min"
:
[
"../slide/Local/api.js"
"../common/Local/license.js"
],
],
"common"
:
[
"../common/Local/common.js"
,
"../slide/Local/api.js"
]
},
"mobile_banners"
:
[
"mobile_banners"
:
[
"../common/Native/native.js"
,
"../common/Native/native.js"
,
"../common/Native/jquery_native.js"
,
"../common/Native/jquery_native.js"
,
...
...
build/configs/webword.json
View file @
2b43e348
...
@@ -161,11 +161,16 @@
...
@@ -161,11 +161,16 @@
"builder"
:
[
"builder"
:
[
"../word/apiBuilder.js"
"../word/apiBuilder.js"
],
],
"desktop"
:
[
"desktop"
:
{
"../common/Local/common.js"
,
"min"
:
[
"../word/Local/documentrenderer.js"
,
"../common/Local/license.js"
"../word/Local/api.js"
],
],
"common"
:
[
"../common/Local/common.js"
,
"../word/Local/documentrenderer.js"
,
"../word/Local/api.js"
]
},
"mobile_banners"
:
[],
"mobile_banners"
:
[],
"exclude_mobile"
:
[],
"exclude_mobile"
:
[],
"dst"
:
"../word"
,
"dst"
:
"../word"
,
...
...
common/Local/common.js
View file @
2b43e348
"
use strict
"
;
"
use strict
"
;
function
CheckLicense
(
licenseUrl
,
customerId
,
userId
,
userFirstName
,
userLastName
,
callback
)
{
callback
(
true
,
g_oLicenseResult
.
Success
);
}
AscCommon
.
baseEditorsApi
.
prototype
.
_onEndPermissions
=
function
()
{
if
(
this
.
isOnFirstConnectEnd
&&
this
.
isOnLoadLicense
)
{
var
oResult
=
new
AscCommon
.
asc_CAscEditorPermissions
();
oResult
.
asc_setCanLicense
(
true
);
oResult
.
asc_setCanBranding
(
true
);
this
.
sendEvent
(
'
asc_onGetEditorPermissions
'
,
oResult
);
}
};
/////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////
////////////// FONTS ////////////////////////
////////////// FONTS ////////////////////////
/////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////
...
...
common/Local/license.js
0 → 100644
View file @
2b43e348
"
use strict
"
;
AscCommon
.
baseEditorsApi
.
prototype
.
_onEndPermissions
=
function
()
{
if
(
this
.
isOnFirstConnectEnd
&&
this
.
isOnLoadLicense
)
{
var
oResult
=
new
AscCommon
.
asc_CAscEditorPermissions
();
oResult
.
asc_setCanLicense
(
true
);
oResult
.
asc_setCanBranding
(
true
);
this
.
sendEvent
(
'
asc_onGetEditorPermissions
'
,
oResult
);
}
};
\ No newline at end of file
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