mirror of
https://github.com/antos-rde/antosdk-apps.git
synced 2025-07-13 06:04:26 +02:00
Initial add OnlyOffice
This commit is contained in:
7
OnlyOffice/build/debug/README.md
Normal file
7
OnlyOffice/build/debug/README.md
Normal 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
|
||||
|
36
OnlyOffice/build/debug/main.js
Normal file
36
OnlyOffice/build/debug/main.js
Normal 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);
|
16
OnlyOffice/build/debug/package.json
Normal file
16
OnlyOffice/build/debug/package.json
Normal 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": {}
|
||||
}
|
5
OnlyOffice/build/debug/scheme.html
Normal file
5
OnlyOffice/build/debug/scheme.html
Normal 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>
|
Reference in New Issue
Block a user