New apps for text, slide and spreadsheet
This commit is contained in:
42
www/ooslide/app-ooslide.less
Normal file
42
www/ooslide/app-ooslide.less
Normal file
@@ -0,0 +1,42 @@
|
||||
@import (once) "../customize/src/less2/include/browser.less";
|
||||
@import (once) "../customize/src/less2/include/toolbar.less";
|
||||
@import (once) "../customize/src/less2/include/markdown.less";
|
||||
@import (once) '../customize/src/less2/include/fileupload.less';
|
||||
@import (once) '../customize/src/less2/include/alertify.less';
|
||||
@import (once) '../customize/src/less2/include/avatar.less';
|
||||
|
||||
.toolbar_main(
|
||||
@bg-color: @colortheme_ooslide-bg,
|
||||
@warn-color: @colortheme_ooslide-warn,
|
||||
@color: @colortheme_ooslide-color
|
||||
);
|
||||
.fileupload_main();
|
||||
.alertify_main();
|
||||
|
||||
// body
|
||||
&.cp-app-ooslide {
|
||||
display: flex;
|
||||
flex-flow: column;
|
||||
|
||||
#cp-toolbar {
|
||||
display: flex; // We need this to remove a 3px border at the bottom of the toolbar
|
||||
}
|
||||
|
||||
.cp-cryptpad-toolbar {
|
||||
padding: 0px;
|
||||
display: inline-block;
|
||||
}
|
||||
#cp-app-oo-container {
|
||||
flex: 1;
|
||||
height: 100%;
|
||||
background-color: lightgrey;
|
||||
display: flex;
|
||||
}
|
||||
#ooframe {
|
||||
flex: 1;
|
||||
border:none;
|
||||
margin:0;
|
||||
padding:0;
|
||||
}
|
||||
}
|
||||
|
||||
24
www/ooslide/doc.js
Normal file
24
www/ooslide/doc.js
Normal file
@@ -0,0 +1,24 @@
|
||||
config = {
|
||||
"document": {
|
||||
"fileType": "pptx",
|
||||
"key": "Khirz6zTPdfd7",
|
||||
"title": "test.pptx",
|
||||
"url": "/onlyoffice/test.pptx"
|
||||
},
|
||||
"documentType": "presentation",
|
||||
"editorConfig": {
|
||||
"user": {
|
||||
"id": "c0c3bf82-20d7-4663-bf6d-7fa39c598b1d",
|
||||
"name": "John Smith"
|
||||
}
|
||||
},
|
||||
"events": {
|
||||
"onDocumentStateChange": function(evt) { console.log("in change"); },
|
||||
"onReady": function(evt) { console.log("in onReady"); }
|
||||
}
|
||||
};
|
||||
window.onbeforeunload = null;
|
||||
|
||||
|
||||
var docEditor = new DocsAPI.DocEditor("placeholder", config);
|
||||
|
||||
14
www/ooslide/document.html
Normal file
14
www/ooslide/document.html
Normal file
@@ -0,0 +1,14 @@
|
||||
<html>
|
||||
<head>
|
||||
<style>
|
||||
body {
|
||||
margin: 0;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div id="placeholder"></div>
|
||||
<script type="text/javascript" src="/common/onlyoffice/web-apps/apps/api/documents/api.js"></script>
|
||||
<script type="text/javascript" src="doc.js"></script>
|
||||
</body>
|
||||
</html>
|
||||
38
www/ooslide/index.html
Normal file
38
www/ooslide/index.html
Normal file
@@ -0,0 +1,38 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>CryptPad</title>
|
||||
<meta content="text/html; charset=utf-8" http-equiv="content-type"/>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<meta name="referrer" content="no-referrer" />
|
||||
<script async data-bootload="/common/onlyoffice/main.js" data-main="/common/boot.js?ver=1.0" src="/bower_components/requirejs/require.js?ver=2.3.5"></script>
|
||||
<style>
|
||||
html, body {
|
||||
margin: 0px;
|
||||
padding: 0px;
|
||||
}
|
||||
#sbox-iframe {
|
||||
position:fixed;
|
||||
top:0px;
|
||||
left:0px;
|
||||
bottom:0px;
|
||||
right:0px;
|
||||
width:100%;
|
||||
height:100%;
|
||||
border:none;
|
||||
margin:0;
|
||||
padding:0;
|
||||
overflow:hidden;
|
||||
}
|
||||
#sbox-filePicker-iframe {
|
||||
position: fixed;
|
||||
top:0; left:0;
|
||||
bottom:0; right:0;
|
||||
width:100%;
|
||||
height: 100%;
|
||||
border: 0;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<iframe id="sbox-iframe">
|
||||
17
www/ooslide/inner.html
Normal file
17
www/ooslide/inner.html
Normal file
@@ -0,0 +1,17 @@
|
||||
<!DOCTYPE html>
|
||||
<html class="cp-app-noscroll">
|
||||
<head>
|
||||
<meta content="text/html; charset=utf-8" http-equiv="content-type"/>
|
||||
<script async data-bootload="/common/onlyoffice/inner.js" data-main="/common/sframe-boot.js?ver=1.4" src="/bower_components/requirejs/require.js?ver=2.3.5"></script>
|
||||
<style>
|
||||
.loading-hidden { display: none; }
|
||||
</style>
|
||||
</head>
|
||||
<body class="cp-app-ooslide">
|
||||
<div id="cp-toolbar" class="cp-toolbar-container"></div>
|
||||
<div id="cp-app-oo-container">
|
||||
<iframe id="ooframe" src="document.html" width="100%" height="100%">
|
||||
</iframe>
|
||||
</div>
|
||||
</body>
|
||||
|
||||
1
www/ooslide/test.bin
Normal file
1
www/ooslide/test.bin
Normal file
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user