Граф коммитов

152 Коммитов

Автор SHA1 Сообщение Дата
Julius Härtl ec853bade7
Bump bundles
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2021-01-13 19:42:07 +01:00
Julius Härtl 49f2f80fa4
Bump bundles
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2021-01-13 19:34:02 +01:00
dependabot[bot] 0ad8bc9bbf Bump axios from 0.21.0 to 0.21.1
Bumps [axios](https://github.com/axios/axios) from 0.21.0 to 0.21.1.
- [Release notes](https://github.com/axios/axios/releases)
- [Changelog](https://github.com/axios/axios/blob/v0.21.1/CHANGELOG.md)
- [Commits](https://github.com/axios/axios/compare/v0.21.0...v0.21.1)

Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: npmbuildbot-nextcloud[bot] <npmbuildbot-nextcloud[bot]@users.noreply.github.com>
2021-01-05 11:49:28 +00:00
Julius Härtl 4c6b17b01e
Bump bundles
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2020-12-22 15:43:41 +01:00
dependabot[bot] 33d0de7cb0 Bump markdown-it from 12.0.2 to 12.0.4
Bumps [markdown-it](https://github.com/markdown-it/markdown-it) from 12.0.2 to 12.0.4.
- [Release notes](https://github.com/markdown-it/markdown-it/releases)
- [Changelog](https://github.com/markdown-it/markdown-it/blob/master/CHANGELOG.md)
- [Commits](https://github.com/markdown-it/markdown-it/compare/12.0.2...12.0.4)

Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: npmbuildbot-nextcloud[bot] <npmbuildbot-nextcloud[bot]@users.noreply.github.com>
2020-12-22 08:59:30 +00:00
Julius Härtl e3f395590b
Bump bundles
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2020-12-22 09:01:52 +01:00
dependabot[bot] 4d60cabbe0 Bump entities from 2.0.3 to 2.1.0
Bumps [entities](https://github.com/fb55/entities) from 2.0.3 to 2.1.0.
- [Release notes](https://github.com/fb55/entities/releases)
- [Commits](https://github.com/fb55/entities/compare/v2.0.3...v2.1.0)

Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: npmbuildbot-nextcloud[bot] <npmbuildbot-nextcloud[bot]@users.noreply.github.com>
2020-12-22 07:12:47 +00:00
Julius Härtl b9fa0c370d Bump sass-loader
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2020-12-21 23:44:43 +01:00
dependabot[bot] b252700290 Bump vue-loader from 15.9.3 to 15.9.6
Bumps [vue-loader](https://github.com/vuejs/vue-loader) from 15.9.3 to 15.9.6.
- [Release notes](https://github.com/vuejs/vue-loader/releases)
- [Changelog](https://github.com/vuejs/vue-loader/blob/master/CHANGELOG.md)
- [Commits](https://github.com/vuejs/vue-loader/compare/v15.9.3...v15.9.6)

Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: npmbuildbot-nextcloud[bot] <npmbuildbot-nextcloud[bot]@users.noreply.github.com>
2020-12-21 21:03:19 +00:00
Julius Härtl d7b1f7900e
Revert removal of transformResponse
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2020-12-17 10:47:24 +01:00
dependabot[bot] 9d1deccdea Bump prosemirror-model from 1.11.0 to 1.13.0
Bumps [prosemirror-model](https://github.com/prosemirror/prosemirror-model) from 1.11.0 to 1.13.0.
- [Release notes](https://github.com/prosemirror/prosemirror-model/releases)
- [Changelog](https://github.com/ProseMirror/prosemirror-model/blob/master/CHANGELOG.md)
- [Commits](https://github.com/prosemirror/prosemirror-model/compare/1.11.0...1.13.0)

Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: npmbuildbot-nextcloud[bot] <npmbuildbot-nextcloud[bot]@users.noreply.github.com>
2020-12-14 10:24:05 +00:00
dependabot[bot] cb6650aca4 Bump core-js from 3.6.5 to 3.8.1
Bumps [core-js](https://github.com/zloirock/core-js) from 3.6.5 to 3.8.1.
- [Release notes](https://github.com/zloirock/core-js/releases)
- [Changelog](https://github.com/zloirock/core-js/blob/master/CHANGELOG.md)
- [Commits](https://github.com/zloirock/core-js/compare/v3.6.5...v3.8.1)

Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: npmbuildbot-nextcloud[bot] <npmbuildbot-nextcloud[bot]@users.noreply.github.com>
2020-12-14 07:41:39 +00:00
Julius Härtl 8322ee2df8
Bump bundles
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2020-12-02 15:31:49 +01:00
Roeland Jago Douma ddca81d99c
Move away from GET
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>
2020-11-18 21:52:55 +01:00
npmbuildbot-nextcloud[bot] ed00ff6867 Compile assets
Signed-off-by: npmbuildbot-nextcloud[bot] <npmbuildbot-nextcloud[bot]@users.noreply.github.com>
2020-11-17 14:26:56 +00:00
dependabot[bot] 54c147215e Bump tiptap-utils from 1.10.4 to 1.11.0
Bumps [tiptap-utils](https://github.com/ueberdosis/tiptap) from 1.10.4 to 1.11.0.
- [Release notes](https://github.com/ueberdosis/tiptap/releases)
- [Commits](https://github.com/ueberdosis/tiptap/compare/tiptap-utils@1.10.4...tiptap-utils@1.11.0)

Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: npmbuildbot-nextcloud[bot] <npmbuildbot-nextcloud[bot]@users.noreply.github.com>
2020-11-17 12:07:33 +00:00
dependabot[bot] bbf9c7b73d Bump tiptap-commands from 1.14.6 to 1.15.0
Bumps [tiptap-commands](https://github.com/ueberdosis/tiptap) from 1.14.6 to 1.15.0.
- [Release notes](https://github.com/ueberdosis/tiptap/releases)
- [Commits](https://github.com/ueberdosis/tiptap/compare/tiptap-commands@1.14.6...tiptap-commands@1.15.0)

Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: npmbuildbot-nextcloud[bot] <npmbuildbot-nextcloud[bot]@users.noreply.github.com>
2020-11-17 11:41:58 +00:00
dependabot[bot] 4e824717ad Bump @nextcloud/axios from 1.3.3 to 1.5.0
Bumps [@nextcloud/axios](https://github.com/nextcloud/nextcloud-axios) from 1.3.3 to 1.5.0.
- [Release notes](https://github.com/nextcloud/nextcloud-axios/releases)
- [Changelog](https://github.com/nextcloud/nextcloud-axios/blob/master/CHANGELOG.md)
- [Commits](https://github.com/nextcloud/nextcloud-axios/compare/v1.3.3...v1.5.0)

Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: npmbuildbot-nextcloud[bot] <npmbuildbot-nextcloud[bot]@users.noreply.github.com>
2020-11-17 11:23:03 +00:00
Julius Härtl 5fa0fd3055
Bump bundles
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2020-11-17 11:00:08 +01:00
dependabot[bot] 6d678919c1 Bump @nextcloud/l10n from 1.3.0 to 1.4.1
Bumps [@nextcloud/l10n](https://github.com/nextcloud/nextcloud-l10n) from 1.3.0 to 1.4.1.
- [Release notes](https://github.com/nextcloud/nextcloud-l10n/releases)
- [Changelog](https://github.com/nextcloud/nextcloud-l10n/blob/master/CHANGELOG.md)
- [Commits](https://github.com/nextcloud/nextcloud-l10n/compare/v1.3.0...v1.4.1)

Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: npmbuildbot-nextcloud[bot] <npmbuildbot-nextcloud[bot]@users.noreply.github.com>
2020-11-17 09:24:57 +00:00
Julius Härtl 713cd03334
Bump bundles
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2020-11-17 09:37:45 +01:00
Julius Härtl 22e06bcbf9
Bump bundles
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2020-11-12 09:19:39 +01:00
Julius Härtl 9b843505d7
Bump bundles
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2020-10-08 14:57:05 +02:00
dependabot[bot] ca9ef9d8d3 Bump tiptap-extensions from 1.32.2 to 1.33.1
Bumps [tiptap-extensions](https://github.com/ueberdosis/tiptap) from 1.32.2 to 1.33.1.
- [Release notes](https://github.com/ueberdosis/tiptap/releases)
- [Commits](https://github.com/ueberdosis/tiptap/compare/tiptap-extensions@1.32.2...tiptap-extensions@1.33.1)

Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: npmbuildbot[bot] <npmbuildbot[bot]@users.noreply.github.com>
2020-10-08 09:53:38 +00:00
dependabot[bot] 87e9f0ec72 Bump tiptap from 1.29.4 to 1.30.0
Bumps [tiptap](https://github.com/ueberdosis/tiptap) from 1.29.4 to 1.30.0.
- [Release notes](https://github.com/ueberdosis/tiptap/releases)
- [Commits](https://github.com/ueberdosis/tiptap/compare/tiptap@1.29.4...tiptap@1.30.0)

Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: npmbuildbot[bot] <npmbuildbot[bot]@users.noreply.github.com>
2020-10-08 09:25:43 +00:00
dependabot[bot] eb00a6fa70 Bump prosemirror-view from 1.15.2 to 1.16.0
Bumps [prosemirror-view](https://github.com/prosemirror/prosemirror-view) from 1.15.2 to 1.16.0.
- [Release notes](https://github.com/prosemirror/prosemirror-view/releases)
- [Changelog](https://github.com/ProseMirror/prosemirror-view/blob/master/CHANGELOG.md)
- [Commits](https://github.com/prosemirror/prosemirror-view/compare/1.15.2...1.16.0)

Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: npmbuildbot[bot] <npmbuildbot[bot]@users.noreply.github.com>
2020-10-07 06:00:42 +00:00
Julius Härtl e60e2857ab
Bump bundles
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2020-09-29 13:08:51 +02:00
Julius Härtl 5234018315
Bump bundles
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2020-09-25 10:42:08 +02:00
Daniel Kesselberg 88499666af Check if error is ocs response on workspace request
Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
2020-09-21 21:22:03 +02:00
dependabot[bot] 5b8ffa2b84 Bump vue and vue-template-compiler
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-10 07:13:29 +00:00
dependabot[bot] 55782a128d Bump @nextcloud/vue from 2.3.0 to 2.6.4
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-10 06:28:27 +00:00
Julius Härtl f6699d742f
Bump bundles
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2020-09-09 09:25:08 +02:00
Julius Härtl 928590d922
Bump bundles
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2020-09-08 15:23:14 +02:00
Julius Härtl a4e16757d4
Bump bundles
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2020-08-25 20:56:12 +02:00
dependabot[bot] bef8e5df0e Bump tiptap-commands from 1.14.4 to 1.14.6
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-24 05:58:47 +00:00
Azul d264c9affc highlight active heading in menu bar
Signed-off-by: Azul <azul@riseup.net>
Signed-off-by: npmbuildbot[bot] <npmbuildbot[bot]@users.noreply.github.com>
2020-08-17 11:36:05 +00:00
Azul d03c65ad93
cleanup: remove confusing paragraph button
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-13 07:58:35 +02:00
npmbuildbot[bot] a3dcb4fb39 Compile assets
Signed-off-by: npmbuildbot[bot] <npmbuildbot[bot]@users.noreply.github.com>
2020-08-11 15:18:32 +00:00
Azul e955b5af37 fix: use Viewer state to determine current dir
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-11 16:09:44 +02:00
azul 7d5f0db033 Update src/helpers/links.js
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-11 15:48:13 +02:00
Azul 97de93049b update title when following links
Signed-off-by: Azul <azul@riseup.net>
2020-08-11 15:47:39 +02:00
Azul fd5942359b detect local links and open in Viewer right away.
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-11 15:47:06 +02:00
Azul 1e596cb9b1 ensure copy is translateable
Signed-off-by: Azul <azul@riseup.net>
2020-08-11 15:46:34 +02:00
Azul 611b799b81 links with complete urls
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-11 15:44:33 +02:00
Azul a188b74d3c Follow links inside the viewer
rather than opening a completely new page

Signed-off-by: Azul <azul@riseup.net>
2020-08-11 15:44:03 +02:00
Azul 5349987621 calculate dir for relative links
Signed-off-by: Azul <azul@riseup.net>
2020-08-11 15:43:33 +02:00
Azul 56701f9e7b open relative links in new tab on middle click
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-11 15:42:35 +02:00
Azul 8640eaa2ff open local links in same tab
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-11 15:41:39 +02:00
Azul 59182ba93f rewrite links to local files
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-11 15:26:25 +02:00
Azul 9dfc8cd64d refactor: define our own Link mark to rewrite hrefs
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-11 15:25:54 +02:00