Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: nextcloud-libraries/nextcloud-dialogs
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v4.2.7
Choose a base ref
...
head repository: nextcloud-libraries/nextcloud-dialogs
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v5.0.0
Choose a head ref
Loading
Showing with 9,880 additions and 2,256 deletions.
  1. +100 −0 .github/workflows/command-l10n-update.yml
  2. +51 −0 .github/workflows/documentation.yml
  3. +48 −0 .github/workflows/lint-stylelint.yml
  4. +65 −0 .github/workflows/node-test.yml
  5. +0 −44 .github/workflows/node-when-unrelated.yml
  6. +0 −71 .github/workflows/node.yml
  7. +2 −2 .github/workflows/npm-audit-fix.yml
  8. +17 −6 .github/workflows/npm-publish.yml
  9. +0 −65 .github/workflows/static-pages.yml
  10. +143 −6 CHANGELOG.md
  11. +85 −6 README.md
  12. +29 −19 build/extract-l10n.js
  13. +111 −3 l10n/ar.pot
  14. +112 −3 l10n/cs_CZ.pot
  15. +114 −3 l10n/de.pot
  16. +115 −3 l10n/de_DE.pot
  17. +112 −3 l10n/en_GB.pot
  18. +112 −3 l10n/es.pot
  19. +113 −3 l10n/fr.pot
  20. +111 −3 l10n/gl.pot
  21. +67 −22 l10n/messages.pot
  22. +112 −3 l10n/ru.pot
  23. +111 −3 l10n/sr.pot
  24. +111 −3 l10n/sv.pot
  25. +112 −3 l10n/tr.pot
  26. +112 −3 l10n/zh_CN.pot
  27. +111 −3 l10n/zh_HK.pot
  28. +111 −3 l10n/zh_TW.pot
  29. +0 −190 lib/components/DialogBase.vue
  30. +0 −29 lib/components/DialogButton.vue
  31. +9 −1 lib/components/FilePicker/FileList.scss
  32. +218 −0 lib/components/FilePicker/FileList.spec.ts
  33. +142 −54 lib/components/FilePicker/FileList.vue
  34. +15 −0 lib/components/FilePicker/FileListIcon.module.scss
  35. +147 −0 lib/components/FilePicker/FileListRow.spec.ts
  36. +56 −28 lib/components/FilePicker/FileListRow.vue
  37. +113 −34 lib/components/FilePicker/FilePicker.vue
  38. +18 −7 lib/components/FilePicker/FilePickerBreadcrumbs.vue
  39. +16 −4 lib/components/FilePicker/FilePickerNavigation.vue
  40. +54 −0 lib/components/FilePicker/FilePreview.vue
  41. +23 −3 lib/components/FilePicker/LoadingTableRow.vue
  42. +45 −0 lib/components/FilePicker/index.ts
  43. +67 −0 lib/components/types.ts
  44. +203 −0 lib/composables/dav.spec.ts
  45. +28 −29 lib/{usables → composables}/dav.ts
  46. +68 −0 lib/composables/filesSettings.spec.ts
  47. +128 −0 lib/composables/filesSettings.ts
  48. +90 −0 lib/composables/filesViews.spec.ts
  49. +58 −0 lib/composables/mime.spec.ts
  50. 0 lib/{usables → composables}/mime.ts
  51. +115 −0 lib/composables/preview.spec.ts
  52. +95 −0 lib/composables/preview.ts
  53. +288 −0 lib/filepicker-builder.ts
  54. +28 −131 lib/filepicker.ts
  55. +5 −1 lib/global.d.ts
  56. +29 −6 lib/index.ts
  57. +0 −11 lib/l10n.ts
  58. +0 −205 lib/legacy.ts
  59. +9 −0 lib/svg.d.ts
  60. +26 −12 lib/toast.ts
  61. +53 −0 lib/utils/dialogs.ts
  62. +34 −0 lib/utils/l10n.ts
  63. +8 −0 lib/window.d.ts
  64. +5,296 −1,189 package-lock.json
  65. +49 −29 package.json
  66. +7 −0 transifex.yml
  67. +14 −0 tsconfig-typedoc.json
  68. +3 −0 tsconfig.json
  69. +36 −7 vite.config.ts
