Build test editors
This commit is contained in:
parent
a9f285b50e
commit
fb52589aba
|
@ -745,7 +745,10 @@ module.exports = function(grunt) {
|
|||
doRegisterInitializeAppTask('documenteditor', 'DocumentEditor', 'documenteditor.json');
|
||||
doRegisterInitializeAppTask('spreadsheeteditor', 'SpreadsheetEditor', 'spreadsheeteditor.json');
|
||||
doRegisterInitializeAppTask('presentationeditor', 'PresentationEditor', 'presentationeditor.json');
|
||||
doRegisterInitializeAppTask('testeditor', 'TestEditor', 'testeditor.json');
|
||||
|
||||
doRegisterInitializeAppTask('testdocumenteditor', 'TestDocumentEditor', 'testdocumenteditor.json');
|
||||
doRegisterInitializeAppTask('testpresentationeditor', 'TestPresentationEditor', 'testpresentationeditor.json');
|
||||
doRegisterInitializeAppTask('testspreadsheeteditor', 'TestSpreadsheetEditor', 'testspreadsheeteditor.json');
|
||||
|
||||
grunt.registerTask('deploy-app', 'Deploy application.', function(){
|
||||
if (packageFile) {
|
||||
|
@ -769,7 +772,9 @@ module.exports = function(grunt) {
|
|||
grunt.registerTask('deploy-spreadsheeteditor', ['deploy-common-component', 'deploy-spreadsheeteditor-component']);
|
||||
grunt.registerTask('deploy-presentationeditor', ['deploy-common-component', 'deploy-presentationeditor-component']);
|
||||
|
||||
grunt.registerTask('deploy-testeditor', ['init-build-testeditor', 'deploy-app']);
|
||||
grunt.registerTask('deploy-testdocumenteditor', ['init-build-testdocumenteditor', 'deploy-app']);
|
||||
grunt.registerTask('deploy-testpresentationeditor', ['init-build-testpresentationeditor', 'deploy-app']);
|
||||
grunt.registerTask('deploy-testspreadsheeteditor', ['init-build-testspreadsheeteditor', 'deploy-app']);
|
||||
|
||||
grunt.registerTask('default', ['deploy-common-component',
|
||||
'deploy-documenteditor-component',
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"name": "testeditor",
|
||||
"name": "testdocumenteditor",
|
||||
"version": "4.3.0",
|
||||
"build": 1152,
|
||||
"build": 1153,
|
||||
"homepage": "http://www.onlyoffice.com",
|
||||
"private": true,
|
||||
"test": {
|
41
build/testpresentationeditor.json
Normal file
41
build/testpresentationeditor.json
Normal file
|
@ -0,0 +1,41 @@
|
|||
{
|
||||
"name": "testpresentationeditor",
|
||||
"version": "4.3.0",
|
||||
"build": 1153,
|
||||
"homepage": "http://www.onlyoffice.com",
|
||||
"private": true,
|
||||
"test": {
|
||||
"clean": {
|
||||
"prebuild": [
|
||||
"../deploy/web-apps/test/presentationeditor/main"
|
||||
]
|
||||
},
|
||||
"js": {
|
||||
"src": [
|
||||
"../test/common/Gateway.js",
|
||||
"../test/common/main/lib/util/utils.js",
|
||||
"../test/presentationeditor/main/js/ApplicationView.js",
|
||||
"../test/presentationeditor/main/js/ApplicationController.js",
|
||||
"../test/presentationeditor/main/js/application.js"
|
||||
],
|
||||
"dist": "../deploy/web-apps/test/presentationeditor/main/app-all.js"
|
||||
},
|
||||
"less": {
|
||||
"files": {
|
||||
"src": "../test/presentationeditor/main/resources/less/application.less",
|
||||
"dist": "../deploy/web-apps/test/presentationeditor/main/resources/css/app-all.css"
|
||||
}
|
||||
},
|
||||
"copy": {
|
||||
"index-page": {
|
||||
"../deploy/web-apps/test/presentationeditor/main/index.html": "../test/presentationeditor/main/index.html.deploy"
|
||||
}
|
||||
}
|
||||
},
|
||||
"tasks": {
|
||||
"deploy": [
|
||||
"increment-build",
|
||||
"deploy-app-test"
|
||||
]
|
||||
}
|
||||
}
|
43
build/testspreadsheeteditor.json
Normal file
43
build/testspreadsheeteditor.json
Normal file
|
@ -0,0 +1,43 @@
|
|||
{
|
||||
"name": "testspreadsheeteditor",
|
||||
"version": "4.3.0",
|
||||
"build": 1153,
|
||||
"homepage": "http://www.onlyoffice.com",
|
||||
"private": true,
|
||||
"test": {
|
||||
"clean": {
|
||||
"prebuild": [
|
||||
"../deploy/web-apps/test/spreadsheeteditor/main"
|
||||
]
|
||||
},
|
||||
"js": {
|
||||
"src": [
|
||||
"../test/common/Gateway.js",
|
||||
"../test/common/main/lib/util/utils.js",
|
||||
"../test/spreadsheeteditor/main/js/CellEditorView.js",
|
||||
"../test/spreadsheeteditor/main/js/CellEditorController.js",
|
||||
"../test/spreadsheeteditor/main/js/ApplicationView.js",
|
||||
"../test/spreadsheeteditor/main/js/ApplicationController.js",
|
||||
"../test/spreadsheeteditor/main/js/application.js"
|
||||
],
|
||||
"dist": "../deploy/web-apps/test/spreadsheeteditor/main/app-all.js"
|
||||
},
|
||||
"less": {
|
||||
"files": {
|
||||
"src": "../test/spreadsheeteditor/main/resources/less/application.less",
|
||||
"dist": "../deploy/web-apps/test/spreadsheeteditor/main/resources/css/app-all.css"
|
||||
}
|
||||
},
|
||||
"copy": {
|
||||
"index-page": {
|
||||
"../deploy/web-apps/test/spreadsheeteditor/main/index.html": "../test/spreadsheeteditor/main/index.html.deploy"
|
||||
}
|
||||
}
|
||||
},
|
||||
"tasks": {
|
||||
"deploy": [
|
||||
"increment-build",
|
||||
"deploy-app-test"
|
||||
]
|
||||
}
|
||||
}
|
|
@ -13,8 +13,6 @@
|
|||
</head>
|
||||
|
||||
<body class="embed-body">
|
||||
<div id="loading-mask" class="loadmask">
|
||||
</div>
|
||||
<!-- debug begin -->
|
||||
<script type="text/javascript">var less=less||{};less.env='development';</script>
|
||||
<script src="../../../vendor/less/dist/less.js" type="text/javascript"></script>
|
||||
|
@ -56,13 +54,6 @@
|
|||
<script type="text/javascript" src="../../../vendor/socketio/socket.io.min.js"></script>
|
||||
<script type="text/javascript" src="../../../vendor/xregexp/xregexp-all-min.js"></script>
|
||||
|
||||
<script src="../../../vendor/requirejs/require.js"></script>
|
||||
<script>
|
||||
require.config({
|
||||
baseUrl: '../../'
|
||||
});
|
||||
</script>
|
||||
|
||||
<script type="text/javascript" src="../../../../sdkjs/develop/sdkjs/slide/scripts.js"></script>
|
||||
<script>
|
||||
window.sdk_scripts.forEach(function(item){
|
||||
|
|
57
test/presentationeditor/main/index.html.deploy
Normal file
57
test/presentationeditor/main/index.html.deploy
Normal file
|
@ -0,0 +1,57 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>Documents</title>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no">
|
||||
<meta name="description" content="">
|
||||
<meta name="author" content="">
|
||||
|
||||
<link href="../../../test/presentationeditor/main/resources/css/app-all.css" rel="stylesheet">
|
||||
</head>
|
||||
|
||||
<body class="embed-body">
|
||||
<script>
|
||||
var userAgent = navigator.userAgent.toLowerCase();
|
||||
|
||||
function getUrlParams() {
|
||||
var e,
|
||||
a = /\+/g, // Regex for replacing addition symbol with a space
|
||||
r = /([^&=]+)=?([^&]*)/g,
|
||||
d = function (s) { return decodeURIComponent(s.replace(a, " ")); },
|
||||
q = window.location.search.substring(1),
|
||||
urlParams = {};
|
||||
|
||||
while (e = r.exec(q))
|
||||
urlParams[d(e[1])] = d(e[2]);
|
||||
|
||||
return urlParams;
|
||||
}
|
||||
|
||||
function encodeUrlParam(str) {
|
||||
return str.replace(/"/g, '"')
|
||||
.replace(/'/g, ''')
|
||||
.replace(/</g, '<')
|
||||
.replace(/>/g, '>');
|
||||
}
|
||||
|
||||
var params = getUrlParams();
|
||||
window.frameEditorId = params["frameEditorId"];
|
||||
window.parentOrigin = params["parentOrigin"];
|
||||
</script>
|
||||
|
||||
<div id="editor_sdk" class="viewer" style="overflow: hidden;" tabindex="-1"></div>
|
||||
|
||||
<!--vendor-->
|
||||
<script type="text/javascript" src="../../../vendor/jquery/jquery.min.js"></script>
|
||||
<script type="text/javascript" src="../../../vendor/socketio/socket.io.min.js"></script>
|
||||
<script type="text/javascript" src="../../../vendor/xregexp/xregexp-all-min.js"></script>
|
||||
|
||||
<!--sdk-->
|
||||
<script type="text/javascript" src="../../../../sdkjs/common/AllFonts.js"></script>
|
||||
<script type="text/javascript" src="../../../../sdkjs/slide/sdk-all-min.js"></script>
|
||||
|
||||
<!--application-->
|
||||
<script type="text/javascript" src="../../../test/presentationeditor/main/app-all.js"></script>
|
||||
</body>
|
||||
</html>
|
|
@ -68,12 +68,6 @@
|
|||
<script type="text/javascript" src="../../../vendor/jquery/jquery.min.js"></script>
|
||||
<script type="text/javascript" src="../../../vendor/socketio/socket.io.min.js"></script>
|
||||
<script type="text/javascript" src="../../../vendor/xregexp/xregexp-all-min.js"></script>
|
||||
<script src="../../../vendor/requirejs/require.js"></script>
|
||||
<script>
|
||||
require.config({
|
||||
baseUrl: '../../'
|
||||
});
|
||||
</script>
|
||||
|
||||
<script type="text/javascript" src="../../../../sdkjs/develop/sdkjs/cell/scripts.js"></script>
|
||||
<script>
|
||||
|
|
71
test/spreadsheeteditor/main/index.html.deploy
Normal file
71
test/spreadsheeteditor/main/index.html.deploy
Normal file
|
@ -0,0 +1,71 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>Documents</title>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no">
|
||||
<meta name="description" content="">
|
||||
<meta name="author" content="">
|
||||
|
||||
<link href="../../../test/spreadsheeteditor/main/resources/css/app-all.css" rel="stylesheet">
|
||||
</head>
|
||||
|
||||
<body class="main-body">
|
||||
<script>
|
||||
var userAgent = navigator.userAgent.toLowerCase();
|
||||
|
||||
function getUrlParams() {
|
||||
var e,
|
||||
a = /\+/g, // Regex for replacing addition symbol with a space
|
||||
r = /([^&=]+)=?([^&]*)/g,
|
||||
d = function (s) { return decodeURIComponent(s.replace(a, " ")); },
|
||||
q = window.location.search.substring(1),
|
||||
urlParams = {};
|
||||
|
||||
while (e = r.exec(q))
|
||||
urlParams[d(e[1])] = d(e[2]);
|
||||
|
||||
return urlParams;
|
||||
}
|
||||
|
||||
function encodeUrlParam(str) {
|
||||
return str.replace(/"/g, '"')
|
||||
.replace(/'/g, ''')
|
||||
.replace(/</g, '<')
|
||||
.replace(/>/g, '>');
|
||||
}
|
||||
|
||||
var params = getUrlParams();
|
||||
window.frameEditorId = params["frameEditorId"];
|
||||
window.parentOrigin = params["parentOrigin"];
|
||||
</script>
|
||||
|
||||
<div class="viewer">
|
||||
<div id="cell-editing-box" style="display: none;">
|
||||
<div class="ce-group-name">
|
||||
<input id="ce-cell-name" class="aslabel form-control" type="text">
|
||||
<div id="ce-cell-name-menu" class="layout-item" style="height: 20px; top: 0px; border-left: none;"></div>
|
||||
</div>
|
||||
<div class="ce-group-content">
|
||||
<textarea id="ce-cell-content" class="form-control" spellcheck="false" rows="1" cols="20"></textarea>
|
||||
</div>
|
||||
</div>
|
||||
<div id="editor_sdk" class="sdk-view" style="overflow: hidden;" tabindex="-1"></div>
|
||||
<ul id="worksheets" class="worksheet-list"></ul>
|
||||
</div>
|
||||
|
||||
<!--vendor-->
|
||||
<script type="text/javascript" src="../../../vendor/jquery/jquery.min.js"></script>
|
||||
<script type="text/javascript" src="../../../vendor/socketio/socket.io.min.js"></script>
|
||||
<script type="text/javascript" src="../../../vendor/xregexp/xregexp-all-min.js"></script>
|
||||
|
||||
|
||||
<!--sdk-->
|
||||
<link rel="stylesheet" type="text/css" href="../../../../sdkjs/cell/css/main.css"/>
|
||||
<script type="text/javascript" src="../../../../sdkjs/common/AllFonts.js"></script>
|
||||
<script type="text/javascript" src="../../../../sdkjs/cell/sdk-all-min.js"></script>
|
||||
|
||||
<!--application-->
|
||||
<script type="text/javascript" src="../../../test/spreadsheeteditor/main/app-all.js"></script>
|
||||
</body>
|
||||
</html>
|
Loading…
Reference in a new issue