Commit b8d66054 authored by Alexander.Trofimov's avatar Alexander.Trofimov

add desktop min files

parent d313864c
......@@ -94,6 +94,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',
......@@ -116,7 +117,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']);
......@@ -131,7 +133,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",
......
......@@ -24,22 +24,6 @@
*/
"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 ////////////////////////
/////////////////////////////////////////////////////////
......
/*
*
* (c) Copyright Ascensio System Limited 2010-2016
*
* This program is freeware. You can redistribute it and/or modify it under the terms of the GNU
* General Public License (GPL) version 3 as published by the Free Software Foundation (https://www.gnu.org/copyleft/gpl.html).
* In accordance with Section 7(a) of the GNU GPL its Section 15 shall be amended to the effect that
* Ascensio System SIA expressly excludes the warranty of non-infringement of any third-party rights.
*
* THIS PROGRAM IS DISTRIBUTED WITHOUT ANY WARRANTY; WITHOUT EVEN THE IMPLIED WARRANTY OF MERCHANTABILITY OR
* FITNESS FOR A PARTICULAR PURPOSE. For more details, see GNU GPL at https://www.gnu.org/copyleft/gpl.html
*
* You can contact Ascensio System SIA by email at sales@onlyoffice.com
*
* The interactive user interfaces in modified source and object code versions of ONLYOFFICE must display
* Appropriate Legal Notices, as required under Section 5 of the GNU GPL version 3.
*
* Pursuant to Section 7  3(b) of the GNU GPL you must retain the original ONLYOFFICE logo which contains
* relevant author attributions when distributing the software. If the display of the logo in its graphic
* form is not reasonably feasible for technical reasons, you must include the words "Powered by ONLYOFFICE"
* in every copy of the program you distribute.
* Pursuant to Section 7  3(e) we decline to grant you any rights under trademark law for use of our trademarks.
*
*/
"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