100 changes: 100 additions & 0 deletions .github/workflows/command-l10n-update.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,100 @@
name: Command L10n Update
on:
issue_comment:
types: [created]

jobs:
init:
runs-on: ubuntu-latest

# On pull requests and if the comment starts with `/l10n-update`
if: github.event.issue.pull_request != '' && startsWith(github.event.comment.body, '/l10n-update')

outputs:
arg1: ${{ steps.command.outputs.arg1 }}
head_ref: ${{ steps.comment-branch.outputs.head_ref }}

steps:
- name: Add reaction on start
uses: peter-evans/create-or-update-comment@v3
with:
token: ${{ secrets.COMMAND_BOT_PAT }}
repository: ${{ github.event.repository.full_name }}
comment-id: ${{ github.event.comment.id }}
reaction-type: "+1"

- name: Parse command
uses: skjnldsv/parse-command-comment@master
id: command

- name: Init branch
uses: xt0rted/pull-request-comment-branch@v2
id: comment-branch

process:
runs-on: ubuntu-latest
needs: init

steps:
- name: Checkout ${{ needs.init.outputs.head_ref }}
uses: actions/checkout@v3
with:
token: ${{ secrets.COMMAND_BOT_PAT }}
fetch-depth: 0
ref: ${{ needs.init.outputs.head_ref }}

- name: Setup git
run: |
git config --local user.email "nextcloud-command@users.noreply.github.com"
git config --local user.name "nextcloud-command"
- name: Read package.json node and npm engines version
uses: skjnldsv/read-package-engines-version-actions@v2
id: package-engines-versions
with:
fallbackNode: '^14'
fallbackNpm: '^7'

- name: Set up node ${{ steps.package-engines-versions.outputs.nodeVersion }}
uses: actions/setup-node@v3
with:
node-version: ${{ steps.package-engines-versions.outputs.nodeVersion }}
cache: npm

- name: Set up npm ${{ steps.package-engines-versions.outputs.npmVersion }}
run: npm i -g npm@"${{ steps.package-engines-versions.outputs.npmVersion }}"

- name: Install dependencies & build l10n
run: |
npm ci
npm run l10n:extract --if-present
- name: Commit and push default
if: ${{ needs.init.outputs.arg1 != 'fixup' && needs.init.outputs.arg1 != 'amend' }}
run: |
git add .
git commit --signoff -m 'Updating l10n asset'
git push origin ${{ needs.init.outputs.head_ref }}
- name: Commit and push fixup
if: ${{ needs.init.outputs.arg1 == 'fixup' }}
run: |
git add .
git commit --fixup=HEAD --signoff
git push origin ${{ needs.init.outputs.head_ref }}
- name: Commit and push amend
if: ${{ needs.init.outputs.arg1 == 'amend' }}
run: |
git add .
git commit --amend --no-edit --signoff
git push --force origin ${{ needs.init.outputs.head_ref }}
- name: Add reaction on failure
uses: peter-evans/create-or-update-comment@v3
if: failure()
with:
token: ${{ secrets.COMMAND_BOT_PAT }}
repository: ${{ github.event.repository.full_name }}
comment-id: ${{ github.event.comment.id }}
reaction-type: "-1"
51 changes: 51 additions & 0 deletions .github/workflows/documentation.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
name: Documentation

on:
pull_request:
release:
types: [published]

jobs:
build-and-deploy:
runs-on: ubuntu-latest

name: Build and deploy
steps:
- name: Check actor permission level
# Only allow admin to deploy on release
if: github.event.release
uses: skjnldsv/check-actor-permission@e591dbfe838300c007028e1219ca82cc26e8d7c5 # v2
with:
require: admin

- name: Checkout
uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3

- name: Read package.json node and npm engines version
uses: skjnldsv/read-package-engines-version-actions@8205673bab74a63eb9b8093402fd9e0e018663a1 # v2.2
id: versions
with:
fallbackNode: '^20'
fallbackNpm: '^9'

