Initial add OnlyOffice

This commit is contained in:
Xuan Sang LE
2021-02-08 17:59:31 +01:00
parent 3f819d1bbc
commit 5f90daf079
17 changed files with 124 additions and 299 deletions

View File

@ -0,0 +1,7 @@
# OnlyOffice
This application is the front-end connector of the OnlyOffice suite.
It needs to connect to a working OnlyOffice document server.
The application allows to open/edit document, presentation, and spreedsheet

View File

@ -0,0 +1,36 @@
(function() {
var OnlyOffice;
OnlyOffice = class OnlyOffice extends this.OS.application.BaseApplication {
constructor(args) {
super("OnlyOffice", args);
}
main() {
var placeholder;
placeholder = this.find("editor-area");
return this.editor = new DocsAPI.DocEditor(placeholder, {
"document": {
"fileType": "docx",
"key": "Khirz6zTPdfd7",
"title": "Example Document Title.docx",
"url": "https://file-examples-com.github.io/uploads/2017/02/file-sample_100kB.doc"
},
"documentType": "word"
});
}
cleanup() {
if (this.editor) {
this.editor.destroyEditor();
}
return this.editor = void 0;
}
};
OnlyOffice.dependencies = ["http://192.168.1.91/web-apps/apps/api/documents/api.js"];
this.OS.register("OnlyOffice", OnlyOffice);
}).call(this);

View File

@ -0,0 +1,16 @@
{
"pkgname": "OnlyOffice",
"app":"OnlyOffice",
"name":"OnlyOffice",
"description":"OnlyOffice",
"info":{
"author": "",
"email": ""
},
"version":"0.0.1-a",
"category":"Other",
"iconclass":"fa fa-adn",
"mimes":["none"],
"dependencies":[],
"locale": {}
}

View File

@ -0,0 +1,5 @@
<afx-app-window apptitle="OnlyOffice" width="500" height="400" data-id="OnlyOffice">
<afx-hbox >
<div data-id="editor-area"></div>
</afx-hbox>
</afx-app-window>