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:
authorRoeland Jago Douma <roeland@famdouma.nl>2018-07-10 14:32:16 +0300
committerRoeland Jago Douma <roeland@famdouma.nl>2018-07-20 21:24:33 +0300
commit21059397a906a6032cd6551034f06f0e9ef09ac4 (patch)
tree8360195ec1786c95dbb834b4ec498b9a766e87d9 /appinfo
parent4d412b35d59b0066be7852e59a681f1510ddbbac (diff)
Initial mobile edit
* Add OCS endpoint for client to request a view * Endpoint returns an URL * DirectView controller to show info Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Diffstat (limited to 'appinfo')
-rw-r--r--appinfo/database.xml39
-rw-r--r--appinfo/info.xml2
-rw-r--r--appinfo/routes.php8
3 files changed, 47 insertions, 2 deletions
diff --git a/appinfo/database.xml b/appinfo/database.xml
index aa4aa6c7..369e61a3 100644
--- a/appinfo/database.xml
+++ b/appinfo/database.xml
@@ -135,4 +135,43 @@
</index>
</declaration>
</table>
+
+ <table>
+ <name>*dbprefix*richdocuments_direct</name>
+ <declaration>
+ <field>
+ <name>id</name>
+ <type>integer</type>
+ <notnull>true</notnull>
+ <autoincrement>1</autoincrement>
+ <unsigned>true</unsigned>
+ <length>4</length>
+ </field>
+ <field>
+ <name>token</name>
+ <type>text</type>
+ <length>64</length>
+ </field>
+ <field>
+ <name>uid</name>
+ <type>text</type>
+ <length>64</length>
+ </field>
+ <field>
+ <name>fileid</name>
+ <type>integer</type>
+ <notnull>true</notnull>
+ <length>4</length>
+ </field>
+
+ <index>
+ <name>rd_direct_token_idx</name>
+ <unique>true</unique>
+ <field>
+ <name>token</name>
+ <sorting>ascending</sorting>
+ </field>
+ </index>
+ </declaration>
+ </table>
</database>
diff --git a/appinfo/info.xml b/appinfo/info.xml
index 49d88a47..b5315715 100644
--- a/appinfo/info.xml
+++ b/appinfo/info.xml
@@ -4,7 +4,7 @@
<name>Collabora Online</name>
<summary>Edit office documents directly in your browser.</summary>
<description>This application can connect to a Collabora Online server (WOPI Client). Nextcloud is the WOPI Host. Please read the documentation to learn more about that.</description>
- <version>2.0.10</version>
+ <version>2.1.0</version>
<licence>agpl</licence>
<author>Collabora Productivity based on work of Frank Karlitschek, Victor Dubiniuk</author>
<types>
diff --git a/appinfo/routes.php b/appinfo/routes.php
index 604f335f..5b110188 100644
--- a/appinfo/routes.php
+++ b/appinfo/routes.php
@@ -30,5 +30,11 @@ return [
//settings
['name' => 'settings#setSettings', 'url' => 'ajax/admin.php', 'verb' => 'POST'],
['name' => 'settings#getSettings', 'url' => 'ajax/settings.php', 'verb' => 'GET'],
- ]
+
+ //Mobile access
+ ['name' => 'directView#show', 'url' => '/direct/{token}', 'verb' => 'GET'],
+ ],
+ 'ocs' => [
+ ['name' => 'OCS#create', 'url' => '/api/v1/document', 'verb' => 'POST'],
+ ],
];