Commit 2b43e348 authored by Alexander.Trofimov's avatar Alexander.Trofimov

add desktop min files

parent 9e7b349c
...@@ -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: {
......
...@@ -172,10 +172,15 @@ ...@@ -172,10 +172,15 @@
], ],
"builder": [ "builder": [
], ],
"desktop": [ "desktop": {
"min": [
"../common/Local/license.js"
],
"common": [
"../common/Local/common.js", "../common/Local/common.js",
"../cell/Local/api.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",
......
...@@ -163,10 +163,15 @@ ...@@ -163,10 +163,15 @@
], ],
"builder": [ "builder": [
], ],
"desktop": [ "desktop": {
"min": [
"../common/Local/license.js"
],
"common": [
"../common/Local/common.js", "../common/Local/common.js",
"../slide/Local/api.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",
......
...@@ -161,11 +161,16 @@ ...@@ -161,11 +161,16 @@
"builder": [ "builder": [
"../word/apiBuilder.js" "../word/apiBuilder.js"
], ],
"desktop": [ "desktop": {
"min": [
"../common/Local/license.js"
],
"common": [
"../common/Local/common.js", "../common/Local/common.js",
"../word/Local/documentrenderer.js", "../word/Local/documentrenderer.js",
"../word/Local/api.js" "../word/Local/api.js"
], ]
},
"mobile_banners": [], "mobile_banners": [],
"exclude_mobile": [], "exclude_mobile": [],
"dst": "../word", "dst": "../word",
......
"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 ////////////////////////
///////////////////////////////////////////////////////// /////////////////////////////////////////////////////////
......
"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
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment