init repo

This commit is contained in:
nikolay ivanov
2014-07-05 18:22:49 +00:00
commit a8be6b9e72
17348 changed files with 9229832 additions and 0 deletions

View File

@@ -0,0 +1,5 @@
@echo off
cd /D %~dp0
@echo on
call grunt.cmd --no-color

View File

@@ -0,0 +1,95 @@
/*
* (c) Copyright Ascensio System SIA 2010-2014
*
* This program is a free software product. You can redistribute it and/or
* modify it under the terms of the GNU Affero General Public License (AGPL)
* version 3 as published by the Free Software Foundation. In accordance with
* Section 7(a) of the GNU AGPL 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
* details, see the GNU AGPL at: http://www.gnu.org/licenses/agpl-3.0.html
*
* You can contact Ascensio System SIA at Lubanas st. 125a-25, Riga, Latvia,
* EU, LV-1021.
*
* The interactive user interfaces in modified source and object code versions
* of the Program must display Appropriate Legal Notices, as required under
* Section 5 of the GNU AGPL version 3.
*
* Pursuant to Section 7(b) of the License you must retain the original Product
* logo when distributing the program. Pursuant to Section 7(e) we decline to
* grant you any rights under trademark law for use of our trademarks.
*
* All the Product's GUI elements, including illustrations and icon sets, as
* well as technical writing content are licensed under the terms of the
* Creative Commons Attribution-ShareAlike 4.0 International. See the License
* terms at http://creativecommons.org/licenses/by-sa/4.0/legalcode
*
*/
module.exports = function (grunt) {
var defaultConfig, packageFile;
grunt.loadNpmTasks("grunt-contrib-clean");
grunt.loadNpmTasks("grunt-contrib-copy");
grunt.loadNpmTasks("grunt-contrib-compress");
grunt.registerTask("build_webword_init", "Initialize build WebWord SDK.", function () {
defaultConfig = "./webword.json";
packageFile = require(defaultConfig);
if (packageFile) {
grunt.log.ok("WebWord config loaded successfully".green);
} else {
grunt.log.error().writeln("Could not load config file".red);
}
});
grunt.registerTask("build_webexcel_init", "Initialize build WebExcel SDK.", function () {
defaultConfig = "./webexcel.json";
packageFile = require(defaultConfig);
if (packageFile) {
grunt.log.ok("WebExcel config loaded successfully".green);
} else {
grunt.log.error().writeln("Could not load config file".red);
}
});
grunt.registerTask("build_webpowerpoint_init", "Initialize build WebPowerPoint SDK.", function () {
defaultConfig = "./webpowerpoint.json";
packageFile = require(defaultConfig);
if (packageFile) {
grunt.log.ok("WebPowerPoint config loaded successfully".green);
} else {
grunt.log.error().writeln("Could not load config file".red);
}
});
grunt.registerTask("build_sdk", "Build sdk.", function () {
if (packageFile) {
if (packageFile["tasks"]["build"]) {
grunt.task.run(packageFile["tasks"]["build"]);
} else {
grunt.log.error().writeln('Not found "build" task in configure'.red);
}
} else {
grunt.log.error().writeln("Is not load configure file.".red);
}
});
grunt.registerTask("build_webword", "build_webword_init build_sdk");
grunt.registerTask("build_webexcel", "build_webexcel_init build_sdk");
grunt.registerTask("build_webpowerpoint", "build_webpowerpoint_init build_sdk");
grunt.registerTask("build_all", "build_webword_init build_sdk build_webexcel_init build_sdk build_webpowerpoint_init build_sdk");
grunt.registerTask("compile_sdk_init", function () {
grunt.initConfig({
pkg: "<json:" + defaultConfig + ">",
meta: {
banner: "/*\n" + ' * (c) Copyright Ascensio System SIA 2010-<%= grunt.template.today("yyyy") %>\n' + " *\n" + " * This program is a free software product. You can redistribute it and/or \n" + " * modify it under the terms of the GNU Affero General Public License (AGPL) \n" + " * version 3 as published by the Free Software Foundation. In accordance with \n" + " * Section 7(a) of the GNU AGPL its Section 15 shall be amended to the effect \n" + " * that Ascensio System SIA expressly excludes the warranty of non-infringement\n" + " * of any third-party rights.\n" + " *\n" + " * This program is distributed WITHOUT ANY WARRANTY; without even the implied \n" + " * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. For \n" + " * details, see the GNU AGPL at: http://www.gnu.org/licenses/agpl-3.0.html\n" + " *\n" + " * You can contact Ascensio System SIA at Lubanas st. 125a-25, Riga, Latvia,\n" + " * EU, LV-1021.\n" + " *\n" + " * The interactive user interfaces in modified source and object code versions\n" + " * of the Program must display Appropriate Legal Notices, as required under \n" + " * Section 5 of the GNU AGPL version 3.\n" + " *\n" + " * Pursuant to Section 7(b) of the License you must retain the original Product\n" + " * logo when distributing the program. Pursuant to Section 7(e) we decline to\n" + " * grant you any rights under trademark law for use of our trademarks.\n" + " *\n" + " * All the Product's GUI elements, including illustrations and icon sets, as\n" + " * well as technical writing content are licensed under the terms of the\n" + " * Creative Commons Attribution-ShareAlike 4.0 International. See the License\n" + " * terms at http://creativecommons.org/licenses/by-sa/4.0/legalcode\n" + " *\n" + " * Version: <%= pkg.info.version %> (build:<%= pkg.info.build %>)\n" + " */"
},
min: {
sdk: {
src: ["<banner:meta.banner>"].concat(packageFile["compile"]["sdk"]["src"]),
dest: packageFile["compile"]["sdk"]["dst"]
}
}
});
});
grunt.registerTask("compile_sdk", "compile_sdk_init min");
grunt.registerTask("default", "build_all");
};

View File

@@ -0,0 +1,7 @@
@echo off
cd /D %~dp0
echo Installation grunt and grunt-contrib
call npm install -g grunt@0.3.17
call npm install grunt-contrib-clean@0.3.2
call npm install grunt-contrib-copy@0.3.2
call npm install grunt-contrib-compress@0.3.2

View File

@@ -0,0 +1,121 @@
{
"info": {
"version": "2.5",
"build": 1,
"homepage": "http://www.onlyoffice.com"
},
"compile": {
"sdk": {
"src": [
"../../Common/browser.js",
"../../Common/docscoapisettings.js",
"../../Common/docscoapicommon.js",
"../../Common/docscoapi.js",
"../../Common/downloaderfiles.js",
"../../Common/apiCommon.js",
"../../Common/commonDefines.js",
"../../Common/editorscommon.js",
"../../Common/NumFormat.js",
"../../Common/Charts/charts.js",
"../../Common/Charts/DrawingObjects.js",
"../../Common/FontsFreeType/font_engine.js",
"../../Common/FontsFreeType/FontFile.js",
"../../Common/FontsFreeType/FontManager.js",
"../../Word/Drawing/HatchPattern.js",
"../../Word/Drawing/Externals.js",
"../../Word/Drawing/Graphics.js",
"../../Word/Drawing/Metafile.js",
"../../Excel/model/DrawingObjects/GlobalLoaders.js",
"../../Common/trackFile.js",
"../../Excel/apiDefines.js",
"../../Excel/offlinedocs/test-workbook9/Editor.js",
"../../Excel/offlinedocs/empty-workbook.js",
"../../Excel/utils/utils.js",
"../../Excel/model/clipboard.js",
"../../Excel/model/autofilters.js",
"../../Excel/graphics/DrawingContext.js",
"../../Excel/graphics/pdfprinter.js",
"../../Excel/model/CollaborativeEditing.js",
"../../Excel/model/ConditionalFormatting.js",
"../../Excel/model/FormulaObjects/parserFormula.js",
"../../Excel/model/FormulaObjects/dateandtimeFunctions.js",
"../../Excel/model/FormulaObjects/engineeringFunctions.js",
"../../Excel/model/FormulaObjects/cubeFunctions.js",
"../../Excel/model/FormulaObjects/databaseFunctions.js",
"../../Excel/model/FormulaObjects/textanddataFunctions.js",
"../../Excel/model/FormulaObjects/statisticalFunctions.js",
"../../Excel/model/FormulaObjects/financialFunctions.js",
"../../Excel/model/FormulaObjects/mathematicFunctions.js",
"../../Excel/model/FormulaObjects/lookupandreferenceFunctions.js",
"../../Excel/model/FormulaObjects/informationFunctions.js",
"../../Excel/model/FormulaObjects/logicalFunctions.js",
"../../Excel/model/Serialize.js",
"../../Excel/model/WorkbookElems.js",
"../../Excel/model/Workbook.js",
"../../Excel/model/CellInfo.js",
"../../Excel/model/AdvancedOptions.js",
"../../Excel/model/History.js",
"../../Excel/model/UndoRedo.js",
"../../Excel/model/CellComment.js",
"../../Excel/view/mobileTouch.js",
"../../Excel/view/iscroll.js",
"../../Excel/view/StringRender.js",
"../../Excel/view/CellTextRender.js",
"../../Excel/view/CellEditorView.js",
"../../Excel/view/WorksheetView.js",
"../../Excel/view/HandlerList.js",
"../../Excel/view/EventsController.js",
"../../Excel/view/WorkbookView.js",
"../../Common/scroll.js",
"../../Word/Editor/SerializeCommon.js",
"../../Excel/model/DrawingObjects/Format/Format.js",
"../../Word/Editor/GraphicObjects/ObjectTypes/CreateGeometry.js",
"../../Excel/model/DrawingObjects/Format/Geometry.js",
"../../Excel/model/DrawingObjects/Format/Path.js",
"../../Word/Editor/GraphicObjects/Math.js",
"../../Word/Drawing/ArcTo.js",
"../../Word/Drawing/ColorArray.js",
"../../Common/Shapes/Serialize.js",
"../../Common/Shapes/SerializeWriter.js",
"../../Common/SerializeCommonWordExcel.js",
"../../Excel/model/DrawingObjects/DrawingObjectsController.js",
"../../Excel/model/DrawingObjects/States.js",
"../../Excel/model/DrawingObjects/Format/GroupShape.js",
"../../Excel/model/DrawingObjects/Format/Image.js",
"../../Excel/model/DrawingObjects/Format/Shape.js",
"../../Excel/model/DrawingObjects/Format/TextBody.js",
"../../Excel/model/DrawingObjects/Format/Styles.js",
"../../Excel/model/DrawingObjects/Format/Numbering.js",
"../../Excel/model/DrawingObjects/Format/ParagraphContent.js",
"../../Excel/model/DrawingObjects/Format/Paragraph.js",
"../../Excel/model/DrawingObjects/Format/DocumentContent.js",
"../../Excel/model/DrawingObjects/Format/FontClassification.js",
"../../Excel/model/DrawingObjects/Format/Chart.js",
"../../Excel/model/DrawingObjects/Format/ChartLayout.js",
"../../Excel/model/DrawingObjects/Format/ChartLegend.js",
"../../Excel/model/DrawingObjects/Format/ChartTitle.js",
"../../Excel/model/DrawingObjects/Tracks/AdjustmentTracks.js",
"../../Excel/model/DrawingObjects/Tracks/ResizeTracks.js",
"../../Excel/model/DrawingObjects/Tracks/RotateTracks.js",
"../../Excel/model/DrawingObjects/Tracks/NewShapeTracks.js",
"../../Excel/model/DrawingObjects/Tracks/PolyLine.js",
"../../Excel/model/DrawingObjects/Tracks/Spline.js",
"../../Excel/model/DrawingObjects/Tracks/MoveTracks.js",
"../../Excel/model/DrawingObjects/Hit.js",
"../../Excel/model/DrawingObjects/Controls.js",
"../../Excel/model/DrawingObjects/Graphics.js",
"../../Excel/model/DrawingObjects/Overlay.js",
"../../Excel/model/DrawingObjects/GlobalCounters.js",
"../../Excel/model/DrawingObjects/DrawingDocument.js",
"../../Excel/model/DrawingObjects/ShapeDrawer.js",
"../../Word/apiCommon.js",
"../../Excel/api.js",
"../../Common/Shapes/EditorSettings.js"
],
"dst": "../../Excel/sdk-all.js"
}
},
"tasks": {
"build": "compile_sdk"
}
}

View File

@@ -0,0 +1,110 @@
{
"info": {
"version": "2.5",
"build": 1,
"homepage": "http://www.onlyoffice.com"
},
"compile": {
"sdk": {
"src": [
"../../Common/browser.js",
"../../Common/docscoapisettings.js",
"../../Common/docscoapicommon.js",
"../../Common/docscoapi.js",
"../../Common/wordcopypaste.js",
"../../Common/downloaderfiles.js",
"../../Common/editorscommon.js",
"../../Common/apiCommon.js",
"../../Common/Shapes/Serialize.js",
"../../Common/Shapes/SerializeWriter.js",
"../../Common/FontsFreeType/font_engine.js",
"../../Common/FontsFreeType/FontFile.js",
"../../Common/FontsFreeType/FontManager.js",
"../../Word/Drawing/Externals.js",
"../../Word/Drawing/GlobalLoaders.js",
"../../PowerPoint/Drawing/ThemeLoader.js",
"../../PowerPoint/Editor/Format/CollaborativeEditing.js",
"../../PowerPoint/Editor/Styles.js",
"../../PowerPoint/Editor/Format/ParagraphContent.js",
"../../PowerPoint/Editor/Format/FontClassification.js",
"../../PowerPoint/Editor/Format/Spelling.js",
"../../PowerPoint/Editor/Format/Comments.js",
"../../PowerPoint/Editor/GraphicObjects.js",
"../../PowerPoint/Editor/States.js",
"../../Common/Charts/DrawingObjects.js",
"../../Common/commonDefines.js",
"../../Common/SerializeCommonWordExcel.js",
"../../Word/Editor/Serialize2.js",
"../../Common/Charts/charts.js",
"../../Excel/graphics/DrawingContextWord.js",
"../../Common/trackFile.js",
"../../Word/Editor/SerializeCommon.js",
"../../Word/Drawing/Metafile.js",
"../../Word/Drawing/GraphicsEvents.js",
"../../Word/Drawing/WorkEvents.js",
"../../Word/Drawing/Controls.js",
"../../Word/Drawing/Rulers.js",
"../../PowerPoint/Editor/Format/Table.js",
"../../Word/Editor/Common.js",
"../../Word/Editor/Sections.js",
"../../Common/scroll.js",
"../../PowerPoint/Editor/History.js",
"../../PowerPoint/Editor/Format/Paragraph.js",
"../../PowerPoint/Editor/FlowObjects.js",
"../../PowerPoint/Editor/Format/DocumentContent.js",
"../../PowerPoint/Editor/Format/Presentation.js",
"../../PowerPoint/Editor/SlideShowInfo.js",
"../../PowerPoint/Editor/PresentationProperties.js",
"../../PowerPoint/Editor/Format/Shape.js",
"../../PowerPoint/Editor/Format/GraphicFrame.js",
"../../PowerPoint/Editor/Numbering.js",
"../../PowerPoint/Editor/TrackObjects/AdjustmentTracks.js",
"../../PowerPoint/Editor/TrackObjects/MoveTracks.js",
"../../PowerPoint/Editor/TrackObjects/NewShapeTracks.js",
"../../PowerPoint/Editor/TrackObjects/PolyLine.js",
"../../PowerPoint/Editor/TrackObjects/ResizeTracks.js",
"../../PowerPoint/Editor/TrackObjects/RotateTracks.js",
"../../PowerPoint/Editor/TrackObjects/Spline.js",
"../../PowerPoint/Editor/Format/TextBody.js",
"../../PowerPoint/Editor/Format/Image.js",
"../../PowerPoint/Editor/Format/GroupShape.js",
"../../PowerPoint/Editor/Format/ChartTitle.js",
"../../PowerPoint/Editor/Format/Chart.js",
"../../PowerPoint/Editor/Format/ChartLayout.js",
"../../PowerPoint/Editor/Format/Slide.js",
"../../PowerPoint/Editor/Format/SlideMaster.js",
"../../PowerPoint/Editor/Format/Layout.js",
"../../PowerPoint/Editor/Drawing/Geometry.js",
"../../PowerPoint/Editor/Drawing/CreateGoemetry.js",
"../../PowerPoint/Editor/Drawing/ColorArray.js",
"../../PowerPoint/Editor/Drawing/Math.js",
"../../PowerPoint/Editor/Drawing/Path.js",
"../../PowerPoint/Editor/Drawing/ArcTo.js",
"../../PowerPoint/Editor/Drawing/GraphicFigure.js",
"../../PowerPoint/Editor/Drawing/Clone.js",
"../../PowerPoint/Editor/Drawing/CImage.js",
"../../PowerPoint/Editor/Drawing/Spline.js",
"../../PowerPoint/Editor/Drawing/PolyLine.js",
"../../PowerPoint/Editor/Drawing/Hit.js",
"../../PowerPoint/Editor/Drawing/Joined.js",
"../../Word/Drawing/Graphics.js",
"../../Word/Drawing/Overlay.js",
"../../Word/Drawing/HatchPattern.js",
"../../Word/Drawing/ShapeDrawer.js",
"../../PowerPoint/Drawing/Transitions.js",
"../../PowerPoint/Drawing/DrawingDocument.js",
"../../PowerPoint/Drawing/HtmlPage.js",
"../../PowerPoint/Editor/Format.js",
"../../PowerPoint/apiDefines.js",
"../../PowerPoint/api.js",
"../../PowerPoint/apiCommon.js",
"../../Common/Shapes/EditorSettings.js",
"../../PowerPoint/themes/Themes.js"
],
"dst": "../../PowerPoint/sdk-all.js"
}
},
"tasks": {
"build": "compile_sdk"
}
}

