431 Commits

Author SHA1 Message Date
Pranav Kant
4b980cb010 fix back button navigation (#183)
now backbutton when document is opened takes you back to the files app
from where the document was opened.
2018-03-22 09:37:07 +01:00
Andras Timar
d02ed7a2f0 Use Cancel and Save buttons instead of No and Yes on Save As dialog 2018-02-21 23:57:54 +01:00
Andras Timar
4b8dd9556f update comment 2018-02-19 19:32:30 +01:00
Andras Timar
6d60e621aa do not allow empty file name in Save As dialog 2018-02-18 00:35:51 +01:00
Pranav Kant
f00e6cdb4a Support version restore states (#166)
See https://gerrit.libreoffice.org/gitweb?p=online.git;a=commit;h=1fabfd9fe34815cab54c1417cfc7e541adb6a341
for details
2018-02-08 10:34:56 +01:00
Pranav Kant
d61999d709 Restore code deleted by accident (#165)
This reverts some parts of
a08c0b7a5e0478e4b0e68694ca7d73f23a954e33
2018-02-08 10:23:52 +01:00
Pranav Kant
a08c0b7a5e Add support for adding canonical webroot (#157)
See cc42c7f46c

for details
2018-01-31 13:25:33 +01:00
Pranav Kant
fec3a73943 Fixes #140 - name of the document in titlebar (#160) 2018-01-30 22:31:25 +01:00
Julius Härtl
1db0d27cc5 Fix z-index of the richdocuments frame for NC13 (#153)
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2018-01-11 10:34:55 +01:00
Pranav Kant
8bbc30c52d Cleanup (#152)
* unused signal

* remove isGuest thing

This is always false; no point in having conditionals depending on this
variable

* another unused variable
2018-01-10 21:06:49 +01:00
rakekniven
05aee21958
Update documents.js
Changed wording according to 
https://www.transifex.com/nextcloud/nextcloud/translate/#de_DE/richdocuments/125396748?issue=yes
2017-12-11 16:10:54 +01:00
rakekniven
18350d9faf
Update admin.js
Fixed triple dot (changed to ellipsis)
2017-12-11 16:08:39 +01:00
Andras Timar
7f3f30b383 2nd attempt to fix #138 2017-11-29 16:21:28 +01:00
Andras Timar
11274091c0 fix for #138 2017-11-29 11:53:39 +01:00
Pranav Kant
2c3d9ae8d9 Add support for PutRelativeFile for Save As. (#136) 2017-11-22 16:23:55 +01:00
Lukas Reschke
9bf62db3aa Add option to enable the app only for users in a specific group (#135)
Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
2017-11-06 13:54:56 +01:00
Pranav Kant
72cb1956b0 Start listening for standard post messages and ignore deprecated ones (#126)
New online versions emits both the post messages (the older one with a
deprecated flag and newer one without). Ignore if the deprecated flag is
mentioned because it means that we would get another post message
without deprecated flag.
2017-10-20 11:26:26 +02:00
Pranav Kant
21504eb5a8 support for external apps (#124) 2017-09-27 08:53:06 +02:00
Pranav Kant
e9f9711421 Use fileId instead of dir 2017-07-24 14:19:53 +05:30
Andreas Böhler
c4b794360a Fix editing publicly shared documents 2017-06-28 19:19:12 +02:00
Andras Timar
aa4df2e800 Restore 'Enable edit for specific groups' feature, fixes #66 2017-06-14 14:17:21 +02:00
Patrik Kernstock
4db76d6f01 only edit textfiles when texteditorapp is disabled
Signed-off-by: Patrik Kernstock <info@pkern.at>
2017-06-14 02:39:17 +02:00
Patrik Kernstock
dee4991091 Do not open text files using Collabora app
Signed-off-by: Patrik Kernstock <info@pkern.at>
2017-06-10 18:21:57 +02:00
Pranav Kant
7d502a3135 Revert "Replace 3 dots to ellisis in l10n files" partially
This reverts commit c6a3e02b4b7af75341c573340ef11baef8bee39d partially.

Presumably, some unwanted modifications also found its way in with above
patch breaking the app. Revert problematic pieces.
2017-06-02 00:20:36 +05:30
Andras Timar
c6a3e02b4b Replace 3 dots to ellisis in l10n files 2017-06-01 09:39:44 +02:00
rakekniven
94ce86e6ec Update admin.js 2017-05-31 23:04:08 +02:00
rakekniven
3c35d287b0 Update documents.js
Changed "..." to ellipsis
2017-05-31 23:02:56 +02:00
Andras Timar
6d9054e6f3 Merge pull request #60 from pranavk/ooxml
Revert "Remove unrequired route"; respect OOXML settings again
2017-05-25 11:46:46 +02:00
Pranav Kant
75a12f07e4 allowfullscreen 2017-05-20 00:54:58 +05:30
Pranav Kant
0c14789cc3 Revert "Remove unrequired route"; respect OOXML settings again
This reverts commit aa89c908a70dddabb39ea7d0a166e147e31d3f5d.
2017-05-19 23:56:27 +05:30
Morris Jobke
8e44456daa Merge pull request #53 from nextcloud/verbose-uploadmenu-text
Use more verbose text for upload menu
2017-05-17 11:39:23 -05:00
Marius Blüm
0a98e7ea2f Use more verbose text for upload menu
* see https://github.com/nextcloud/server/pull/4922

Signed-off-by: Marius Blüm <marius@lineone.io>
2017-05-17 18:16:44 +02:00
Pranav Kant
9bb400714c Fix file revisions 2017-05-11 21:09:46 +05:30
Pranav Kant
a5f6569591 Bin superfluous returnToDir logic
This was initially introduced in OC so that we know which directory to
go after we close the editor but this seems unnecessary here in NC as
richdocuments is just an iframe which is removed from DOM when we close
the document.
2017-05-11 21:09:43 +05:30
Andras Timar
6d78c1053c fix issue #41 Icons still show after opening doc from Favorites page 2017-04-21 10:38:56 +02:00
Andras Timar
c49a7c7331 Merge pull request #35 from pranavk/fix_lang_Tags
Fix language tags that are fed to loleaflet
2017-04-19 20:46:30 +02:00
Pranav Kant
5596ae17ce Fix incorrect language tags feeding to loleaflet
loleaflet expect a BCP47 language tag syntax while OC.getLocale returns
a lanugage tag where subtags are separated by '_' instead of '-'
(BCP47).

It seems safe to just replace '_' with '-' before feeding it to
loleaflet
2017-04-05 15:55:26 +05:30
Pranav Kant
f36c5106d6 Try opening readonly documents too
Also simplify the logic during file action registration. Basically, we
should try to open all known mimetypes; file permissions are taken care
of later in the WOPI protocol.

Without this commit, it is not possible to open a document in a
directory for which user has no write access.
2017-03-22 23:48:07 +05:30
Andras Timar
6d49e2d003 replace trailing slash of wopi url 2017-03-20 13:37:55 +01:00
Andras Timar
829b2b77b9 add rtf and txt as supported file formats 2017-01-07 21:21:21 +01:00
Lukas Reschke
9cd9258dbb
Append instance id to rev history
Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
2017-01-03 20:31:35 +01:00
Lukas Reschke
aa89c908a7
Remove unrequired route
Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
2016-12-07 01:01:01 +01:00
Lukas Reschke
7ef24654cf
Public editing
Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
2016-12-07 00:57:01 +01:00
Lukas Reschke
75af90b4f1
Cleanup source code
Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
2016-12-06 21:09:40 +01:00
Lukas Reschke
62bd261c0b
Remove unrequired "Office" interface
Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
2016-12-06 12:53:09 +01:00
Pranav Kant
ee48a54cbf Pre-light revision history buttons on mouseover and tooltip 2016-11-28 13:05:40 +05:30
Pranav Kant
05e6ed7e0e Prevent a cramped-up revision history sidebar 2016-11-28 12:50:37 +05:30
Jan-Christoph Borchardt
907e86d278 use Federated Cloud ID wording 2016-11-15 12:20:59 +01:00
Pranav Kant
309d5535ff Be backward compatible with older LOOLs 2016-10-28 17:29:05 +05:30
Pranav Kant
a12ff8d0d2 security: Support WOPI's PostMessageOrigin
Adds a new property PostMessageOrigin to WOPI's CheckFileInfo.
The inner frame then only sends message to target with origin
mentioned in this property.

Also implement editor initialization WOPI specs. Inner frame
sends a App_LoadingStatus message to us when ready, and we send
Host_PostmessageReady when we are ready.
2016-10-27 17:57:46 +05:30