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
Andras Timar
750e50108a
remove unused js (WebODF)
8 years ago
Andras Timar
446372c0cb
this string is not localizable
8 years ago
Pranav Kant
87f7720d12
Remove unused method
...
See 2b302fa1af
8 years ago
Pranav Kant
8e56d58ff7
bccu#1882: Return to where user started by removing redundant call
...
Route /close/ doesn't mean anything, and we were making this
additional call always before closing the document. This had a
side-effect that sometimes /close/ call would be processed after
we assign returnToDir to window.location making browser always
stuck in richdocuments#index rather than reeturnToDir. This was
mainly the problem in firefox with owncloud9
8 years ago
Andras Timar
9a62fcfe7d
remove WebODF l10n
8 years ago
Pranav Kant
bb01949a9a
Use new owncloud9 addMenuEntry plugin
...
... to add new odf files from main 'Files' app
8 years ago
Pranav Kant
04a3bacb4d
give focus explicitly to loleafletframe after loading
...
This is mainly problem in firefox where sometime, key press
events are handled by the browser, but we do not want that.
8 years ago
Pranav Kant
b138109820
Don't load all documents when only one is clicked on from 'Files'
8 years ago
Jan Holesovsky
68b81e846b
bccu#1882: Return to the 'Files' app when the editing started there.
...
Also retain the directory where the editing started.
8 years ago
Andras Timar
e22151a2b5
Pass the lang paramater to loleaflet from ownCloud user settings, which controls UI language
8 years ago
Andras Timar
cdc6d2dffc
add tooltip with document path for icon view
8 years ago
Henry Castro
efcf28abc2
Add ulrsrc attribute when create new documents
8 years ago
Jan Holesovsky
e94fa64836
One more place where we need to present the error message.
8 years ago
Jan Holesovsky
ea47464459
More improvements in the error handling.
8 years ago
Jan Holesovsky
b48ae81a99
Small improvement in the documentation.
8 years ago
Jan Holesovsky
f2974bd618
Adapt to changes in loolwsd - pass only access_token via form post.
...
Also limit the amount of stuff that actually needs to be passed, and add
comments.
8 years ago
Pranav Kant
41f2f63907
Do not show scary warning dialog
...
... since we save to disk on abnormal client termination.
8 years ago
Henry Castro
a27950d617
Post WOPI url iframe
8 years ago
Pranav Kant
c25de38ef5
Rename filename -> title
8 years ago
Pranav Kant
96c88b5a1e
Use window.postMessage API for cross-domain frame communication
...
Use filename as additional param to let the child frame know the
name of the document easily.
Use closebutton param to instruct the child frame about whether
to show the close button, or not.
8 years ago
Ashod Nakashian
1a737b4f07
wopi: pass the url wopi without /contents, to make it more flexible
8 years ago
Andras Timar
f3eaa1683d
use SSL
8 years ago
Henry Castro
81ba6a184e
Fix close button bug
8 years ago
Henry Castro
b135ad4a5c
Add WOPISrc parameter
8 years ago
Andras Timar
a32c1e2be3
remove unused webODF unstable setting
8 years ago
Andras Timar
f0f3e42c0e
remove dead code (from Collabora Online perspective)
8 years ago
Henry Castro
3a2d2a219f
JS handle urlsrc attribute
8 years ago
Ashod Nakashian
30a22ef7e7
WOPI GetFile and PutFile added and document loader updated
8 years ago
Henry Castro
85f3079b47
Post WOPI url iframe
8 years ago
Henry Castro
08dbf236d9
Add WOPI client settings
8 years ago
Andras Timar
4afc1ed80a
changed path of iframe, all is in loleaflet
8 years ago
Mihai Varga
fafd5e8cf7
loleaflet: use the permission init option
8 years ago
Faruk Uzun
2e6aef6e9b
Fix "Download as ..." for wrong filenames
...
ccu#1367 - "Download as" links in File menu are downloading files
with a different filename like "ccs-fileID.ext".
8 years ago
Victor Dubiniuk
447610b260
Fix appid
8 years ago
Andras Timar
8010839279
bccu#1335 don't try to handle pdf, internal pdf.js does a better job
9 years ago
Jan Holesovsky
91e49449f3
cloudsuite: Cleanup when the document is closed.
9 years ago
Jan Holesovsky
6b3585dcc6
A bit of formatting + spaces -> tabs.
9 years ago
Jan Holesovsky
e6593def87
cloudsuite: Add buttons to create new spreadsheet and new presentation.
9 years ago
Jan Holesovsky
aa0a8f666a
cloudsuite: Implement the saving back.
9 years ago
Jan Holesovsky
00befededb
Less confusing variable names.
9 years ago
Jan Holesovsky
75dbb71b01
cloudsuite: Clean the last remnants of webodf from documents.js.
9 years ago
Mihai Varga
ddc34a60c3
bug #1261 - added microsoft document mime types
9 years ago
Mihai Varga
43bce2d00d
added pdf,visio,svg,wordperfect mimetypes
9 years ago
Henry Castro
303e64682a
cloudsuite: add missing function to avoid uncaught exception.
...
The upload requeries these functions.
9 years ago
Henry Castro
98a485d46f
cloudsuite: add FileList.findfile
9 years ago
Jan Holesovsky
6e8cf39068
cloudsuite: Set editing as the default action.
9 years ago
Jan Holesovsky
302317ca47
cloudsuite: Fix starting of editing directly from the Files view.
9 years ago
Mihai Varga
f08051bd48
allow-modals iframe sandbox flag for the print dialog
9 years ago
Mihai Varga
f9db222605
now the bottom toolbar is visible
9 years ago
Henry Castro
0d69783913
cloudsuite: fix octoolbar clicks
...
The element #octoolbar should be removed each time document
is closed
9 years ago
Henry Castro
57b90752c6
cloudsuite: remove unused webodfEditorInstance
9 years ago
Henry Castro
64a729ea69
cloudsuite: remove unnecesary scripts and styles
9 years ago
Henry Castro
1a5d30b5d6
cloudsuite: use onClose insted hideEditor
9 years ago
Henry Castro
199fb6083e
cloudsuite: rework onClouse method
9 years ago
Mihai Varga
9be8e63a71
allow fullscreen initiated within the iframe
9 years ago
Henry Castro
97ee005462
cloudsuite: avoid uncaught TypeError
...
FileList is not loaded with documents application, so when upload
file avoid uncaught TypeError
9 years ago
Mihai Varga
7593ec613f
remove spaces at the end of lines
9 years ago
Henry Castro
aac766d9f6
cloudsuite: remove the iframe when close
9 years ago
Henry Castro
38f9b8152e
cloudsuite: when click a document in FileList view, attach iframe
...
TODO replace file_path = documentsMain.url
9 years ago
Henry Castro
3809e2ee43
cloudsuite: prepare to rework view.js
9 years ago
Henry Castro
da92304323
cloudsuite: fix close button
9 years ago
Henry Castro
525b1ab4d0
cloudsuite: remove unnecessary css attached to documents
9 years ago
Mihai Varga
a5f572b1df
the iframe was previously causing an overflow in the outer container
9 years ago
Jan Holesovsky
3bed81b4a9
cloudsuite: Implement the document loading via CloudSuite.
...
In order to work, we need a group that is shared between wwwrun (for owncloud)
and loolwsd; let's call it loolwww. Then:
cd <www>/owncloud/apps/documents
mkdir documents-tmp
chown chown wwwrun:loolwww documents-tmp
chmod g+ws documents-tmp
ownCloud takes care of copying the files to this shared location, and back (in
the future). It will also need to take care of the cleanup, at the moment the
files are leaked.
9 years ago
Jan Holesovsky
4cdae43fc8
cloudsuite: Let's not hide the cloudsuite itself inside owncloud.
...
We switched to iframe, so let's keep it separate, that's easier to maintain.
9 years ago
Henry Castro
cd6b29b469
cloudsuite: add iframe element to reference loleaflet
9 years ago
Mihai Varga
4bbcd5cac8
removed .js ending from addScript - now the toolbar appears
9 years ago
Jan Holesovsky
de28f7c58c
cloudsuite: Load also the stylesheets, now the document looks correctly.
9 years ago
Jan Holesovsky
52aa2941cd
cloudsuite: Order the loading of the JS pieces.
9 years ago
Jan Holesovsky
0a3662e0bf
cloudsuite: Document gets visible now (though quite distorted).
9 years ago