[DE test] Add deploy files

This commit is contained in:
Julia Radzhabova 2022-11-18 23:11:41 +03:00
parent f53450ee2e
commit b689546e94
2 changed files with 88 additions and 1 deletions

View file

@ -1,7 +1,7 @@
{
"name": "documenteditor",
"version": "4.3.0",
"build": 1149,
"build": 1150,
"homepage": "http://www.onlyoffice.com",
"private": true,
"main": {
@ -364,6 +364,34 @@
]
}
},
"test": {
"clean": {
"prebuild": [
"../deploy/web-apps/test/documenteditor/main"
]
},
"js": {
"src": [
"../test/common/Gateway.js",
"../test/common/main/lib/util/utils.js",
"../test/documenteditor/main/js/ApplicationView.js",
"../test/documenteditor/main/js/ApplicationController.js",
"../test/documenteditor/main/js/application.js"
],
"dist": "../deploy/web-apps/test/documenteditor/main/app-all.js"
},
"less": {
"files": {
"src": "../test/documenteditor/main/resources/less/application.less",
"dist": "../deploy/web-apps/test/documenteditor/main/resources/css/app-all.css"
}
},
"copy": {
"index-page": {
"../deploy/web-apps/test/documenteditor/main/index.html": "../test/documenteditor/main/index.html.deploy"
}
}
},
"tasks": {
"deploy": [
"increment-build",

View file

@ -0,0 +1,59 @@
<!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/documenteditor/main/resources/css/app-all.css" rel="stylesheet">
</head>
<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, '&quot;')
.replace(/'/g, '&#39;')
.replace(/</g, '&lt;')
.replace(/>/g, '&gt;');
}
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/word/sdk-all-min.js"></script>
<!--application-->
<script type="text/javascript" src="../../../test/documenteditor/main/app-all.js"></script>
</body>
</html>