Andras Timar
6d9054e6f3
Merge pull request #60 from pranavk/ooxml
...
Revert "Remove unrequired route"; respect OOXML settings again
7 years ago
Pranav Kant
75a12f07e4
allowfullscreen
7 years ago
Pranav Kant
0c14789cc3
Revert "Remove unrequired route"; respect OOXML settings again
...
This reverts commit aa89c908a7
.
7 years ago
Morris Jobke
8e44456daa
Merge pull request #53 from nextcloud/verbose-uploadmenu-text
...
Use more verbose text for upload menu
7 years ago
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>
7 years ago
Pranav Kant
9bb400714c
Fix file revisions
7 years ago
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.
7 years ago
Andras Timar
6d78c1053c
fix issue #41 Icons still show after opening doc from Favorites page
7 years ago
Andras Timar
c49a7c7331
Merge pull request #35 from pranavk/fix_lang_Tags
...
Fix language tags that are fed to loleaflet
7 years ago
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
7 years ago
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.
7 years ago
Andras Timar
6d49e2d003
replace trailing slash of wopi url
7 years ago
Andras Timar
829b2b77b9
add rtf and txt as supported file formats
7 years ago
Lukas Reschke
9cd9258dbb
Append instance id to rev history
...
Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
7 years ago
Lukas Reschke
aa89c908a7
Remove unrequired route
...
Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
8 years ago
Lukas Reschke
7ef24654cf
Public editing
...
Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
8 years ago
Lukas Reschke
75af90b4f1
Cleanup source code
...
Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
8 years ago
Lukas Reschke
62bd261c0b
Remove unrequired "Office" interface
...
Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
8 years ago
Pranav Kant
ee48a54cbf
Pre-light revision history buttons on mouseover and tooltip
8 years ago
Pranav Kant
05e6ed7e0e
Prevent a cramped-up revision history sidebar
8 years ago
Jan-Christoph Borchardt
907e86d278
use Federated Cloud ID wording
8 years ago
Pranav Kant
309d5535ff
Be backward compatible with older LOOLs
8 years ago
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.
8 years ago
Pranav Kant
93416e52a4
Kill edit for specific groups code
8 years ago
Pranav Kant
20d2ce582a
Don't ignore non-updatable files
...
Don't discriminate with these files; let them have the right to
join the session or generate access token like other sessions
8 years ago
Pranav Kant
c98c1e6ba7
Handle empty arrays correctly
8 years ago
Pranav Kant
1ad1f667ee
Simplify edit group checking algorithm
...
Rather than making a server call, which seems to be not working
always anyways, use a foolproof method for this.
8 years ago
Pranav Kant
de62725ed2
Some beautification of admin settings
8 years ago
Pranav Kant
e593c34fdd
New test server option for specific groups
8 years ago
Pranav Kant
145854400e
New 'Use OOXML by default' option in admin settings
8 years ago
Pranav Kant
40323cab8c
Cleanup/refactor, remove debug code
8 years ago
Pranav Kant
c24c5a0439
Only allow users to edit documents if part of edit groups
...
If edit group setting is not set in Collabora Online settings,
then allow all users.
8 years ago
Pranav Kant
1174105402
Setup edit groups functionality
8 years ago
Miklos Vajna
d6b65b7983
bccu#2033 Respect WOPI action names
...
Don't assume that the action name is 'edit' all the time. Instead, if
it's view, then initialize leaflet with permission=readonly.
8 years ago
Pranav Kant
cf97470caf
Show relative timestamps as heading, formatted as tooltip
...
Be consistent with owncloud own version sidebar, and loleaflet's
DocumentRepair dialog.
8 years ago
Andras Timar
6fc595eb93
remove unused 'Save new documents to' setting, fixes #76
8 years ago
Andras Timar
7a0d2b944c
change id of Apply button, fixes #93 , fixes #92
8 years ago
Morris Jobke
d6a412caac
Fix error in richdocuments
...
Ports https://github.com/owncloud/documents/pull/652 by @vicdeo to richdocuments
8 years ago
Pranav Kant
517e1c79a3
Make NewFileMenu's display name translatable
8 years ago
Pranav Kant
4cda46798e
Add restore button to the revision history sidebar
8 years ago
Pranav Kant
ea484bb357
Fix a typo
8 years ago
Andras Timar
53256007de
Merge pull request #81 from pranavk/download_tooltip
...
Show 'Download' tooltip for download icon in revision history
8 years ago
Pranav Kant
d91151091d
Show 'Download' tooltip for download icon in revision history
8 years ago
Pranav Kant
1a41f8bbd3
Respect lolang param in revision history mode too
8 years ago
Pranav Kant
c084533efb
Wait till page is rendered
...
There's a race condition here between page being rendered with
all the document(s) information and showing the editor to the
user. The later requires the former as it uses data rendered into
the page.
In most cases, former is quick enough and we do not see any
problems, but in some cases, mostly when the server is responding
very slowly, it will lag behind the later causing the editor to
be shown before data is rendered into the page leading to '404
Object not found'.
This should, hopefully, avoid such cases.
8 years ago
Pranav Kant
c80a31ebe0
$.getJSON already returns a promise like object
...
... so no need to create a deferred object separately and then
resolve it manually. This is since jquery 1.5
See: https://api.jquery.com/jquery.getjson/
8 years ago
Pranav Kant
f3e7211ee5
Add Handlebars to global
8 years ago
Pranav Kant
58f9b4c5b4
Explicitly ask for revision history option
...
... since loleaflet explicitly requires it now if revision
history option is required.
8 years ago
Pranav Kant
50d1b609ba
Move exist button to top right of revision sidebar
8 years ago
Pranav Kant
3235b886ad
Add a revision history sidebar
8 years ago