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
2022-03-08refactor: extract logic into computedperformance/postpone/rendering-menubarMax
Also rename `initialLoading` in `EditorWrapper` to `contentLoaded`. This flag is set during the `initialLoading` state change. It does indicates that the loading happened Use the past tense to indicate that. The editor wrapper is now loading in different steps. The menus will load after the content. So `content` seems more fitting then `initial`. Signed-off-by: Max <max@nextcloud.com>
2022-03-07display content first and then load menusMax
Rendering the menubar and menububble takes a significant amount of time. First display the content and then render the menus. Signed-off-by: Max <max@nextcloud.com>
2022-03-02fix: do not try to send steps to a read only docMax
Cypress tests were failing because they triggered editor.focus on a read only doc. Focus seems to cause sendable steps - maybe because the current cursor changes. Prevent this on various levels: * Do not autofocus read only docs. * Do not send steps to read only docs. * Handle server response with 403 without content gracefully when sending steps. The last originated here: https://github.com/nextcloud/text/blob/master/lib/Service/ApiService.php#L158 So wither the session was not valid or the document read only. Not entirely sure what best to do in this situation. Logging to console.error for now. Signed-off-by: Max <max@nextcloud.com>
2022-02-09fix: use tiptap.commands to focusMax
Either handle network errors or the response. There are three ways to handle errors and responses with axios: ``` axios.post(...).then(...).catch(...) axios.post(...).catch(...).then(...) axios.post(...).then(onResponse, onErr) ``` Use the last one. First one will catch errors triggered by the emits in the happy path with the network error handling. Second one will handle the response, even if errors have been caught. Signed-off-by: Max <max@nextcloud.com>
2022-02-09fix: use same lowlight version as tiptapMax
Lowlight 2.4.1 was causing failures with jest. Jest was unhappy with it being an ESM module: https://github.com/nextcloud/text/runs/5089748945 Do not hand around the lowlight global between EditorFactory and EditorWrapper. Tiptaps CodeBlockLowLight does not need it anyway. Signed-off-by: Max <max@nextcloud.com>
2022-02-09upgrade: syntax highlighting with tiptap2Azul
Signed-off-by: Max <max@nextcloud.com>
2022-02-09upgrade: tiptap v2Azul
Migrate the entire editor to tiptap v2. Some changes were introduces that go beyond just using the new tiptap API: *Collaboration* Port tiptap1 collaboration. We still want to use our session and sync mechanism. *Serialization* Add Markdown extension to handle serialization. Tiptap config extensions are not automatically added to the prosemirror schema anymore. The extension adds the `toMarkdown` config value to the prosemirror schema. With the new naming scheme tiptap nodes for a number of elements do not match the prosemirror names. Camelcase the marks and nodes from `defaultMarkdownSerializer` so they match the tiptap names. *Menubar* * Specify args for isActive function directly rather than setting a function. * Make use of the editor instance inside the MenuBar component. * Use the editor rather than slots for command, focused etc. * disable icons based on editor.can * Show menubar as long as submenus are open. When opening a submenu of the menubar keep track of the open menu even for the image and the remaining action menu. Also refocus the editor whenever a submenu is closed. *MenuBubble* Let tippy handle the positioning Tippy is really good at positioning the menu bubble. Remove all our workarounds and let it do its thing. In order for this to work the content of the MenuBubble actually needs to live inside the tippy-content. Tippy bases its calculations on the width of tippy-content. So if we have the content hanging in a separate div with absolute positioning tippy-content will be 0x0 px and not represent the actual width of the menu bubble. *Upgrade image node and ImageView.* Quite a bit of the syntax changed. We now need a wrapping `<node-view-wrapper>` element. Pretty good docs at https://tiptap.dev/guide/node-views/vue#render-a-vue-component We also need to handle the async action. It will run the action on it's own. So in `clickIcon()` we need to test if the action returned anything. Tiptap v1 had inline images. v2 keeps them outside of paragraphs by default. Configure Image node to use inline images as markdownit creates inline images right now. *Trailing Node* Tiptap v2 does not ship the trailing node extension anymore. Included the one from the demos and turned it from typescript into javascript. *Tests* In order to isolate some problems tests were added. The tests in Undeline.spec.js were green right from the beginning. They are not related to the fix and only helped isolate the problem. Also introduced a cypress test for Lists that tests the editor without rendering the page and logging in. It is very fast and fairly easy to write. *Refactorings* * Split marks into separate files. Signed-off-by: Max <max@nextcloud.com>
2022-01-24handle __ as underline when loading markdown filesMax
Signed-off-by: Max <max@nextcloud.com>
2022-01-24refactor: move markdownit to its own directoryMax
Signed-off-by: Max <max@nextcloud.com>
2022-01-24ui: vertical center avatar and save status in menu barMax
Signed-off-by: Max <max@nextcloud.com>
2022-01-24fix feedbackLuka Trovic
Signed-off-by: Luka Trovic <luka@nextcloud.com> Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
2022-01-22Bump @nextcloud/webpack-vue-config from 4.3.0 to 4.3.2dependabot[bot]
Bumps [@nextcloud/webpack-vue-config](https://github.com/nextcloud/webpack-vue-config) from 4.3.0 to 4.3.2. - [Release notes](https://github.com/nextcloud/webpack-vue-config/releases) - [Changelog](https://github.com/nextcloud/webpack-vue-config/blob/master/CHANGELOG.md) - [Commits](https://github.com/nextcloud/webpack-vue-config/compare/v4.3.0...v4.3.2) --- updated-dependencies: - dependency-name: "@nextcloud/webpack-vue-config" dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
2022-01-13hand the content wrapper to the menububble explicitlyAzul
Signed-off-by: Azul <azul@riseup.net> Signed-off-by: Julien Veyssier <eneiluj@posteo.net>
2022-01-13update offline state message when savingLuka Trovic
Signed-off-by: Luka Trovic <luka@nextcloud.com>
2022-01-03fix some psalm false positivesJulien Veyssier
Signed-off-by: Julien Veyssier <eneiluj@posteo.net> Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
2021-12-28Fix autofocus on empty documents without a node (Fixes: #1974)Jonas Meurer
Signed-off-by: Jonas Meurer <jonas@freesources.org>
2021-12-14Make info icon the last item of the formatting barJonas Meurer
Signed-off-by: Jonas Meurer <jonas@freesources.org>
2021-12-13Add formatting help modal (Fixes: #1941)Jonas Meurer
Signed-off-by: Jonas Meurer <jonas@freesources.org>
2021-12-04Fix javascript linting warningsJonas Meurer
Signed-off-by: Jonas Meurer <jonas@freesources.org>
2021-11-30Document keyboard shortcuts in tooltips (#1941)Jonas Meurer
Doesn't show the shortcuts on mobile (they don't apply there). Signed-off-by: Jonas Meurer <jonas@freesources.org>
2021-11-05Bump bundlesJulius Härtl
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2021-10-25Only show image author annotations if neededJulius Härtl
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2021-10-21make collabora on top of text idle messageLuka Trovic
Signed-off-by: Luka Trovic <luka@nextcloud.com>
2021-08-26Bump @nextcloud/babel-config from 1.0.0-beta.1 to 1.0.0dependabot[bot]
Bumps [@nextcloud/babel-config](https://github.com/nextcloud/babel-config) from 1.0.0-beta.1 to 1.0.0. - [Release notes](https://github.com/nextcloud/babel-config/releases) - [Commits](https://github.com/nextcloud/babel-config/commits) --- updated-dependencies: - dependency-name: "@nextcloud/babel-config" dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
2021-08-25Apply lint fixesJulius Härtl
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2021-08-23Bump @nextcloud/webpack-vue-config from 4.0.3 to 4.1.0dependabot[bot]
Bumps [@nextcloud/webpack-vue-config](https://github.com/nextcloud/webpack-vue-config) from 4.0.3 to 4.1.0. - [Release notes](https://github.com/nextcloud/webpack-vue-config/releases) - [Commits](https://github.com/nextcloud/webpack-vue-config/compare/v4.0.3...v4.1.0) --- updated-dependencies: - dependency-name: "@nextcloud/webpack-vue-config" dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
2021-08-17Fix header popover in file browserCarl Schwan
Signed-off-by: Carl Schwan <carl@carlschwan.eu>
2021-08-02fix: resolve relative image path based on currentDirectory optionAzul
This approach is more reliable because it does not rely on the files app. Therefor it also works in `talk` and `collectives`. Fixes #1780. Use the currentDirectory to determine dav paths for gif files and display the animated gif via dav rather than the preview that lacks animation. Also display webp files with dav urls. Fixes #1655. Signed-off-by: Azul <azul@riseup.net>
2021-07-15Add emoji picker to menubar (Fixes: #987)Jonas Meurer
Signed-off-by: Jonas Meurer <jonas@freesources.org>
2021-07-15fix: rich workspaces overlap with new file dropdownGary Kim
Signed-off-by: Gary Kim <gary@garykim.dev>
2021-07-14Bump bundlesJulius Härtl
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2021-07-08Some Design fixesszaimen
Signed-off-by: szaimen <szaimen@e.mail.de> Signed-off-by: npmbuildbot-nextcloud[bot] <npmbuildbot-nextcloud[bot]@users.noreply.github.com>
2021-05-12Bump core-js from 3.10.1 to 3.12.1dependabot[bot]
Bumps [core-js](https://github.com/zloirock/core-js/tree/HEAD/packages/core-js) from 3.10.1 to 3.12.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/commits/v3.12.1/packages/core-js) Signed-off-by: dependabot[bot] <support@github.com> Signed-off-by: npmbuildbot-nextcloud[bot] <npmbuildbot-nextcloud[bot]@users.noreply.github.com>
2021-04-21Bump @nextcloud/browserslist-config from 1.0.0 to 2.1.0dependabot[bot]
Bumps [@nextcloud/browserslist-config](https://github.com/nextcloud/browserslist-config) from 1.0.0 to 2.1.0. - [Release notes](https://github.com/nextcloud/browserslist-config/releases) - [Commits](https://github.com/nextcloud/browserslist-config/compare/v1.0.0...v2.1.0) Signed-off-by: dependabot[bot] <support@github.com> Signed-off-by: npmbuildbot-nextcloud[bot] <npmbuildbot-nextcloud[bot]@users.noreply.github.com>
2021-04-16Bump all minor dependency updatesJulius Härtl
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2021-04-13Bump @nextcloud/vue from 3.7.2 to 3.9.0dependabot[bot]
Bumps [@nextcloud/vue](https://github.com/nextcloud/nextcloud-vue) from 3.7.2 to 3.9.0. - [Release notes](https://github.com/nextcloud/nextcloud-vue/releases) - [Changelog](https://github.com/nextcloud/nextcloud-vue/blob/master/CHANGELOG.md) - [Commits](https://github.com/nextcloud/nextcloud-vue/compare/v3.7.2...v3.9.0) Signed-off-by: dependabot[bot] <support@github.com> Signed-off-by: npmbuildbot-nextcloud[bot] <npmbuildbot-nextcloud[bot]@users.noreply.github.com>
2021-03-12Bump core-js from 3.8.1 to 3.9.1dependabot[bot]
Bumps [core-js](https://github.com/zloirock/core-js/tree/HEAD/packages/core-js) from 3.8.1 to 3.9.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/commits/v3.9.1/packages/core-js) Signed-off-by: dependabot[bot] <support@github.com> Signed-off-by: npmbuildbot-nextcloud[bot] <npmbuildbot-nextcloud[bot]@users.noreply.github.com>
2021-03-12Bump @nextcloud/vue from 3.3.2 to 3.7.2dependabot[bot]
Bumps [@nextcloud/vue](https://github.com/nextcloud/nextcloud-vue) from 3.3.2 to 3.7.2. - [Release notes](https://github.com/nextcloud/nextcloud-vue/releases) - [Changelog](https://github.com/nextcloud/nextcloud-vue/blob/master/CHANGELOG.md) - [Commits](https://github.com/nextcloud/nextcloud-vue/compare/v3.3.2...v3.7.2) Signed-off-by: dependabot[bot] <support@github.com> Signed-off-by: npmbuildbot-nextcloud[bot] <npmbuildbot-nextcloud[bot]@users.noreply.github.com>
2021-01-13Bump bundlesJulius Härtl
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2021-01-13Bump bundlesJulius Härtl
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2021-01-05Bump axios from 0.21.0 to 0.21.1dependabot[bot]
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>
2020-12-22Bump 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-14Bump core-js from 3.6.5 to 3.8.1dependabot[bot]
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-11-17Bump bundlesJulius Härtl
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2020-10-08Bump tiptap-extensions from 1.32.2 to 1.33.1dependabot[bot]
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-09-29Bump bundlesJulius Härtl
Signed-off-by: Julius Härtl <jus@bitgrid.net>
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-08-11Bump bundlesJulius Härtl
Signed-off-by: Julius Härtl <jus@bitgrid.net>