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

add desktop min files

parent 9e7b349c
......@@ -70,6 +70,7 @@ module.exports = function(grunt) {
grunt.registerTask('concat_sdk_init', function() {
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 sdkOpt = {
compilation_level: 'WHITESPACE_ONLY',
......@@ -92,7 +93,8 @@ module.exports = function(grunt) {
srcFilesAll = srcFilesAll.concat(packageFile['compile']['sdk']['private']);
}
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')) {
srcFilesAll = srcFilesAll.concat(packageFile['compile']['sdk']['builder']);
......@@ -107,7 +109,7 @@ module.exports = function(grunt) {
banner: '',
footer: 'window["split"]="split";'
},
src: packageFile['compile']['sdk']['min'],
src: srcFilesMin,
dest: sdkAllMinTmp
},
sdk: {
......
......@@ -172,10 +172,15 @@
],
"builder": [
],
"desktop": [
"../common/Local/common.js",
"../cell/Local/api.js"
],
"desktop": {
"min": [
"../common/Local/license.js"
],
"common": [
"../common/Local/common.js",
"../cell/Local/api.js"
]
},
"mobile_banners": [
"../../web-apps/vendor/xregexp/xregexp-all-min.js",
"../../web-apps/vendor/underscore/underscore-min.js",
......
......@@ -163,10 +163,15 @@
],
"builder": [
],
"desktop": [
"../common/Local/common.js",
"../slide/Local/api.js"
],
"desktop": {
"min": [
"../common/Local/license.js"
],
"common": [
"../common/Local/common.js",
"../slide/Local/api.js"
]
},
"mobile_banners": [
"../common/Native/native.js",
"../common/Native/jquery_native.js",
......
......@@ -161,11 +161,16 @@
"builder": [
"../word/apiBuilder.js"
],
"desktop": [
"../common/Local/common.js",
"../word/Local/documentrenderer.js",
"../word/Local/api.js"
],
"desktop": {
"min": [
"../common/Local/license.js"
],
"common": [
"../common/Local/common.js",
"../word/Local/documentrenderer.js",
"../word/Local/api.js"
]
},
"mobile_banners": [],
"exclude_mobile": [],
"dst": "../word",
......
"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 ////////////////////////
/////////////////////////////////////////////////////////
......
"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