View File

@@ -0,0 +1,108 @@
{
"info": {
"version": "2.5",
"build": 1,
"homepage": "http://www.onlyoffice.com"
},
"compile": {
"sdk": {
"src": [
"../../Common/browser.js",
"../../Common/docscoapisettings.js",
"../../Common/docscoapicommon.js",
"../../Common/docscoapi.js",
"../../Common/apiCommon.js",
"../../Common/spellcheckapisettings.js",
"../../Common/spellcheckapi.js",
"../../Common/wordcopypaste.js",
"../../Common/spellCheckLanguage.js",
"../../Common/spellCheckLanguagesAll.js",
"../../Common/downloaderfiles.js",
"../../Common/commonDefines.js",
"../../Common/editorscommon.js",
"../../Common/NumFormat.js",
"../../Common/Shapes/Serialize.js",
"../../Common/Shapes/SerializeWriter.js",
"../../Common/SerializeCommonWordExcel.js",
"../../Common/trackFile.js",
"../../Common/Charts/charts.js",
"../../Common/Charts/DrawingObjects.js",
"../../Common/FontsFreeType/font_engine.js",
"../../Common/FontsFreeType/FontFile.js",
"../../Common/FontsFreeType/FontManager.js",
"../../Word/Drawing/Externals.js",
"../../Word/Drawing/GlobalLoaders.js",
"../../Word/Drawing/translations.js",
"../../Word/Editor/GraphicObjects/GraphicObjects.js",
"../../Word/Editor/GraphicObjects/GraphicPage.js",
"../../Word/Editor/GraphicObjects/States.js",
"../../Word/Editor/GraphicObjects/Math.js",
"../../Word/Editor/GraphicObjects/TrackGraphicObjects.js",
"../../Word/Editor/GraphicObjects/WrapManager.js",
"../../Word/Editor/GraphicObjects/Spline.js",
"../../Word/Editor/GraphicObjects/PolyLine.js",
"../../Word/Editor/GraphicObjects/ObjectTypes/WordShape.js",
"../../Word/Editor/GraphicObjects/ObjectTypes/WordImage.js",
"../../Word/Editor/GraphicObjects/ObjectTypes/WordGroupShapes.js",
"../../Word/Editor/GraphicObjects/ObjectTypes/Format.js",
"../../Word/Editor/GraphicObjects/ObjectTypes/Geometry.js",
"../../Word/Editor/GraphicObjects/ObjectTypes/ShapeTracks.js",
"../../Word/Editor/GraphicObjects/ObjectTypes/GroupTracks.js",
"../../Word/Editor/GraphicObjects/ObjectTypes/CreateGeometry.js",
"../../Word/Editor/GraphicObjects/ObjectTypes/Path.js",
"../../Word/Editor/GraphicObjects/ObjectTypes/Chart.js",
"../../Word/Editor/GraphicObjects/ObjectTypes/ChartLayout.js",
"../../Word/Editor/GraphicObjects/ObjectTypes/ChartLegend.js",
"../../Word/Editor/GraphicObjects/ObjectTypes/ChartTitle.js",
"../../Word/Editor/GraphicObjects/ObjectTypes/TextBody.js",
"../../Word/Editor/CollaborativeEditing.js",
"../../Word/Editor/Comments.js",
"../../Word/Editor/History.js",
"../../Word/Editor/Styles.js",
"../../Word/Editor/DrawingObjects.js",
"../../Word/Editor/FlowObjects.js",
"../../Word/Editor/ParagraphContent.js",
"../../Word/Editor/Paragraph.js",
"../../Word/Editor/Sections.js",
"../../Word/Editor/Numbering.js",
"../../Word/Editor/HeaderFooter.js",
"../../Word/Editor/Document.js",
"../../Word/Editor/Common.js",
"../../Word/Editor/DocumentContent.js",
"../../Word/Editor/Table.js",
"../../Word/Editor/Serialize2.js",
"../../Word/Editor/Search.js",
"../../Word/Editor/FontClassification.js",
"../../Word/Editor/Spelling.js",
"../../Word/Drawing/Graphics.js",
"../../Word/Drawing/ArcTo.js",
"../../Word/Drawing/Hit.js",
"../../Word/Drawing/ColorArray.js",
"../../Word/Drawing/Overlay.js",
"../../Word/Drawing/HatchPattern.js",
"../../Word/Drawing/ShapeDrawer.js",
"../../Word/Drawing/Metafile.js",
"../../Word/Drawing/DrawingDocument.js",
"../../Word/Drawing/GraphicsEvents.js",
"../../Word/Drawing/scrolls/iscroll.js",
"../../Word/Drawing/WorkEvents.js",
"../../Word/Drawing/Controls.js",
"../../Word/Drawing/Rulers.js",
"../../Word/Drawing/HtmlPage.js",
"../../Word/Drawing/documentrenderer.js",
"../../Common/scroll.js",
"../../Word/Editor/SerializeCommon.js",
"../../Word/apiDefines.js",
"../../Word/api.js",
"../../Word/apiCommon.js",
"../../Word/document/empty.js",
"../../Excel/graphics/DrawingContextWord.js",
"../../Common/Shapes/EditorSettings.js"
],
"dst": "../../Word/sdk-all.js"
}
},
"tasks": {
"build": "compile_sdk"
}
}