- name: Set up node ${{ steps.versions.outputs.nodeVersion }}
uses: actions/setup-node@5e21ff4d9bc1a8cf6de233a3057d20ec6b3fb69d # v3.8.1
with:
node-version: ${{ steps.versions.outputs.nodeVersion }}

- name: Set up npm ${{ steps.versions.outputs.npmVersion }}
run: npm i -g npm@"${{ steps.versions.outputs.npmVersion }}"

- name: Install dependencies & build
run: |
npm ci
npm run build --if-present
npm run build:doc --if-present
- name: Deploy
# Only deploy on release
if: github.event.release
uses: peaceiris/actions-gh-pages@373f7f263a76c20808c831209c920827a82a2847 # v3.9.3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./dist/doc
48 changes: 48 additions & 0 deletions .github/workflows/lint-stylelint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
# This workflow is provided via the organization template repository
#
# https://github.com/nextcloud/.github
# https://docs.github.com/en/actions/learn-github-actions/sharing-workflows-with-your-organization

name: Lint stylelint

on: pull_request

permissions:
contents: read

concurrency:
group: lint-stylelint-${{ github.head_ref || github.run_id }}
cancel-in-progress: true

jobs:
lint:
runs-on: ubuntu-latest

name: stylelint

steps:
- name: Checkout
uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0

- name: Read package.json node and npm engines version
uses: skjnldsv/read-package-engines-version-actions@8205673bab74a63eb9b8093402fd9e0e018663a1 # v2.2
id: versions
with:
fallbackNode: '^20'
fallbackNpm: '^9'

- name: Set up node ${{ steps.versions.outputs.nodeVersion }}
uses: actions/setup-node@5e21ff4d9bc1a8cf6de233a3057d20ec6b3fb69d # v3
with:
node-version: ${{ steps.versions.outputs.nodeVersion }}

- name: Set up npm ${{ steps.versions.outputs.npmVersion }}
run: npm i -g npm@"${{ steps.versions.outputs.npmVersion }}"

- name: Install dependencies
env:
CYPRESS_INSTALL_BINARY: 0
run: npm ci

- name: Lint
run: npm run stylelint
65 changes: 65 additions & 0 deletions .github/workflows/node-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
name: Node tests

on:
pull_request:
push:
branches:
- main
- master
- stable*

permissions:
contents: read

concurrency:
group: node-tests-${{ github.head_ref || github.run_id }}
cancel-in-progress: true

jobs:
test:
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3

- name: Read package.json node and npm engines version
uses: skjnldsv/read-package-engines-version-actions@8205673bab74a63eb9b8093402fd9e0e018663a1 # v2.2
id: versions
with:
fallbackNode: '^20'
fallbackNpm: '^9'

- name: Set up node ${{ steps.versions.outputs.nodeVersion }}
uses: actions/setup-node@5e21ff4d9bc1a8cf6de233a3057d20ec6b3fb69d # v3.8.1
with:
node-version: ${{ steps.versions.outputs.nodeVersion }}

- name: Set up npm ${{ steps.versions.outputs.npmVersion }}
run: npm i -g npm@"${{ steps.versions.outputs.npmVersion }}"

- name: Install dependencies & build
run: |
npm ci
npm run build --if-present
- name: Test
run: npm run test --if-present

- name: Test and process coverage
run: npm run test:coverage --if-present

- name: Collect coverage
uses: codecov/codecov-action@eaaf4bedf32dbdc6b720b63067d99c4d77d6047d # v3.1.4
with:
files: ./coverage/clover.xml

summary:
runs-on: ubuntu-latest
needs: test
if: always()

name: test-summary
steps:
- name: Summary status
run: if ${{ needs.test.result != 'success' && needs.test.result != 'skipped' }}; then exit 1; fi
44 changes: 0 additions & 44 deletions .github/workflows/node-when-unrelated.yml

This file was deleted.

71 changes: 0 additions & 71 deletions .github/workflows/node.yml

This file was deleted.

Loading