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

github.com/nextcloud/text.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/lib
AgeCommit message (Collapse)Author
2020-09-08Merge pull request #1026 from nextcloud/fix/1005/refresh_only_once_every_30_sJulius Härtl
2020-09-07Refresh lastContact only once every 30 secondsRoeland Jago Douma
Improvements for #1005 Just storing this less often should be a bit easier on the database. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
2020-09-07Sessionid is an intRoeland Jago Douma
With the extra memcache check now this could cause issues otherwise. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
2020-09-07Merge pull request #1014 from nextcloud/harden/memcachetokenfetchingJulius Härtl
Harden check when using token from memcache
2020-09-06Harden read only check on public endpointsRoeland Jago Douma
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
2020-09-05Harden check when using token from memcacheRoeland Jago Douma
Explicitly comparing never hurt anybody. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
2020-09-04Use proper event for loading scripts on public share linksJulius Härtl
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2020-08-31do not return rich workspace when depth=0dassio
Signed-off-by: dassio <dassio@icloud.com>
2020-08-28Catch StorageNotAvailable exceptionsJulius Härtl
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2020-07-13Remove unneeded dependenciesMorris Jobke
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
2020-07-13Also load files app scripts when user is logged inJulius Härtl
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2020-07-13Use the new additional scripts eventJulius Härtl
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2020-07-10Use IBootstrap for the app bootstrapMorris Jobke
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
2020-07-02Log the exceptions as INFORoeland Jago Douma
There is no need to log them as ERROR Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
2020-06-22fix: path for workspacesAzul
We need the relative path inside a users home directory to fetch the folder content for the filepicker. $file->getPath() gets the absolute path including username and files. Signed-off-by: Azul <azul@riseup.net>
2020-06-16Merge pull request #871 from nextcloud/bugfix/851Julius Härtl
Perform file conflict check earlier so that it also triggers when not saving
2020-06-15Pass path to rich workspacesJulius Härtl
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2020-06-15Perform file conflict check earlier so that it also triggers when not savingJulius Härtl
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2020-05-19Return early when iterating over supported filenamesJulius Härtl
This fixes multiple files showing up on case-insensitive filenames as otherwise the IFolder::get call creates multiple entries in the filecache for the same file Signed-off-by: Julius Härtl <jus@bitgrid.net>
2020-04-20Enable Text to be used by Viewer outside Files appDaniel Calviño Sánchez
Since Nextcloud 18.0.4 the Files app triggers the "LoadViewer" event, so that event can be used to register Text with Viewer instead of doing it through the "OCA\Files::loadAdditionalScripts" event. Besides being more correct for the Files app it also makes possible to use Text when opening files through Viewer in other apps, like Talk. Note, however, that in public share pages Text is still opened using the fallback actions instead of through Viewer, as Viewer currently does not provide the share token of the public shared folder that contains the file to be opened. Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2020-04-07Merge pull request #761 from nextcloud/enh/session_memcachev19.0.0beta2Julius Härtl
Cache the session info in memcache
2020-04-07Cache the session info in memcacheRoeland Jago Douma
This should reduce the number of queries to the DB. Esp when editing a file with a lot of people this can really add up. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
2020-04-07Merge pull request #748 from nextcloud/bugfix/noid/rich-workspace-dav-availableJulius Härtl
Only return 404 for workspace property if it is not avilable
2020-04-03Merge pull request #749 from nextcloud/bugfix/noid/translatable-readmev19.0.0beta1Julius Härtl
Use full list of supported filenames when obtaining the name to create
2020-04-02Use full list of supported filenames when obtaining the name to createJulius Härtl
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2020-04-02Only return 404 for workspace property if it is not avilableJulius Härtl
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2020-04-02Merge pull request #743 from nextcloud/bugfix/direct-editing-txtJulius Härtl
Offer txt editing by default
2020-04-02Add index on the oc_text_sessions tableRoeland Jago Douma
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
2020-03-30Offer txt editing by defaultJulius Härtl
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2020-03-25Expose workspace_available on public sharesJulius Härtl
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2020-03-25Send parent folder permissions along with workspace file metadataDaniel Calviño Sánchez
The folder permissions are sent even if there is no workspace file for the folder. This will make possible to disable the rich workspaces UI if creating files is not enabled in a folder. Rich workspaces are disabled for public share pages, so the folder permissions are not sent in that case. Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2020-02-04Use ILockingProviderJulius Härtl
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2020-02-04Add occ command to restore documents to their last saved stateJulius Härtl
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2020-02-04Filter out duplicate version stepsJulius Härtl
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2020-02-04Fetch steps sorted by version and idJulius Härtl
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2020-02-04WIP: mitigate race condition when saving stepsJulius Härtl
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2020-01-28Merge pull request #608 from nextcloud/bugfix/ui-varJulius Härtl
UI fixes for public share links
2020-01-27Catch the exception when a user no longer existsRoeland Jago Douma
Else this could result in a lot of log spam. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
2020-01-27Use string as a filenameJulius Härtl
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2020-01-24Rename document creator (fixes #599)Julius Härtl
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2020-01-21Use a proper value for checking if workspaces are availableJulius Härtl
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2020-01-16Fix editing plain text files with direct editingJulius Härtl
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2020-01-14Do not try obtaining the file by id when a share link is usedJulius Härtl
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2020-01-09Properly handle file deletion and temporary service unavailabilityJulius Härtl
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2020-01-09Fix calling setLastContact on booleanChristoph Wurst
Fixes https://sentry.io/share/issue/e2f18ccec8ea44cf8cfe1dbfa703c802/ Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2019-12-20DoumentId should be a string when using as a filenameJulius Härtl
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2019-12-17Remove dot from direct editing file extensionJulius Härtl
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2019-12-16Use file path instead of folder for direct workspace openingJulius Härtl
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2019-12-11Merge pull request #451 from nextcloud/bugfix/noid/use-filepathRoeland Jago Douma
Use file path to obtain workspace direct editing links
2019-12-08Fix Undefined variable: initialStateServiceDaniel Kesselberg
Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>