Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/richdocuments.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'appinfo')
-rw-r--r--appinfo/app.php7
-rw-r--r--appinfo/database.xml16
-rw-r--r--appinfo/info.xml2
-rw-r--r--appinfo/routes.php3
4 files changed, 9 insertions, 19 deletions
diff --git a/appinfo/app.php b/appinfo/app.php
index 3c8e00d8..8650a508 100644
--- a/appinfo/app.php
+++ b/appinfo/app.php
@@ -31,6 +31,13 @@ $eventDispatcher->addListener(
\OCP\Util::addStyle('richdocuments', 'viewer/odfviewer');
}
);
+$eventDispatcher->addListener(
+ 'OCA\Files_Sharing::loadAdditionalScripts',
+ function() {
+ \OCP\Util::addScript('richdocuments', 'viewer/viewer');
+ \OCP\Util::addStyle('richdocuments', 'viewer/odfviewer');
+ }
+);
if (class_exists('\OC\Files\Type\TemplateManager')) {
$manager = \OC_Helper::getFileTemplateManager();
diff --git a/appinfo/database.xml b/appinfo/database.xml
index 128093e1..a3a74446 100644
--- a/appinfo/database.xml
+++ b/appinfo/database.xml
@@ -70,26 +70,22 @@
<autoincrement>1</autoincrement>
<unsigned>true</unsigned>
<length>4</length>
- <comments>Unique per token</comments>
</field>
<field>
<name>owner_uid</name>
<type>text</type>
<length>64</length>
- <comments>Document owner UserId - a textual user identifier (unique?)</comments>
</field>
<field>
<name>editor_uid</name>
<type>text</type>
<length>64</length>
- <comments>Document editor's UserId, can be different from uid if shared</comments>
</field>
<field>
<name>fileid</name>
<type>integer</type>
<notnull>true</notnull>
<length>4</length>
- <comments>The unique ID of the file authorized</comments>
</field>
<field>
<name>version</name>
@@ -97,28 +93,18 @@
<notnull>true</notnull>
<default>0</default>
<length>4</length>
- <comments>Authorized version, if any, of given fileid</comments>
- </field>
- <field>
- <name>path</name>
- <type>text</type>
- <notnull>true</notnull>
- <length>512</length>
- <comments>Relative to storage e.g. /welcome.odt</comments>
</field>
<field>
<name>canwrite</name>
<type>boolean</type>
<default>false</default>
<notnull>true</notnull>
- <comments>Can make changes to this file</comments>
</field>
<field>
<name>server_host</name>
<type>text</type>
<default>localhost</default>
<notnull>true</notnull>
- <comments>Host from which token generation request originated</comments>
</field>
<field>
<name>token</name>
@@ -126,14 +112,12 @@
<default></default>
<notnull>true</notnull>
<length>32</length>
- <comments>File access token</comments>
</field>
<field>
<name>expiry</name>
<type>integer</type>
<unsigned>true</unsigned>
<length>4</length>
- <comments>Expiration time of the token</comments>
</field>
<index>
diff --git a/appinfo/info.xml b/appinfo/info.xml
index e9d976d6..3371dc65 100644
--- a/appinfo/info.xml
+++ b/appinfo/info.xml
@@ -5,7 +5,7 @@
<description>Collabora Online allows you to to work with all kinds of office documents directly in your browser. This application requires Collabora Cloudsuite to be installed on one of your servers, please read the documentation to learn more about that.</description>
<summary>Edit office documents directly in your browser.</summary>
<licence>AGPL</licence>
- <version>1.1.19</version>
+ <version>1.1.21</version>
<author>Collabora Productivity based on work of Frank Karlitschek, Victor Dubiniuk</author>
<bugs>https://github.com/nextcloud/richdocuments/issues</bugs>
<repository type="git">https://github.com/nextcloud/richdocuments.git</repository>
diff --git a/appinfo/routes.php b/appinfo/routes.php
index de620d1b..67dfc3fa 100644
--- a/appinfo/routes.php
+++ b/appinfo/routes.php
@@ -15,17 +15,16 @@ return [
'routes' => [
//documents
['name' => 'document#index', 'url' => 'index', 'verb' => 'GET'],
+ ['name' => 'document#publicPage', 'url' => '/public', 'verb' => 'GET'],
['name' => 'document#create', 'url' => 'ajax/documents/create', 'verb' => 'POST'],
// WOPI access
- ['name' => 'wopi#getToken', 'url' => 'wopi/token/{fileId}', 'verb' => 'GET'],
['name' => 'wopi#checkFileInfo', 'url' => 'wopi/files/{fileId}', 'verb' => 'GET'],
['name' => 'wopi#getFile', 'url' => 'wopi/files/{fileId}/contents', 'verb' => 'GET'],
['name' => 'wopi#putFile', 'url' => 'wopi/files/{fileId}/contents', 'verb' => 'POST'],
//settings
['name' => 'settings#setSettings', 'url' => 'ajax/admin.php', 'verb' => 'POST'],
- ['name' => 'settings#getSupportedMimes', 'url' => 'ajax/mimes.php', 'verb' => 'GET'],
['name' => 'settings#getSettings', 'url' => 'ajax/settings.php', 'verb' => 'GET'],
]
];