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
AgeCommit message (Collapse)Author
2021-03-30Make sure the session list is always at the endJulius Härtl
Signed-off-by: Julius Härtl <jus@bitgrid.net> Signed-off-by: npmbuildbot-nextcloud[bot] <npmbuildbot-nextcloud[bot]@users.noreply.github.com>
2021-03-11Bump bundlesJulius Härtl
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2020-12-22Bump bundlesJulius Härtl
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2020-12-22Revert removal of transformResponseJulius Härtl
Signed-off-by: Julius Härtl <jus@bitgrid.net> Signed-off-by: npmbuildbot-nextcloud[bot] <npmbuildbot-nextcloud[bot]@users.noreply.github.com>
2020-12-17Bump bundlesJulius Härtl
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2020-12-03Also register to urlChanged event to update RichWorkspacegoligo
Signed-off-by: Malte Wedel <ich@malte.de>
2020-12-01Move away from GETRoeland Jago Douma
We send some (not always sensitive but still) infor in the GET requests. Better to do this with PUT (create session) and POST (fetch and close). So that we don't leak anything we do not want to leak. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl> Signed-off-by: npmbuildbot-nextcloud[bot] <npmbuildbot-nextcloud[bot]@users.noreply.github.com>
2020-11-12Validate link before openingJulius Härtl
Signed-off-by: Julius Härtl <jus@bitgrid.net> Signed-off-by: npmbuildbot-nextcloud[bot] <npmbuildbot-nextcloud[bot]@users.noreply.github.com>
2020-11-09Bump bundlesJulius Härtl
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2020-09-29Bump bundlesJulius Härtl
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2020-09-28Bump bundlesJulius Härtl
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2020-09-22Check if error is ocs response on workspace requestDaniel Kesselberg
Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
2020-09-10Bump vue and vue-template-compilerdependabot[bot]
Bumps [vue](https://github.com/vuejs/vue) and [vue-template-compiler](https://github.com/vuejs/vue). These dependencies needed to be updated together. Updates `vue` from 2.6.11 to 2.6.12 - [Release notes](https://github.com/vuejs/vue/releases) - [Commits](https://github.com/vuejs/vue/compare/v2.6.11...v2.6.12) Updates `vue-template-compiler` from 2.6.11 to 2.6.12 - [Release notes](https://github.com/vuejs/vue/releases) - [Commits](https://github.com/vuejs/vue/compare/v2.6.11...v2.6.12) Signed-off-by: dependabot[bot] <support@github.com> Signed-off-by: npmbuildbot[bot] <npmbuildbot[bot]@users.noreply.github.com>
2020-09-10Bump @nextcloud/vue from 2.3.0 to 2.6.4dependabot[bot]
Bumps [@nextcloud/vue](https://github.com/nextcloud/nextcloud-vue) from 2.3.0 to 2.6.4. - [Release notes](https://github.com/nextcloud/nextcloud-vue/releases) - [Commits](https://github.com/nextcloud/nextcloud-vue/compare/v2.3.0...v2.6.4) Signed-off-by: dependabot[bot] <support@github.com> Signed-off-by: npmbuildbot[bot] <npmbuildbot[bot]@users.noreply.github.com>
2020-09-09Bump bundlesJulius Härtl
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2020-09-08Bump bundlesJulius Härtl
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2020-08-25Bump bundlesJulius Härtl
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2020-08-24Bump tiptap-commands from 1.14.4 to 1.14.6dependabot[bot]
Bumps [tiptap-commands](https://github.com/ueberdosis/tiptap) from 1.14.4 to 1.14.6. - [Release notes](https://github.com/ueberdosis/tiptap/releases) - [Commits](https://github.com/ueberdosis/tiptap/compare/tiptap-commands@1.14.4...tiptap-commands@1.14.6) Signed-off-by: dependabot[bot] <support@github.com> Signed-off-by: npmbuildbot[bot] <npmbuildbot[bot]@users.noreply.github.com>
2020-08-17highlight active heading in menu barAzul
Signed-off-by: Azul <azul@riseup.net> Signed-off-by: npmbuildbot[bot] <npmbuildbot[bot]@users.noreply.github.com>
2020-08-13cleanup: remove confusing paragraph buttonAzul
fixes #353. The paragraph button was confusing for a number of reasons: * it only acts on headings * the symbol indicates a line break rather than the removal of formatting * there are other ways to turn headings back to normal text * all other formatting is removed by clicking the same button again Signed-off-by: Azul <azul@riseup.net>
2020-08-11Compile assetsnpmbuildbot[bot]
Signed-off-by: npmbuildbot[bot] <npmbuildbot[bot]@users.noreply.github.com>
2020-08-11fix: use Viewer state to determine current dirAzul
This is more relyable then parsing the window location query for dir: * ?dir does not change when navigating between files right now * ?dir is not present when the viewer is used from within other apps. We used to fallback to the viewer state which solved the latter. However it is easier and less error prone to just rely on viewer state in the first place. Signed-off-by: Azul <azul@riseup.net>
2020-08-11Update src/helpers/links.jsazul
make sure there are decimals in the fileId Co-authored-by: Julius Härtl <jus@bitgrid.net> Signed-off-by: Azul <azul@riseup.net>
2020-08-11update title when following linksAzul
Signed-off-by: Azul <azul@riseup.net>
2020-08-11detect local links and open in Viewer right away.Azul
This used to be working but was broken by having full hrefs rather than just the query part. Now we check if the domain remains the same and if we have a `dir` param in the query and a `relPath` param in the fragment. This should be a pretty good check for links that we can open in the viewer right away. Signed-off-by: Azul <azul@riseup.net>
2020-08-11ensure copy is translateableAzul
Signed-off-by: Azul <azul@riseup.net>
2020-08-11links with complete urlsAzul
This way they also work if the viewer was opened from other apps than the file app. Also move the `relPath` param into the fragment. It is only used to remember the relative path for generating the short markdown form from the link. Signed-off-by: Azul <azul@riseup.net>
2020-08-11Follow links inside the viewerAzul
rather than opening a completely new page Signed-off-by: Azul <azul@riseup.net>
2020-08-11calculate dir for relative linksAzul
Signed-off-by: Azul <azul@riseup.net>
2020-08-11open relative links in new tab on middle clickAzul
also take into account `ctrl` keys. Use the href from html rather than markdown. This is an actual link that will work in nextcloud. Signed-off-by: Azul <azul@riseup.net>
2020-08-11open local links in same tabAzul
When navigating between different text documents one does not expect to open new windows all the time. Next steps: * open in new tab on middle click. Signed-off-by: Azul <azul@riseup.net>
2020-08-11rewrite links to local filesAzul
The markdown we create for links to local files looks like this: ``` [Check this out!](subdir/file.md?fileid=123) ``` Turn this into a link like this ``` <a href="?dir=/current&openfile=123&relPath=subdir/file.md"> Check this out! </a> ``` The `relPath` part of the url is needed to convert it back to the original markdown. Includes a test. Next steps: * open links to local files in same tab. * change dir param according to relative Path. Signed-off-by: Azul <azul@riseup.net>
2020-08-11refactor: define our own Link mark to rewrite hrefsAzul
The short relative links used in markdown need to be converted to working urls in the href attributes. In order to properly serialize the content the full urls in html need to be converted to relative links as well. This commit splits out the href handling into a new helper. This way it can be easily tested. Signed-off-by: Azul <azul@riseup.net>
2020-08-11button in menu bubble to link to filesAzul
Since the menu bubble deals with links it makes more sense to add the button here. Moved it to the initial part of the menu bubble as an alternative to the link form. Hand current path to menu bubble and use it * to start from there when picking the file to link to * to calculate the relative path. Signed-off-by: Azul <azul@riseup.net>
2020-08-11initial take on linking to other filesAzul
Tries both approaches: from the menu bubble and the menu bar Menu bubble works quite well so far. Only uses absolute paths. Menu bar uses relative paths. Pass filepath to Menu bubble so it cat * start there * calculate relative paths Move the logic for relative paths to helper. Make all strings translateable. Render relative links properly. The way we do this for img tags serves as an example. Signed-off-by: Azul <azul@riseup.net>
2020-08-11Bump bundlesJulius Härtl
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2020-08-11Bump bundlesJulius Härtl
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2020-08-11Bump bundlesJulius Härtl
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2020-08-11fix: use OC.Files API to get file infoAzul
This api is also available in other apps while the internal structures used in fetchFileInfo are not. fixes #920 Signed-off-by: Azul <azul@riseup.net>
2020-07-09Compile assetsnpmbuildbot[bot]
Signed-off-by: npmbuildbot[bot] <npmbuildbot[bot]@users.noreply.github.com>
2020-06-22Bump bundlesJulius Härtl
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2020-06-16Compile assetsnpmbuildbot[bot]
Signed-off-by: npmbuildbot[bot] <npmbuildbot[bot]@users.noreply.github.com>
2020-06-16Bump bundlesJulius Härtl
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2020-06-15Bump bundlesJulius Härtl
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2020-06-15Bump prosemirror-transform from 1.2.5 to 1.2.6dependabot-preview[bot]
Bumps [prosemirror-transform](https://github.com/prosemirror/prosemirror-transform) from 1.2.5 to 1.2.6. - [Release notes](https://github.com/prosemirror/prosemirror-transform/releases) - [Changelog](https://github.com/ProseMirror/prosemirror-transform/blob/master/CHANGELOG.md) - [Commits](https://github.com/prosemirror/prosemirror-transform/compare/1.2.5...1.2.6) Signed-off-by: dependabot-preview[bot] <support@dependabot.com> Signed-off-by: npmbuildbot[bot] <npmbuildbot[bot]@users.noreply.github.com>
2020-06-15Bump @nextcloud/vue from 1.5.0 to 2.0.0dependabot-preview[bot]
Bumps [@nextcloud/vue](https://github.com/nextcloud/nextcloud-vue) from 1.5.0 to 2.0.0. - [Release notes](https://github.com/nextcloud/nextcloud-vue/releases) - [Commits](https://github.com/nextcloud/nextcloud-vue/compare/v1.5.0...v2.0.0) Signed-off-by: dependabot-preview[bot] <support@dependabot.com> Signed-off-by: npmbuildbot[bot] <npmbuildbot[bot]@users.noreply.github.com>
2020-06-09images: default to file dir for selectionAzul
remember the directory an image was selected from Next time start image selector dialogue in that directory. Directory will only be remembered as long as the editor is open. This covers the main usecase of being able to add a bunch of files from the same directory. fixes #845. Signed-off-by: Azul <azul@riseup.net>
2020-06-09image: use relative path in src if shorter than absoluteAzul
* hand the path of the file that is currently edited to the menubar as a prop * calculate the relative path when inserting an image * compare the number of path separators in the relative and absolute path * use relative path if it has fewer separators Also escape the paths and filename in the src so filenames and paths with spaces work. Do not escape the slashes that separate the path components - slashes are fine in urls and easier to read. The algorithm will pick /some/common/and/different/paths/file.jpg over ../../../and/different/paths/file.jpg On the other hand it will pick ../../and/different/paths/file.jpg over /some/common/and/different/paths/file.jpg Signed-off-by: Azul <azul@riseup.net>
2020-06-09images: make use of filename in markdown srcAzul
Using absolute paths for now Remove x,y and a parameters from query part of url. These are added in the viewer. No need to carry them around in markdown. Remove redundant fileId from fragment part of url. So all in all use ```markdown ![photo.jpeg](/Media/photo.jpeg?fileId=9#mimetype=image%2Fjpeg&hasPreview=true) ``` instead of ```markdown ![photo.jpeg](/index.php/core/preview?fileId=9&x=1024&y=1024&a=true#mimetype=image%2Fjpeg&hasPreview=true&fileId=9) ``` Signed-off-by: Azul <azul@riseup.net>
2020-06-09allow relative image sources with fileidAzul
includes a unit test for turning the src in markdown into a src for html that can be resolved by nextcloud Signed-off-by: Azul <azul@riseup.net>