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-06-05Fix cypress scripts for local run + Add documentationFerdinand Thiessen
Fix the scripts for local cypress runs, they need to be run within the `npm run` environment, as the nextcloud webpack config requires the `npm_package_name` variable to be set. Also a up-to-date nextcloud instance is required for testing text at the current git head, so updated the dockerfile and docker-compose files to create a nextcloud image from current git head. Additionally updated the tests to use cypress 10.x and added missing documentation on how to run the cypress tests. Signed-off-by: Ferdinand Thiessen <rpm@fthiessen.de>
2022-05-26♻️ (#2345): make Callout as a componentVinicius Reis
Signed-off-by: Vinicius Reis <vinicius.reis@nextcloud.com>
2022-05-25💚 (#2345): fix inconsistent testVinicius Reis
Signed-off-by: Vinicius Reis <vinicius.reis@nextcloud.com>
2022-05-24✅ (#2345): fix workspace testsVinicius Reis
Signed-off-by: Vinicius Reis <vinicius.reis@nextcloud.com>
2022-05-24🚧 (#2345): workspace testsVinicius Reis
Signed-off-by: Vinicius Reis <vinicius.reis@nextcloud.com>
2022-04-26✅ fix some cypress testsVinicius Reis
Signed-off-by: Vinicius Reis <vinicius.reis@nextcloud.com>
2022-04-25force click on menu buttons when they are hidden (in the dropdown)Julien Veyssier
Signed-off-by: Julien Veyssier <eneiluj@posteo.net>
2022-03-31feature: button to remove tableMax
Hide it in table settings so it is harder to hit by accident. Undo still works - but still - it is quite a destructive action. Signed-off-by: Max <max@nextcloud.com>
2022-03-14✅ (#2184): add callouts cypress testsVinicius Reis
Signed-off-by: Vinicius Reis <vinicius.reis@nextcloud.com>
2022-03-03fix: workspace with Readme.md open details.Max
Do not show the spinning wheel unless the file actually changed. * Resolves #2215. * Targets: master. Opening Readme.md in the sidebar triggers a PROPFIND. We parse its response just like the initial file list load. Readme.md is part of the response and our handler attempts to open it. Only set the vm.ready if the file actually changed. Only a changed file will make the editor load again. Only then will it set ready to true and stop the spinning wheel. Signed-off-by: Max <max@nextcloud.com>
2022-03-02ui: use list icon for tasklistsMax
Using `mdiOrderBoolAscendingVariant` as suggested in #2018. Fixes #2018 together with the previous commit. Signed-off-by: Max <max@nextcloud.com>
2022-03-02fix: indicator of the task list.Max
See #2018. Use tiptap TaskList and TaskItem. Markdown-it happily mixes tasks and bullet points in the same list. Tiptap lists are strictly separated. Split bullet and tasks into BulletList and TaskList in markdown-io. Just like this will turn into three different lists: * one - two + three This will now also turn into three different lists with the middle one being a task list: * first list * [ ] todo * [x] done * third list Signed-off-by: Max <max@nextcloud.com>
2022-03-02fix: workspace with alternative file namesMax
Signed-off-by: Max <max@nextcloud.com>
2022-03-02use filelist PROPFIND for loading workspaceMax
See #2171. Even though this is meant to improve load times I did not observe any improvements locally. I suspect that is because the workspace was loaded in parallel with the PROPFIND anyway. Experience may differ in production environments obviously. It is still one request less and the code also seems more clean. 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-13fix: 2020 let heading menu overflow workspaceAzul
* roll back parts of #1903 that broke it again. * Calculate top of menububble based on scrollHeight of content-wrapper. * Always display menububble below selected line. This will make it less likely to conflict with the menubar or mobile copy and paste toolbars. * Add cypress tests for the workspace. Signed-off-by: Azul <azul@riseup.net>