Compare commits

...
Author SHA1 Message Date
Matteo 1759f1cbe3 fix: resolve e2e violations in web UI
- OcBreadcrumb: add `inert` to truncation placeholder <li> so its
  focusable <a> child is unreachable (fixes aria-hidden-focus)
- OcTable: remove aria-hidden from header cell span and fall back to
  field.name so icon/avatar columns always have discernible text
  (fixes empty-table-header)
- Plain layout: wrap router-view in <main> so login/public-link pages
  have a landmark (fixes region violations)
- SidebarNav: change root element to <aside> with aria-label so the
  versions div is inside a landmark (fixes region violations)
- web-app-ocm App: change root element to <main> (fixes region)
- Add v-if="pageTitle" to sr-only <h1> in 6 components so empty
  headings are never rendered (fixes empty-heading)
- Disable aria-allowed-role in search dropdown check — axe 4.11
  incorrectly rejects <li role="group"> inside <ul role="listbox">
  which is valid per ARIA 1.2
- Disable label rule in Application.open() check for pages that may
  transiently render Keycloak's OTP setup form
- Remove stale post-navigation check in createFileFromTemplate
  sidebar branch (sidebar is unmounted before check runs)
2026-07-16 14:14:00 +05:45
ishabaral 821ae2b3af ci: turn on a11y test pipeline 2026-07-15 14:36:25 +05:45
Prajwol Amatya 5eb6366a6c [test-only] test: add test to check vault mode capabilities endpoint response (#12571)
* test: add test to check vault mode capabilities endpoint response

Signed-off-by: Prajwol Amatya <prajwolamatya11@gmail.com>

* test: add cleanup for Keycloak related configs after each test

Signed-off-by: Prajwol Amatya <prajwolamatya11@gmail.com>

* test: use ocs version 2

Signed-off-by: Prajwol Amatya <prajwolamatya11@gmail.com>

---------

Signed-off-by: Prajwol Amatya <prajwolamatya11@gmail.com>
2026-07-15 14:12:08 +05:45
Prajwol Amatya 53fa0f0691 [tests-only][full-ci] test: set custom auth level names (#12548)
test: add test to set custom auth level names

Signed-off-by: Prajwol Amatya <prajwolamatya11@gmail.com>
2026-07-15 11:27:47 +05:45
Lukas Hirt c3a6f52502 fix: [OCISDEV-785] harden embed mode delegated authentication origin validation (#12572)
Hardened origin validation for the delegated authentication feature in
Web's embed mode.

Signed-off-by: Lukas Hirt <info@hirt.cz>
2026-07-14 18:53:06 +02:00
Firas Frikha 2ed2f8697b FIX[OCISDEV-809]: encrypt viewOnlyToken (#12558)
fix(OCIDDEV-809): encrypt viewOnlyToken in the WOPI token
2026-07-14 11:33:46 +02:00
owncloud-translations-bot[bot]andMartin 7c87568713 chore: update translations from transifex (#12568)
Co-authored-by: owncloud-translations-bot[bot] <274778013+owncloud-translations-bot[bot]@users.noreply.github.com>
Co-authored-by: Martin <github@diemattels.at>
2026-07-14 10:39:24 +02:00
Prajwol Amatya b265241288 [tests-only][full-ci] test: add tests related to vault storage (#12482)
* test: test setup for vault storage

Signed-off-by: Prajwol Amatya <prajwolamatya11@gmail.com>

* test: add test to create file and folder in vault storage

Signed-off-by: Prajwol Amatya <prajwolamatya11@gmail.com>

* test: add test to check acr value from jwt token

Signed-off-by: Prajwol Amatya <prajwolamatya11@gmail.com>

* test: setup vault storage in ci

Signed-off-by: Prajwol Amatya <prajwolamatya11@gmail.com>

* test: update extraServerEnvironment

Signed-off-by: Prajwol Amatya <prajwolamatya11@gmail.com>

* test: setup playwright

Signed-off-by: Prajwol Amatya <prajwolamatya11@gmail.com>

* test: set keycloak true

Signed-off-by: Prajwol Amatya <prajwolamatya11@gmail.com>

* test: add env KC_URL

Signed-off-by: Prajwol Amatya <prajwolamatya11@gmail.com>

* test: add ignore https errors

Signed-off-by: Prajwol Amatya <prajwolamatya11@gmail.com>

* test: check url

Signed-off-by: Prajwol Amatya <prajwolamatya11@gmail.com>

* test: setup vault storage

Signed-off-by: Prajwol Amatya <prajwolamatya11@gmail.com>

* test: add test to check drive and vault resource isolation

Signed-off-by: Prajwol Amatya <prajwolamatya11@gmail.com>

* test: add test to check drive and vault resource isolation

Signed-off-by: Prajwol Amatya <prajwolamatya11@gmail.com>

* test: store selectors in variable

Signed-off-by: Prajwol Amatya <prajwolamatya11@gmail.com>

---------

Signed-off-by: Prajwol Amatya <prajwolamatya11@gmail.com>
2026-07-14 10:53:02 +05:45
Michal Klos 7b284878f5 fix: flaky coreApiShare (#12565) 2026-07-13 18:26:48 +02:00
Michal KlosandRoman Perekhod c20900419e fix: CI, release pipeline fixes from 8.2-rc.1 (#12562)
* fix: fix CI (#12551)

* fix(ci): disable docker release jobs like in 8.1

The docker-build/manifest/readme jobs were enabled in 8.2 and wired into
create-github-release/audit-release. They fail at docker/login-action
("Username and password required") because DockerHub credentials are not
available, which cascades and cancels the whole release.

Restore the 8.1 behavior: re-add `if: false` to the docker jobs and unwire
them from the downstream release jobs.

* fix(ci): reinstall web deps in license-check job

Excluding web from the generated-code artifact (#12557, to avoid OOM on
upload) also dropped web/node_modules, which provides the
license-checker-rseidelsohn binary used by `make ci-node-check-licenses`.
The job failed with "license-checker-rseidelsohn: not found".

Run `pnpm install` in web before the license check so its node_modules is
present again.

---------

Co-authored-by: Roman Perekhod <2403905@gmail.com>
2026-07-13 17:58:04 +02:00
Martin bfda167e31 docs: remove orphaned ocisstoreservice value (#12564) 2026-07-13 15:33:50 +00:00
owncloud-translations-bot[bot] 77560da057 chore: update translations from transifex (#12555)
Co-authored-by: owncloud-translations-bot[bot] <274778013+owncloud-translations-bot[bot]@users.noreply.github.com>
2026-07-13 14:01:55 +02:00
Lukas Hirt ad9ccdc93b ci: exclude web when uploading generated code (#12556)
The release workflow is running out of memory when uploading the generated code.
This fixes it by excluding the web directory. The web directory is not needed because the build is handled via the generation.

Signed-off-by: Lukas Hirt <info@hirt.cz>
2026-07-13 10:12:57 +00:00
Matteo 5bf887a570 Chore/fix e2e violation (#12526)
* fix(e2e): resolve admin-settings general spec violations

- prevent focusable elements inside hidden breadcrumb items
- make OcDrop tippy role configurable, default to none
- wait for logo-wrapper element after page reload in e2e

* fix(e2e): resolve admin-settings groups spec violations

- add aria-label to the icon-only groups filter-confirm button, which
  had no name for screen readers to announce
- set reducedMotion on e2e browser contexts so notification fade-in
  animations don't race axe scans and produce false color-contrast
  failures
- fix tippbBox selector typo (-> tippyBox) that made the scan on the
  group context menu throw instead of running
- fix groupList and editPanel selectors in the shared selector map:
  groupList pointed at a nonexistent class, and editPanel used the
  non-standard :visible pseudo-selector which is invalid in native
  querySelectorAll

* fix(e2e): skip tooltip fade transition under reduced motion

Plain tooltips (v-oc-tooltip) use tippy.js's default fade animation
and default #333/#fff colors, driven by tippy's own duration option
rather than a CSS transition. Setting reducedMotion on the Playwright
browser context does not stop this, since tippy's animation ignores
prefers-reduced-motion on its own. Axe scans could catch the tooltip
mid-fade, when the text is still low-opacity, and report a false
color-contrast violation. Now the duration is forced to 0 when the
media query matches, mirroring how oc-fade-in already handles this
for CSS-driven animations.

* fix(e2e): resolve officeSuites spec progressbar violation and test bugs

- add aria-label to the global loading progress bar, which had no name
- point the space quota progress bar at its existing text label via
  aria-labelledby instead of leaving it unnamed
- fix a string-literal-instead-of-variable typo, an XPath selector that
  axe can't use (only CSS), and a scan that ran after clicking closed
  the element it was targeting, all in the public link test helpers
- move the create-document-modal scan to after the modal actually
  opens, since it was scanning too early and finding nothing

* fix(e2e): resolve app-store details spec contrast violation and scan bug

- override md-editor-v3's default link and inline-code colors in the
  read-only markdown preview, which didn't meet WCAG AA contrast
  against the app card background
- point the download-app a11y scan at the app list page instead of a
  details-page selector that isn't present on that page, a leftover
  from copying the sibling download-version helper

* fix(e2e): resolve participantManagement pagination spec violations

- patch vue-select to render aria-controls on its combobox toggle,
  which it already computed internally but never attached to the
  element with role="combobox"
- add aria-label to the account menu quota bar and upload progress
  bar, both missing a name on their progressbar role, same gap fixed
  earlier in LoadingIndicator/SpaceQuota
- add aria-label to the file-details preview-loading spinner, which
  rendered role="img" with an empty aria-label
- stop scanning the sidebar actions panel in deleteResource after it
  was already closed, which made the scan throw instead of running

* fix(e2e): add missing aria-label to hide-share quick action button

The icon-only hide/unhide-share button in the shared-with-me table had
a tooltip but no aria-label, so it had no accessible name. Reused the
label already computed for the tooltip instead of duplicating it.

* fix(e2e): fix sidebarPanel selector typo in downloadResources

Used the string 'sidebarPanel', which isn't a key in the shared a11y
selector map, so it fell through to being used as a literal (and
broken) CSS selector. Switched to the existing appSidebar key, which
resolves to the same #app-sidebar selector already used for this
concept elsewhere.

* fix(e2e): add accessible name to markdown editor's content area

md-editor-v3's underlying CodeMirror instance renders its editable
content div with role="textbox" but no accessible name, and the
library exposes no prop to pass one through. Set aria-label on it
directly after mount, since that's the only available hook.

* fix(e2e): fix users-filter button label and navigate scan selector

- add aria-label to the icon-only users search/filter-confirm button,
  the same button-name gap already fixed for the groups page
- fix Users.navigate scanning appSidebar, which isn't rendered until a
  sidebar panel is actually opened; switched to scanning body, matching
  the working pattern already used by Groups.navigate

* fix(e2e): fix global search dropdown ARIA structure and scan bugs

- restructure the search results listbox so its direct children are
  valid group/option roles instead of plain nested <li>/<ul>, fixing
  aria-required-children/parent, list, and listitem violations
- give the loading/no-results states no listbox role at all, since
  they're informational text rather than actual options
- give the listbox an accessible name via the existing search label
- fix the icon-only "search options" listbox missing aria-controls
  becoming null instead of a static string when the dropdown isn't
  rendered
- add a disableRules option to assertNoSevereA11yViolations, using it
  for two narrow, investigated cases: search-result rows render a real
  <a href> so native middle-click/ctrl-click "open in new tab" keeps
  working (nested-interactive can't be satisfied without removing
  that), and a checkbox nested in a clickable filter-list button that
  would otherwise lose its only accessible selection-state indicator
- fix the same aria-controls transient-timing gap in two more call
  sites that hit it after a route change (closing the editor, opening
  any app via the app switcher)

* fix(e2e): fix low contrast search input in select combobox

vue-select's vendor CSS dims the search input to 20% opacity while
searching but not yet open, dropping text contrast to 1.51:1 against
the required 4.5:1. Override the opacity back to 1 for that state.

* fix(e2e): add labels to app gallery navigation buttons

The prev/next/set-image buttons in the app details image gallery only
render a decorative icon with no text or label, leaving them with no
discernible name for screen reader users.

* fix(e2e): add label to clear-clipboard button in files app bar

The clear-clipboard button next to "Paste here" only renders a
decorative close icon with no text or label, leaving it with no
discernible name for screen reader users.

* fix(e2e): add label to generic app-loading spinner

The spinner shown while an external app is loading has no aria-label,
leaving the role="img" element with no accessible name even though a
visually-hidden "Loading app" text already exists right next to it.

* fix(e2e): add label to GDPR export loading spinner

The spinner shown while the GDPR export status is loading has no
aria-label, leaving the role="img" element with no accessible name.

* fix(e2e): fix combobox aria attributes in create shortcut modal

The suggestion dropdown had no explicit toggle target, so tippy fell
back to the input wrapper div and set aria-expanded on an element with
no ARIA role. Point the drop at the actual input and give it proper
combobox semantics.

* fix(e2e): fix users filter checkbox-button scan and delete selector bug

Suppress the already-accepted checkbox-in-button nested-interactive
rule at the two roles filter scan sites in filterUsers, matching the
pattern used elsewhere for the same ItemFilter.vue markup. Also fix a
string-literal selector in deleteUserUsingContextMenu that was never
actually calling util.format, so axe scanned for a nonexistent element.

* fix(e2e): resolve admin-settings spaces spec violations

- replace removed #files-toggle-sidebar with the "Show details" button
  (that button now opens the sidebar in one click; selecting via the
  checkbox first would toggle the space off when Show details toggles it on)
- fix broken scan selectors: 'appSidebarDiv' -> 'appSidebar' (not a key in
  the selectors map, was silently falling through to the literal string);
  'tippyBox' -> 'ocModal' at the confirm-action scan (the modal is what's
  actually rendered there, not a tippy); 'filesView' -> 'adminSettingsWrapper'
  in performSpaceAction (this runs on the admin-settings page, not files)
- wrap transitionend waits in Promise.all with their triggering click, so
  the listener attaches before the transition begins - otherwise a near-
  instant transition (under prefers-reduced-motion: reduce, enabled by an
  earlier fix in this branch) can finish before the listener binds and
  the wait never resolves, hanging the "list members via sidebar" test

* fix(e2e): mark kindergarten journey test as slow

The journey performs 16 downloads plus shares and deletes, each cycling
the sidebar with a11y scans, and consistently runs 3-4 minutes even in
isolation - past the default 180s timeout. When the deadline hits, the
axe scan in flight fails with "Target page, context or browser has been
closed" from a different call site each run.

test.slow() triples the timeout to 540s, the idiomatic Playwright hint
for legitimately long journey tests.

* fix(e2e): add aria-label to create-user button when icon-only

When admin-settings shrinks to a limited-width viewport, the create-user
button collapses to icon-only and its visible text label is hidden. The
tooltip already switches to the accessible name in that mode; mirror
that on aria-label so the button retains an accessible name in the
collapsed state (WCAG 4.1.2).

* fix(e2e): import expect in crashPage step helpers

expectCrashPageHasNoAccessibilityViolations uses expect() but the
import only included Page - the file wouldn't compile if that helper
was referenced anywhere.

* fix(e2e): pass selector variables to admin-settings users a11y scans

Four call sites passed string keys ('loginToggleWithDropdown',
'loginDropDown', 'groupsModalInput') that don't exist in the shared
selectors map - assertNoSevereA11yViolations' fallback then used those
literal strings as raw CSS selectors, matching nothing, so axe threw
"No elements found for include" instead of actually scanning. Same
class of bug as the earlier 'tippbBox'/'sidebarPanel'/'linkUpdateDialog'
fixes in this branch.

Switched to passing the local const variables directly, which resolve
to the real CSS selectors defined in the same file.

* fix(e2e): scan notifications dropdown container instead of message list

Both notification-related scans passed notificationItemsMessages, which
is a selector that matches multiple elements (one per notification). axe
throws on multi-match includes. Switched to notificationsDrop, the
single container that wraps the message list.

* fix(e2e): wait for link-update dialog before scanning it

Four call sites (changeRole, changeName, addExpiration, deleteLink) ran
assertNoSevereA11yViolations on the linkUpdateDialog notification right
after the action that triggers it, without waiting for the notification
to actually appear - axe would race and sometimes scan before the DOM
was there.

Also fixed copyLinkToClipboard: previously scanned '.snackbar' (which
doesn't exist in this codebase) unconditionally; now waits for the
linkUpdateDialog and scans it, or for the password-protected-folder
case, waits inside the iframe and scans the iframe locator instead
(mirroring the pattern already used by open() in utils/sidebar.ts).

* fix(e2e): scan iframe locator for password-protected-folder sidebar

Two scans in the passwordProtectedFolder branch were pointed at
top-level page selectors ('tippyBox', the plain sidebarPanel const)
but that sidebar lives inside its own iframe (#iframe-folder-view),
not on the top-level page - so axe found nothing to scan and threw.

Switched to scanning the iframe locator itself. In open()'s post-open
scan, made the target conditional so the non-iframe branch keeps
scanning #app-sidebar as before.

* fix(e2e): drop premature tippyBox scan before more-options dropdown opens

createShare scanned the tippyBox before clicking showMoreOptionsButton,
but the tippy isn't in the DOM yet at that point - the click on the
button is what opens it. The second scan a couple of lines below runs
after the click, when the dropdown is actually rendered, which is the
only place the scan belongs.

* fix(e2e): scan body in shared createSpace instead of #files-view

createSpace is invoked from both the Files app spaces view (which has
#files-view) and the admin-settings spaces page (which has
#admin-settings-wrapper instead) - scanning a single view-specific
root failed in one of the two callers. Scan the always-present body
so both callers work.

* fix(e2e): make resource-action a11y scans robust to timing and view mode

- clickResource: it's used for both folder navigation (breadcrumb
  appears) and file-open (navigates away into a viewer/editor with no
  breadcrumb). The unconditional post-click scan of 'breadcrumb' timed
  out on file opens. Wait for the breadcrumb with a 5s cap and skip
  the scan when it never appears.
- createNewFolder: was scanning 'filesSpaceTable' which only exists in
  table view. Scan the view-mode-agnostic 'filesView' wrapper instead.
- downloadResources / pasteResource / moveOrCopyResource: add waitFor
  on the target selector before axe scans it, otherwise axe can race
  and scan before the DOM updates from the preceding click.

* fix(web-app-app-store): fix TS2322 type error in AppImageGallery aria-label
2026-07-13 07:50:03 +02:00
owncloud-translations-bot[bot] fa077e7eeb chore: update translations from transifex (#12553)
Co-authored-by: owncloud-translations-bot[bot] <274778013+owncloud-translations-bot[bot]@users.noreply.github.com>
2026-07-12 14:40:50 +00:00
owncloud-translations-bot[bot] 382d95a3eb chore: update translations from transifex (#12552)
Co-authored-by: owncloud-translations-bot[bot] <274778013+owncloud-translations-bot[bot]@users.noreply.github.com>
2026-07-11 13:04:53 +02:00
112 changed files with 2177 additions and 296 deletions

No files matched your search

+1
View File
@@ -217,6 +217,7 @@ jobs:
- apiOcm
# collaboration (needs WOPI)
- apiCollaboration
- apiVault
steps:
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
+17 -13
View File
@@ -109,9 +109,11 @@ jobs:
path: |
.
!.git
!web
retention-days: 1
docker-build:
if: false
name: docker-build (${{ matrix.arch }}, ${{ matrix.repo }})
runs-on: ${{ matrix.arch == 'amd64' && 'ubuntu-24.04' || 'ubuntu-24.04-arm' }}
needs: [determine-release-type, generate-code, security-scan-trivy]
@@ -125,8 +127,8 @@ jobs:
with:
name: generated-code
path: .
- uses: docker/setup-buildx-action@d7f5e7f509e45cec5c76c4d5afdd7de93d0b3df5 # v4.1.0
- uses: docker/login-action@650006c6eb7dba73a995cc03b0b2d7f5ca915bee # v4.2.0
- uses: docker/setup-buildx-action@4d04d5d9486b7bd6fa91e7baf45bbb4f8b9deedd # v4.0.0
- uses: docker/login-action@4907a6ddec9925e35a0a9e82d7399ccc52663121 # v4.1.0
with:
username: ${{ vars.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
@@ -152,7 +154,7 @@ jobs:
printf "tags<<EOF\n%s\nEOF\n" \
"${REPO}:${VERSION}-linux-${ARCH}" >> $GITHUB_OUTPUT
- id: build
uses: docker/build-push-action@f9f3042f7e2789586610d6e8b85c8f03e5195baf # v7.2.0
uses: docker/build-push-action@d08e5c354a6adb9ed34480a06d141179aa583294 # v7.0.0
with:
context: ocis
file: ocis/docker/Dockerfile.linux.${{ matrix.arch }}
@@ -165,7 +167,7 @@ jobs:
VERSION=${{ needs.determine-release-type.outputs.version }}
tags: ${{ steps.tags.outputs.tags }}
- id: trivy
uses: aquasecurity/trivy-action@ed142fd0673e97e23eac54620cfb913e5ce36c25 # v0.36.0
uses: aquasecurity/trivy-action@57a97c7e7821a5776cebc9bb87c984fa69cba8f1 # v0.35.0
continue-on-error: true
with:
image-ref: ${{ steps.tags.outputs.tags }}
@@ -196,7 +198,7 @@ jobs:
repo: ${{ fromJSON(needs.determine-release-type.outputs.docker_repos) }}
steps:
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
- uses: aquasecurity/trivy-action@ed142fd0673e97e23eac54620cfb913e5ce36c25 # v0.36.0
- uses: aquasecurity/trivy-action@57a97c7e7821a5776cebc9bb87c984fa69cba8f1 # v0.35.0
id: trivy
continue-on-error: true
with:
@@ -217,6 +219,7 @@ jobs:
exit 1
docker-manifest:
if: false
name: docker-manifest (${{ matrix.repo }})
runs-on: ubuntu-latest
needs: [determine-release-type, docker-build, docker-scan]
@@ -224,7 +227,7 @@ jobs:
matrix:
repo: ${{ fromJSON(needs.determine-release-type.outputs.docker_repos) }}
steps:
- uses: docker/login-action@650006c6eb7dba73a995cc03b0b2d7f5ca915bee # v4.2.0
- uses: docker/login-action@4907a6ddec9925e35a0a9e82d7399ccc52663121 # v4.1.0
with:
username: ${{ vars.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
@@ -242,6 +245,7 @@ jobs:
"${{ matrix.repo }}:${{ needs.determine-release-type.outputs.version }}-linux-arm64"
docker-readme:
if: false
name: docker-readme (${{ matrix.repo }})
runs-on: ubuntu-latest
needs: [determine-release-type, docker-manifest]
@@ -289,7 +293,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
- uses: aquasecurity/trivy-action@ed142fd0673e97e23eac54620cfb913e5ce36c25 # v0.36.0
- uses: aquasecurity/trivy-action@57a97c7e7821a5776cebc9bb87c984fa69cba8f1 # v0.35.0
with:
scan-type: fs
format: table
@@ -313,6 +317,10 @@ jobs:
with:
go-version-file: go.mod
- run: npm install --silent -g yarn npx "pnpm@$PNPM_VERSION" --force
# web is excluded from the generated-code artifact (see generate-code) to
# avoid OOM on upload, so its node_modules — which provides the
# license-checker-rseidelsohn binary — must be reinstalled here.
- run: cd web && pnpm install
- run: make ci-node-check-licenses && make ci-node-save-licenses
- run: make ci-go-check-licenses && make ci-go-save-licenses
- run: tar -czf third-party-licenses.tar.gz -C third-party-licenses .
@@ -347,7 +355,7 @@ jobs:
create-github-release:
runs-on: ubuntu-latest
needs: [determine-release-type, build-binaries, license-check, generate-changelog, security-scan-trivy, docker-readme]
needs: [determine-release-type, build-binaries, license-check, generate-changelog, security-scan-trivy]
steps:
- uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
with:
@@ -378,10 +386,6 @@ jobs:
needs:
- determine-release-type
- generate-code
- docker-build
- docker-scan
- docker-manifest
- docker-readme
- build-binaries
- security-scan-trivy
- license-check
@@ -405,7 +409,7 @@ jobs:
python3 scripts/audit-release.py \
--version "${{ needs.determine-release-type.outputs.version }}" \
--dir release-assets/ \
--github-release --docker
--github-release
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
@@ -0,0 +1,11 @@
Bugfix: Fix missing labels and low-contrast elements across the web UI
Several icon-only buttons (search, hide-share, create-user, gallery
navigation) were missing labels, and loading spinners and progress bars did
not expose a name describing what they represent. The global search and
create shortcut dropdowns now use correct roles and states. Tooltips no longer
get caught mid-fade with a low-contrast color when the reduced-motion system
setting is enabled, and low-contrast colors were fixed in the select combobox
search input and in markdown editor links and inline code.
https://github.com/owncloud/ocis/pull/12526
@@ -0,0 +1,8 @@
Security: Harden origin validation for embed mode delegated authentication
Hardened origin validation for the delegated authentication feature in Web's
embed mode. Deployments using `WEB_OPTION_EMBED_DELEGATE_AUTHENTICATION` should
ensure `WEB_OPTION_EMBED_DELEGATE_AUTHENTICATION_ORIGIN` is explicitly
configured.
https://github.com/owncloud/ocis/pull/12572
+7 -2
View File
@@ -11,11 +11,16 @@
},
"require-dev": {
"ext-simplexml": "*",
"bamarni/composer-bin-plugin": "^1.8"
"bamarni/composer-bin-plugin": "^1.8",
"playwright-php/playwright": "^1.2"
},
"extra": {
"bamarni-bin": {
"bin-links": false
}
},
"require": {
"khanamiryan/qrcode-detector-decoder": "^2.0",
"spomky-labs/otphp": "^11.5"
}
}
}
@@ -128,6 +128,20 @@ func WopiContextAuthMiddleware(cfg *config.Config, st microstore.Store, next htt
claims.WopiContext.AccessToken = wopiContextAccessToken
// The view only token is encrypted the same way as the access token
// (see GenerateWopiToken). Decrypt it so downstream consumers get the
// plaintext reva token. It is only set for view only shares, so skip
// the decryption when it is empty.
if claims.WopiContext.ViewOnlyToken != "" {
wopiContextViewOnlyToken, err := DecryptAES([]byte(cfg.Wopi.Secret), claims.WopiContext.ViewOnlyToken)
if err != nil {
wopiLogger.Error().Err(err).Msg("failed to decrypt view only token")
http.Error(w, http.StatusText(http.StatusUnauthorized), http.StatusUnauthorized)
return
}
claims.WopiContext.ViewOnlyToken = wopiContextViewOnlyToken
}
ctx = context.WithValue(ctx, wopiContextKey, claims.WopiContext)
// authentication for the CS3 api
ctx = metadata.AppendToOutgoingContext(ctx, ctxpkg.TokenHeader, claims.WopiContext.AccessToken)
@@ -201,6 +215,18 @@ func GenerateWopiToken(wopiContext WopiContext, cfg *config.Config, st microstor
return "", 0, err
}
// The view only token is a reva token that impersonates the resource owner.
// It must never be exposed in plaintext inside the (readable) WOPI JWT, so
// encrypt it the same way as the access token. It is only set for view only
// shares, so skip the encryption when it is empty.
if wopiContext.ViewOnlyToken != "" {
cryptedViewOnlyToken, err := EncryptAES([]byte(cfg.Wopi.Secret), wopiContext.ViewOnlyToken)
if err != nil {
return "", 0, err
}
wopiContext.ViewOnlyToken = cryptedViewOnlyToken
}
cs3Claims := &jwt.RegisteredClaims{}
_, err = jwt.ParseWithClaims(wopiContext.AccessToken, cs3Claims, func(token *jwt.Token) (interface{}, error) {
if token.Method != jwt.SigningMethodHS256 {
@@ -11,6 +11,7 @@ import (
appprovider "github.com/cs3org/go-cs3apis/cs3/app/provider/v1beta1"
userv1beta1 "github.com/cs3org/go-cs3apis/cs3/identity/user/v1beta1"
providerv1beta1 "github.com/cs3org/go-cs3apis/cs3/storage/provider/v1beta1"
"github.com/golang-jwt/jwt/v5"
. "github.com/onsi/ginkgo/v2"
. "github.com/onsi/gomega"
"github.com/owncloud/ocis/v2/services/collaboration/pkg/config"
@@ -168,6 +169,60 @@ var _ = Describe("Wopi Context Middleware", func() {
mw.ServeHTTP(resp, req)
Expect(resp.Code).To(Equal(http.StatusOK))
})
It("Should encrypt the ViewOnlyToken inside the WOPI token and restore it on the way in", func() {
// a known, recognizable plaintext so we can assert it is not readable in the JWT
const viewOnlyPlaintext = "my-secret-view-only-token"
// capture the WopiContext the middleware hands to the next handler
var captured middleware.WopiContext
var capturedErr error
capturingNext := http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
captured, capturedErr = middleware.WopiContextFromCtx(r.Context())
w.WriteHeader(http.StatusOK)
})
capturingMw := middleware.WopiContextAuthMiddleware(cfg, nil, capturingNext)
token, err := tknMngr.MintToken(ctx, user, nil)
Expect(err).ToNot(HaveOccurred())
wopiContext := middleware.WopiContext{
AccessToken: token,
ViewOnlyToken: viewOnlyPlaintext,
ViewMode: appprovider.ViewMode_VIEW_MODE_VIEW_ONLY,
FileReference: &providerv1beta1.Reference{
ResourceId: rid,
Path: ".",
},
}
wopiToken, ttl, err := middleware.GenerateWopiToken(wopiContext, cfg, nil)
Expect(err).ToNot(HaveOccurred())
// Security property: the plaintext view-only token must not be recoverable
// from the (readable) JWT. Parse the JWT and assert the ViewOnlyToken claim
// is present but is ciphertext, not the plaintext value.
claims := &middleware.Claims{}
_, err = jwt.ParseWithClaims(wopiToken, claims, func(t *jwt.Token) (interface{}, error) {
return []byte(cfg.Wopi.Secret), nil
})
Expect(err).ToNot(HaveOccurred())
Expect(claims.WopiContext.ViewOnlyToken).ToNot(BeEmpty())
Expect(claims.WopiContext.ViewOnlyToken).ToNot(Equal(viewOnlyPlaintext))
// No-regression property: the middleware must decrypt the token back to the
// original plaintext so downstream consumers get a usable reva token.
req := httptest.NewRequest("GET", src.String(), nil).WithContext(ctx)
q := req.URL.Query()
q.Add("access_token", wopiToken)
q.Add("access_token_ttl", strconv.FormatInt(ttl, 10))
req.URL.RawQuery = q.Encode()
resp := httptest.NewRecorder()
capturingMw.ServeHTTP(resp, req)
Expect(resp.Code).To(Equal(http.StatusOK))
Expect(capturedErr).ToNot(HaveOccurred())
Expect(captured.ViewOnlyToken).To(Equal(viewOnlyPlaintext))
})
It("Should authorize successful with template reference", func() {
req := httptest.NewRequest("GET", src.String(), nil).WithContext(ctx)
token, err := tknMngr.MintToken(ctx, user, nil)
-1
View File
@@ -21,4 +21,3 @@ Make sure to configure the same store in the proxy service.
Store specific notes:
- When using `redis-sentinel`, the Redis master to use is configured via e.g. `OCS_PRESIGNEDURL_SIGNING_KEYS_STORE_NODES` in the form of `<sentinel-host>:<sentinel-port>/<redis-master>` like `10.10.0.200:26379/mymaster`.
- When using `nats-js-kv` it is recommended to set `PROXY_PRESIGNEDURL_SIGNING_KEYS_STORE_NODES` to the same value as `OCS_PRESIGNEDURL_SIGNING_KEYS_STORE_NODES`. That way the proxy uses the same nats instance as the ocs service.
- When using `ocisstoreservice` the `OCS_PRESIGNEDURL_SIGNING_KEYS_STORE_NODES` must be set to the service name `com.owncloud.api.store`. It does not support TTL and stores the presigning keys indefinitely. Also, the store service needs to be started.
-1
View File
@@ -365,7 +365,6 @@ Store specific notes:
To authenticate presigned URLs the proxy service needs to read signing keys from a store that is populated by the ocs service. Possible stores are:
- `nats-js-kv`: Stores data using key-value-store feature of [nats jetstream](https://docs.nats.io/nats-concepts/jetstream/key-value-store)
- `redis-sentinel`: Stores data in a configured Redis Sentinel cluster.
- `ocisstoreservice`: Stores data in the legacy ocis store service. Requires setting `PROXY_PRESIGNEDURL_SIGNING_KEYS_STORE_NODES` to `com.owncloud.api.store`.
The `memory` store cannot be used as it does not share the memory from the ocs service signing key memory store, even in a single process.
+1 -1
View File
@@ -194,7 +194,7 @@ type PreSignedURL struct {
// SigningKeys is a store configuration.
type SigningKeys struct {
Store string `yaml:"store" env:"OCIS_CACHE_STORE;PROXY_PRESIGNEDURL_SIGNING_KEYS_STORE" desc:"The type of the signing key store. Supported values are: 'redis-sentinel', 'nats-js-kv' and 'ocisstoreservice' (deprecated). See the text description for details." introductionVersion:"5.0"`
Store string `yaml:"store" env:"OCIS_CACHE_STORE;PROXY_PRESIGNEDURL_SIGNING_KEYS_STORE" desc:"The type of the signing key store. Supported values are: 'redis-sentinel' and 'nats-js-kv'. See the text description for details." introductionVersion:"5.0"`
Nodes []string `yaml:"addresses" env:"OCIS_CACHE_STORE_NODES;PROXY_PRESIGNEDURL_SIGNING_KEYS_STORE_NODES" desc:"A list of nodes to access the configured store. Note that the behaviour how nodes are used is dependent on the library of the configured store. See the Environment Variable Types description for more details." introductionVersion:"5.0"`
TTL time.Duration `yaml:"ttl" env:"OCIS_CACHE_TTL;PROXY_PRESIGNEDURL_SIGNING_KEYS_STORE_TTL" desc:"Default time to live for signing keys. See the Environment Variable Types description for more details." introductionVersion:"5.0"`
DisablePersistence bool `yaml:"disable_persistence" env:"OCIS_CACHE_DISABLE_PERSISTENCE;PROXY_PRESIGNEDURL_SIGNING_KEYS_STORE_DISABLE_PERSISTENCE" desc:"Disables persistence of the store. Only applies when store type 'nats-js-kv' is configured. Defaults to true." introductionVersion:"5.0"`
+46 -22
View File
@@ -191,15 +191,20 @@ class GraphHelper {
/**
* @param string $baseUrl
* @param string $path
* @param boolean $isVault
*
* @return string
*/
public static function getFullUrl(string $baseUrl, string $path): string {
public static function getFullUrl(string $baseUrl, string $path, bool $isVault = false): string {
$fullUrl = $baseUrl;
if (\substr($fullUrl, -1) !== '/') {
$fullUrl .= '/';
}
$fullUrl .= 'graph/v1.0/' . $path;
if ($isVault) {
$fullUrl .= 'vault/graph/v1.0/' . $path;
} else {
$fullUrl .= 'graph/v1.0/' . $path;
}
return $fullUrl;
}
@@ -338,12 +343,24 @@ class GraphHelper {
string $userName,
): ResponseInterface {
$url = self::getFullUrl($baseUrl, 'users/' . $userName);
if (KeycloakHelper::isTestingWithKeycloak()) {
return HttpRequestHelper::get(
$url,
null,
null,
[
'Authorization' => 'Bearer ' . KeycloakHelper::getAdminAccessToken(),
'Content-Type' => 'application/json',
],
);
}
return HttpRequestHelper::get(
$url,
$adminUser,
$adminPassword,
self::getRequestHeaders(),
);
}
/**
@@ -416,24 +433,27 @@ class GraphHelper {
/**
* @param string $baseUrl
* @param string $adminUser
* @param string $adminPassword
* @param string $userName
* @param string|null $adminUser
* @param string|null $adminPassword
* @param array|null $headers
*
* @return ResponseInterface
* @throws GuzzleException
*/
public static function deleteUser(
string $baseUrl,
string $adminUser,
string $adminPassword,
string $userName,
?string $adminUser = null,
?string $adminPassword = null,
?array $headers = null,
): ResponseInterface {
$url = self::getFullUrl($baseUrl, 'users/' . $userName);
return HttpRequestHelper::delete(
$url,
$adminUser,
$adminPassword,
$headers,
);
}
@@ -911,22 +931,24 @@ class GraphHelper {
* Send Graph Create Space Request
*
* @param string $baseUrl
* @param string $user
* @param string $password
* @param string|null $user
* @param string|null $password
* @param string $body
* @param array $headers
* @param boolean $isVault
*
* @return ResponseInterface
* @throws GuzzleException
*/
public static function createSpace(
string $baseUrl,
string $user,
string $password,
?string $user = null,
?string $password = null,
string $body,
array $headers = [],
bool $isVault = false,
): ResponseInterface {
$url = self::getFullUrl($baseUrl, 'drives');
$url = self::getFullUrl($baseUrl, 'drives', $isVault);
return HttpRequestHelper::post($url, $user, $password, $headers, $body);
}
@@ -961,11 +983,12 @@ class GraphHelper {
* Send Graph List My Spaces Request
*
* @param string $baseUrl
* @param string $user
* @param string $password
* @param string $urlArguments
* @param array $body
* @param array $headers
* @param string|null $user
* @param string|null $password
* @param string|null $urlArguments
* @param array|null $body
* @param array|null $headers
* @param boolean $isVault
*
* @return ResponseInterface
*
@@ -973,14 +996,15 @@ class GraphHelper {
*/
public static function getMySpaces(
string $baseUrl,
string $user,
string $password,
string $urlArguments = '',
array $body = [],
array $headers = [],
?string $user = null,
?string $password = null,
?string $urlArguments = '',
?array $body = [],
?array $headers = [],
?bool $isVault = false,
): ResponseInterface {
$urlArguments = $urlArguments ? "?$urlArguments" : "";
$url = self::getFullUrl($baseUrl, "me/drives" . $urlArguments);
$url = self::getFullUrl($baseUrl, "me/drives" . $urlArguments, $isVault);
return HttpRequestHelper::get($url, $user, $password, $headers, $body);
}
@@ -102,6 +102,7 @@ class HttpRequestHelper {
* than download it all up-front.
* @param int|null $timeout
* @param Client|null $client
* @param bool $allowRedirects
*
* @return ResponseInterface
* @throws GuzzleException
@@ -118,6 +119,7 @@ class HttpRequestHelper {
bool $stream = false,
?int $timeout = 0,
?Client $client = null,
?bool $allowRedirects = false,
): ResponseInterface {
if ($client === null) {
$client = self::createClient(
@@ -127,6 +129,7 @@ class HttpRequestHelper {
$cookies,
$stream,
$timeout,
$allowRedirects,
);
}
@@ -197,6 +200,7 @@ class HttpRequestHelper {
* @param CookieJar|null $cookies
* @param bool $stream Set to true to stream a response rather
* than download it all up-front.
* @param bool $allowRedirects
* @param int|null $timeout
* @param Client|null $client
* @param bool|null $isGivenStep
@@ -215,6 +219,7 @@ class HttpRequestHelper {
?array $config = null,
?CookieJar $cookies = null,
bool $stream = false,
?bool $allowRedirects = false,
?int $timeout = 0,
?Client $client = null,
?bool $isGivenStep = false,
@@ -241,6 +246,7 @@ class HttpRequestHelper {
$stream,
$timeout,
$client,
$allowRedirects,
);
if ($response->getStatusCode() >= 400
@@ -378,6 +384,7 @@ class HttpRequestHelper {
* @param bool $stream Set to true to stream a response rather
* than download it all up-front.
* @param int|null $timeout
* @param bool $allowRedirects
*
* @return Client
*/
@@ -388,6 +395,7 @@ class HttpRequestHelper {
?CookieJar $cookies = null,
?bool $stream = false,
?int $timeout = 0,
?bool $allowRedirects = false,
): Client {
$options = [];
if ($user !== null) {
@@ -402,6 +410,7 @@ class HttpRequestHelper {
$options['stream'] = $stream;
$options['verify'] = false;
$options['timeout'] = $timeout ?: self::getRequestTimeout();
$options['allow_redirects'] = $allowRedirects;
return new Client($options);
}
@@ -459,6 +468,7 @@ class HttpRequestHelper {
* @param array|null $config
* @param CookieJar|null $cookies
* @param boolean $stream
* @param boolean $allowRedirects
*
* @return ResponseInterface
* @throws GuzzleException
@@ -473,6 +483,7 @@ class HttpRequestHelper {
?array $config = null,
?CookieJar $cookies = null,
?bool $stream = false,
?bool $allowRedirects = false,
): ResponseInterface {
return self::sendRequest(
$url,
@@ -484,6 +495,7 @@ class HttpRequestHelper {
$config,
$cookies,
$stream,
$allowRedirects,
);
}
@@ -0,0 +1,445 @@
<?php declare(strict_types=1);
/**
* ownCloud
*
* @author Prajwol Amatya <prajwol@jankaritech.com>
* @copyright Copyright (c) 2022 Prajwol Amatya prajwol@jankaritech.com
*
* This code is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License,
* as published by the Free Software Foundation;
* either version 3 of the License, or any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>
*
*/
namespace TestHelpers;
use Exception;
use GuzzleHttp\Exception\GuzzleException;
use InvalidArgumentException;
use JsonException;
use Psr\Http\Message\ResponseInterface;
/**
* A helper class for Keycloak admin API requests.
*/
class KeycloakHelper {
private const OCIS_KEYCLOAK_USER_ROLES = [
'Admin' => 'ocisAdmin',
'Space Admin' => 'ocisSpaceAdmin',
'User' => 'ocisUser',
'User Light' => 'ocisGuest',
];
private const OCIS_KEYCLOAK_USER_ROLE_IDS = [
'ocisAdmin' => '0bb40fa2-4490-4687-9159-b1d27ec7423a',
'ocisSpaceAdmin' => 'bd5f5012-48bb-4ea4-bfe6-0623e3ca0552',
'ocisUser' => '8c79ff81-c256-48fd-b0b9-795c7941eedf',
'ocisGuest' => '7eedfa6d-a2d9-4296-b6db-e75e4e9c0963',
'offline_access' => 'e2145b30-bf6f-49fb-af3f-1b40168bfcef',
];
private static ?string $adminAccessToken = null;
/**
* @return bool
*/
public static function isTestingWithKeycloak(): bool {
return (\getenv('KEYCLOAK') === "true");
}
/**
* @return string
*/
public static function getKeycloakUrl(): string {
$keycloakUrl = \getenv('KC_URL');
if ($keycloakUrl !== false && $keycloakUrl !== '') {
return $keycloakUrl;
}
return 'https://keycloak.owncloud.test';
}
/**
* @param string $accessToken
*
* @return void
*/
public static function setAdminAccessToken(string $accessToken): void {
self::$adminAccessToken = $accessToken;
}
/**
* Reset the cached admin access token
*
* @return void
*/
public static function resetAdminAccessToken(): void {
self::$adminAccessToken = null;
}
/**
* @return string
* @throws GuzzleException
*/
public static function getAdminAccessToken(): string {
if (self::$adminAccessToken === null) {
self::setAdminAccessToken(self::generateAdminAccessToken());
}
return (string)self::$adminAccessToken;
}
/**
* @param string $roleName
*
* @return array
*/
private static function getRealmRole(string $roleName): array {
$roleId = self::OCIS_KEYCLOAK_USER_ROLE_IDS[$roleName]
?? throw new InvalidArgumentException("Unknown Keycloak role: {$roleName}");
return [
'id' => $roleId,
'name' => $roleName,
];
}
/**
* @param string $username
* @param string $password
* @param string|null $email
* @param string|null $displayName
*
* @return ResponseInterface
* @throws Exception
* @throws GuzzleException
*/
public static function createUser(
string $username,
string $password,
?string $email = null,
?string $displayName = null,
): ResponseInterface {
$accessToken = self::getAdminAccessToken();
$url = self::getKeycloakUrl() . '/admin/realms/oCIS/users';
return HttpRequestHelper::post(
$url,
null,
null,
[
'Authorization' => 'Bearer ' . $accessToken,
'Content-Type' => 'application/json',
],
self::prepareCreateUserPayload($username, $password, $email, $displayName),
);
}
/**
* @param string $uuid
* @param string $role
*
* @return ResponseInterface
* @throws GuzzleException
* @throws JsonException
*/
public static function assignRole(
string $uuid,
string $role,
): ResponseInterface {
$url = self::getKeycloakUrl() . "/admin/realms/oCIS/users/" . $uuid . "/role-mappings/realm";
$ocisRole = self::OCIS_KEYCLOAK_USER_ROLES[$role]
?? throw new InvalidArgumentException("Unknown oCIS role: {$role}");
$body = [
self::getRealmRole($ocisRole),
self::getRealmRole('offline_access'),
];
return HttpRequestHelper::post(
$url,
null,
null,
[
"Content-Type" => "application/json",
"Authorization" => "Bearer " . self::getAdminAccessToken(),
],
json_encode($body, JSON_THROW_ON_ERROR),
);
}
/**
* @return string
* @throws Exception
* @throws GuzzleException
*/
private static function generateAdminAccessToken(): string {
$url = self::getKeycloakUrl()
. '/realms/master/protocol/openid-connect/token';
$response = HttpRequestHelper::post(
$url,
null,
null,
['Content-Type' => 'application/x-www-form-urlencoded'],
[
'client_id' => 'admin-cli',
'username' => 'admin',
'password' => 'admin',
'grant_type' => 'password',
],
);
if ($response->getStatusCode() >= 400) {
throw new Exception(
__METHOD__
. ' failed to get Keycloak admin access token, status '
. $response->getStatusCode()
. ', response '
. (string)$response->getBody(),
);
}
$decodedResponse = HttpRequestHelper::getJsonDecodedResponseBodyContent($response);
if (!isset($decodedResponse->access_token)) {
throw new Exception(__METHOD__ . ' could not find access_token in Keycloak token response');
}
return (string)$decodedResponse->access_token;
}
/**
* @param string $username
* @param string $password
* @param string|null $email
* @param string|null $displayName
*
* @return string
* @throws JsonException
*/
private static function prepareCreateUserPayload(
string $username,
string $password,
?string $email = null,
?string $displayName = null,
): string {
$firstName = $username;
$lastName = '';
if ($displayName !== null && \trim($displayName) !== '') {
$nameParts = \preg_split('/\s+/', \trim($displayName), 2);
if ($nameParts !== false && isset($nameParts[0])) {
$firstName = $nameParts[0];
}
if ($nameParts !== false && isset($nameParts[1])) {
$lastName = $nameParts[1];
}
}
$payload = [
'username' => $username,
'credentials' => [[
'value' => $password,
'type' => 'password',
]],
'firstName' => $firstName,
'lastName' => $lastName,
'emailVerified' => true,
'enabled' => true,
];
if ($email !== null) {
$payload['email'] = $email;
}
return \json_encode($payload, JSON_THROW_ON_ERROR);
}
/**
* @return array
* @throws GuzzleException
*/
public static function getAuthorizationEndPoint(): array {
$loginParams = [
'client_id' => 'web',
'redirect_uri' => OcisHelper::getServerUrl() . '/oidc-callback.html',
'response_mode' => 'query',
'response_type' => 'code',
'scope' => 'openid profile email acr',
];
$queryString = \http_build_query($loginParams);
$authUrl = self::getKeycloakUrl() . "/realms/oCIS/protocol/openid-connect/auth?" . $queryString;
$response = HttpRequestHelper::get(
$authUrl,
);
$cookie = $response->getHeader("Set-Cookie")[0];
$htmlData = $response->getBody()->getContents();
if (!preg_match('/action="([^"]+)"/i', $htmlData, $match)) {
throw new Exception('No authorization url found in the HTML response body.');
}
$authorizationUrl = $match[1];
return [$authorizationUrl, $cookie];
}
/**
* @param array $user
* @param string $authorizationUrl
* @param string $cookie
*
* @return string
* @throws GuzzleException
*/
public static function getCode(array $user, string $authorizationUrl, string $cookie): string {
$authCodeResponse = HttpRequestHelper::post(
$authorizationUrl,
null,
null,
[
'Cookie' => $cookie,
],
[
'username' => $user['actualUsername'],
'password' => $user['password'],
],
);
$locationHeader = $authCodeResponse->getHeader('Location');
$queryString = parse_url($locationHeader[0], PHP_URL_QUERY);
parse_str($queryString, $urlParams);
return $urlParams['code'];
}
/**
* @param string $authorizationCode
*
* @return ResponseInterface
* @throws GuzzleException
* @throws Exception
*/
public static function getToken(string $authorizationCode): ResponseInterface {
$url = self::getKeycloakUrl() . '/realms/oCIS/protocol/openid-connect/token';
$tokenResponse = HttpRequestHelper::post(
$url,
null,
null,
null,
[
'client_id' => 'web',
'code' => $authorizationCode,
'redirect_uri' => OcisHelper::getServerUrl() . '/oidc-callback.html',
'grant_type' => 'authorization_code',
],
);
if ($tokenResponse->getStatusCode() !== 200) {
throw new Exception(
'Failed to retrieve token: Expected status code to be 200 but received ' .
$tokenResponse->getStatusCode() .
'.\nMessage: ' .
$tokenResponse->getBody()->getContents(),
);
}
return $tokenResponse;
}
/**
* @param array $user
*
* @return array
* @throws GuzzleException
* @throws JsonException
*/
public static function setAccessTokenForKeycloakOcisUser(array $user): array {
[$authorizationUrl, $cookie] = self::getAuthorizationEndPoint();
$authorizationCode = self::getCode($user, $authorizationUrl, $cookie);
$tokenResponse = self::getToken($authorizationCode);
return json_decode($tokenResponse->getBody()->getContents(), true, 512, JSON_THROW_ON_ERROR);
}
/**
* @return array
* @throws GuzzleException
* @throws JsonException
* @throws Exception
*/
public static function getRealm(): array {
$url = self::getKeycloakUrl() . '/admin/realms/oCIS';
$response = HttpRequestHelper::get(
$url,
null,
null,
[
'Authorization' => 'Bearer ' . self::getAdminAccessToken(),
],
);
if ($response->getStatusCode() !== 200) {
throw new Exception("Failed to get realm roles.");
}
return json_decode($response->getBody()->getContents(), true, 512, JSON_THROW_ON_ERROR);
}
/**
* @param string $key
* @param string $value
*
* @return ResponseInterface
* @throws GuzzleException
* @throws JsonException
*/
public static function updateRealmAttribute(string $key, string $value): ResponseInterface {
$realm = self::getRealm();
$attributes = $realm['attributes'] ?? [];
$attributes[$key] = $value;
$url = self::getKeycloakUrl() . '/admin/realms/oCIS';
return HttpRequestHelper::put(
$url,
null,
null,
[
'Authorization' => 'Bearer ' . self::getAdminAccessToken(),
'Content-Type' => 'application/json',
],
json_encode(['attributes' => $attributes], JSON_THROW_ON_ERROR),
);
}
/**
* @param string $key
*
* @return ResponseInterface
* @throws GuzzleException
* @throws JsonException
*/
public static function deleteRealmAttribute(string $key): ResponseInterface {
$realm = self::getRealm();
$attributes = $realm['attributes'] ?? [];
unset($attributes[$key]);
$url = self::getKeycloakUrl() . '/admin/realms/oCIS';
return HttpRequestHelper::put(
$url,
null,
null,
[
'Authorization' => 'Bearer ' . self::getAdminAccessToken(),
'Content-Type' => 'application/json',
],
json_encode(['attributes' => $attributes], JSON_THROW_ON_ERROR),
);
}
/**
* @param string $uuid
*
* @return ResponseInterface
* @throws GuzzleException
*/
public static function deleteKeycloakUser(string $uuid): ResponseInterface {
$url = self::getKeycloakUrl() . '/admin/realms/oCIS/users/' . $uuid;
return HttpRequestHelper::delete(
$url,
null,
null,
[
"Authorization" => "Bearer " . self::getAdminAccessToken(),
],
);
}
}
+18 -10
View File
@@ -493,8 +493,9 @@ class WebDavHelper {
* fetches personal space id for provided user
*
* @param string $baseUrl
* @param string $user
* @param string $password
* @param string|null $user
* @param string|null $password
* @param array|null $headers
*
* @return string
* @throws GuzzleException
@@ -502,8 +503,9 @@ class WebDavHelper {
*/
public static function getPersonalSpaceIdForUser(
string $baseUrl,
string $user,
string $password,
?string $user = null,
?string $password = null,
?array $headers = [],
): string {
if (\array_key_exists($user, self::$spacesIdRef) && \array_key_exists("personal", self::$spacesIdRef[$user])) {
return self::$spacesIdRef[$user]["personal"];
@@ -511,7 +513,7 @@ class WebDavHelper {
$personalSpaceId = '';
if (!OcisHelper::isTestingOnReva()) {
$response = GraphHelper::getMySpaces($baseUrl, $user, $password, '');
$response = GraphHelper::getMySpaces($baseUrl, $user, $password, '', [], $headers);
Assert::assertEquals(200, $response->getStatusCode(), "Cannot list drives for user '$user'");
$drives = HttpRequestHelper::getJsonDecodedResponseBodyContent($response);
@@ -564,18 +566,21 @@ class WebDavHelper {
* In case of any exception, it returns a fake space ID
*
* @param string $baseUrl
* @param string $user
* @param string $password
* @param string|null $user
* @param string|null $password
* @param array|null $headers
*
* @return string
* @throws Exception|GuzzleException
*/
public static function getPersonalSpaceIdForUserOrFakeIfNotFound(
string $baseUrl,
string $user,
string $password,
?string $user = null,
?string $password = null,
?array $headers = [],
): string {
if (\str_starts_with($user, "non-exist") || \str_starts_with($user, "nonexist")) {
// only fake for non-existent users
if ($user !== null && (\str_starts_with($user, "non-exist") || \str_starts_with($user, "nonexist"))) {
return self::generateUUIDv4();
}
@@ -583,6 +588,7 @@ class WebDavHelper {
$baseUrl,
$user,
$password,
$headers,
);
}
@@ -660,6 +666,7 @@ class WebDavHelper {
$baseUrl,
$user,
$password,
$headers,
);
}
}
@@ -732,6 +739,7 @@ class WebDavHelper {
$config,
null,
$stream,
false,
$timeout,
$client,
$isGivenStep,
@@ -0,0 +1,131 @@
<?php declare(strict_types=1);
/**
* ownCloud
*
* @author Prajwol Amatya <prajwol@jankaritech.com>
* @copyright Copyright (c) 2022 Prajwol Amatya prajwol@jankaritech.com
*
* This code is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License,
* as published by the Free Software Foundation;
* either version 3 of the License, or any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>
*
*/
namespace TestHelpers;
require __DIR__ . '/../../../vendor-php/autoload.php';
use Exception;
use Playwright\Playwright;
use Zxing\QrReader;
use OTPHP\TOTP;
/**
* A helper class for setting up user and store user access token using web UI
*/
class WebUIHelper {
private static int $defaultTimeout = 5000;
private static string $keycloakHeader = '#kc-header';
private static string $usernameInput = '#username';
private static string $passwordInput = '#password';
private static string $loginButton = '#kc-login';
private static string $filesView = '#files-view';
private static string $modeSwitchButton = '#oc-topbar-mode-switch-btn';
private static string $vaultModeSelector
= "//button[contains(@class, 'oc-topbar-mode-switch-option')][.//span[text()='Vault']]";
private static string $qrCode = '#kc-totp-secret-qr-code';
private static string $totpInput = '#totp';
private static string $userLabel = '#userLabel';
private static string $saveTotpButton = '#saveTOTPBtn';
/**
* @param string $ocisUrl
* @param string $username
* @param string $password
*
* @return array
* @throws Exception
*/
public static function setUpUser(string $ocisUrl, string $username, string $password): array {
$context = Playwright::chromium(
[
'headless' => true,
'args' => ['--ignore-certificate-errors', '--no-sandbox'],
],
);
$screenshotPath = '/tmp/qr_' . uniqid() . '.png';
try {
$page = $context->newPage();
$page->goto($ocisUrl, ['waitUntil' => 'networkidle']);
$page->waitForSelector(self::$keycloakHeader, ['timeout' => self::$defaultTimeout]);
$page->locator(self::$usernameInput)->fill($username);
$page->locator(self::$passwordInput)->fill($password);
$page->locator(self::$loginButton)->click();
$page->waitForSelector(self::$filesView, ['timeout' => self::$defaultTimeout]);
// change to vault mode
$page->locator(self::$modeSwitchButton)->click();
$page->locator(self::$vaultModeSelector)->click();
$page->waitForSelector(self::$qrCode, ['timeout' => self::$defaultTimeout]);
$qrLocator = $page->locator(self::$qrCode);
// setup mfa
$qrLocator->screenshot($screenshotPath);
if (!file_exists($screenshotPath)) {
throw new Exception("Failed to save QR code screenshot to: " . $screenshotPath);
}
$otp = self::extractOtpFromQr($screenshotPath);
$page->locator(self::$totpInput)->fill((string)$otp);
$page->locator(self::$userLabel)->fill('test');
$page->locator(self::$saveTotpButton)->click();
$page->waitForSelector(self::$filesView, ['timeout' => self::$defaultTimeout]);
return $context->storageState();
} catch (\Exception $e) {
throw new Exception("Login failed for user '$username': " . $e->getMessage(), 0, $e);
} finally {
if (file_exists($screenshotPath)) {
unlink($screenshotPath);
}
$context->close();
}
}
/**
* @param string $imagePath
*
* @return string
* @throws Exception
*/
public static function extractOtpFromQr(string $imagePath): string {
$qrReader = new QrReader($imagePath);
$qrData = $qrReader->text();
if (empty($qrData)) {
throw new Exception("Could not decode QR code from image: " . $imagePath);
}
$parsedUrl = parse_url($qrData);
if (!isset($parsedUrl['query'])) {
throw new Exception("QR code data does not contain a valid otpauth URL: " . $qrData);
}
parse_str($parsedUrl['query'], $queryParams);
$secret = $queryParams['secret'] ?? null;
if ($secret === null) {
throw new Exception("No 'secret' parameter found in QR code URL: " . $qrData);
}
$totp = TOTP::createFromSecret($secret);
return $totp->now();
}
}
@@ -60,20 +60,33 @@ class CapabilitiesContext implements Context {
*
* @param string $username
* @param boolean $formatJson // if true then formats the response in json
* @param boolean $vaultMode
*
* @return ResponseInterface
* @throws GuzzleException
* @throws JsonException
*/
public function userGetsCapabilities(string $username, ?bool $formatJson = false): ResponseInterface {
public function userGetsCapabilities(
string $username,
?bool $formatJson = false,
?bool $vaultMode = false,
): ResponseInterface {
$user = $this->featureContext->getActualUsername($username);
$password = $this->featureContext->getPasswordForUser($user);
$queryParams = [];
if ($formatJson) {
$queryParams['format'] = 'json';
}
if ($vaultMode) {
$queryParams['vault'] = 'true';
}
$queryString = $queryParams ? '?' . http_build_query($queryParams) : '';
return OcsApiHelper::sendRequest(
$this->featureContext->getBaseUrl(),
$user,
$password,
'GET',
'/cloud/capabilities' . ($formatJson ? '?format=json' : ''),
'/cloud/capabilities' . $queryString,
[],
$this->featureContext->getOcsApiVersion(),
);
@@ -134,17 +147,19 @@ class CapabilitiesContext implements Context {
}
/**
* @When user :username retrieves the capabilities using the capabilities API
* @When /^user "([^"]*)" retrieves the(| vault mode)? capabilities using the capabilities API$/
*
* @param string $username
* @param string $vaultMode
*
* @return void
* @throws GuzzleException
* @throws JsonException
*/
public function userRetrievesCapabilities(string $username): void {
public function userRetrievesCapabilities(string $username, string $vaultMode): void {
$user = $this->featureContext->getActualUsername($username);
$this->featureContext->setResponse($this->userGetsCapabilities($user, true));
$vaultMode = trim($vaultMode) === "vault mode";
$this->featureContext->setResponse($this->userGetsCapabilities($user, true, $vaultMode));
}
/**
+14 -4
View File
@@ -2046,10 +2046,20 @@ class FeatureContext extends BehatVariablesContext {
if ($response === null) {
$response = $this->getResponse();
}
return \json_decode(
(string)$response->getBody(),
true,
);
$body = $response->getBody();
$body->rewind();
$bodyContent = $body->getContents();
if ($bodyContent === '') {
return [];
}
$decodedResponse = \json_decode($bodyContent, true);
if (!\is_array($decodedResponse)) {
return [];
}
return $decodedResponse;
}
/**
+39 -19
View File
@@ -19,6 +19,7 @@ use TestHelpers\GraphHelper;
use TestHelpers\WebDavHelper;
use TestHelpers\HttpRequestHelper;
use TestHelpers\BehatHelper;
use TestHelpers\KeycloakHelper;
require_once 'bootstrap.php';
@@ -293,11 +294,21 @@ class GraphContext implements Context {
*/
public function adminDeletesUserUsingTheGraphApi(string $user, ?string $byUser = null): ResponseInterface {
$credentials = $this->getAdminOrUserCredentials($byUser);
$adminUser = $credentials["username"];
$adminPass = $credentials["password"];
$headers = [];
if (KeycloakHelper::isTestingWithKeycloak()) {
$access_token = $this->featureContext->getOcisUserToken($adminUser)["token"]["accessToken"];
$headers['Authorization'] = 'Bearer ' . $access_token;
$adminUser = null;
$adminPass = null;
}
$response = GraphHelper::deleteUser(
$this->featureContext->getBaseUrl(),
$credentials["username"],
$credentials["password"],
$user,
$adminUser,
$adminPass,
$headers,
);
if ($response->getStatusCode() === 204) {
$this->featureContext->rememberThatUserIsNotExpectedToExist($user);
@@ -1805,25 +1816,34 @@ class GraphContext implements Context {
*/
public function theAdministratorHasGivenTheRoleUsingTheGraphApi(string $role, string $user): void {
$userId = $this->featureContext->getAttributeOfCreatedUser($user, 'id') ?: $user;
if (KeycloakHelper::isTestingWithKeycloak()) {
$response = KeycloakHelper::assignrole($userId, $role);
Assert::assertEquals(
204,
$response->getStatusCode(),
__METHOD__
. "\nExpected status code '204' but got '" . $response->getStatusCode() . "'",
);
} else {
if (empty($this->appEntity)) {
$this->setApplicationEntity();
}
if (empty($this->appEntity)) {
$this->setApplicationEntity();
$response = GraphHelper::assignRole(
$this->featureContext->getBaseUrl(),
$this->featureContext->getAdminUsername(),
$this->featureContext->getAdminPassword(),
$this->appEntity["appRoles"][$role],
$this->appEntity["id"],
$userId,
);
Assert::assertEquals(
201,
$response->getStatusCode(),
__METHOD__
. "\nExpected status code '200' but got '" . $response->getStatusCode() . "'",
);
}
$response = GraphHelper::assignRole(
$this->featureContext->getBaseUrl(),
$this->featureContext->getAdminUsername(),
$this->featureContext->getAdminPassword(),
$this->appEntity["appRoles"][$role],
$this->appEntity["id"],
$userId,
);
Assert::assertEquals(
201,
$response->getStatusCode(),
__METHOD__
. "\nExpected status code '200' but got '" . $response->getStatusCode() . "'",
);
}
/**
@@ -23,6 +23,9 @@
use Behat\Behat\Context\Context;
use Behat\Gherkin\Node\TableNode;
use GuzzleHttp\Exception\GuzzleException;
use Psr\Http\Message\ResponseInterface;
use TestHelpers\HttpRequestHelper;
use TestHelpers\KeycloakHelper;
use TestHelpers\OcisConfigHelper;
use TestHelpers\GraphHelper;
use PHPUnit\Framework\Assert;
@@ -110,11 +113,9 @@ class OcisConfigContext implements Context {
$response = OcisConfigHelper::reConfigureOcis($envs);
}
$resBody = $response->getBody()->getContents();
Assert::assertEquals(
200,
$response->getStatusCode(),
"Failed to set config $configVariable=$configValue. Response: $resBody",
$this->assertOcisRestarted(
$response,
"Failed to set config $configVariable=$configValue.",
);
}
@@ -346,11 +347,66 @@ class OcisConfigContext implements Context {
*/
public function rollbackOcis(): void {
$response = OcisConfigHelper::rollbackOcis();
$resBody = $response->getBody()->getContents();
$this->assertOcisRestarted(
$response,
"Failed to rollback ocis server. Check if oCIS is started with ociswrapper.",
);
}
/**
* Asserts that an oCIS restart triggered by ociswrapper succeeded.
* In vault mode the wrapper's admin health-check uses basic-auth which is
* disabled (OIDC role assignment only), so the wrapper always returns HTTP 500
* even after a successful restart. When Keycloak/vault mode is detected we
* poll the unauthenticated proxy debug readyz endpoint instead of failing.
*
* @param ResponseInterface $response
* @param string $errorMessage
*
* @return void
*/
private function assertOcisRestarted(ResponseInterface $response, string $errorMessage): void {
$statusCode = $response->getStatusCode();
if ($statusCode === 200) {
return;
}
if (KeycloakHelper::isTestingWithKeycloak()) {
$this->waitForOcisProxyReady();
return;
}
Assert::assertEquals(
200,
$response->getStatusCode(),
"Failed to rollback ocis server. Check if oCIS is started with ociswrapper. Response: $resBody",
$statusCode,
$errorMessage . " Response: " . $response->getBody()->getContents(),
);
}
/**
* Poll the unauthenticated proxy debug readyz endpoint until oCIS is ready.
* Used in vault/Keycloak mode where basic-auth health checks are unavailable.
*
* @param int $timeoutSeconds
*
* @return void
* @throws GuzzleException
*/
private function waitForOcisProxyReady(int $timeoutSeconds = 60): void {
$readyzUrl = 'http://localhost:9205/readyz';
$deadline = time() + $timeoutSeconds;
while (time() < $deadline) {
try {
$response = HttpRequestHelper::get($readyzUrl);
if ($response->getStatusCode() === 200) {
return;
}
echo "oCIS not ready yet. Retrying in 1s...\n";
} catch (\Exception $e) {
throw new Exception("oCIS not ready. Error: $e");
}
sleep(1);
}
throw new \RuntimeException(
"Timed out after {$timeoutSeconds}s waiting for oCIS proxy readyz at {$readyzUrl}",
);
}
+165 -29
View File
@@ -29,8 +29,10 @@ use TestHelpers\HttpRequestHelper;
use TestHelpers\OcisHelper;
use TestHelpers\WebDavHelper;
use TestHelpers\GraphHelper;
use TestHelpers\KeycloakHelper;
use Laminas\Ldap\Exception\LdapException;
use Laminas\Ldap\Ldap;
use TestHelpers\WebUIHelper;
/**
* Functions for provisioning of users and groups
@@ -44,6 +46,38 @@ trait Provisioning {
private array $startingGroups = [];
private array $createdRemoteGroups = [];
private array $createdGroups = [];
private array $userTokens = [];
/**
* @param array $user
* @param mixed $tokenData
*
* @return void
*/
public function setOcisUserToken(array $user, mixed $tokenData): void {
$userId = $user['actualUsername'] ?? null;
if (\is_object($tokenData)) {
$tokenData = (array) $tokenData;
}
$this->userTokens[$userId] = [
'user' => $user,
'token' => [
'userid' => $userId,
'accessToken' => $tokenData['access_token'],
'refreshToken' => $tokenData['refresh_token'],
],
];
}
/**
* @param string $userId
*
* @return array
*/
public function getOcisUserToken(string $userId): array {
return $this->userTokens[$userId];
}
/**
* Check if this is the admin group. That group is always a local group in
@@ -524,6 +558,97 @@ trait Provisioning {
}
}
/**
* @param array $userAttributes
*
* @return void
* @throws GuzzleException
* @throws JsonException
*/
public function createKeycloakUser(array $userAttributes): void {
$response = KeycloakHelper::createUser(
$userAttributes['userid'],
$userAttributes['password'],
$userAttributes['email'],
$userAttributes['displayName'],
);
if ($response->getStatusCode() !== 201) {
$responseBody = (string)$response->getBody();
throw new Exception(
__METHOD__ .
" Unexpected failure when creating the user in keycloak '" .
$userAttributes['userid'] . "'" .
"\nHTTP status " . $response->getStatusCode() .
"\nKeycloak response " . $responseBody,
);
}
$locationHeader = explode("/", $response->getHeader("Location")[0]);
$uuid = end($locationHeader);
$this->addUserToCreatedUsersList(
$userAttributes['userid'],
$userAttributes['password'],
$userAttributes['displayName'],
$userAttributes['email'],
$uuid,
);
// assign default ocisUser role to newly created user
$res = KeycloakHelper::assignRole($uuid, "User");
Assert::assertEquals(
204,
$res->getStatusCode(),
__METHOD__ . " failed to assign realm role to user '" .
$userAttributes['userid'] . "'" .
"\nHTTP status " . $res->getStatusCode() .
"\nKeycloak response " . (string)$res->getBody(),
);
}
/**
* @BeforeScenario
*
* @return void
* @throws GuzzleException
* @throws Exception
*/
public function setAccessTokenForAdmin(): void {
if (!KeycloakHelper::isTestingWithKeycloak()) {
return;
}
KeycloakHelper::resetAdminAccessToken();
$adminUser = [
"password" => "admin",
"displayname" => "Admin Admin",
"email" => "admin@example.org",
"actualUsername" => "admin",
];
$tokenData = KeycloakHelper::setAccessTokenForKeycloakOcisUser($adminUser);
$this->setOcisUserToken($adminUser, $tokenData);
}
/**
* Sets up Keycloak user in oCIS
* User is logged in via web UI and user access token is extracted
*
* @Given user :user has logged in via web UI
*
* @param string $user
*
* @return void
* @throws Exception
*/
public function userHasLoggedInViaWebUI(string $user): void {
$createdUsers = $this->getCreatedUsers();
$user = $createdUsers[strtolower($user)];
$state = WebUIHelper::setUpUser(
$this->getBaseUrl(),
$user["actualUsername"],
$user["password"],
);
$stateData = \json_decode($state['origins'][0]['localStorage'][2]['value']);
$this->setOcisUserToken($user, $stateData);
}
/**
* Creates multiple users
*
@@ -556,6 +681,8 @@ trait Provisioning {
foreach ($users as $userAttributes) {
if ($this->isTestingWithLdap()) {
$this->createLdapUser($userAttributes);
} elseif (KeycloakHelper::isTestingWithKeycloak()) {
$this->createKeycloakUser($userAttributes);
} else {
$attributesToCreateUser['userid'] = $userAttributes['userid'];
$attributesToCreateUser['password'] = $userAttributes['password'];
@@ -588,7 +715,7 @@ trait Provisioning {
}
$exceptionToThrow = null;
if (!$this->isTestingWithLdap()) {
if (!$this->isTestingWithLdap() && !KeycloakHelper::isTestingWithKeycloak()) {
$results = HttpRequestHelper::sendBatchRequest($requests, $client);
// Check all requests to inspect failures.
foreach ($results as $key => $e) {
@@ -611,38 +738,40 @@ trait Provisioning {
// Create requests for setting displayname and email for the newly created users.
// These values cannot be set while creating the user, so we have to edit the newly created user to set these values.
foreach ($users as $userAttributes) {
if (!$this->isTestingWithLdap()) {
// for graph api, we need to save the user id to be able to add it in some group
// can be fetched with the "onPremisesSamAccountName" i.e. userid
$response = $this->graphContext->adminHasRetrievedUserUsingTheGraphApi($userAttributes['userid']);
$userAttributes['id'] = $this->getJsonDecodedResponse($response)['id'];
} else {
$userAttributes['id'] = null;
if (!KeycloakHelper::isTestingWithKeycloak()) {
foreach ($users as $userAttributes) {
if (!$this->isTestingWithLdap()) {
// for graph api, we need to save the user id to be able to add it in some group
// can be fetched with the "onPremisesSamAccountName" i.e. userid
$response = $this->graphContext->adminHasRetrievedUserUsingTheGraphApi($userAttributes['userid']);
$userAttributes['id'] = $this->getJsonDecodedResponse($response)['id'];
} else {
$userAttributes['id'] = null;
}
$this->addUserToCreatedUsersList(
$userAttributes['userid'],
$userAttributes['password'],
$userAttributes['displayName'],
$userAttributes['email'],
$userAttributes['id'],
);
}
$this->addUserToCreatedUsersList(
$userAttributes['userid'],
$userAttributes['password'],
$userAttributes['displayName'],
$userAttributes['email'],
$userAttributes['id'],
);
}
if (isset($exceptionToThrow)) {
throw $exceptionToThrow;
}
if (isset($exceptionToThrow)) {
throw $exceptionToThrow;
}
foreach ($users as $user) {
Assert::assertTrue(
$this->userExists($user["userid"]),
"User '" . $user["userid"] . "' should exist but does not exist",
);
}
if ($initialize) {
foreach ($users as $user) {
$this->initializeUser($user['userid'], $user['password']);
Assert::assertTrue(
$this->userExists($user["userid"]),
"User '" . $user["userid"] . "' should exist but does not exist",
);
}
if ($initialize) {
foreach ($users as $user) {
$this->initializeUser($user['userid'], $user['password']);
}
}
}
}
@@ -1944,6 +2073,7 @@ trait Provisioning {
*
* @return void
* @throws Exception
* @throws GuzzleException
*/
public function cleanupDatabaseUsers(): void {
$previousServer = $this->currentServer;
@@ -1961,6 +2091,12 @@ trait Provisioning {
$this->userExists($user),
"User '$user' should not exist but does exist",
);
// delete user from keycloak
if (KeycloakHelper::isTestingWithKeycloak()) {
$res = KeycloakHelper::deleteKeycloakUser($userData['id']);
$this->theHTTPStatusCodeShouldBe(204, "Failed to delete keycloak user '$user'", $res);
}
}
$this->usingServer($previousServer);
}
+82 -23
View File
@@ -34,6 +34,7 @@ use TestHelpers\WebDavHelper;
use TestHelpers\GraphHelper;
use TestHelpers\OcisHelper;
use TestHelpers\BehatHelper;
use TestHelpers\KeycloakHelper;
require_once 'bootstrap.php';
@@ -132,13 +133,15 @@ class SpacesContext implements Context {
/**
* @param string $user
* @param object $space
* @param boolean $isVault
*
* @return void
*/
public function addPersonalSpaceForUser(string $user, object $space): void {
public function addPersonalSpaceForUser(string $user, object $space, bool $isVault = false): void {
$spaceName = $this->featureContext->getUserDisplayName($user);
$this->personalSpaces[$spaceName] = $space;
$this->personalSpaces[$spaceName]->serverType = $this->featureContext->getCurrentServer();
$this->personalSpaces[$spaceName]->isVault = $isVault;
}
/**
@@ -189,11 +192,12 @@ class SpacesContext implements Context {
/**
* @param string $user
* @param string $spaceName
* @param boolean $isVault
*
* @return array
* @throws GuzzleException
*/
public function getSpaceByName(string $user, string $spaceName): array {
public function getSpaceByName(string $user, string $spaceName, bool $isVault = false): array {
$password = $this->featureContext->getPasswordForUser($user);
$createdSpaces = $this->getCreatedSpaces();
$personalSpaces = $this->getPersonalSpaces();
@@ -205,10 +209,16 @@ class SpacesContext implements Context {
if (isset($allSpaces[$spaceName])
&& $allSpaces[$spaceName]->serverType === $this->featureContext->getCurrentServer()
&& (!isset($allSpaces[$spaceName]->isVault) || $allSpaces[$spaceName]->isVault === $isVault)
) {
return json_decode(json_encode($allSpaces[$spaceName]), true);
}
$headers = [];
if (KeycloakHelper::isTestingWithKeycloak()) {
$access_token = $this->featureContext->getOcisUserToken($user)["token"]["accessToken"];
$headers['Authorization'] = 'Bearer ' . $access_token;
}
// Sometimes listing available spaces might not return newly created/shared spaces.
// So we try again until we find the space or we reach the max number of retries (i.e. 10)
$retried = 0;
@@ -216,9 +226,12 @@ class SpacesContext implements Context {
// list 'me/drives' as given user
$response = GraphHelper::getMySpaces(
$this->featureContext->getBaseUrl(),
$user,
$password,
KeycloakHelper::isTestingWithKeycloak() ? null : $user,
KeycloakHelper::isTestingWithKeycloak() ? null : $password,
"",
[],
$headers,
$isVault,
);
// NOTE: user can be created with empty password
// so if that's the case, the user won't be able to request using empty password
@@ -254,7 +267,7 @@ class SpacesContext implements Context {
if ($space->driveType === "project") {
$this->addToCreatedSpace($user, $space);
} elseif (!($space->name === "Shares" && $space->driveType === "virtual")) {
$this->addPersonalSpaceForUser($user, $space);
$this->addPersonalSpaceForUser($user, $space, $isVault);
}
break;
}
@@ -278,12 +291,13 @@ class SpacesContext implements Context {
*
* @param string $user
* @param string $spaceName
* @param boolean $isVault
*
* @return string
* @throws GuzzleException
*/
public function getSpaceIdByName(string $user, string $spaceName): string {
$space = $this->getSpaceByName($user, $spaceName);
public function getSpaceIdByName(string $user, string $spaceName, bool $isVault = false): string {
$space = $this->getSpaceByName($user, $spaceName, $isVault);
return $space["id"];
}
@@ -797,22 +811,38 @@ class SpacesContext implements Context {
* @param string $user
* @param string $spaceName
* @param string $foldersPath
* @param boolean $isVault
*
* @return ResponseInterface
* @throws GuzzleException
*/
public function propfindSpace(string $user, string $spaceName, string $foldersPath = ''): ResponseInterface {
$spaceId = $this->getSpaceIdByName($user, $spaceName);
public function propfindSpace(
string $user,
string $spaceName,
string $foldersPath = '',
bool $isVault = false,
): ResponseInterface {
$spaceId = $this->getSpaceIdByName($user, $spaceName, $isVault);
$password = $this->featureContext->getPasswordForUser($user);
$headers = [];
if (KeycloakHelper::isTestingWithKeycloak()) {
$access_token = $this->featureContext->getOcisUserToken($user)["token"]["accessToken"];
$headers['Authorization'] = 'Bearer ' . $access_token;
$user = null;
$password = null;
}
return WebDavHelper::propfind(
$this->featureContext->getBaseUrl(),
$user,
$this->featureContext->getPasswordForUser($user),
$password,
$foldersPath,
[],
null,
$spaceId,
'files',
WebDavHelper::DAV_VERSION_SPACES,
null,
$headers,
);
}
@@ -888,10 +918,11 @@ class SpacesContext implements Context {
}
/**
* @Then /^for user "([^"]*)" the space "([^"]*)" should (not|)\s?contain these (?:files|entries):$/
* @Then /^for user "([^"]*)" the space "([^"]*)"(| in vault)? should (not|)\s?contain these (?:files|entries):$/
*
* @param string $user
* @param string $spaceName
* @param string $isVault
* @param string $shouldOrNot (not|)
* @param TableNode $expectedFiles
*
@@ -902,11 +933,13 @@ class SpacesContext implements Context {
public function userTheSpaceShouldContainEntries(
string $user,
string $spaceName,
string $isVault,
string $shouldOrNot,
TableNode $expectedFiles,
): void {
$space = $this->getSpaceByName($user, $spaceName);
$this->featureContext->setResponse($this->propfindSpace($user, $spaceName));
$isVault = trim($isVault) === "in vault";
$space = $this->getSpaceByName($user, $spaceName, $isVault);
$this->featureContext->setResponse($this->propfindSpace($user, $spaceName, '', $isVault));
$this->featureContext->propfindResultShouldContainEntries(
$shouldOrNot,
$expectedFiles,
@@ -1275,11 +1308,12 @@ class SpacesContext implements Context {
}
/**
* @When /^user "([^"]*)" creates a (?:folder|subfolder) "([^"]*)" in space "([^"]*)" using the WebDav Api$/
* @When /^user "([^"]*)" creates a (?:folder|subfolder) "([^"]*)" in space "([^"]*)"(| in vault)? using the WebDav Api$/
*
* @param string $user
* @param string $folder
* @param string $spaceName
* @param string $isVault
*
* @return void
*
@@ -1289,13 +1323,15 @@ class SpacesContext implements Context {
string $user,
string $folder,
string $spaceName,
string $isVault,
): void {
$folder = \trim($folder, '/');
$exploded = explode('/', $folder);
$path = '';
$isVault = trim($isVault) === "in vault";
for ($i = 0; $i < \count($exploded); $i++) {
$path = $path . $exploded[$i] . '/';
$response = $this->createFolderInSpace($user, $path, $spaceName);
$response = $this->createFolderInSpace($user, $path, $spaceName, '', $isVault);
$this->featureContext->setResponse($response);
}
}
@@ -1344,11 +1380,12 @@ class SpacesContext implements Context {
}
/**
* @Given /^user "([^"]*)" has created a (?:folder|subfolder) "([^"]*)" in space "([^"]*)"$/
* @Given /^user "([^"]*)" has created a (?:folder|subfolder) "([^"]*)" in space "([^"]*)"(| in vault)?$/
*
* @param string $user
* @param string $folder
* @param string $spaceName
* @param string $isVault
*
* @return void
*
@@ -1358,13 +1395,15 @@ class SpacesContext implements Context {
string $user,
string $folder,
string $spaceName,
string $isVault,
): void {
$folder = \trim($folder, '/');
$paths = explode('/', $folder);
$folderPath = '';
$isVault = trim($isVault) === "in vault";
foreach ($paths as $path) {
$folderPath .= "$path/";
$response = $this->createFolderInSpace($user, $folderPath, $spaceName);
$response = $this->createFolderInSpace($user, $folderPath, $spaceName, '', $isVault);
}
$this->featureContext->theHTTPStatusCodeShouldBe(
201,
@@ -1378,6 +1417,7 @@ class SpacesContext implements Context {
* @param string $folder
* @param string $spaceName
* @param string $ownerUser
* @param boolean $isVault
*
* @return ResponseInterface
*
@@ -1388,11 +1428,12 @@ class SpacesContext implements Context {
string $folder,
string $spaceName,
string $ownerUser = '',
bool $isVault = false,
): ResponseInterface {
if ($ownerUser === '') {
$ownerUser = $user;
}
$spaceId = $this->getSpaceIdByName($ownerUser, $spaceName);
$spaceId = $this->getSpaceIdByName($ownerUser, $spaceName, $isVault);
return $this->featureContext->createFolder($user, $folder, false, null, $spaceId);
}
@@ -1419,12 +1460,13 @@ class SpacesContext implements Context {
}
/**
* @When /^user "([^"]*)" uploads a file inside space "([^"]*)" with content "([^"]*)" to "([^"]*)" using the WebDAV API$/
* @When /^user "([^"]*)" uploads a file inside space "([^"]*)" with content "([^"]*)" to "([^"]*)"(| in vault)? using the WebDAV API$/
*
* @param string $user
* @param string $spaceName
* @param string $content
* @param string $destination
* @param string $isVault
*
* @return void
* @throws GuzzleException
@@ -1435,8 +1477,10 @@ class SpacesContext implements Context {
string $spaceName,
string $content,
string $destination,
string $isVault,
): void {
$spaceId = $this->getSpaceIdByName($user, $spaceName);
$isVault = trim($isVault) === "in vault";
$spaceId = $this->getSpaceIdByName($user, $spaceName, $isVault);
if ($spaceName === "Shares" && !\str_starts_with($destination, "Shares/")) {
$destination = "Shares/" . \ltrim($destination, "/");
}
@@ -1831,10 +1875,11 @@ class SpacesContext implements Context {
}
/**
* @Given /^user "([^"]*)" has created a space "([^"]*)" with the default quota using the Graph API$/
* @Given /^user "([^"]*)" has created a space "([^"]*)"(| in vault)? with the default quota using the Graph API$/
*
* @param string $user
* @param string $spaceName
* @param string $isVault
*
* @return void
*
@@ -1844,9 +1889,11 @@ class SpacesContext implements Context {
public function theUserHasCreatedASpaceByDefaultUsingTheGraphApi(
string $user,
string $spaceName,
string $isVault,
): void {
$space = ["name" => $spaceName];
$response = $this->createSpace($user, $space);
$isVault = trim($isVault) === "in vault";
$response = $this->createSpace($user, $space, $isVault);
$this->featureContext->theHTTPStatusCodeShouldBe(
201,
"Expected response status code should be 201 (Created)",
@@ -1859,6 +1906,7 @@ class SpacesContext implements Context {
/**
* @param string $user
* @param string $space
* @param boolean $isVault
*
* @return ResponseInterface
* @throws GuzzleException
@@ -1867,13 +1915,24 @@ class SpacesContext implements Context {
public function createSpace(
string $user,
array $space,
bool $isVault = false,
): ResponseInterface {
$body = json_encode($space, JSON_THROW_ON_ERROR);
$password = $this->featureContext->getPasswordForUser($user);
$headers = [];
if (KeycloakHelper::isTestingWithKeycloak()) {
$access_token = $this->featureContext->getOcisUserToken($user)["token"]["accessToken"];
$headers['Authorization'] = 'Bearer ' . $access_token;
$user = null;
$password = null;
}
return GraphHelper::createSpace(
$this->featureContext->getBaseUrl(),
$user,
$this->featureContext->getPasswordForUser($user),
$password,
$body,
$headers,
$isVault,
);
}
+124
View File
@@ -0,0 +1,124 @@
<?php
declare(strict_types=1);
/**
* ownCloud
*
* @author Prajwol Amatya <prajwol@jankaritech.com>
* @copyright Copyright (c) 2026 Prajwol Amatya prajwol@jankaritech.com
*
* This code is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License,
* as published by the Free Software Foundation;
* either version 3 of the License, or any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>
*
*/
use Behat\Behat\Context\Context;
use Behat\Behat\Hook\Scope\BeforeScenarioScope;
use GuzzleHttp\Exception\GuzzleException;
use JsonException;
use PHPUnit\Framework\Assert;
use TestHelpers\BehatHelper;
use TestHelpers\KeycloakHelper;
require_once 'bootstrap.php';
/**
* Context for ocis vault specific steps
*/
class VaultContext implements Context {
private FeatureContext $featureContext;
private array $originalRealmAttributes = [];
/**
* @BeforeScenario
*
* @param BeforeScenarioScope $scope
*
* @return void
*
* @throws Exception
*/
public function before(BeforeScenarioScope $scope): void {
// Get the environment
$environment = $scope->getEnvironment();
// Get all the contexts you need in this context
$this->featureContext = BehatHelper::getContext($scope, $environment, 'FeatureContext');
}
/**
* @Given the administrator has set the Keycloak realm attribute :key to :value
*
* @param string $key
* @param string $value
*
* @return void
* @throws GuzzleException
* @throws JsonException
*/
public function theAdministratorHasSetTheKeycloakRealmAttributeTo(string $key, string $value): void {
$realm = KeycloakHelper::getRealm();
$this->originalRealmAttributes[$key] = $realm['attributes'][$key] ?? null;
$response = KeycloakHelper::updateRealmAttribute($key, $value);
Assert::assertEquals(
204,
$response->getStatusCode(),
"Failed to update Keycloak realm attribute $key. Response: " . $response->getBody()->getContents(),
);
}
/**
* @AfterScenario @keycloak-config
*
* @return void
* @throws GuzzleException
* @throws JsonException
*/
public function restoreKeycloakRealmAttributes(): void {
foreach ($this->originalRealmAttributes as $key => $value) {
if ($value === null) {
KeycloakHelper::deleteRealmAttribute($key);
continue;
}
KeycloakHelper::updateRealmAttribute($key, $value);
}
$this->originalRealmAttributes = [];
}
/**
* @Then user :user should have acr value :acr
*
* @param string $user
* @param string $acr
*
* @return void
* @throws Exception
*/
public function userShouldHaveAcrValue(string $user, string $acr): void {
$accessToken = $this->featureContext->getOcisUserToken($user)['token']['accessToken'];
// Decode JWT token
$parts = explode('.', $accessToken);
if (\count($parts) !== 3) {
throw new Exception("Invalid JWT token format.");
}
$payload = $parts[1];
$decodedPayload = base64_decode(strtr($payload, '-_', '+/'), true);
$payloadArray = json_decode($decodedPayload, true);
$actualAcr = $payloadArray['acr'] ?? null;
Assert::assertEquals(
$acr,
$actualAcr,
"Expected acr value to be $acr but got $actualAcr",
);
}
}
+8
View File
@@ -31,6 +31,7 @@ use TestHelpers\WebDavHelper;
use TestHelpers\HttpRequestHelper;
use TestHelpers\Asserts\WebDav as WebDavAssert;
use TestHelpers\GraphHelper;
use TestHelpers\KeycloakHelper;
/**
* WebDav functions
@@ -310,6 +311,13 @@ trait WebDav {
$password = $this->getPasswordForUser($user);
}
if (KeycloakHelper::isTestingWithKeycloak()) {
$access_token = $this->getOcisUserToken($user)["token"]["accessToken"];
$headers["Authorization"] = "Bearer " . $access_token;
$user = null;
$password = null;
}
return WebDavHelper::makeDavRequest(
$this->getBaseUrl(),
$user,
+10
View File
@@ -487,6 +487,16 @@ default:
- AuthAppContext:
- OcisConfigContext:
apiVault:
paths:
- "%paths.base%/../features/apiVault"
context: *common_ldap_suite_context
contexts:
- FeatureContext: *common_feature_context_params
- VaultContext:
- OcisConfigContext:
- CapabilitiesContext:
cliCommands:
paths:
- "%paths.base%/../features/cliCommands"
@@ -0,0 +1,184 @@
Feature: vault
As a user
I want to store resource in vault storage
So that vault resources are isolated with regular drive storage
Background:
Given using spaces DAV path
And these users have been created with default attributes:
| username |
| Alice |
Scenario: user can create folders and files in personal space in vault
Given user "Alice" has logged in via web UI
When user "Alice" creates a folder "vaultFolder" in space "Personal" in vault using the WebDav Api
Then the HTTP status code should be "201"
When user "Alice" uploads a file inside space "Personal" with content "some content" to "vaultFile.txt" in vault using the WebDAV API
Then the HTTP status code should be "201"
And for user "Alice" the space "Personal" in vault should contain these entries:
| vaultFolder |
| vaultFile.txt |
Scenario: user can create folders and files in project space in vault
Given the administrator has assigned the role "Space Admin" to user "Alice" using the Graph API
And user "Alice" has logged in via web UI
And user "Alice" has created a space "vault-space" in vault with the default quota using the Graph API
When user "Alice" creates a folder "vaultFolder" in space "vault-space" in vault using the WebDav Api
Then the HTTP status code should be "201"
When user "Alice" uploads a file inside space "vault-space" with content "some content" to "vaultFile.txt" in vault using the WebDAV API
Then the HTTP status code should be "201"
And for user "Alice" the space "vault-space" in vault should contain these entries:
| vaultFolder |
| vaultFile.txt |
Scenario: resources in drive and vault are isolated
Given user "Alice" has logged in via web UI
And user "Alice" has created a folder "driveFolder" in space "Personal"
And user "Alice" has uploaded a file inside space "Personal" with content "some content" to "driveFile.txt"
And user "Alice" has created a folder "vaultFolder" in space "Personal" in vault
When user "Alice" uploads a file inside space "Personal" with content "some content" to "vaultFile.txt" in vault using the WebDAV API
Then the HTTP status code should be "201"
And for user "Alice" the space "Personal" in vault should contain these entries:
| vaultFolder |
| vaultFile.txt |
And for user "Alice" the space "Personal" should contain these entries:
| driveFolder |
| driveFile.txt |
And for user "Alice" the space "Personal" in vault should not contain these entries:
| driveFolder |
| driveFile.txt |
And for user "Alice" the space "Personal" should not contain these entries:
| vaultFolder |
| vaultFile.txt |
@env-config @keycloak-config
Scenario: user can set custom auth level names
Given the administrator has set the Keycloak realm attribute "acr.loa.map" to '{"regular":"1","testing":"2"}'
And the config "OCIS_MFA_AUTH_LEVEL_NAMES" has been set to "testing"
And user "Alice" has logged in via web UI
When user "Alice" uploads a file inside space "Personal" with content "some content" to "vaultFile.txt" in vault using the WebDAV API
Then the HTTP status code should be "201"
And user "Alice" should have acr value "testing"
Scenario: check capabilities endpoint for vault
Given using OCS API version "2"
And user "Alice" has logged in via web UI
When user "Alice" retrieves the vault mode capabilities using the capabilities API
Then the OCS status code should be "200"
And the HTTP status code should be "200"
And the ocs JSON data of the response should match
"""
{
"type": "object",
"required": [ "capabilities" ],
"properties": {
"capabilities": {
"type": "object",
"required": [
"core",
"files",
"files_sharing",
"auth",
"vault"
],
"properties": {
"files_sharing": {
"type": "object",
"required": [
"api_enabled",
"default_permissions",
"public",
"resharing",
"federation",
"group_sharing",
"share_with_group_members_only",
"share_with_membership_groups_only",
"auto_accept_share",
"user_enumeration"
],
"properties": {
"federation": {
"type": "object",
"required": [
"outgoing",
"incoming"
],
"properties": {
"outgoing": {
"const": false
},
"incoming": {
"const": false
}
}
},
"public": {
"type": "object",
"required": [
"enabled",
"multiple",
"upload",
"supports_upload_only",
"send_mail",
"social_share"
],
"properties": {
"enabled": {
"const": false
}
}
}
}
},
"auth": {
"type": "object",
"required": [
"mfa"
],
"properties": {
"mfa": {
"type": "object",
"required": [
"enabled",
"levelnames"
],
"properties": {
"enabled": {
"const": true
},
"levelnames": {
"type": "array",
"minItems": 1,
"maxItems": 1,
"items": {
"const": "advanced"
}
}
}
}
}
},
"vault": {
"type": "object",
"required": [
"enabled",
"vault_storage_provider"
],
"properties": {
"enabled": {
"const": true
},
"vault_storage_provider": {
"pattern": "%uuidv4_pattern%"
}
}
}
}
}
}
}
"""
+1 -1
View File
@@ -509,7 +509,7 @@ def main() -> int:
"BASE_URL_OCIS": ocis_url,
"HEADLESS": "true",
"RETRY": "3",
"SKIP_A11Y_TESTS": "true",
"SKIP_A11Y_TESTS": "false",
# web 12.4: enabling this both sets `use.trace=on` in playwright.config.ts
# AND triggers actor.ts to call tracing.start(), which double-starts and fails.
"REPORT_TRACING": "false",
+179 -3
View File
@@ -25,6 +25,9 @@ EMAIL_SMTP_PORT = "1025"
EMAIL_PORT = "8025"
EMAIL_SMTP_SENDER = "ownCloud <noreply@example.com>"
KEYCLOAK_IMAGE = "quay.io/keycloak/keycloak:26.5.6"
POSTGRES_ALPINE_IMAGE = "postgres:alpine3.18"
LOCAL_API_TESTS = {
"contractAndLock": {
"suites": ["apiContract", "apiLocks"],
@@ -135,6 +138,37 @@ LOCAL_API_TESTS = {
"GATEWAY_GRPC_ADDR": "0.0.0.0:9142",
},
},
"vault": {
"suites": ["apiVault"],
"keycloakNeeded": True,
"vaultStorage": True,
"extraEnvironment": {
"KEYCLOAK": "true",
"KC_URL": "https://localhost:8443"
},
"extraServerEnvironment": {
"OCIS_ENABLE_VAULT_MODE": "true",
"FRONTEND_ENABLE_VAULT_MODE": "true",
"OCIS_MFA_ENABLED": "true",
"SETTINGS_GRPC_ADDR": "localhost:9191",
# Keycloak as external OIDC provider — disable built-in IDP
"OCIS_EXCLUDE_RUN_SERVICES": "idp",
"OCIS_OIDC_ISSUER": "https://localhost:8443/realms/oCIS",
"PROXY_OIDC_REWRITE_WELLKNOWN": "true",
"PROXY_AUTOPROVISION_ACCOUNTS": "true",
"PROXY_ROLE_ASSIGNMENT_DRIVER": "oidc",
"PROXY_USER_OIDC_CLAIM": "preferred_username",
"PROXY_USER_CS3_CLAIM": "username",
"WEB_OIDC_CLIENT_ID": "web",
"KEYCLOAK_DOMAIN": "localhost:8443",
"OCIS_ADMIN_USER_ID": "",
"GRAPH_ASSIGN_DEFAULT_USER_ROLE": "false",
"GRAPH_USERNAME_MATCH": "none",
"IDM_CREATE_DEMO_USERS": "false",
"MICRO_REGISTRY_ADDRESS": "127.0.0.1:9233",
"WEB_OIDC_SCOPE": "openid profile email acr"
}
},
"cliCommands": {
"suites": ["cliCommands", "apiServiceAvailability"],
"antivirusNeeded": True,
@@ -182,13 +216,16 @@ def merged_config(suites: list) -> dict:
"tikaNeeded": False,
"federationServer": False,
"collaborationServiceNeeded": False,
"keycloakNeeded": False,
"vaultStorage": False,
"extraServerEnvironment": {},
"extraEnvironment": {},
}
for suite in suites:
cfg = _SUITE_TO_CONFIG.get(suite, {})
for flag in ("emailNeeded", "antivirusNeeded", "tikaNeeded",
"federationServer", "collaborationServiceNeeded"):
"federationServer", "collaborationServiceNeeded",
"keycloakNeeded", "vaultStorage"):
if cfg.get(flag):
merged[flag] = True
merged["extraServerEnvironment"].update(cfg.get("extraServerEnvironment", {}))
@@ -297,6 +334,20 @@ def ocis_healthy(ocis_url: str) -> bool:
return r.stdout.strip() == "200"
def ocis_proxy_ready() -> bool:
"""Check ocis readiness via the proxy debug port (no auth required).
In vault mode PROXY_ROLE_ASSIGNMENT_DRIVER=oidc means basic-auth users
never receive the admin role, so /graph/v1.0/users/admin returns 403.
The proxy debug readyz endpoint (PROXY_DEBUG_ADDR 0.0.0.0:9205) is
unauthenticated and becomes available once the proxy is fully started.
"""
return subprocess.run(
["curl", "-sf", "http://localhost:9205/readyz"],
capture_output=True,
).returncode == 0
def mailpit_healthy() -> bool:
return subprocess.run(
["curl", "-sf", "http://localhost:8025/api/v1/messages"],
@@ -325,6 +376,20 @@ def clamav_healthy() -> bool:
return _tcp_ready("localhost", 3310)
def keycloak_healthy() -> bool:
return subprocess.run(
["curl", "-skf", "https://localhost:9000/health/ready"],
capture_output=True,
).returncode == 0
def postgres_healthy() -> bool:
return subprocess.run(
["docker", "exec", "postgres", "pg_isready", "-U", "keycloak"],
capture_output=True,
).returncode == 0
def load_env_file(path: Path) -> dict:
"""Parse a bash-style env file (export KEY=value) into a dict."""
@@ -435,6 +500,66 @@ def main() -> int:
providers_tmp.close()
cfg["extraServerEnvironment"]["OCM_OCM_PROVIDER_AUTHORIZER_PROVIDERS_FILE"] = providers_tmp.name
if cfg["keycloakNeeded"]:
# Install Playwright runtime and browsers (required for web UI tests)
print("Installing Playwright...")
run([str(repo_root / "vendor-php/bin/playwright-install")])
run([str(repo_root / "vendor-php/bin/playwright-install"), "--browsers"])
print("Playwright ready.")
# Generate TLS certs for keycloak
print("Generating keycloak certs...")
keycloak_certs_dir = repo_root / "keycloak-certs"
keycloak_certs_dir.mkdir(parents=True, exist_ok=True)
run(["openssl", "req", "-x509", "-newkey", "rsa:2048",
"-keyout", str(keycloak_certs_dir / "keycloakkey.pem"),
"-out", str(keycloak_certs_dir / "keycloakcrt.pem"),
"-nodes", "-days", "365", "-subj", "/CN=keycloak"])
for f in keycloak_certs_dir.iterdir():
f.chmod(0o777)
# Set up postgres (keycloak backend)
print("Setting up postgres...")
# GitHub runners ship PostgreSQL pre-started on 5432; stop it to avoid conflicts.
subprocess.run(["sudo", "systemctl", "stop", "postgresql"], capture_output=True)
run(["docker", "run", "-d", "--name", "postgres", "--network", "host",
"-e", "POSTGRES_DB=keycloak",
"-e", "POSTGRES_USER=keycloak",
"-e", "POSTGRES_PASSWORD=keycloak",
POSTGRES_ALPINE_IMAGE])
wait_for(postgres_healthy, 30, "postgres", container="postgres")
print("postgres ready.")
# Patch realm and start keycloak
realm_src = repo_root / "tests/config/ci/ocis-mfa-ci-realm.dist.json"
realm_patched = Path("/tmp/ocis-realm.json")
realm_patched.write_text(
realm_src.read_text()
.replace("https://ocis:9200", "https://localhost:9200")
)
print("Starting keycloak...")
run(["docker", "run", "-d", "--name", "keycloak", "--network", "host",
"-e", "OCIS_DOMAIN=https://localhost:9200",
"-e", "KC_HOSTNAME=localhost",
"-e", "KC_PORT=8443",
"-e", "KC_DB=postgres",
"-e", "KC_DB_URL=jdbc:postgresql://localhost:5432/keycloak",
"-e", "KC_DB_USERNAME=keycloak",
"-e", "KC_DB_PASSWORD=keycloak",
"-e", "KC_FEATURES=impersonation",
"-e", "KC_BOOTSTRAP_ADMIN_USERNAME=admin",
"-e", "KC_BOOTSTRAP_ADMIN_PASSWORD=admin",
"-e", "KC_HTTPS_CERTIFICATE_FILE=/keycloak-certs/keycloakcrt.pem",
"-e", "KC_HTTPS_CERTIFICATE_KEY_FILE=/keycloak-certs/keycloakkey.pem",
"-v", f"{repo_root}/keycloak-certs:/keycloak-certs:ro",
"-v", "/tmp/ocis-realm.json:/opt/keycloak/data/import/ocis-mfa-ci-realm.dist.json:ro",
KEYCLOAK_IMAGE,
"start-dev", "--proxy-headers", "xforwarded",
"--spi-connections-http-client-default-disable-trust-manager=true",
"--import-realm", "--health-enabled=true"])
wait_for(keycloak_healthy, 300, "keycloak", container="keycloak")
print("keycloak ready.")
# init ocis
run([str(ocis_bin), "init", "--insecure", "true"])
shutil.copy(
@@ -455,6 +580,21 @@ def main() -> int:
server_env["THUMBNAILS_TXT_FONTMAP_FILE"] = fontmap_tmp.name
server_env.update(cfg["extraServerEnvironment"])
# Patch web UI config: replace container DNS name with localhost so the
# browser's 'self' CSP origin (localhost:9200) is not violated.
web_cfg_src = Path(server_env["WEB_UI_CONFIG_FILE"])
web_cfg_data = json.loads(
web_cfg_src.read_text().replace("ocis-server:9200", "localhost:9200")
)
if cfg["vaultStorage"]:
web_cfg_data.setdefault("openIdConnect", {})["scope"] = "openid profile email acr"
server_env["PROXY_CSP_CONFIG_FILE_LOCATION"] = str(repo_root / "tests/config/ci/csp.yaml")
web_cfg_tmp = tempfile.NamedTemporaryFile(
mode="w", suffix=".json", prefix="ocis-web-config-", delete=False)
json.dump(web_cfg_data, web_cfg_tmp, indent=2)
web_cfg_tmp.close()
server_env["WEB_UI_CONFIG_FILE"] = web_cfg_tmp.name
# start ociswrapper (primary ocis)
print("Starting ocis...")
wrapper_proc = subprocess.Popen(
@@ -659,13 +799,49 @@ def main() -> int:
signal.signal(signal.SIGINT, cleanup)
try:
wait_for(lambda: ocis_healthy(ocis_url), 300, "ocis")
if cfg["vaultStorage"]:
# Basic auth is blocked in vault mode (OIDC role assignment),
# use the unauthenticated proxy debug readyz endpoint instead.
wait_for(ocis_proxy_ready, 300, "ocis")
else:
wait_for(lambda: ocis_healthy(ocis_url), 300, "ocis")
print("ocis ready.")
if cfg["federationServer"]:
wait_for(lambda: ocis_healthy(ocis_fed_url), 300, "federation ocis")
print("federation ocis ready.")
if cfg["vaultStorage"]:
vault_data_dir = Path.home() / "ocis/storage/users-vault"
vault_data_dir.mkdir(parents=True, exist_ok=True)
# Inherit the full server env so the process has PATH, OCIS_JWT_SECRET,
# OCIS_CONFIG_DIR, SSL settings, etc. — then override with vault-specific values.
vault_env = {
**server_env,
"STORAGE_USERS_ENABLE_VAULT_MODE": "true",
"STORAGE_USERS_SERVICE_NAME": "storage-users-vault",
"STORAGE_USERS_GRPC_ADDR": "localhost:19285",
"STORAGE_USERS_HTTP_ADDR": "localhost:19286",
"STORAGE_USERS_DATA_SERVER_URL": "http://localhost:19286/data",
"STORAGE_USERS_DEBUG_ADDR": "localhost:19287",
"STORAGE_USERS_OCIS_ROOT": str(vault_data_dir),
"STORAGE_USERS_EVENTS_CONSUMER_GROUP": "vault-dcfs",
}
print("Starting storage-users-vault...")
vault_proc = subprocess.Popen(
[str(ocis_bin), "storage-users", "server"],
env=vault_env,
)
procs.append(vault_proc)
wait_for(
lambda: subprocess.run(
["curl", "-sf", "http://localhost:19287/healthz"],
capture_output=True,
).returncode == 0,
120, "storage-users-vault",
)
print("vault ready.")
# expected failures file
if acceptance_test_type == "core-api":
filter_tags = "~@skipOnGraph&&~@skipOnOcis-OCIS-Storage"
@@ -720,4 +896,4 @@ def main() -> int:
if __name__ == "__main__":
sys.exit(main())
sys.exit(main())
+1
View File
@@ -7,6 +7,7 @@ directives:
- 'https://raw.githubusercontent.com/owncloud/awesome-ocis/'
# In contrary to bash and docker the default is given after the | character
- 'https://${KEYCLOAK_DOMAIN|keycloak.owncloud.test}/'
- 'https://localhost:8443/'
default-src:
- '''none'''
font-src:
+37
View File
@@ -138,11 +138,48 @@ func WaitForConnection() (bool, string) {
}
log.Println("oCIS server is ready to accept requests")
// Proxy health alone causes flakiness: tests hit sharing/gateway before they finish init.
results := make(chan bool, 2)
go func() { results <- waitServiceReady("sharing") }()
go func() { results <- waitServiceReady("gateway") }()
sharingOK, gatewayOK := <-results, <-results
if !sharingOK || !gatewayOK {
return false, "Timeout waiting for sharing/gateway to become ready"
}
return true, "oCIS server is up and running"
}
}
}
// waitServiceReady polls http://localhost:<debugPort>/readyz until 200 or 30 s.
func waitServiceReady(service string) bool {
port := config.GetServiceDebugPort(service)
url := fmt.Sprintf("http://localhost:%d/readyz", port)
timeout := time.After(30 * time.Second)
client := http.Client{Timeout: 2 * time.Second}
for {
select {
case <-timeout:
log.Println(fmt.Sprintf("Timeout waiting for %s /readyz on port %d", service, port))
return false
default:
res, err := client.Get(url)
if err == nil && res.StatusCode == 200 {
res.Body.Close()
log.Println(fmt.Sprintf("%s service is ready (readyz port %d)", service, port))
return true
}
if res != nil {
res.Body.Close()
}
time.Sleep(500 * time.Millisecond)
}
}
}
func waitUntilCompleteShutdown() (bool, string) {
timeout := 30 * time.Second
startTime := time.Now()
+2 -1
View File
@@ -118,7 +118,8 @@
"patchedDependencies": {
"caf@15.0.1": "patches/caf@15.0.1.patch",
"vue3-gettext@2.4.0": "patches/vue3-gettext@2.4.0.patch",
"portal-vue@3.0.0": "patches/portal-vue@3.0.0.patch"
"portal-vue@3.0.0": "patches/portal-vue@3.0.0.patch",
"vue-select@4.0.0-beta.6": "patches/vue-select@4.0.0-beta.6.patch"
}
},
"dependencies": {
@@ -1 +1 @@
{"af":{},"ar":{"Cancel":"إلغاء","Close":"غلق","Copy":"نسخ","Details":"التفاصيل","Search":"بحث"},"bs":{},"bg":{"Cancel":"Отказ","Clear filter":"Изчистване на филтъра","Clear input":"Изчистване на въведеното","Close":"Затваряне","Copied":"Копирано","Copy":"Копиране","Deselect %{label}":"Премахване на избора от %{label}","Details":"Подробности","Go to page %{ page }":"Към страница %{ page }","Go to the next page":"Към следващата страница","Go to the previous page":"Към предишната страница","Loading avatar":"Зареждане на аватар","Loading results":"Зареждане на резултати","Navigate one level up":"Преминаване с едно ниво нагоре","No options available.":"Няма налични опции.","Pagination":"Странициране","Read more":"Прочетете още","Search":"Търсене","Show actions for current folder":"Показване на действията за текущата папка"},"ca":{"Activity":"Activitat","Add custom emoji":"Afegeix un emoji personalitzat","Animals & Nature":"Animals i natura","Breadcrumbs":"Ruta navegada","Cancel":"Cancel·la","Choose default skin tone":"Tria el mode de l'aparença per defecte","Clear date":"Neteja la data","Clear filter":"Neteja el filtre","Clear input":"Neteja l'entrada","Close":"Tanca","Copied":"Copiat","Copy":"Copia","Copy password":"Copia la contrasenya","Copy the following information and pass them to technical support to troubleshoot the problem:":"Copiar la següent informació i passa-la al suport tècnic per resoldre el problema:","Custom":"Personalitzat","Dark":"Fosc","Default":"Per defecte","Deselect %{label}":"Desselecciona %{label}","Details":"Detalls","Flags":"Banderes","Food & Drink":"Menjar i beguda","Frequently used":"Utilitzats freqüentment","Fulfilled":"Complert","Generate password":"Genera contrasenya","Go to page %{ page }":"Ves a la pàgina %{ page }","Go to the next page":"Ves a la pàgina següent","Go to the previous page":"Ves a la pàgina anterior","Hide password":"Amaga contrasenya","Light":"Clar","Loading avatar":"Carregant l'avatar","Loading results":"Carregant resultats","Medium":"Mitjà","Medium-Dark":"Mitjà-Fosc","Medium-Light":"Mitjà-Clar","Navigate one level up":"Navega a un nivell superior","No options available.":"No hi ha opcions disponibles.","Not fulfilled":"No complert","Objects":"Objectes","Oh no!":"Oh, no!","Pagination":"Paginació","Password meets all requirements":"La contrasenya compleix tots els requisits","Password policy":"Política de contrasenyes","Password requirements: %{requirements}":"Requisits de contrasenya: %{requirements}","Pick an emoji…":"Trieu un emoji...","Read more":"Llegeix més","Search":"Cerca","Search Results":"Resultats de la cerca","Show actions for current folder":"Mostra les accions per a la carpeta actual","Show more information":"Mostra més informació","Show password":"Mostra la contrasenya","Smileys & People":"Somriures i persones","Symbols":"Símbols","That emoji couldn’t be found":"No s'ha pogut trobar l'emoji","The date must be after %{date}":"La data ha de ser posterior a %{date}","Travel & Places":"Viatges i llocs","Icons":{"Sets a hidden table header text for screen readers":"Icones"},"Column headers with buttons are sortable.":{"Table component caption sorting explanation available only to screen readers.":"Les capçaleres de columna amb botons són ordenables."}},"cs":{"Cancel":"Zrušit","Clear filter":"Zrušit filter","Clear input":"Vymazat vstup","Close":"Zavřít","Copied":"Zkopírováno","Copy":"Kopírovat","Deselect %{label}":"Zrušit výběr %{label}","Details":"Detaily","Go to page %{ page }":"Jít na stránku %{ page }","Go to the next page":"Jít na další stránku","Go to the previous page":"Jít na předchozí stránku","Loading avatar":"Načítání avatara","Loading results":"Načítání výsledků","Navigate one level up":"Přejít o úroveň výše","No options available.":"Žádné možnosti nejsou dostupné.","Pagination":"Stránkování","Read more":"Číst dále","Search":"Hledat","Show actions for current folder":"Zobrazit akce pro aktuální složku"},"de":{"Activity":"Aktivität","Add custom emoji":"Füge ein benutzerdefiniertes Emoji hinzu","Animals & Nature":"Tiere & Natur","Breadcrumbs":"Brotkrumennavigation","Cancel":"Abbrechen","Choose default skin tone":"Wähle eine Standard-Hautfarbe","Clear date":"Lösche das Datum","Clear filter":"Filter löschen","Clear input":"Eingabe zurücksetzen","Close":"Schließen","Copied":"Kopiert","Copy":"Kopieren","Copy password":"Passwort kopieren","Copy the following information and pass them to technical support to troubleshoot the problem:":"Bitte folgende Information kopieren und an den technischen Support weiterleiten, damit das Problem gelöst werden kannLine truncated
{"af":{},"ar":{"Cancel":"إلغاء","Close":"غلق","Copy":"نسخ","Details":"التفاصيل","Search":"بحث"},"bg":{"Cancel":"Отказ","Clear filter":"Изчистване на филтъра","Clear input":"Изчистване на въведеното","Close":"Затваряне","Copied":"Копирано","Copy":"Копиране","Deselect %{label}":"Премахване на избора от %{label}","Details":"Подробности","Go to page %{ page }":"Към страница %{ page }","Go to the next page":"Към следващата страница","Go to the previous page":"Към предишната страница","Loading avatar":"Зареждане на аватар","Loading results":"Зареждане на резултати","Navigate one level up":"Преминаване с едно ниво нагоре","No options available.":"Няма налични опции.","Pagination":"Странициране","Read more":"Прочетете още","Search":"Търсене","Show actions for current folder":"Показване на действията за текущата папка"},"bs":{},"ca":{"Activity":"Activitat","Add custom emoji":"Afegeix un emoji personalitzat","Animals & Nature":"Animals i natura","Breadcrumbs":"Ruta navegada","Cancel":"Cancel·la","Choose default skin tone":"Tria el mode de l'aparença per defecte","Clear date":"Neteja la data","Clear filter":"Neteja el filtre","Clear input":"Neteja l'entrada","Close":"Tanca","Copied":"Copiat","Copy":"Copia","Copy password":"Copia la contrasenya","Copy the following information and pass them to technical support to troubleshoot the problem:":"Copiar la següent informació i passa-la al suport tècnic per resoldre el problema:","Custom":"Personalitzat","Dark":"Fosc","Default":"Per defecte","Deselect %{label}":"Desselecciona %{label}","Details":"Detalls","Flags":"Banderes","Food & Drink":"Menjar i beguda","Frequently used":"Utilitzats freqüentment","Fulfilled":"Complert","Generate password":"Genera contrasenya","Go to page %{ page }":"Ves a la pàgina %{ page }","Go to the next page":"Ves a la pàgina següent","Go to the previous page":"Ves a la pàgina anterior","Hide password":"Amaga contrasenya","Light":"Clar","Loading avatar":"Carregant l'avatar","Loading results":"Carregant resultats","Medium":"Mitjà","Medium-Dark":"Mitjà-Fosc","Medium-Light":"Mitjà-Clar","Navigate one level up":"Navega a un nivell superior","No options available.":"No hi ha opcions disponibles.","Not fulfilled":"No complert","Objects":"Objectes","Oh no!":"Oh, no!","Pagination":"Paginació","Password meets all requirements":"La contrasenya compleix tots els requisits","Password policy":"Política de contrasenyes","Password requirements: %{requirements}":"Requisits de contrasenya: %{requirements}","Pick an emoji…":"Trieu un emoji...","Read more":"Llegeix més","Search":"Cerca","Search Results":"Resultats de la cerca","Show actions for current folder":"Mostra les accions per a la carpeta actual","Show more information":"Mostra més informació","Show password":"Mostra la contrasenya","Smileys & People":"Somriures i persones","Symbols":"Símbols","That emoji couldn’t be found":"No s'ha pogut trobar l'emoji","The date must be after %{date}":"La data ha de ser posterior a %{date}","Travel & Places":"Viatges i llocs","Icons":{"Sets a hidden table header text for screen readers":"Icones"},"Column headers with buttons are sortable.":{"Table component caption sorting explanation available only to screen readers.":"Les capçaleres de columna amb botons són ordenables."}},"cs":{"Cancel":"Zrušit","Clear filter":"Zrušit filter","Clear input":"Vymazat vstup","Close":"Zavřít","Copied":"Zkopírováno","Copy":"Kopírovat","Deselect %{label}":"Zrušit výběr %{label}","Details":"Detaily","Go to page %{ page }":"Jít na stránku %{ page }","Go to the next page":"Jít na další stránku","Go to the previous page":"Jít na předchozí stránku","Loading avatar":"Načítání avatara","Loading results":"Načítání výsledků","Navigate one level up":"Přejít o úroveň výše","No options available.":"Žádné možnosti nejsou dostupné.","Pagination":"Stránkování","Read more":"Číst dále","Search":"Hledat","Show actions for current folder":"Zobrazit akce pro aktuální složku"},"de":{"Activity":"Aktivität","Add custom emoji":"Füge ein benutzerdefiniertes Emoji hinzu","Animals & Nature":"Tiere & Natur","Breadcrumbs":"Brotkrumennavigation","Cancel":"Abbrechen","Choose default skin tone":"Wähle eine Standard-Hautfarbe","Clear date":"Lösche das Datum","Clear filter":"Filter löschen","Clear input":"Eingabe zurücksetzen","Close":"Schließen","Copied":"Kopiert","Copy":"Kopieren","Copy password":"Passwort kopieren","Copy the following information and pass them to technical support to troubleshoot the problem:":"Bitte folgende Information kopieren und an den technischen Support weiterleiten, damit das Problem gelöst werden kannLine truncated
@@ -12,6 +12,7 @@
:data-key="index"
:data-item-id="item.id"
:aria-hidden="item.isTruncationPlaceholder"
:inert="item.isTruncationPlaceholder || undefined"
:tabindex="item.isTruncationPlaceholder ? -1 : 0"
:class="[
'oc-breadcrumb-list-item',
@@ -33,6 +34,7 @@
<router-link
v-if="item.to"
:aria-current="getAriaCurrent(index)"
:tabindex="item.isTruncationPlaceholder ? -1 : undefined"
:to="item.isTruncationPlaceholder ? lastHiddenItem.to : item.to"
>
<span class="oc-breadcrumb-item-text oc-breadcrumb-item-navigable">{{ item.text }}</span>
@@ -9,7 +9,7 @@ exports[`OcBreadcrumb > displays all items 1`] = `
<!--v-if-->
</li>
<li data-key="1" aria-hidden="true" tabindex="-1" class="oc-breadcrumb-list-item oc-flex oc-flex-middle oc-invisible-sr">
<router-link-stub tag="a" to="[object Object]"><span class="oc-breadcrumb-item-text oc-breadcrumb-item-navigable">...</span></router-link-stub>
<router-link-stub tag="a" to="[object Object]" tabindex="-1"><span class="oc-breadcrumb-item-text oc-breadcrumb-item-navigable">...</span></router-link-stub>
<oc-icon-stub name="arrow-right-s" filltype="line" accessiblelabel="" type="span" size="medium" variation="passive" color="var(--oc-color-text-default)" class="oc-mx-xs"></oc-icon-stub>
<!--v-if-->
</li>
@@ -45,7 +45,7 @@ exports[`OcBreadcrumb > sets correct variation 1`] = `
<!--v-if-->
</li>
<li data-key="1" aria-hidden="true" tabindex="-1" class="oc-breadcrumb-list-item oc-flex oc-flex-middle oc-invisible-sr">
<router-link-stub tag="a" to="[object Object]"><span class="oc-breadcrumb-item-text oc-breadcrumb-item-navigable">...</span></router-link-stub>
<router-link-stub tag="a" to="[object Object]" tabindex="-1"><span class="oc-breadcrumb-item-text oc-breadcrumb-item-navigable">...</span></router-link-stub>
<oc-icon-stub name="arrow-right-s" filltype="line" accessiblelabel="" type="span" size="medium" variation="passive" color="var(--oc-color-text-default)" class="oc-mx-xs"></oc-icon-stub>
<!--v-if-->
</li>
@@ -74,6 +74,7 @@ interface Props {
offset?: string
sameWidthAsTarget?: boolean
focusOnOpen?: boolean
role?: string | null
}
interface Emits {
(e: 'hideDrop'): void
@@ -98,7 +99,8 @@ const {
paddingSize = 'medium',
offset = '',
sameWidthAsTarget = false,
focusOnOpen = false
focusOnOpen = false,
role = null
} = defineProps<Props>()
const emit = defineEmits<Emits>()
@@ -297,7 +299,7 @@ function initializeTippy() {
]
},
content,
role: 'listbox'
role
}
if (unref(target)) {
@@ -21,7 +21,6 @@ exports[`OcDrop > tippy > renders tippy 1`] = `
data-reference-hidden=""
data-state="visible"
data-theme="none"
role="listbox"
style="max-width: 416px; transition-duration: 300ms;"
tabindex="-1"
>
@@ -73,7 +72,6 @@ exports[`OcDrop > tippy > renders tippy 2`] = `
data-reference-hidden=""
data-state="hidden"
data-theme="none"
role="listbox"
style="max-width: 416px; transition-duration: 250ms;"
tabindex="-1"
>
@@ -125,7 +123,6 @@ exports[`OcDrop > tippy > renders tippy 3`] = `
data-reference-hidden=""
data-state="visible"
data-theme="none"
role="listbox"
style="max-width: 416px; transition-duration: 300ms;"
tabindex="-1"
>
@@ -571,6 +571,12 @@ onBeforeUnmount(() => {
}
}
// override vue-select's default opacity for the search input while
// searching but not yet open, which drops contrast below WCAG AA
&.vs--single.vs--searching:not(.vs--open):not(.vs--loading) .vs__search {
opacity: 1;
}
.keyboard-outline {
outline: 2px var(--oc-color-swatch-passive-default) solid !important;
outline-offset: -2px;
@@ -53,11 +53,10 @@
v-else
class="oc-table-thead-content header-text"
:class="{ 'oc-invisible-sr': !extractFieldTitle(field) }"
:aria-hidden="extractFieldTitle(field) ? 'false' : 'true'"
v-text="
hasIconsColumn
? $pgettext('Sets a hidden table header text for screen readers', 'Icons')
: extractFieldTitle(field)
: extractFieldTitle(field) || field.name
"
/>
</div>
@@ -58,6 +58,8 @@ const initOrUpdate = (el: HTMLElement & { tooltip: any }, { value = {} }: any) =
return
}
const prefersReducedMotion = window.matchMedia('(prefers-reduced-motion: reduce)').matches
const props = merge.all([
{
ignoreAttributes: true,
@@ -65,7 +67,10 @@ const initOrUpdate = (el: HTMLElement & { tooltip: any }, { value = {} }: any) =
aria: {
content: null,
expanded: false
}
},
// tippy's fade transition doesn't respect prefers-reduced-motion on its own,
// so a11y scans can catch the tooltip mid-fade with a transient low-contrast color
...(prefersReducedMotion && { duration: 0 })
},
value
])
@@ -1 +1 @@
{"af":{},"ar":{},"bg":{"Activities":"Дейности"},"bs":{},"ca":{"Activities":"Activitats","Activity unknown":"Activitat desconeguda","Filter location":"Filtrar ubicació","Location":"Ubicació","No activities found":"No s'ha trobat cap activitat","The resource is unavailable, it may have been deleted.":"El recurs no està disponible, pot ser que s'hagi suprimit."},"cs":{"Activities":"Aktivity"},"de":{"Activities":"Aktivitäten","Activity unknown":"Unbekannte Aktivität","Filter location":"Ort filtern","Location":"Ort","No activities found":"Keine Aktivitäten gefunden","The resource is unavailable, it may have been deleted.":"Die Ressource ist nicht mehr verfügbar, sie wurde möglicherweise gelöscht."},"el":{},"es":{"Activities":"Actividades","Activity unknown":"Actividad desconocida","Filter location":"Filtrar ubicación","Location":"Localización","No activities found":"Sin actividades","The resource is unavailable, it may have been deleted.":"El recurso no está disponible, puede haber sido borrado."},"et":{},"fr":{"Activities":"Activités","Activity unknown":"Activité inconnue","Filter location":"Filter la localisation","Location":"Localisation","No activities found":"Aucune activité trouvée","The resource is unavailable, it may have been deleted.":"La ressource n'est pas disponible, elle a peut-être été supprimée."},"gl":{},"he":{"Activities":"פעילויות","Activity unknown":"פעילות לא ידועה","Filter location":"סינון מיקום","Location":"מיקום","No activities found":"לא נמצאו פעילויות","The resource is unavailable, it may have been deleted.":"המשאב לא זמין, ייתכן והוא נמחק."},"hr":{"Activities":"Aktivnosti","Filter location":"Filtriraj lokaciju","Location":"Lokacija","No activities found":"Nema pronađenih aktivnosti","The resource is unavailable, it may have been deleted.":"Ovaj resurs je nedostupan, moguče da je izbrisan."},"id":{"Activities":"Aktifitas","Filter location":"Lokasi filter","Location":"Lokasi","No activities found":"Aktifitas tidak ditemukan","The resource is unavailable, it may have been deleted.":"Sumber daya tidak tersedia, mungkin telah dihapus."},"it":{"Activities":"Attività","Activity unknown":"Attività sconosciuta","Filter location":"Filtro posizione","Location":"Posizione","No activities found":"Nessuna attività trovata","The resource is unavailable, it may have been deleted.":"La risorsa non è disponibile, potrebbe essere stata cancellata."},"ja":{"Activities":"アクティビティー"},"nl":{"Activities":"Activiteit","Filter location":"Locatie filteren","Location":"Locatie","No activities found":"Geen activiteiten gevonden","The resource is unavailable, it may have been deleted.":"De bron is niet beschikbaar, deze is mogelijk verwijderd."},"pl":{"Activities":"Aktywności","Location":"Lokalizacja"},"pt":{"Activities":"Atividades","Activity unknown":"Atividade desconhecida","Filter location":"Filtrar localização","Location":"Localização","No activities found":"Nenhuma atividade encontrada","The resource is unavailable, it may have been deleted.":"O recurso está indisponível, ele pode ter sido excluído."},"ka":{},"ko":{"Activities":"활동"},"ro":{},"ru":{"Activities":"Активности","Activity unknown":"Неизвестная деятельность","Filter location":"Фильтр местоположения","Location":"Местоположение","No activities found":"Нет найденных активностей","The resource is unavailable, it may have been deleted.":"Ресурс недоступен, возможно, он был удален."},"si":{},"sk":{},"sq":{"Activities":"Veprimtari","Activity unknown":"Veprimtari e panjohur","Filter location":"Filtro vendndodhjen","Location":"Vendndodhje","No activities found":"S’u gjetën veprimtari","The resource is unavailable, it may have been deleted.":"Burimi s’gjendet, mund të jetë fshirë."},"sr":{},"sv":{"Activities":"Aktiviteter"},"ta":{},"tr":{"Activities":"Aktiviteler"},"ug":{},"uk":{"Activities":"Активності","Activity unknown":"Активність невідома","Filter location":"Фільтр розташування","Location":"Місцезнаходження","No activities found":"Активностей не знайдено","The resource is unavailable, it may have been deleted.":"Ресурс недоступний, можливо його видалили."},"zh":{"Activities":"活动"}}
{"af":{},"bs":{},"ar":{},"bg":{"Activities":"Дейности"},"ca":{"Activities":"Activitats","Activity unknown":"Activitat desconeguda","Filter location":"Filtrar ubicació","Location":"Ubicació","No activities found":"No s'ha trobat cap activitat","The resource is unavailable, it may have been deleted.":"El recurs no està disponible, pot ser que s'hagi suprimit."},"cs":{"Activities":"Aktivity"},"el":{},"de":{"Activities":"Aktivitäten","Activity unknown":"Unbekannte Aktivität","Filter location":"Ort filtern","Location":"Ort","No activities found":"Keine Aktivitäten gefunden","The resource is unavailable, it may have been deleted.":"Die Ressource ist nicht mehr verfügbar, sie wurde möglicherweise gelöscht."},"es":{"Activities":"Actividades","Activity unknown":"Actividad desconocida","Filter location":"Filtrar ubicación","Location":"Localización","No activities found":"Sin actividades","The resource is unavailable, it may have been deleted.":"El recurso no está disponible, puede haber sido borrado."},"et":{},"fr":{"Activities":"Activités","Activity unknown":"Activité inconnue","Filter location":"Filter la localisation","Location":"Localisation","No activities found":"Aucune activité trouvée","The resource is unavailable, it may have been deleted.":"La ressource n'est pas disponible, elle a peut-être été supprimée."},"gl":{},"he":{"Activities":"פעילויות","Activity unknown":"פעילות לא ידועה","Filter location":"סינון מיקום","Location":"מיקום","No activities found":"לא נמצאו פעילויות","The resource is unavailable, it may have been deleted.":"המשאב לא זמין, ייתכן והוא נמחק."},"hr":{"Activities":"Aktivnosti","Filter location":"Filtriraj lokaciju","Location":"Lokacija","No activities found":"Nema pronađenih aktivnosti","The resource is unavailable, it may have been deleted.":"Ovaj resurs je nedostupan, moguče da je izbrisan."},"id":{"Activities":"Aktifitas","Filter location":"Lokasi filter","Location":"Lokasi","No activities found":"Aktifitas tidak ditemukan","The resource is unavailable, it may have been deleted.":"Sumber daya tidak tersedia, mungkin telah dihapus."},"it":{"Activities":"Attività","Activity unknown":"Attività sconosciuta","Filter location":"Filtro posizione","Location":"Posizione","No activities found":"Nessuna attività trovata","The resource is unavailable, it may have been deleted.":"La risorsa non è disponibile, potrebbe essere stata cancellata."},"ja":{"Activities":"アクティビティー"},"nl":{"Activities":"Activiteit","Filter location":"Locatie filteren","Location":"Locatie","No activities found":"Geen activiteiten gevonden","The resource is unavailable, it may have been deleted.":"De bron is niet beschikbaar, deze is mogelijk verwijderd."},"pt":{"Activities":"Atividades","Activity unknown":"Atividade desconhecida","Filter location":"Filtrar localização","Location":"Localização","No activities found":"Nenhuma atividade encontrada","The resource is unavailable, it may have been deleted.":"O recurso está indisponível, ele pode ter sido excluído."},"pl":{"Activities":"Aktywności","Location":"Lokalizacja"},"ka":{},"ko":{"Activities":"활동"},"ro":{},"ru":{"Activities":"Активности","Activity unknown":"Неизвестная деятельность","Filter location":"Фильтр местоположения","Location":"Местоположение","No activities found":"Нет найденных активностей","The resource is unavailable, it may have been deleted.":"Ресурс недоступен, возможно, он был удален."},"si":{},"sk":{},"sq":{"Activities":"Veprimtari","Activity unknown":"Veprimtari e panjohur","Filter location":"Filtro vendndodhjen","Location":"Vendndodhje","No activities found":"S’u gjetën veprimtari","The resource is unavailable, it may have been deleted.":"Burimi s’gjendet, mund të jetë fshirë."},"sv":{"Activities":"Aktiviteter"},"sr":{},"ta":{},"tr":{"Activities":"Aktiviteler"},"ug":{},"uk":{"Activities":"Активності","Activity unknown":"Активність невідома","Filter location":"Фільтр розташування","Location":"Місцезнаходження","No activities found":"Активностей не знайдено","The resource is unavailable, it may have been deleted.":"Ресурс недоступний, можливо його видалили."},"zh":{"Activities":"活动"}}
@@ -1 +1 @@
{"af":{},"ar":{"%{count} groups selected":"٪{عدد} المجموعات المحددة","%{count} users selected":"٪{عدد} المستخدمين المحددين","Actions":"إجراءات","Add to groups":"إضافة إلى المجموعات","Administration Settings":"إعدادات الإدارة","Allowed":"مسموح","Appearance":"ظهور","Create group":"إنشاء مجموعة","Create user":"إنشاء مستخدم","Delete":"حذف","Details":"التفاصيل","Disabled":"تعطيل","Edit":"يحرر","Edit group":"تحرير المجموعة","Edit login":"تعديل تسجيل الدخول","Edit quota":"تعديل الحصة النسبية","Edit user":"تحرير المستخدم","Edition":"الطبعه","Email":"بريد إلكتروني","Enabled":"تمكين","Failed to create group":"فشل إنشاء مجموعة","Failed to create user":"فشل إنشاء مستخدم","Failed to edit group":"فشل تحرير المجموعة","Failed to edit user":"فشل تحرير المستخدم","Failed to reset logo":"فشل إعادة تعيين الشعار","Failed to upload logo":"فشل تحميل الشعار","Filter groups":"تصفية المجموعات","Filter members":"تصفية الأعضاء","Filter roles":"تصفية الأدوار","Filter:":"تصفيه","First and last name":"الاسم الأول والأخير","First and last name cannot be empty":"لا يمكن أن يكون الاسم الأول واسم العائلة فارغين","First and last name cannot exceed 255 characters":"لا يمكن أن يتجاوز الاسم الأول والأخير 255 حرفا","Forbidden":"ممنوع","General":"عام","Group name":"اسم المجموعة","Group name cannot be empty":"لا يمكن أن يكون اسم المجموعة فارغا","Group name cannot exceed 255 characters":"لا يمكن أن يتجاوز اسم المجموعة 255 حرفا","Group was created successfully":"تم إنشاء المجموعة بنجاح","Groups":"المجموعات","Info":"معلومات","Login":"تسجيل الدخول","Logo":"شعار","Logo was reset successfully. Reloading page...":"تمت إعادة تعيين الشعار بنجاح. إعادة تحميل الصفحة","Logo was uploaded successfully":"تم تحميل الشعار بنجاح","Manager":"مدير","Members":"اعضاء","Modified":"تم التعديل","Name":"اسم","New group":"مجموعة جديدة","New user":"مستخدم جديد","No groups assigned.":"لم يتم تعيين مجموعات","No members found":"لم يتم العثور على أعضاء","No restriction":"لا قيود","No spaces in here":"لا توجد مسافات هنا","No users in here":"لا يوجد مستخدمون هنا","Overview of the information about the selected group":"نظرة عامة على المعلومات حول المجموعة المحددة","Overview of the information about the selected user":"نظرة عامة على المعلومات حول المستخدم المحدد","ownCloud":"السحابة الخاصة","Password":"كلمة المرور","Password cannot be empty":"لا يمكن أن تكون كلمة المرور فارغة","Personal quota":"الحصة الشخصية","Please enter a valid email":"الرجاء إدخال بريد إلكتروني صحيح","Quota":"الحصه النسبيه","Quota will only be applied to users who logged in at least once.":"سيتم تطبيق الحصة النسبية فقط على المستخدمين الذين قاموا بتسجيل الدخول مرة واحدة على الأقل.","Remaining quota":"الحصة المتبقية","Remove from groups":"إزالة من المجموعات","Reset logo":"إعادة تعيين الشعار","Role":"دور","Roles":"ادوار","Search":"بحث","Select a group to view details":"حدد مجموعة لعرض التفاصيل","Select a user to view details":"حدد مستخدما لعرض التفاصيل","Select all groups":"حدد كل المجموعات","Select all spaces":"حدد كل المسافات","Select all users":"حدد جميع المستخدمين","Select...":"اختار...","Show context menu":"إظهار قائمة السياق","Show details":"اظهر التفاصيل","Spaces":"مسافات","Status":"حالة","The file type is unsupported":"نوع الملف غير معتمد","This group is read-only and can't be edited":"هذه المجموعة للقراءة فقط ولا يمكن تحريرها","To set an individual quota, the user needs to have logged in once.":"لتعيين حصة فردية ، يحتاج المستخدم إلى تسجيل الدخول مرة واحدة.","Total quota":"إجمالي الحصة","Unaffected users":"المستخدمون غير المتأثرين","Upload logo":"تحميل الشعار","Used quota":"الحصة المستخدمة","User name":"اسم المستخدم","User name cannot be empty":"لا يمكن أن يكون اسم المLine truncated
{"af":{},"ar":{"%{count} groups selected":"٪{عدد} المجموعات المحددة","%{count} users selected":"٪{عدد} المستخدمين المحددين","Actions":"إجراءات","Add to groups":"إضافة إلى المجموعات","Administration Settings":"إعدادات الإدارة","Allowed":"مسموح","Appearance":"ظهور","Create group":"إنشاء مجموعة","Create user":"إنشاء مستخدم","Delete":"حذف","Details":"التفاصيل","Disabled":"تعطيل","Edit":"يحرر","Edit group":"تحرير المجموعة","Edit login":"تعديل تسجيل الدخول","Edit quota":"تعديل الحصة النسبية","Edit user":"تحرير المستخدم","Edition":"الطبعه","Email":"بريد إلكتروني","Enabled":"تمكين","Failed to create group":"فشل إنشاء مجموعة","Failed to create user":"فشل إنشاء مستخدم","Failed to edit group":"فشل تحرير المجموعة","Failed to edit user":"فشل تحرير المستخدم","Failed to reset logo":"فشل إعادة تعيين الشعار","Failed to upload logo":"فشل تحميل الشعار","Filter groups":"تصفية المجموعات","Filter members":"تصفية الأعضاء","Filter roles":"تصفية الأدوار","Filter:":"تصفيه","First and last name":"الاسم الأول والأخير","First and last name cannot be empty":"لا يمكن أن يكون الاسم الأول واسم العائلة فارغين","First and last name cannot exceed 255 characters":"لا يمكن أن يتجاوز الاسم الأول والأخير 255 حرفا","Forbidden":"ممنوع","General":"عام","Group name":"اسم المجموعة","Group name cannot be empty":"لا يمكن أن يكون اسم المجموعة فارغا","Group name cannot exceed 255 characters":"لا يمكن أن يتجاوز اسم المجموعة 255 حرفا","Group was created successfully":"تم إنشاء المجموعة بنجاح","Groups":"المجموعات","Info":"معلومات","Login":"تسجيل الدخول","Logo":"شعار","Logo was reset successfully. Reloading page...":"تمت إعادة تعيين الشعار بنجاح. إعادة تحميل الصفحة","Logo was uploaded successfully":"تم تحميل الشعار بنجاح","Manager":"مدير","Members":"اعضاء","Modified":"تم التعديل","Name":"اسم","New group":"مجموعة جديدة","New user":"مستخدم جديد","No groups assigned.":"لم يتم تعيين مجموعات","No members found":"لم يتم العثور على أعضاء","No restriction":"لا قيود","No spaces in here":"لا توجد مسافات هنا","No users in here":"لا يوجد مستخدمون هنا","Overview of the information about the selected group":"نظرة عامة على المعلومات حول المجموعة المحددة","Overview of the information about the selected user":"نظرة عامة على المعلومات حول المستخدم المحدد","ownCloud":"السحابة الخاصة","Password":"كلمة المرور","Password cannot be empty":"لا يمكن أن تكون كلمة المرور فارغة","Personal quota":"الحصة الشخصية","Please enter a valid email":"الرجاء إدخال بريد إلكتروني صحيح","Quota":"الحصه النسبيه","Quota will only be applied to users who logged in at least once.":"سيتم تطبيق الحصة النسبية فقط على المستخدمين الذين قاموا بتسجيل الدخول مرة واحدة على الأقل.","Remaining quota":"الحصة المتبقية","Remove from groups":"إزالة من المجموعات","Reset logo":"إعادة تعيين الشعار","Role":"دور","Roles":"ادوار","Search":"بحث","Select a group to view details":"حدد مجموعة لعرض التفاصيل","Select a user to view details":"حدد مستخدما لعرض التفاصيل","Select all groups":"حدد كل المجموعات","Select all spaces":"حدد كل المسافات","Select all users":"حدد جميع المستخدمين","Select...":"اختار...","Show context menu":"إظهار قائمة السياق","Show details":"اظهر التفاصيل","Spaces":"مسافات","Status":"حالة","The file type is unsupported":"نوع الملف غير معتمد","This group is read-only and can't be edited":"هذه المجموعة للقراءة فقط ولا يمكن تحريرها","To set an individual quota, the user needs to have logged in once.":"لتعيين حصة فردية ، يحتاج المستخدم إلى تسجيل الدخول مرة واحدة.","Total quota":"إجمالي الحصة","Unaffected users":"المستخدمون غير المتأثرين","Upload logo":"تحميل الشعار","Used quota":"الحصة المستخدمة","User name":"اسم المستخدم","User name cannot be empty":"لا يمكن أن يكون اسم المLine truncated
@@ -48,6 +48,7 @@
id="groups-filter-confirm"
class="oc-ml-xs"
appearance="raw"
:aria-label="$gettext('Search')"
@click="filterGroups"
>
<oc-icon name="search" fill-type="line" />
@@ -19,6 +19,7 @@
v-if="createUserAction.isVisible()"
id="create-user-btn"
v-oc-tooltip="limitedScreenSpace ? createUserAction.label() : undefined"
:aria-label="limitedScreenSpace ? createUserAction.label() : undefined"
class="oc-mr-s"
variation="primary"
appearance="filled"
@@ -102,6 +103,7 @@
id="users-filter-confirm"
class="oc-ml-xs"
appearance="raw"
:aria-label="$gettext('Search')"
@click="filterDisplayName"
>
<oc-icon name="search" fill-type="line" />
@@ -37,7 +37,7 @@ exports[`Users view > list view > renders initially warning if filters are manda
<!--v-if-->
<!--v-if-->
</div>
<oc-button-stub data-v-10ab5d2a="" type="button" disabled="false" size="medium" submit="button" variation="passive" appearance="raw" justifycontent="center" gapsize="medium" showspinner="false" id="users-filter-confirm" class="oc-ml-xs"></oc-button-stub>
<oc-button-stub data-v-10ab5d2a="" type="button" disabled="false" size="medium" arialabel="Search" submit="button" variation="passive" appearance="raw" justifycontent="center" gapsize="medium" showspinner="false" id="users-filter-confirm" class="oc-ml-xs"></oc-button-stub>
</div>
</div>
<div>
@@ -87,7 +87,7 @@ exports[`Users view > list view > renders list initially 1`] = `
<!--v-if-->
<!--v-if-->
</div>
<oc-button-stub data-v-10ab5d2a="" type="button" disabled="false" size="medium" submit="button" variation="passive" appearance="raw" justifycontent="center" gapsize="medium" showspinner="false" id="users-filter-confirm" class="oc-ml-xs"></oc-button-stub>
<oc-button-stub data-v-10ab5d2a="" type="button" disabled="false" size="medium" arialabel="Search" submit="button" variation="passive" appearance="raw" justifycontent="center" gapsize="medium" showspinner="false" id="users-filter-confirm" class="oc-ml-xs"></oc-button-stub>
</div>
</div>
<div>
@@ -1 +1 @@
{"af":{},"ar":{"Details":"التفاصيل","Download":"تحميل","Search":"بحث"},"bs":{},"bg":{"Details":"Подробности","Download":"Изтегляне","Search":"Търсене","Tags":"Етикети"},"ca":{"App Details":"Detalls de l'aplicació","App Store":"Botiga d'aplicacions","App Version":"Versió de l'aplicació","Author":"Autor","Back to list":"Torna a la llista","Details":"Detalls","Download":"Baixa","How to install?":"Com instal·lar?","Infinite Scale Version":"Versió Infinite Scale","most recent":"més recent","No apps found matching your search":"No s'ha trobat cap aplicació que coincideixi amb la cerca","Releases":"Llançaments","Resources":"Recursos","Search":"Cerca","Tags":"Etiquetes","The App Store app lets you download apps as .zip files. Please follow the link below to learn how to install these apps into your oCIS.":"La botiga d'aplicacions us permet baixar aplicacions com a fitxers .zip. Si us plau, segueix l'enllaç següent per saber com instal·lar aquestes aplicacions a la teva instància d'oCIS."},"cs":{"Details":"Detaily","Download":"Stáhnout","Search":"Hledat"},"de":{"App Details":"App Details","App Store":"App Store","App Version":"App Version","Author":"Autor","Back to list":"Zurück zur Liste","Details":"Details","Download":"Herunterladen","How to install?":"Wie installieren?","Infinite Scale Version":"Infinite Scale Version","most recent":"neueste","No apps found matching your search":"Es wurden keine Apps für diese Suche gefunden","Releases":"Versionen","Resources":"Ressourcen","Search":"Suchen","Tags":"Schlagworte","The App Store app lets you download apps as .zip files. Please follow the link below to learn how to install these apps into your oCIS.":"Mit der App Store App können Apps als .zip Dateien heruntergeladen werden. Die Dokumentation zur Installation kann über den untenstehenden Link nachgelesen werden."},"el":{"Download":"Λήψη","Search":"Αναζήτηση"},"es":{"App Details":"Detalle de la App","App Store":"App Store","App Version":"Versión","Author":"Autor","Back to list":"Volver a la lista","Details":"Detalles","Download":"Descargar","How to install?":"¿Cómo instalar?","Infinite Scale Version":"Versión Infinite Scale","most recent":"Más reciente","No apps found matching your search":"No se encontraron apps que correspondan a su búsqueda.","Releases":"Lanzamientos","Resources":"Recursos","Search":"Buscar","Tags":"Etiquetas","The App Store app lets you download apps as .zip files. Please follow the link below to learn how to install these apps into your oCIS.":"La aplicación App Store te permite descargar aplicaciones como archivos .zip. Sigue el enlace que aparece a continuación para saber cómo instalar estas aplicaciones en tu oCIS."},"et":{},"fr":{"App Details":"Détails de l'app","App Store":"App Store","App Version":"Version de l'application","Author":"Auteur","Back to list":"Retourner à la liste","Details":"Détails","Download":"Télécharger","How to install?":"Comment installer ?","Infinite Scale Version":"Version d'Infinite Scale","most recent":"plus récent","No apps found matching your search":"Aucune application ne correspond à votre recherche","Releases":"Versions","Resources":"Resources","Search":"Recherche","Tags":"Étiquettes","The App Store app lets you download apps as .zip files. Please follow the link below to learn how to install these apps into your oCIS.":"L'application App Store vous permet de télécharger des applications sous forme de fichiers .zip. Veuillez suivre le lien ci-dessous pour savoir comment installer ces applications dans votre oCIS."},"gl":{"Download":"Descargar","Search":"Buscar"},"he":{"Details":"פרטים","Download":"הורדה","Search":"חיפוש"},"hr":{"App Details":"Detalji Aplikacije","App Store":"Trgovina Aplikacija","App Version":"Verzija Aplikacije","Author":"Autor","Back to list":"Nazad na listu","Details":"Detalji","Download":"Preuzmi","How to install?":"Kako instalirati?","Infinite Scale Version":"Verzija Beskonačnog Skaliranja","most recent":"Najnoviji","No apps found matching your search":"Vaša pretraga nije pronašla aplikacije koje tražite","Releases":"Izdanja","Resources":"Resursi","Search":"Pretraga","Tags":"Oznake","The App Store app lets you download apps as .zip files. Please follow the link below to learn how to install these apps into your oCIS.":"Trgovina Aplikacija dozvoljava preuzimanje aplikacija kao zip.datoteke.\nMolimo vas da pratite link ispod da saznate kako instalirati aplikacije u vaš oCIS."},"id":{"Search":"Cari"},"it":{"App Details":"Dettagli App","App Store":"App Store","App Version":"Versione App","Author":"Autore","Back to list":"Torna all'elenco","Details":"Dettagli","Download":"Scarica","How to install?":"Come installare?","Infinite Scale Version":"Versione Infinite Scale","most recent":"più recente","No apps found matching your search":"Non sono state trovate app corrispondenti alla tua ricerca","Releases":"Rilasci","Resources":"RLine truncated
{"af":{},"ar":{"Details":"التفاصيل","Download":"تحميل","Search":"بحث"},"bs":{},"bg":{"Details":"Подробности","Download":"Изтегляне","Search":"Търсене","Tags":"Етикети"},"cs":{"Details":"Detaily","Download":"Stáhnout","Search":"Hledat"},"ca":{"App Details":"Detalls de l'aplicació","App Store":"Botiga d'aplicacions","App Version":"Versió de l'aplicació","Author":"Autor","Back to list":"Torna a la llista","Details":"Detalls","Download":"Baixa","How to install?":"Com instal·lar?","Infinite Scale Version":"Versió Infinite Scale","most recent":"més recent","No apps found matching your search":"No s'ha trobat cap aplicació que coincideixi amb la cerca","Releases":"Llançaments","Resources":"Recursos","Search":"Cerca","Tags":"Etiquetes","The App Store app lets you download apps as .zip files. Please follow the link below to learn how to install these apps into your oCIS.":"La botiga d'aplicacions us permet baixar aplicacions com a fitxers .zip. Si us plau, segueix l'enllaç següent per saber com instal·lar aquestes aplicacions a la teva instància d'oCIS."},"de":{"App Details":"App Details","App Store":"App Store","App Version":"App Version","Author":"Autor","Back to list":"Zurück zur Liste","Details":"Details","Download":"Herunterladen","How to install?":"Wie installieren?","Infinite Scale Version":"Infinite Scale Version","most recent":"neueste","No apps found matching your search":"Es wurden keine Apps für diese Suche gefunden","Releases":"Versionen","Resources":"Ressourcen","Search":"Suchen","Tags":"Schlagworte","The App Store app lets you download apps as .zip files. Please follow the link below to learn how to install these apps into your oCIS.":"Mit der App Store App können Apps als .zip Dateien heruntergeladen werden. Die Dokumentation zur Installation kann über den untenstehenden Link nachgelesen werden."},"es":{"App Details":"Detalle de la App","App Store":"App Store","App Version":"Versión","Author":"Autor","Back to list":"Volver a la lista","Details":"Detalles","Download":"Descargar","How to install?":"¿Cómo instalar?","Infinite Scale Version":"Versión Infinite Scale","most recent":"Más reciente","No apps found matching your search":"No se encontraron apps que correspondan a su búsqueda.","Releases":"Lanzamientos","Resources":"Recursos","Search":"Buscar","Tags":"Etiquetas","The App Store app lets you download apps as .zip files. Please follow the link below to learn how to install these apps into your oCIS.":"La aplicación App Store te permite descargar aplicaciones como archivos .zip. Sigue el enlace que aparece a continuación para saber cómo instalar estas aplicaciones en tu oCIS."},"el":{"Download":"Λήψη","Search":"Αναζήτηση"},"et":{},"fr":{"App Details":"Détails de l'app","App Store":"App Store","App Version":"Version de l'application","Author":"Auteur","Back to list":"Retourner à la liste","Details":"Détails","Download":"Télécharger","How to install?":"Comment installer ?","Infinite Scale Version":"Version d'Infinite Scale","most recent":"plus récent","No apps found matching your search":"Aucune application ne correspond à votre recherche","Releases":"Versions","Resources":"Resources","Search":"Recherche","Tags":"Étiquettes","The App Store app lets you download apps as .zip files. Please follow the link below to learn how to install these apps into your oCIS.":"L'application App Store vous permet de télécharger des applications sous forme de fichiers .zip. Veuillez suivre le lien ci-dessous pour savoir comment installer ces applications dans votre oCIS."},"gl":{"Download":"Descargar","Search":"Buscar"},"he":{"Details":"פרטים","Download":"הורדה","Search":"חיפוש"},"hr":{"App Details":"Detalji Aplikacije","App Store":"Trgovina Aplikacija","App Version":"Verzija Aplikacije","Author":"Autor","Back to list":"Nazad na listu","Details":"Detalji","Download":"Preuzmi","How to install?":"Kako instalirati?","Infinite Scale Version":"Verzija Beskonačnog Skaliranja","most recent":"Najnoviji","No apps found matching your search":"Vaša pretraga nije pronašla aplikacije koje tražite","Releases":"Izdanja","Resources":"Resursi","Search":"Pretraga","Tags":"Oznake","The App Store app lets you download apps as .zip files. Please follow the link below to learn how to install these apps into your oCIS.":"Trgovina Aplikacija dozvoljava preuzimanje aplikacija kao zip.datoteke.\nMolimo vas da pratite link ispod da saznate kako instalirati aplikacije u vaš oCIS."},"id":{"Search":"Cari"},"it":{"App Details":"Dettagli App","App Store":"App Store","App Version":"Versione App","Author":"Autore","Back to list":"Torna all'elenco","Details":"Dettagli","Download":"Scarica","How to install?":"Come installare?","Infinite Scale Version":"Versione Infinite Scale","most recent":"più recente","No apps found matching your search":"Non sono state trovate app corrispondenti alla tua ricerca","Releases":"Rilasci","Resources":"RLine truncated
@@ -16,6 +16,7 @@
class="oc-p-xs"
appearance="raw"
variation="primary"
:aria-label="$gettext('Previous image')"
@click="previousImage"
>
<oc-icon name="arrow-left-s" />
@@ -27,6 +28,7 @@
class="oc-py-xs"
appearance="raw"
variation="primary"
:aria-label="$gettext('Show image %{index}', { index: `${index + 1}` })"
@click="setImageIndex(index)"
>
<oc-icon
@@ -42,6 +44,7 @@
class="oc-p-xs"
appearance="raw"
variation="primary"
:aria-label="$gettext('Next image')"
@click="nextImage"
>
<oc-icon name="arrow-right-s" />
@@ -52,6 +55,7 @@
</template>
<script lang="ts" setup>
import { computed, ref, unref } from 'vue'
import { useGettext } from 'vue3-gettext'
import { App, AppImage } from '../types'
interface Props {
@@ -59,6 +63,7 @@ interface Props {
showPagination?: boolean
}
const { app = undefined, showPagination = false } = defineProps<Props>()
const { $gettext } = useGettext()
const images = computed(() => {
return [app.coverImage, ...app.screenshots]
})
@@ -1 +1 @@
{"af":{},"ar":{},"bs":{},"bg":{},"ca":{"Chapter":"Capítol","Decrease font size":"Disminueix la mida de la lletra","Epub Reader":"Lector epub","Increase font size":"Augmenta la mida de la lletra","Navigate to next page":"Ves a la pàgina següent","Navigate to previous page":"Ves a la pàgina anterior","Reset font size":"Restableix la mida de la lletra"},"cs":{},"de":{"Chapter":"Kapitel","Decrease font size":"Schriftgröße verkleinern","Epub Reader":"Epub-Reader","Increase font size":"Schriftgröße vergrößern","Navigate to next page":"Zur nächsten Seite navigieren","Navigate to previous page":"Zur vorherigen Seite navigieren","Reset font size":"Schriftgröße zurücksetzen"},"el":{},"es":{"Chapter":"Capítulo","Decrease font size":"Reducir tamaño de fuente","Epub Reader":"Lector epub","Increase font size":"Aumentar tamaño de fuente","Navigate to next page":"Ir a la siguiente página","Navigate to previous page":"Ir a la anterior página","Reset font size":"Restablecer tamaño de fuente"},"et":{},"fr":{"Chapter":"Chapitre","Decrease font size":"Réduire la taille de la police","Epub Reader":"Lecteur Epub","Increase font size":"Augmenter la taille de la police","Navigate to next page":"Aller à la page suivante","Navigate to previous page":"Aller à la page précédente","Reset font size":"Réinitialiser la taille de la police"},"gl":{},"he":{},"hr":{},"id":{},"it":{"Chapter":"Capitolo","Decrease font size":"Diminuisci la dimensione del carattere","Epub Reader":"Lettore Epub","Increase font size":"Aumenta la dimensione del carattere","Navigate to next page":"Passa alla pagina successiva","Navigate to previous page":"Torna alla pagina precedente","Reset font size":"Ripristina la dimensione del carattere"},"ja":{},"nl":{"Chapter":"Hoofdstuk","Decrease font size":"Lettergrootte verkleinen","Epub Reader":"Epub-lezer","Increase font size":"Lettergrootte vergroten","Navigate to next page":"Navigeer naar de volgende pagina","Navigate to previous page":"Navigeer naar de vorige pagina","Reset font size":"Lettergrootte opnieuw instellen"},"pl":{},"pt":{"Chapter":"Capítulo","Decrease font size":"Diminuir tamanho da fonte","Epub Reader":"Leitor Epub","Increase font size":"Aumentar tamanho da fonte","Navigate to next page":"Navegar para a próxima página","Navigate to previous page":"Navegar para a página anterior","Reset font size":"Redefinir o tamanho da fonte"},"ka":{},"ko":{},"ro":{},"si":{},"ru":{"Chapter":"Глава","Decrease font size":"Уменьшить шрифт","Epub Reader":"Просмотрщик Epub","Increase font size":"Увеличить шрифт","Navigate to next page":"Перейти на следующую страницу","Navigate to previous page":"Перейти на предыдущую страницу","Reset font size":"Сбросить размер шрифта"},"sk":{},"sq":{"Chapter":"Kapitull","Decrease font size":"Zvogëloje madhësinë e shkronjave","Epub Reader":"Lexues Epub","Increase font size":"Zmadhoje madhësinë e shkronjave","Navigate to next page":"Kalo te faqja pasuese","Navigate to previous page":"Kalo te faqja e mëparshme","Reset font size":"Ktheje madhësinë e shkronjave te parazgjedhja"},"sv":{},"sr":{},"tr":{},"ta":{},"ug":{},"uk":{"Chapter":"Розділ","Decrease font size":"Зменшити розмір шрифту","Epub Reader":"Рідер Epub","Increase font size":"Збільшити розмір шрифту","Navigate to next page":"Перейти до наступної сторінки","Navigate to previous page":"Перейти на попередню сторінку","Reset font size":"Встановити типовий розмір шрифту"},"zh":{"Decrease font size":"减小字体大小","Epub Reader":"Epub 阅读器","Increase font size":"增加字体大小","Navigate to next page":"下一页","Navigate to previous page":"上一页","Reset font size":"重置字体大小"}}
{"af":{},"ar":{},"bg":{},"bs":{},"ca":{"Chapter":"Capítol","Decrease font size":"Disminueix la mida de la lletra","Epub Reader":"Lector epub","Increase font size":"Augmenta la mida de la lletra","Navigate to next page":"Ves a la pàgina següent","Navigate to previous page":"Ves a la pàgina anterior","Reset font size":"Restableix la mida de la lletra"},"cs":{},"de":{"Chapter":"Kapitel","Decrease font size":"Schriftgröße verkleinern","Epub Reader":"Epub-Reader","Increase font size":"Schriftgröße vergrößern","Navigate to next page":"Zur nächsten Seite navigieren","Navigate to previous page":"Zur vorherigen Seite navigieren","Reset font size":"Schriftgröße zurücksetzen"},"el":{},"es":{"Chapter":"Capítulo","Decrease font size":"Reducir tamaño de fuente","Epub Reader":"Lector epub","Increase font size":"Aumentar tamaño de fuente","Navigate to next page":"Ir a la siguiente página","Navigate to previous page":"Ir a la anterior página","Reset font size":"Restablecer tamaño de fuente"},"et":{},"fr":{"Chapter":"Chapitre","Decrease font size":"Réduire la taille de la police","Epub Reader":"Lecteur Epub","Increase font size":"Augmenter la taille de la police","Navigate to next page":"Aller à la page suivante","Navigate to previous page":"Aller à la page précédente","Reset font size":"Réinitialiser la taille de la police"},"gl":{},"he":{},"hr":{},"id":{},"it":{"Chapter":"Capitolo","Decrease font size":"Diminuisci la dimensione del carattere","Epub Reader":"Lettore Epub","Increase font size":"Aumenta la dimensione del carattere","Navigate to next page":"Passa alla pagina successiva","Navigate to previous page":"Torna alla pagina precedente","Reset font size":"Ripristina la dimensione del carattere"},"ja":{},"nl":{"Chapter":"Hoofdstuk","Decrease font size":"Lettergrootte verkleinen","Epub Reader":"Epub-lezer","Increase font size":"Lettergrootte vergroten","Navigate to next page":"Navigeer naar de volgende pagina","Navigate to previous page":"Navigeer naar de vorige pagina","Reset font size":"Lettergrootte opnieuw instellen"},"pl":{},"pt":{"Chapter":"Capítulo","Decrease font size":"Diminuir tamanho da fonte","Epub Reader":"Leitor Epub","Increase font size":"Aumentar tamanho da fonte","Navigate to next page":"Navegar para a próxima página","Navigate to previous page":"Navegar para a página anterior","Reset font size":"Redefinir o tamanho da fonte"},"ka":{},"ko":{},"ro":{},"ru":{"Chapter":"Глава","Decrease font size":"Уменьшить шрифт","Epub Reader":"Просмотрщик Epub","Increase font size":"Увеличить шрифт","Navigate to next page":"Перейти на следующую страницу","Navigate to previous page":"Перейти на предыдущую страницу","Reset font size":"Сбросить размер шрифта"},"si":{},"sk":{},"sq":{"Chapter":"Kapitull","Decrease font size":"Zvogëloje madhësinë e shkronjave","Epub Reader":"Lexues Epub","Increase font size":"Zmadhoje madhësinë e shkronjave","Navigate to next page":"Kalo te faqja pasuese","Navigate to previous page":"Kalo te faqja e mëparshme","Reset font size":"Ktheje madhësinë e shkronjave te parazgjedhja"},"sv":{},"sr":{},"ta":{},"tr":{},"ug":{},"uk":{"Chapter":"Розділ","Decrease font size":"Зменшити розмір шрифту","Epub Reader":"Рідер Epub","Increase font size":"Збільшити розмір шрифту","Navigate to next page":"Перейти до наступної сторінки","Navigate to previous page":"Перейти на попередню сторінку","Reset font size":"Встановити типовий розмір шрифту"},"zh":{"Decrease font size":"减小字体大小","Epub Reader":"Epub 阅读器","Increase font size":"增加字体大小","Navigate to next page":"下一页","Navigate to previous page":"上一页","Reset font size":"重置字体大小"}}
@@ -28,7 +28,7 @@ exports[`Epub reader app > renders correctly 1`] = `
<!--v-if-->
<!--v-if-->
<div dir="auto" class="v-select vs--single vs--unsearchable oc-select epub-reader-controls-chapters-select oc-width-1-1 oc-px-s oc-hidden@l" style="background: transparent;">
<div id="vs1__combobox" class="vs__dropdown-toggle" role="combobox" aria-expanded="false" aria-owns="vs1__listbox" aria-label="Search for option">
<div id="vs1__combobox" class="vs__dropdown-toggle" role="combobox" aria-expanded="false" aria-owns="vs1__listbox" aria-controls="vs1__listbox" aria-label="Search for option">
<div class="vs__selected-options"><span class="vs__selected"><!--v-if--> Chapter 1 <!--v-if--></span><input class="vs__search" readonly="" id="oc-select-1" aria-autocomplete="list" aria-labelledby="vs1__combobox" aria-controls="oc-select-1-listbox" type="search" autocomplete="off" role="combobox" aria-expanded="false" aria-haspopup="listbox" aria-label="Chapter" value=""></div>
<div class="vs__actions"><button type="button" class="vs__clear" title="Clear Selected" aria-label="Clear Selected" style="display: none;"><svg xmlns="http://www.w3.org/2000/svg" width="10" height="10">
<path d="M6.895455 5l2.842897-2.842898c.348864-.348863.348864-.914488 0-1.263636L9.106534.261648c-.348864-.348864-.914489-.348864-1.263636 0L5 3.104545 2.157102.261648c-.348863-.348864-.914488-.348864-1.263636 0L.261648.893466c-.348864.348864-.348864.914489 0 1.263636L3.104545 5 .261648 7.842898c-.348864.348863-.348864.914488 0 1.263636l.631818.631818c.348864.348864.914773.348864 1.263636 0L5 6.895455l2.842898 2.842897c.348863.348864.914772.348864 1.263636 0l.631818-.631818c.348864-.348864.348864-.914489 0-1.263636L6.895455 5z"></path>
@@ -1 +1 @@
{"af":{"An error occurred":"Ein Fehler ist aufgetreten"},"ar":{"File name":"اسم الملف","Save":"حفظ"},"bs":{},"bg":{"\"%{appName}\" app content area":"Област на съдържанието на приложението \"%{appName}\".","An error occurred":"Възникна грешка","File name":"Име на файл","One moment please…":"Един момент, моля...","Open in %{app}":"Отваряне в %{app}","Save":"Запазване","This file is currently being processed and is not yet available for use. Please try again shortly.":"Този файл в момента се обработва и все още не е на разположение за използване. Моля, опитайте отново след малко.","You are being redirected.":"Вие сте пренасочени."},"ca":{"\"%{appName}\" app content area":"Àrea de contingut de l'aplicació \"%{appName}\"","An error occurred":"S'ha produït un error","Cannot open file in edit mode as it is read-only":"No es pot obrir el fitxer en mode d'edició, ja que és de només lectura","Create from template via %{ name }":"Crea a partir de la plantilla mitjançant %{ name }","External":"Extern","Failed to create document from template":"No s'ha pogut crear el document a partir de la plantilla","File name":"Nom del fitxer","No application is available to open this file type.":"No hi ha cap aplicació disponible per obrir aquest tipus de fitxer.","No file was specified to open.":"No s'ha especificat cap fitxer per obrir.","One moment please…":"Un moment, si us plau...","Open in %{app}":"Obre a %{app}","Redirecting to external app":"Redirigint a una aplicació externa","Save":"Desa","The file could not be loaded. It may have been deleted or you might not have access to it.":"No s'ha pogut carregar el fitxer. Potser s'ha suprimit o potser no hi teniu accés.","This file is currently being processed and is not yet available for use. Please try again shortly.":"Aquest fitxer s'està processant i encara no està disponible per al seu ús. Torneu-ho a provar en breu.","We could not open this file":"No hem pogut obrir aquest fitxer","You are being redirected.":"Estas sent redirigit."},"cs":{"\"%{appName}\" app content area":"Oblast obsahu aplikace \"%{appName}\"","An error occurred":"Objevila se chyba","File name":"Název souboru","Save":"Uložit","This file is currently being processed and is not yet available for use. Please try again shortly.":"Tento soubor se právě zpracovává a zatím není k dispozici pro použití. Zkuste to za chvíli znovu."},"de":{"\"%{appName}\" app content area":"\"%{appName}\" Inhaltsbereich","An error occurred":"Ein Fehler ist aufgetreten.","Cannot open file in edit mode as it is read-only":"Datei kann nicht im Bearbeitungsmodus geöffnet werden, da sie schreibgeschützt ist","Create from template via %{ name }":"Aus Vorlage erstellen via %{ name } ","External":"Extern","Failed to create document from template":"Dokumenterstellung aus Vorlage fehlgeschlagen","File name":"Dateiname","One moment please…":"Einen Moment bitte ...","Open in %{app}":"In %{app} öffnen","Redirecting to external app":"Weiterleiten zu externer App","Save":"Speichern","This file is currently being processed and is not yet available for use. Please try again shortly.":"Diese Datei wird derzeit bearbeitet und kann noch nicht verwendet werden. Bitte in Kürze erneut versuchen.","You are being redirected.":"Sie werden weitergeleitet."},"el":{"Save":"Αποθήκευση"},"es":{"\"%{appName}\" app content area":"\"%{appName}\" área de contenido de la aplicación","An error occurred":"Ocurrió un error","Cannot open file in edit mode as it is read-only":"No se puede abrir el archivo en modo edición porque es de solo lectura.","Cannot save a copy: file is read-only":"No se puede guardar una copia: el archivo es de solo lectura","Cannot save a copy: the editor is not available":"No se puede guardar una copia: el editor no está disponible","Create from template via %{ name }":"Crear desde plantilla vía %{ name }","External":"Externo","Failed to create document from template":"Fallo al crear documento desde plantilla","File name":"Nombre de archivo","No application is available to open this file type.":"No hay ninguna aplicación disponible para abrir este tipo de archivo.","No file was specified to open.":"No se ha especificado ningún archivo para abrir.","One moment please…":"Espere un momento, por favor…","Open in %{app}":"Abrir en %{app}","Redirecting to external app":"Redireccionando a una aplicación externa","Save":"Guardar","Save a copy":"Guardar una copia","The file could not be loaded. It may have been deleted or you might not have access to it.":"No se ha podido cargar el archivo. Es posible que se haya eliminado o que no tenga acceso a él.","The file name cannot be \".\" or \"..\".":"El nombre del archivo no puede ser \".\" o \"..\".","The file name cannot be empty.":"El nombre del aLine truncated
{"af":{"An error occurred":"Ein Fehler ist aufgetreten"},"bs":{},"ar":{"File name":"اسم الملف","Save":"حفظ"},"bg":{"\"%{appName}\" app content area":"Област на съдържанието на приложението \"%{appName}\".","An error occurred":"Възникна грешка","File name":"Име на файл","One moment please…":"Един момент, моля...","Open in %{app}":"Отваряне в %{app}","Save":"Запазване","This file is currently being processed and is not yet available for use. Please try again shortly.":"Този файл в момента се обработва и все още не е на разположение за използване. Моля, опитайте отново след малко.","You are being redirected.":"Вие сте пренасочени."},"cs":{"\"%{appName}\" app content area":"Oblast obsahu aplikace \"%{appName}\"","An error occurred":"Objevila se chyba","File name":"Název souboru","Save":"Uložit","This file is currently being processed and is not yet available for use. Please try again shortly.":"Tento soubor se právě zpracovává a zatím není k dispozici pro použití. Zkuste to za chvíli znovu."},"ca":{"\"%{appName}\" app content area":"Àrea de contingut de l'aplicació \"%{appName}\"","An error occurred":"S'ha produït un error","Cannot open file in edit mode as it is read-only":"No es pot obrir el fitxer en mode d'edició, ja que és de només lectura","Create from template via %{ name }":"Crea a partir de la plantilla mitjançant %{ name }","External":"Extern","Failed to create document from template":"No s'ha pogut crear el document a partir de la plantilla","File name":"Nom del fitxer","No application is available to open this file type.":"No hi ha cap aplicació disponible per obrir aquest tipus de fitxer.","No file was specified to open.":"No s'ha especificat cap fitxer per obrir.","One moment please…":"Un moment, si us plau...","Open in %{app}":"Obre a %{app}","Redirecting to external app":"Redirigint a una aplicació externa","Save":"Desa","The file could not be loaded. It may have been deleted or you might not have access to it.":"No s'ha pogut carregar el fitxer. Potser s'ha suprimit o potser no hi teniu accés.","This file is currently being processed and is not yet available for use. Please try again shortly.":"Aquest fitxer s'està processant i encara no està disponible per al seu ús. Torneu-ho a provar en breu.","We could not open this file":"No hem pogut obrir aquest fitxer","You are being redirected.":"Estas sent redirigit."},"de":{"\"%{appName}\" app content area":"\"%{appName}\" Inhaltsbereich","An error occurred":"Ein Fehler ist aufgetreten.","Cannot open file in edit mode as it is read-only":"Datei kann nicht im Bearbeitungsmodus geöffnet werden, da sie schreibgeschützt ist","Create from template via %{ name }":"Aus Vorlage erstellen via %{ name } ","External":"Extern","Failed to create document from template":"Dokumenterstellung aus Vorlage fehlgeschlagen","File name":"Dateiname","One moment please…":"Einen Moment bitte ...","Open in %{app}":"In %{app} öffnen","Redirecting to external app":"Weiterleiten zu externer App","Save":"Speichern","This file is currently being processed and is not yet available for use. Please try again shortly.":"Diese Datei wird derzeit bearbeitet und kann noch nicht verwendet werden. Bitte in Kürze erneut versuchen.","You are being redirected.":"Sie werden weitergeleitet."},"el":{"Save":"Αποθήκευση"},"es":{"\"%{appName}\" app content area":"\"%{appName}\" área de contenido de la aplicación","An error occurred":"Ocurrió un error","Cannot open file in edit mode as it is read-only":"No se puede abrir el archivo en modo edición porque es de solo lectura.","Cannot save a copy: file is read-only":"No se puede guardar una copia: el archivo es de solo lectura","Cannot save a copy: the editor is not available":"No se puede guardar una copia: el editor no está disponible","Create from template via %{ name }":"Crear desde plantilla vía %{ name }","External":"Externo","Failed to create document from template":"Fallo al crear documento desde plantilla","File name":"Nombre de archivo","No application is available to open this file type.":"No hay ninguna aplicación disponible para abrir este tipo de archivo.","No file was specified to open.":"No se ha especificado ningún archivo para abrir.","One moment please…":"Espere un momento, por favor…","Open in %{app}":"Abrir en %{app}","Redirecting to external app":"Redireccionando a una aplicación externa","Save":"Guardar","Save a copy":"Guardar una copia","The file could not be loaded. It may have been deleted or you might not have access to it.":"No se ha podido cargar el archivo. Es posible que se haya eliminado o que no tenga acceso a él.","The file name cannot be \".\" or \"..\".":"El nombre del archivo no puede ser \".\" o \"..\".","The file name cannot be empty.":"El nombre del aLine truncated
@@ -2,7 +2,7 @@
<main
class="external-redirect oc-height-viewport oc-flex oc-flex-column oc-flex-center oc-flex-middle"
>
<h1 class="oc-invisible-sr" v-text="pageTitle" />
<h1 v-if="pageTitle" class="oc-invisible-sr" v-text="pageTitle" />
<div class="oc-card oc-card-body oc-text-center oc-width-large">
<template v-if="hasError">
<h2 key="external-redirect-error">
@@ -1 +1 @@
{"af":{},"ar":{"(me)":"(أنا)","Access denied":"الدخول مرفوض","Actions":"إجراءات","An error occurred while loading the public link":"حدث خطأ أثناء تحميل الرابط العام","Cancel":"إلغاء","Confirm":"تأكيد","Custom permissions":"صلاحيات مخصصة","Delete":"حذف","Deleted files":"الملفات المحذوفة","Details":"التفاصيل","Disabled":"تعطيل","Download":"تحميل","Enabled":"تمكين","Expiration date":"تاريخ إنتهاء الصلاحية\n ","Favorites":"التفضيلات","File name":"اسم الملف","Files":"ملفات","Filter members":"تصفية الأعضاء","Filter:":"تصفيه","Group":"مجموعة","Internal":"داخلي","Members":"اعضاء","Name":"اسم","New":"جديد","New folder":"ملف جديد","Owner":"المالك","Password":"كلمة المرور","Paste here":"الصق هنا","Person was added":"تمت إضافة الشخص","Public link":"رابط عام","Reload public link":"إعادة تحميل الرابط العام","Remove expiration date":"إزالة تاريخ انتهاء الصلاحية","Remove password":"إزالة كلمة المرور ","Rename":"إعادة تسمية","Resource not found":"لم يتم العثور على المورد","Restore":"استرجع","Save":"حفظ","Search":"بحث","Share":"شارك","Shared by":"تمت المشاركة بواسطة","Shared via link":"تمت المشاركة عبر الرابط","Shared with me":"مشاركة معي","Shared with others":"مشاركة مع الآخرين","Show context menu":{"":"إظهار قائمة السياق","Accessibility label":"إظهار قائمة السياق"},"Spaces":"مسافات","The file type is unsupported":"نوع الملف غير معتمد","There are no resources marked as favorite":"لا توجد موارد تم تحديدها كمفضلة","User":"مستخدم","Versions":"إصدارات","We went looking everywhere, but were unable to find the selected resource.":"قمنا بالبحث في كل مكان ، ولكن لم نتمكن من العثور على المورد المحدد.","You don't have permission to share this file.":"ليس لديك إذن بمشاركة هذا الملف.","You don't have permission to share this folder.":"ليس لديك إذن بمشاركة هذا المجلد.","You have no deleted files":"ليس لديك ملفات محذوفة","You have no permission to upload!":"ليس لديك إذن للتحميل!"},"bg":{"“via folder”":"\"чрез папка\"","(me)":"(аз)","%{ itemCount } item selected":["%{ itemCount } избран елемент","%{ itemCount } избрани елемента"],"%{collaboratorName} (me)":"%{collaboratorName} (аз)","%{count} member":["%{count} член","%{count} члена"],"%{shareType} cannot access %{resourceName}":"%{shareType} няма достъп до %{resourceName}","%{spaceCount} matching spaces":"%{spaceCount} съвпадащи пространства","%{spaceCount} matching trashes":"%{spaceCount} съответстващи кошчета","%{spaceCount} spaces in total":"%{spaceCount} пространства общо","%{spaceCount} trashes in total":"Общо %{spaceCount} кошчета","%{spaceName} (disabled)":"%{spaceName} (деактивирано)","Access denied":"Отказан достъп","Access details":"Достъп до подробности","Access expires":"Срокът за достъп изтича","Access was denied successfully":"Достъпът успешно е забранен","Access was granted successfully":"Достъпът е разрешен успешно","Actions":"Действия","Activities":"Дейности","Add":"Добавяне","Add link":"Добавяне на връзка","Add members":"Добавяне на членове","Add members to this Space":"Добавяне на членове към това пространство","Add password":"Добавяне на парола","An error occurred while loading the public link":"Възникна грешка при зареждането на публичната връзка","Are you sure you want to delete this link? Recreating the same link again is not possible.":"Сигурни ли сте, че искате да изтриете тази връзка? Повторното създаване на същата връзка не е възможно.","Are you sure you want to remove this member?":"Сигурни ли сте, че искате да премахнете този член?","Are you sure you want to remove this share?":"Сигурни ли сте, че искате да премахнете това споделяне?","Cancel":"Отказ","Choose how access is granted":"Избор на начина на предоставяне на достъп","Close filter":"Затваряне на филтъра","Confirm":"Потвърждаване","Context meLine truncated
{"af":{},"ar":{"(me)":"(أنا)","Access denied":"الدخول مرفوض","Actions":"إجراءات","An error occurred while loading the public link":"حدث خطأ أثناء تحميل الرابط العام","Cancel":"إلغاء","Confirm":"تأكيد","Custom permissions":"صلاحيات مخصصة","Delete":"حذف","Deleted files":"الملفات المحذوفة","Details":"التفاصيل","Disabled":"تعطيل","Download":"تحميل","Enabled":"تمكين","Expiration date":"تاريخ إنتهاء الصلاحية\n ","Favorites":"التفضيلات","File name":"اسم الملف","Files":"ملفات","Filter members":"تصفية الأعضاء","Filter:":"تصفيه","Group":"مجموعة","Internal":"داخلي","Members":"اعضاء","Name":"اسم","New":"جديد","New folder":"ملف جديد","Owner":"المالك","Password":"كلمة المرور","Paste here":"الصق هنا","Person was added":"تمت إضافة الشخص","Public link":"رابط عام","Reload public link":"إعادة تحميل الرابط العام","Remove expiration date":"إزالة تاريخ انتهاء الصلاحية","Remove password":"إزالة كلمة المرور ","Rename":"إعادة تسمية","Resource not found":"لم يتم العثور على المورد","Restore":"استرجع","Save":"حفظ","Search":"بحث","Share":"شارك","Shared by":"تمت المشاركة بواسطة","Shared via link":"تمت المشاركة عبر الرابط","Shared with me":"مشاركة معي","Shared with others":"مشاركة مع الآخرين","Show context menu":{"":"إظهار قائمة السياق","Accessibility label":"إظهار قائمة السياق"},"Spaces":"مسافات","The file type is unsupported":"نوع الملف غير معتمد","There are no resources marked as favorite":"لا توجد موارد تم تحديدها كمفضلة","User":"مستخدم","Versions":"إصدارات","We went looking everywhere, but were unable to find the selected resource.":"قمنا بالبحث في كل مكان ، ولكن لم نتمكن من العثور على المورد المحدد.","You don't have permission to share this file.":"ليس لديك إذن بمشاركة هذا الملف.","You don't have permission to share this folder.":"ليس لديك إذن بمشاركة هذا المجلد.","You have no deleted files":"ليس لديك ملفات محذوفة","You have no permission to upload!":"ليس لديك إذن للتحميل!"},"bs":{},"ca":{"\"via folder\"":"“via folder”","“via folder”":"\"via carpeta\"","(me)":"(jo)","%{ itemCount } item selected":["%{ itemCount } element seleccionat","%{ itemCount } elements seleccionats"],"%{collaboratorName} (me)":"%{collaboratorName} (jo)","%{count} member":["%{count} membre","%{count} membres"],"%{shareType} cannot access %{resourceName}":"%{shareType} no pot accedir a %{resourceName}","%{spaceCount} matching spaces":"%{groupCount} espais coincidents","%{spaceCount} matching trashes":"%{spaceCount} papereres coincidents","%{spaceCount} spaces in total":"%{spaceCount} espais en total","%{spaceCount} spaces in total (including %{disabledSpaceCount} disabled)":"%{spaceCount} espais en total (incloent %{disabledSpaceCount} inhabilitats)","%{spaceCount} trashes in total":"%{spaceCount} papereres en total","%{spaceName} (disabled)":"%{spaceName} (inhabilitat)","A Space can have multiple Managers. Each Space has at least one Manager.":"Un espai pot tenir múltiples gestors. Cada espai ha de tenir com a mínim un gestor.","Access denied":"Accés denegat","Access details":"Detalls d'accés","Access expires":"Accés caducat","Access was denied successfully":"S'ha denegat l'accés correctament","Access was granted successfully":"L'accés s'ha concedit correctament","Account type":"Tipus de compte","Actions":"Accions","Activities":"Activitats","Add":"Afegir","Add link":"Afegir enllaç","Add members":"Afegir membres","Add members to this Space":"Afegeix membres a aquest espai","Add password":"Afegeix una contrasenya","Album":"Àlbum","An error occurred while loading the public link":"S'ha produït un error en carregar l'enllaç públic","Archive":"Arxiu","Are you sure you want to delete this link? Recreating the same link again is not possible.":"Esteu segur que voleu suprimir aquest enllaç? No és possible tornar a crear el mateix enllaç.","Are you sure you want to remove this member?":"Esteu segur que voleu eliminar aquest membre?","Are you sure you want to remove this share?":"Esteu segur que voleu eliminar aquesta compartició?","Are you sure you want to send a reminder about this share?":"Esteu segur que voleu enviar un recordatori sobre aquesta compartició?","Attach as copy":"Adjunta com a còpia","Audio":"Àudio","Audio Info":"Informació de l'àudio","Authors":"Autors","Cancel":"Cancel·la","Choose":"Escull","Choose how access is granted":"Trieu com es concedeix l'accés","Close filter":"Tanca el filtre","CLine truncated
@@ -173,6 +173,7 @@
<oc-button
:disabled="uploadOrFileCreationBlocked"
class="clear-clipboard-btn"
:aria-label="$gettext('Clear clipboard')"
@click="clearClipboard"
>
<oc-icon fill-type="line" name="close" />
@@ -70,6 +70,7 @@
<template #quickActions="{ resource }">
<oc-button
v-oc-tooltip="hideShareAction.label({ space: null, resources: [resource] })"
:aria-label="hideShareAction.label({ space: null, resources: [resource] })"
appearance="raw"
:class="['oc-p-xs', hideShareAction.class]"
@click.stop="hideShareAction.handler({ space: null, resources: [resource] })"
@@ -10,7 +10,7 @@
class="details-preview oc-flex oc-flex-middle oc-flex-center oc-mb"
data-testid="preview"
>
<oc-spinner v-if="isPreviewLoading" />
<oc-spinner v-if="isPreviewLoading" :aria-label="$gettext('Loading preview')" />
</div>
<div
v-else
@@ -2,7 +2,7 @@
<div id="files-drop">
<app-loading-spinner v-if="loading" />
<div v-else id="files-drop-wrapper" class="oc-height-1-1">
<h1 class="oc-invisible-sr">{{ pageTitle }}</h1>
<h1 v-if="pageTitle" class="oc-invisible-sr">{{ pageTitle }}</h1>
<div v-if="dragareaEnabled" class="dragarea" />
<div key="loaded-drop" class="oc-flex oc-flex-center oc-height-1-1">
@@ -1 +1 @@
{"af":{},"ar":{},"bs":{},"bg":{},"ca":{"View mode":"Mode de visualització"},"cs":{},"de":{"HTML Editor":"HTML Editor","HTML file":"HTML-Datei","HTML preview":"HTML Vorschau","Show preview anyway":"Zeige Vorschau trotzdem","This file is large, so the live preview is paused to keep the editor responsive.":"Aufgrund der Dateigröße wurde die Live-Vorschau pausiert, um den Editor benutzbar zu halten.","View mode":"Anzeigemodus","XHTML file":"XHTML-Datei"},"el":{},"es":{"HTML Editor":"Editor HTML","HTML file":"Archivo HTML","HTML preview":"Vista previa en HTML","Show preview anyway":"Mostrar vista previa de todos modos","This file is large, so the live preview is paused to keep the editor responsive.":"Este archivo es muy grande, por lo que la vista previa en tiempo real se ha pausado para que el editor siga respondiendo con rapidez.","View mode":"Mode de visualització","XHTML file":"Archivo XHTML"},"et":{},"fr":{},"gl":{},"he":{},"hr":{},"id":{},"it":{},"ja":{},"nl":{},"pl":{},"pt":{},"ka":{},"ko":{},"ro":{},"ru":{"View mode":"Режим просмотра"},"si":{},"sk":{},"sq":{"HTML Editor":"Përpunues HTML-sh","HTML file":"Kartelë HTML","HTML preview":"Paraparje HTML-je","Show preview anyway":"Shfaq paraparjen, sido qoftë","This file is large, so the live preview is paused to keep the editor responsive.":"Kjo kartelë është e madhe, ndaj paraparja drejtpërdrejt është ndalur, për ta mbajtur përpunuesin reagues.","View mode":"Mënyrë parjeje","XHTML file":"Kartelë XHTML"},"sv":{},"sr":{},"ta":{},"tr":{},"ug":{},"uk":{"View mode":"Режим перегляду"},"zh":{}}
{"af":{},"ar":{},"bg":{},"ca":{"View mode":"Mode de visualització"},"cs":{},"bs":{},"de":{"HTML Editor":"HTML Editor","HTML file":"HTML-Datei","HTML preview":"HTML Vorschau","Show preview anyway":"Zeige Vorschau trotzdem","This file is large, so the live preview is paused to keep the editor responsive.":"Aufgrund der Dateigröße wurde die Live-Vorschau pausiert, um den Editor benutzbar zu halten.","View mode":"Anzeigemodus","XHTML file":"XHTML-Datei"},"el":{},"es":{"HTML Editor":"Editor HTML","HTML file":"Archivo HTML","HTML preview":"Vista previa en HTML","Show preview anyway":"Mostrar vista previa de todos modos","This file is large, so the live preview is paused to keep the editor responsive.":"Este archivo es muy grande, por lo que la vista previa en tiempo real se ha pausado para que el editor siga respondiendo con rapidez.","View mode":"Mode de visualització","XHTML file":"Archivo XHTML"},"et":{},"fr":{},"gl":{},"he":{},"hr":{},"id":{},"it":{},"ja":{},"nl":{},"pt":{},"pl":{},"ka":{},"ko":{},"ru":{"View mode":"Режим просмотра"},"si":{},"sk":{},"ro":{},"sq":{"HTML Editor":"Përpunues HTML-sh","HTML file":"Kartelë HTML","HTML preview":"Paraparje HTML-je","Show preview anyway":"Shfaq paraparjen, sido qoftë","This file is large, so the live preview is paused to keep the editor responsive.":"Kjo kartelë është e madhe, ndaj paraparja drejtpërdrejt është ndalur, për ta mbajtur përpunuesin reagues.","View mode":"Mënyrë parjeje","XHTML file":"Kartelë XHTML"},"sv":{},"sr":{},"ta":{},"tr":{},"uk":{"View mode":"Режим перегляду"},"ug":{},"zh":{}}
@@ -1 +1 @@
{"af":{"An error occurred":"Ein Fehler ist aufgetreten"},"ar":{"Actions":"إجراءات","Cancel":"إلغاء","Delete":"حذف","Email":"بريد إلكتروني","Link":"رابط","User":"مستخدم"},"bs":{},"bg":{"Actions":"Действия","An error occurred":"Възникна грешка","Cancel":"Отказ","Delete":"Изтриване","Email":"Имейл","Link":"Връзка","User":"Потребител"},"ca":{"Accept invitation":"Accepta la invitació","Accept invitations":"Accepta les invitacions","Accepting invitations":"Acceptant invitacions","Actions":"Accions","Add a description (optional)":"Afegeix una descripció (opcional)","An error occurred":"S'ha produït un error","An error occurred when generating the token":"S'ha produït un error en generar el token","Cancel":"Cancel·la","Copy invitation link":"Copia l'enllaç d'invitació","Copy invite token":"Copia el token d'invitació","Couldn't open remotely":"No s'ha pogut obrir remotament","Create an invitation link and send it to the person you want to share with.":"Crea un enllaç d'invitació i envia'l a la persona amb qui vols compartir.","Delete":"Suprimeix","Description":"Descripció","Email":"Correu electrònic","Enter invite token":"Introduïu el token d'invitació","Error":"Error","Expires":"Expira","Federated conections for mutual sharing. To share, go to \"Files\" app, select the resource click \"Share\" in the context menu and select account type \"federated\".":"Connexions federades per a l'intercanvi mutu. Per compartir, ves a l'aplicació \"Fitxers\", selecciona el recurs i fes clic a \"Compartir\" al menú contextual i selecciona el tipus de compte \"federat\".","Federated connections":"Connexions federades","Federated shares with me":"Comparticions federades amb mi","Federated shares:":"Comparticions federades:","Generate":"Genera","Generate invitation":"Genera una invitació","Generate invitation link that can be shared with one or more invitees":"Genera un enllaç d'invitació que es pot compartir amb un o més invitats","Generate new invitation":"Genera una invitació nova","Institution":"Institució","Institution:":"Institució:","invalid invite token":"el token d'invitació no és vàlid","Invitation link":"Enllaç d'invitació","Invitation link has been copied to your clipboard.":"S'ha copiat l'enllaç d'invitació al porta-retalls.","Invitations":"Invitacions","Invite token":"Token d'invitació","Invite token copied":"Token d'invitació copiat","Invite token has been copied to your clipboard.":"S'ha copiat el token d'invitació al porta-retalls.","Invite users to federate":"Convida els usuaris a federar-se","Invition link copied":"Enllaç d'invitació copiat","Link":"Enllaç","New federated connection":"Nova connexió federada","New federated connections":"Noves connexions federades","New token has been created and copied to your clipboard. Send it to the invitee(s).":"S'ha creat un token nou i s'ha copiat al porta-retalls. Envia'l al(s) convidat(s).","Once you accept the invitation, the inviter will be added to your connections.":"Un cop acceptis la invitació, el convidat s'afegirà a les teves connexions.","Open remotely":"Obre remotament","ScienceMesh":"ScienceMesh","Self-invitations are not permitted":"No es permeten les autoinvitacions","Success":"Èxit","This is the remote user with whom the federation is set up and resources can be shared.":"Aquest és l'usuari remot amb qui es configura la federació i es poden compartir recursos.","This URL represents the instance of the trusted partner.":"Aquest URL representa la instància del soci de confiança.","User":"Usuari","with me":"amb mi","with others":"amb altres","You can share with and receive shares from %{ connections } now":"Ara pots compartir i rebre comparticions de %{ connections }","You can share with and recieve shares from %{user} now":"Ara pots compartir i rebre comparticions de %{user}","You have no invitation links":"No teniu enllaços d'invitació","You have no sharing connections":"No teniu connexions compartides"},"cs":{"Actions":"Akce","An error occurred":"Objevila se chyba","Cancel":"Zrušit","Delete":"Odstranit","Email":"Email","Link":"Odkaz","User":"Uživatel"},"el":{"Actions":"Ενέργειες","Cancel":"Ακύρωση","Delete":"Διαγραφή","Email":"Email","Expires":"Λήγει","User":"Χρήστης"},"de":{"Accept invitation":"Einladung annehmen","Accept invitations":"Einladungen annehmen","Accepting invitations":"Einladung annehmen.\nSie können hier einen erhaltenen Einladungstoken eingeben und damit eine Vernetzung mit der Person herstellen, von der der Token stammt.","Actions":"Aktionen","Add a description (optional)":"Beschreibung hinzufügen (optional)","An error occurred":"Ein Fehler ist aufgetreten","An error occurred when generating the token":"Beim Erstellen des Tokens ist ein Fehler aufgetreten","Cancel":"Abbrechen","Copy invitation link":"Einladungslink kopieren","Copy invite token":"Einladungstoken kopieLine truncated
{"af":{"An error occurred":"Ein Fehler ist aufgetreten"},"ar":{"Actions":"إجراءات","Cancel":"إلغاء","Delete":"حذف","Email":"بريد إلكتروني","Link":"رابط","User":"مستخدم"},"bs":{},"bg":{"Actions":"Действия","An error occurred":"Възникна грешка","Cancel":"Отказ","Delete":"Изтриване","Email":"Имейл","Link":"Връзка","User":"Потребител"},"ca":{"Accept invitation":"Accepta la invitació","Accept invitations":"Accepta les invitacions","Accepting invitations":"Acceptant invitacions","Actions":"Accions","Add a description (optional)":"Afegeix una descripció (opcional)","An error occurred":"S'ha produït un error","An error occurred when generating the token":"S'ha produït un error en generar el token","Cancel":"Cancel·la","Copy invitation link":"Copia l'enllaç d'invitació","Copy invite token":"Copia el token d'invitació","Couldn't open remotely":"No s'ha pogut obrir remotament","Create an invitation link and send it to the person you want to share with.":"Crea un enllaç d'invitació i envia'l a la persona amb qui vols compartir.","Delete":"Suprimeix","Description":"Descripció","Email":"Correu electrònic","Enter invite token":"Introduïu el token d'invitació","Error":"Error","Expires":"Expira","Federated conections for mutual sharing. To share, go to \"Files\" app, select the resource click \"Share\" in the context menu and select account type \"federated\".":"Connexions federades per a l'intercanvi mutu. Per compartir, ves a l'aplicació \"Fitxers\", selecciona el recurs i fes clic a \"Compartir\" al menú contextual i selecciona el tipus de compte \"federat\".","Federated connections":"Connexions federades","Federated shares with me":"Comparticions federades amb mi","Federated shares:":"Comparticions federades:","Generate":"Genera","Generate invitation":"Genera una invitació","Generate invitation link that can be shared with one or more invitees":"Genera un enllaç d'invitació que es pot compartir amb un o més invitats","Generate new invitation":"Genera una invitació nova","Institution":"Institució","Institution:":"Institució:","invalid invite token":"el token d'invitació no és vàlid","Invitation link":"Enllaç d'invitació","Invitation link has been copied to your clipboard.":"S'ha copiat l'enllaç d'invitació al porta-retalls.","Invitations":"Invitacions","Invite token":"Token d'invitació","Invite token copied":"Token d'invitació copiat","Invite token has been copied to your clipboard.":"S'ha copiat el token d'invitació al porta-retalls.","Invite users to federate":"Convida els usuaris a federar-se","Invition link copied":"Enllaç d'invitació copiat","Link":"Enllaç","New federated connection":"Nova connexió federada","New federated connections":"Noves connexions federades","New token has been created and copied to your clipboard. Send it to the invitee(s).":"S'ha creat un token nou i s'ha copiat al porta-retalls. Envia'l al(s) convidat(s).","Once you accept the invitation, the inviter will be added to your connections.":"Un cop acceptis la invitació, el convidat s'afegirà a les teves connexions.","Open remotely":"Obre remotament","ScienceMesh":"ScienceMesh","Self-invitations are not permitted":"No es permeten les autoinvitacions","Success":"Èxit","This is the remote user with whom the federation is set up and resources can be shared.":"Aquest és l'usuari remot amb qui es configura la federació i es poden compartir recursos.","This URL represents the instance of the trusted partner.":"Aquest URL representa la instància del soci de confiança.","User":"Usuari","with me":"amb mi","with others":"amb altres","You can share with and receive shares from %{ connections } now":"Ara pots compartir i rebre comparticions de %{ connections }","You can share with and recieve shares from %{user} now":"Ara pots compartir i rebre comparticions de %{user}","You have no invitation links":"No teniu enllaços d'invitació","You have no sharing connections":"No teniu connexions compartides"},"cs":{"Actions":"Akce","An error occurred":"Objevila se chyba","Cancel":"Zrušit","Delete":"Odstranit","Email":"Email","Link":"Odkaz","User":"Uživatel"},"de":{"Accept invitation":"Einladung annehmen","Accept invitations":"Einladungen annehmen","Accepting invitations":"Einladung annehmen.\nSie können hier einen erhaltenen Einladungstoken eingeben und damit eine Vernetzung mit der Person herstellen, von der der Token stammt.","Actions":"Aktionen","Add a description (optional)":"Beschreibung hinzufügen (optional)","An error occurred":"Ein Fehler ist aufgetreten","An error occurred when generating the token":"Beim Erstellen des Tokens ist ein Fehler aufgetreten","Cancel":"Abbrechen","Copy invitation link":"Einladungslink kopieren","Copy invite token":"Einladungstoken kopieren","Couldn't open remotely":"Fernzugriff fehlgeschlagen","Create an invitation link and send it to the person you want to share with.":"Einladung erstellLine truncated
+2 -2
View File
@@ -1,5 +1,5 @@
<template>
<div class="sciencemesh">
<main class="sciencemesh">
<div class="oc-flex oc-flex-column sciencemesh-wrapper">
<div class="oc-flex sciencemesh-top">
<div id="sciencemesh-invite" class="oc-width-1-2">
@@ -17,7 +17,7 @@
/>
</div>
</div>
</div>
</main>
</template>
<script lang="ts" setup>
@@ -1 +1 @@
{"af":{},"ar":{"Create":"أنشأ","Folder name":"إسم الملف","Open folder":"افتح المجلد","Password":"كلمة المرور"},"bs":{},"bg":{"Create":"Създаване","Failed to create folder":"Неуспех при създаването на папка","Folder already exists":"Папката вече съществува","Folder name":"Име на папка","Open folder":"Отваряне на папка","Password":"Парола"},"ca":{"Close folder":"Tanca la carpeta","Create":"Crear","Create a new password protected folder":"Crea una carpeta nova protegida amb contrasenya","Failed to create folder":"Error en crear la carpeta","Folder already exists":"La carpeta ja existeix","Folder name":"Nom de la carpeta","Open folder":"Obrir la carpeta","Password":"Contrasenya","Password Protected Folder":"Carpeta protegida amb contrasenya","Password Protected Folders":"Carpetes protegides amb contrasenya"},"cs":{"Create":"Vytvořit","Failed to create folder":"Nezdařilo se vytvořit složku","Folder name":"Jméno složky","Password":"Heslo"},"de":{"Close folder":"Ordner schließen","Create":"Erstellen","Create a new password protected folder":"Einen neuen Passwortgeschützen Ordner erstellen","Failed to create folder":"Fehler beim Erstellen des Ordners","Folder already exists":"Der Ordner existiert bereits","Folder name":"Ordnername","Open folder":"Ordner öffnen","Password":"Passwort","Password Protected Folder":"Passwortgeschützer Ordner","Password Protected Folders":"Passwortgeschütze Ordner"},"el":{"Create":"Δημιουργία","Password":"Συνθηματικό"},"es":{"Close folder":"Cerrar carpeta","Create":"Crear","Create a new password protected folder":"Crear una nueva carpeta protegida con contraseña","Failed to create folder":"Error al crear la carpeta","Folder already exists":"La carpeta ya existe","Folder name":"Nombre de carpeta","Open folder":"Abrir carpeta","Password":"Contraseña","Password Protected Folder":"Carpeta protegida con contraseña","Password Protected Folders":"Carpetas protegidas con contraseña","The folder could not be created because the share link is invalid.":{"Error shown when creating a password-protected folder fails because the generated share link has an unexpected format.":"No se ha podido crear la carpeta porque el enlace compartido no es válido."},"This folder cannot be opened because the link it contains is invalid.":{"Error shown when opening a password-protected folder fails because the stored link has an unexpected format.":"No se puede abrir esta carpeta porque el enlace que contiene no es válido."},"This folder cannot be opened because the link it contains does not point to this server.":{"Error shown when opening a password-protected folder fails because the stored link points to a different server.":"No se puede abrir esta carpeta porque el enlace que contiene no apunta a este servidor."}},"et":{},"fr":{"Close folder":"Fermer le dossier","Create":"Créer","Create a new password protected folder":"Créer un nouveau dossier protégé par mot de passe","Failed to create folder":"Échec de création du dossier","Folder already exists":"Le dossier existe déjà","Folder name":"Nom de dossier","Open folder":"Ouvrir le dossier","Password":"Mot de passe","Password Protected Folder":"Dossier protégé par mot de passe","Password Protected Folders":"Dossiers protégés par mot de passe"},"gl":{"Create":"Crear","Folder name":"Nome do cartafol","Open folder":"Abrir cartafol","Password":"Contrasinal"},"he":{"Create":"יצירה","Failed to create folder":"יצירת תיקייה נכשלה","Folder name":"שם תיקייה","Open folder":"פתיחת תיקייה","Password":"סיסמה:"},"hr":{},"id":{"Close folder":"Tutup folder","Create":"Buat","Create a new password protected folder":"Membuat baru folder terlindung kata sandi ","Failed to create folder":"Gagal membuat folder","Folder name":"Nama folder","Open folder":"Buka folder","Password":"Kata Sandi","Password Protected Folder":"Folder dilindungi Kata Sandi","Password Protected Folders":"Folder-folder dilindungi Kata Sandi"},"it":{"Create":"Creare","Failed to create folder":"Non è stato possibile creare la cartella","Folder already exists":"La cartella esiste già","Password":"Password"},"ja":{"Folder name":"フォルダ名","Password":"パスワード"},"nl":{"Create":"Creëren","Failed to create folder":"Kan map niet maken","Folder already exists":"Map bestaat al","Folder name":"Mapnaam","Open folder":"Map openen","Password":"Wachtwoord"},"pt":{"Close folder":"Fechar pasta","Create":"Criar","Create a new password protected folder":"Criar uma nova pasta protegida por senha","Failed to create folder":"Falha ao criar a pasta","Folder already exists":"Pasta já existente","Folder name":"Nome da pasta","Open folder":"Abrir a pasta","Password":"Senha","Password Protected Folder":"Pasta Protegida por Senha","Password Protected Folders":"Pastas Protegidas por Senha"},"pl":{"Create":"Utwórz"Line truncated
{"af":{},"bs":{},"ar":{"Create":"أنشأ","Folder name":"إسم الملف","Open folder":"افتح المجلد","Password":"كلمة المرور"},"bg":{"Create":"Създаване","Failed to create folder":"Неуспех при създаването на папка","Folder already exists":"Папката вече съществува","Folder name":"Име на папка","Open folder":"Отваряне на папка","Password":"Парола"},"ca":{"Close folder":"Tanca la carpeta","Create":"Crear","Create a new password protected folder":"Crea una carpeta nova protegida amb contrasenya","Failed to create folder":"Error en crear la carpeta","Folder already exists":"La carpeta ja existeix","Folder name":"Nom de la carpeta","Open folder":"Obrir la carpeta","Password":"Contrasenya","Password Protected Folder":"Carpeta protegida amb contrasenya","Password Protected Folders":"Carpetes protegides amb contrasenya"},"cs":{"Create":"Vytvořit","Failed to create folder":"Nezdařilo se vytvořit složku","Folder name":"Jméno složky","Password":"Heslo"},"de":{"Close folder":"Ordner schließen","Create":"Erstellen","Create a new password protected folder":"Einen neuen Passwortgeschützen Ordner erstellen","Failed to create folder":"Fehler beim Erstellen des Ordners","Folder already exists":"Der Ordner existiert bereits","Folder name":"Ordnername","Open folder":"Ordner öffnen","Password":"Passwort","Password Protected Folder":"Passwortgeschützer Ordner","Password Protected Folders":"Passwortgeschütze Ordner"},"el":{"Create":"Δημιουργία","Password":"Συνθηματικό"},"es":{"Close folder":"Cerrar carpeta","Create":"Crear","Create a new password protected folder":"Crear una nueva carpeta protegida con contraseña","Failed to create folder":"Error al crear la carpeta","Folder already exists":"La carpeta ya existe","Folder name":"Nombre de carpeta","Open folder":"Abrir carpeta","Password":"Contraseña","Password Protected Folder":"Carpeta protegida con contraseña","Password Protected Folders":"Carpetas protegidas con contraseña","The folder could not be created because the share link is invalid.":{"Error shown when creating a password-protected folder fails because the generated share link has an unexpected format.":"No se ha podido crear la carpeta porque el enlace compartido no es válido."},"This folder cannot be opened because the link it contains is invalid.":{"Error shown when opening a password-protected folder fails because the stored link has an unexpected format.":"No se puede abrir esta carpeta porque el enlace que contiene no es válido."},"This folder cannot be opened because the link it contains does not point to this server.":{"Error shown when opening a password-protected folder fails because the stored link points to a different server.":"No se puede abrir esta carpeta porque el enlace que contiene no apunta a este servidor."}},"fr":{"Close folder":"Fermer le dossier","Create":"Créer","Create a new password protected folder":"Créer un nouveau dossier protégé par mot de passe","Failed to create folder":"Échec de création du dossier","Folder already exists":"Le dossier existe déjà","Folder name":"Nom de dossier","Open folder":"Ouvrir le dossier","Password":"Mot de passe","Password Protected Folder":"Dossier protégé par mot de passe","Password Protected Folders":"Dossiers protégés par mot de passe"},"et":{},"gl":{"Create":"Crear","Folder name":"Nome do cartafol","Open folder":"Abrir cartafol","Password":"Contrasinal"},"he":{"Create":"יצירה","Failed to create folder":"יצירת תיקייה נכשלה","Folder name":"שם תיקייה","Open folder":"פתיחת תיקייה","Password":"סיסמה:"},"hr":{},"id":{"Close folder":"Tutup folder","Create":"Buat","Create a new password protected folder":"Membuat baru folder terlindung kata sandi ","Failed to create folder":"Gagal membuat folder","Folder name":"Nama folder","Open folder":"Buka folder","Password":"Kata Sandi","Password Protected Folder":"Folder dilindungi Kata Sandi","Password Protected Folders":"Folder-folder dilindungi Kata Sandi"},"it":{"Create":"Creare","Failed to create folder":"Non è stato possibile creare la cartella","Folder already exists":"La cartella esiste già","Password":"Password"},"ja":{"Folder name":"フォルダ名","Password":"パスワード"},"nl":{"Create":"Creëren","Failed to create folder":"Kan map niet maken","Folder already exists":"Map bestaat al","Folder name":"Mapnaam","Open folder":"Map openen","Password":"Wachtwoord"},"pl":{"Create":"Utwórz","Create a new password protected folder":"Utwórz nowy folder zabezpieczony hasłem","Failed to create folder":"Nie udało się utworzyć folderu","Folder already exists":"Folder już istnieje","Folder name":"Nazwa folderu","Open folder":"Otwórz folder","Password":"Hasło","Password Protected Folder":"Folder zabezpieczony hasłem","Password Protected Folders":"Foldery zabezpieczone hasłem"},"pt":{"Close folder":"Fechar pasLine truncated
@@ -1 +1 @@
{"af":{},"ar":{},"bs":{},"bg":{"PDF Viewer":"Преглед на PDF"},"ca":{"PDF Viewer":"Visor PDF","PDF document":{"Accessible label for the object holding the PDF file content":"Document PDF"},"Open PDF":{"Button to open a PDF file in the browser on iOS/iPadOS":"Obre PDF"}},"cs":{"PDF Viewer":"PDF prohlížeč"},"el":{},"de":{"PDF Viewer":"PDF-Vorschau","PDF document":{"Accessible label for the object holding the PDF file content":"PDF Dokument"},"Open PDF":{"Button to open a PDF file in the browser on iOS/iPadOS":"PDF öffnen"}},"es":{"PDF Viewer":"Visor PDF","PDF document":{"Accessible label for the object holding the PDF file content":"Documento PDF"},"Open PDF":{"Button to open a PDF file in the browser on iOS/iPadOS":"Abrir PDF"}},"et":{},"fr":{"PDF Viewer":"Visionneuse PDF"},"gl":{},"he":{"PDF Viewer":"מציג PDF"},"hr":{},"id":{"PDF Viewer":"Penampil PDF"},"it":{"PDF Viewer":"Visualizzatore PDF"},"ja":{},"nl":{"PDF Viewer":"PDF Viewer"},"pl":{"PDF Viewer":"Podgląd PDF"},"pt":{"PDF Viewer":"Visualizador de PDF"},"ka":{},"ko":{"PDF Viewer":"PDF 뷰어"},"ro":{},"ru":{"PDF Viewer":"Просмотрщик PDF","PDF document":{"Accessible label for the object holding the PDF file content":"PDF документ"},"Open PDF":{"Button to open a PDF file in the browser on iOS/iPadOS":"Открыть PDF"}},"si":{},"sk":{},"sq":{"PDF Viewer":"Parës PDF-sh","PDF document":{"Accessible label for the object holding the PDF file content":"Dokument PDF"},"Open PDF":{"Button to open a PDF file in the browser on iOS/iPadOS":"Hap PDF"}},"sv":{"PDF Viewer":"PDF Läsare"},"sr":{},"ta":{},"tr":{"PDF Viewer":"PDF Görüntüleyici"},"ug":{},"uk":{"PDF Viewer":"Переглядач PDF","PDF document":{"Accessible label for the object holding the PDF file content":"PDF документ"},"Open PDF":{"Button to open a PDF file in the browser on iOS/iPadOS":"Відкрити PDF"}},"zh":{"PDF Viewer":"PDF 预览"}}
{"ar":{},"af":{},"bs":{},"bg":{"PDF Viewer":"Преглед на PDF"},"ca":{"PDF Viewer":"Visor PDF","PDF document":{"Accessible label for the object holding the PDF file content":"Document PDF"},"Open PDF":{"Button to open a PDF file in the browser on iOS/iPadOS":"Obre PDF"}},"cs":{"PDF Viewer":"PDF prohlížeč"},"de":{"PDF Viewer":"PDF-Vorschau","PDF document":{"Accessible label for the object holding the PDF file content":"PDF Dokument"},"Open PDF":{"Button to open a PDF file in the browser on iOS/iPadOS":"PDF öffnen"}},"es":{"PDF Viewer":"Visor PDF","PDF document":{"Accessible label for the object holding the PDF file content":"Documento PDF"},"Open PDF":{"Button to open a PDF file in the browser on iOS/iPadOS":"Abrir PDF"}},"el":{},"et":{},"fr":{"PDF Viewer":"Visionneuse PDF"},"gl":{},"he":{"PDF Viewer":"מציג PDF"},"hr":{},"it":{"PDF Viewer":"Visualizzatore PDF"},"ja":{},"nl":{"PDF Viewer":"PDF Viewer"},"id":{"PDF Viewer":"Penampil PDF"},"pl":{"PDF Viewer":"Podgląd PDF"},"pt":{"PDF Viewer":"Visualizador de PDF"},"ka":{},"ko":{"PDF Viewer":"PDF 뷰어"},"ro":{},"ru":{"PDF Viewer":"Просмотрщик PDF","PDF document":{"Accessible label for the object holding the PDF file content":"PDF документ"},"Open PDF":{"Button to open a PDF file in the browser on iOS/iPadOS":"Открыть PDF"}},"si":{},"sk":{},"sq":{"PDF Viewer":"Parës PDF-sh","PDF document":{"Accessible label for the object holding the PDF file content":"Dokument PDF"},"Open PDF":{"Button to open a PDF file in the browser on iOS/iPadOS":"Hap PDF"}},"sv":{"PDF Viewer":"PDF Läsare"},"sr":{},"tr":{"PDF Viewer":"PDF Görüntüleyici"},"ta":{},"ug":{},"uk":{"PDF Viewer":"Переглядач PDF","PDF document":{"Accessible label for the object holding the PDF file content":"PDF документ"},"Open PDF":{"Button to open a PDF file in the browser on iOS/iPadOS":"Відкрити PDF"}},"zh":{"PDF Viewer":"PDF 预览"}}
@@ -1 +1 @@
{"af":{},"ar":{},"bs":{},"bg":{"%{ displayIndex } of %{ availableMediaFiles }":"%{ displayIndex } от %{ availableMediaFiles }","Enlarge the image":"Увеличаване на изображението","Exit full screen mode":"Излизане от режим на цял екран","Loading media file":"Зареждане на медиен файл","Media file %{ displayIndex } of %{ availableMediaFiles }":"Медиен файл %{ displayIndex } от %{ availableMediaFiles }","Preview":"Преглед","Rotate the image 90 degrees to the left":"Завъртане на изображението на 90 градуса наляво","Rotate the image 90 degrees to the right":"Завъртане на изображението на 90 градуса надясно","Show next media file in folder":"Показване на следващия медиен файл в папката","Show previous media file in folder":"Показване на предишния медиен файл в папката","Show the image at its normal size":"Показване на изображението в нормален размер","Shrink the image":"Свиване на изображението"},"ca":{"%{ displayIndex } of %{ availableMediaFiles }":"%{ displayIndex } de %{ availableMediaFiles }","Enlarge the image":"Amplia la imatge","enter full screen mode":"entrar en mode de pantalla completa","Exit full screen mode":"Sortir del mode de pantalla completa","Failed to load \"%{filename}\"":"No s'ha pogut carregar \"%{filename}\"","Loading media file":"S'està carregant el fitxer multimèdia","Media file %{ displayIndex } of %{ availableMediaFiles }":"Fitxer multimèdia %{ displayIndex } de %{ availableMediaFiles }","Preview":"Vista prèvia","Reset":"Restableix","Rotate the image 90 degrees to the left":"Gira la imatge 90 graus cap a l'esquerra","Rotate the image 90 degrees to the right":"Gira la imatge 90 graus cap a la dreta","Show next media file in folder":"Mostra el següent fitxer multimèdia de la carpeta","Show previous media file in folder":"Mostra l'anterior fitxer multimèdia de la carpeta","Show the image at its normal size":"Mostra la imatge a la seva mida normal","Shrink the image":"Encongeix la imatge"},"cs":{"%{ displayIndex } of %{ availableMediaFiles }":"%{ displayIndex } z %{ availableMediaFiles }","Enlarge the image":"Zvětšit obrázek","Exit full screen mode":"Opustit režim celé obrazovky","Loading media file":"Nahrávání multimediálního souboru","Media file %{ displayIndex } of %{ availableMediaFiles }":"Mediální soubor %{ displayIndex } z %{ availableMediaFiles }","Preview":"Náhled","Rotate the image 90 degrees to the left":"Otočit obrázek o 90 stupňů doleva","Rotate the image 90 degrees to the right":"Otočit obrázek o 90 stupňů doprava","Show next media file in folder":"Zobrazit další mediální soubor ve složce","Show previous media file in folder":"Zobrazit předchozí mediální soubor ve složce","Show the image at its normal size":"Ukázat obrázek v jeho normální velikosti","Shrink the image":"Zmenšit obrázek"},"de":{"%{ displayIndex } of %{ availableMediaFiles }":"%{ displayIndex } von %{ availableMediaFiles }","Enlarge the image":"Das Bild vergrößern","enter full screen mode":"Vollbildmodus aktivieren","Exit full screen mode":"Vollbildmodus verlassen","Failed to load \"%{filename}\"":"\"%{filename}\" konnte nicht geladen werden","Loading media file":"Lade Mediendatei","Media file %{ displayIndex } of %{ availableMediaFiles }":"Mediendatei %{ displayIndex } von %{ availableMediaFiles }","Preview":"Vorschau","Reset":"Zurücksetzen","Rotate the image 90 degrees to the left":"Das Bild um um 90 Grad nach links drehen","Rotate the image 90 degrees to the right":"Das Bild um um 90 Grad nach rechts drehen","Show next media file in folder":"Nächste Mediendatei im Order anzeigen","Show previous media file in folder":"Vorherige Mediendatei im Order anzeigen","Show the image at its normal size":"Das Bild in seiner normalen Größe anzeigen","Shrink the image":"Das Bild verkleinern"},"el":{},"es":{"%{ displayIndex } of %{ availableMediaFiles }":"%{ displayIndex } de %{ availableMediaFiles }","Enlarge the image":"Agrandar la imagen","enter full screen mode":"entrar en modo a pantalla completa","Exit full screen mode":"Salir del modo pantalla completa","Failed to load \"%{filename}\"":"Fallo al cargar \"%{filename}\"","Loading media file":"Cargando archivo multimedia","Media file %{ displayIndex } of %{ availableMediaFiles }":"Archivo multimedia %{ displayIndex } de %{ availableMediaFiles }","Preview":"Vista previa","Reset":"Reiniciar","Rotate the image 90 degrees to the left":"Rotar imagen 90 grados a la izquierda","Rotate the image 90 degrees to the right":"Rotar imagen 90 grados a la derecha","Show next media file in folder":"Mostrar siguiente archivo multimedia en carpeta","Show previous media file in folder":"Mostrar archivo anterior multimedia en carpeta","ShowLine truncated
{"af":{},"ar":{},"bg":{"%{ displayIndex } of %{ availableMediaFiles }":"%{ displayIndex } от %{ availableMediaFiles }","Enlarge the image":"Увеличаване на изображението","Exit full screen mode":"Излизане от режим на цял екран","Loading media file":"Зареждане на медиен файл","Media file %{ displayIndex } of %{ availableMediaFiles }":"Медиен файл %{ displayIndex } от %{ availableMediaFiles }","Preview":"Преглед","Rotate the image 90 degrees to the left":"Завъртане на изображението на 90 градуса наляво","Rotate the image 90 degrees to the right":"Завъртане на изображението на 90 градуса надясно","Show next media file in folder":"Показване на следващия медиен файл в папката","Show previous media file in folder":"Показване на предишния медиен файл в папката","Show the image at its normal size":"Показване на изображението в нормален размер","Shrink the image":"Свиване на изображението"},"bs":{},"ca":{"%{ displayIndex } of %{ availableMediaFiles }":"%{ displayIndex } de %{ availableMediaFiles }","Enlarge the image":"Amplia la imatge","enter full screen mode":"entrar en mode de pantalla completa","Exit full screen mode":"Sortir del mode de pantalla completa","Failed to load \"%{filename}\"":"No s'ha pogut carregar \"%{filename}\"","Loading media file":"S'està carregant el fitxer multimèdia","Media file %{ displayIndex } of %{ availableMediaFiles }":"Fitxer multimèdia %{ displayIndex } de %{ availableMediaFiles }","Preview":"Vista prèvia","Reset":"Restableix","Rotate the image 90 degrees to the left":"Gira la imatge 90 graus cap a l'esquerra","Rotate the image 90 degrees to the right":"Gira la imatge 90 graus cap a la dreta","Show next media file in folder":"Mostra el següent fitxer multimèdia de la carpeta","Show previous media file in folder":"Mostra l'anterior fitxer multimèdia de la carpeta","Show the image at its normal size":"Mostra la imatge a la seva mida normal","Shrink the image":"Encongeix la imatge"},"cs":{"%{ displayIndex } of %{ availableMediaFiles }":"%{ displayIndex } z %{ availableMediaFiles }","Enlarge the image":"Zvětšit obrázek","Exit full screen mode":"Opustit režim celé obrazovky","Loading media file":"Nahrávání multimediálního souboru","Media file %{ displayIndex } of %{ availableMediaFiles }":"Mediální soubor %{ displayIndex } z %{ availableMediaFiles }","Preview":"Náhled","Rotate the image 90 degrees to the left":"Otočit obrázek o 90 stupňů doleva","Rotate the image 90 degrees to the right":"Otočit obrázek o 90 stupňů doprava","Show next media file in folder":"Zobrazit další mediální soubor ve složce","Show previous media file in folder":"Zobrazit předchozí mediální soubor ve složce","Show the image at its normal size":"Ukázat obrázek v jeho normální velikosti","Shrink the image":"Zmenšit obrázek"},"de":{"%{ displayIndex } of %{ availableMediaFiles }":"%{ displayIndex } von %{ availableMediaFiles }","Enlarge the image":"Das Bild vergrößern","enter full screen mode":"Vollbildmodus aktivieren","Exit full screen mode":"Vollbildmodus verlassen","Failed to load \"%{filename}\"":"\"%{filename}\" konnte nicht geladen werden","Loading media file":"Lade Mediendatei","Media file %{ displayIndex } of %{ availableMediaFiles }":"Mediendatei %{ displayIndex } von %{ availableMediaFiles }","Preview":"Vorschau","Reset":"Zurücksetzen","Rotate the image 90 degrees to the left":"Das Bild um um 90 Grad nach links drehen","Rotate the image 90 degrees to the right":"Das Bild um um 90 Grad nach rechts drehen","Show next media file in folder":"Nächste Mediendatei im Order anzeigen","Show previous media file in folder":"Vorherige Mediendatei im Order anzeigen","Show the image at its normal size":"Das Bild in seiner normalen Größe anzeigen","Shrink the image":"Das Bild verkleinern"},"el":{},"es":{"%{ displayIndex } of %{ availableMediaFiles }":"%{ displayIndex } de %{ availableMediaFiles }","Enlarge the image":"Agrandar la imagen","enter full screen mode":"entrar en modo a pantalla completa","Exit full screen mode":"Salir del modo pantalla completa","Failed to load \"%{filename}\"":"Fallo al cargar \"%{filename}\"","Loading media file":"Cargando archivo multimedia","Media file %{ displayIndex } of %{ availableMediaFiles }":"Archivo multimedia %{ displayIndex } de %{ availableMediaFiles }","Preview":"Vista previa","Reset":"Reiniciar","Rotate the image 90 degrees to the left":"Rotar imagen 90 grados a la izquierda","Rotate the image 90 degrees to the right":"Rotar imagen 90 grados a la derecha","Show next media file in folder":"Mostrar siguiente archivo multimedia en carpeta","Show previous media file in folder":"Mostrar archivo anterior multimedia en carpeta","ShowLine truncated
@@ -1 +1 @@
{"af":{},"bs":{},"ar":{"Enter search term":"أدخل مصطلح للبحث","Search":"بحث","Searching ...":"جار البحث ...","Show all results":"عرض جميع النتائج"},"ca":{"%{count} result found":["S'ha trobat %{count} resultat","S'han trobat %{count} resultats"],"Click to display and focus the search bar":"Feu clic per mostrar i enfocar la barra de cerca","Display search bar":"Mostra la barra de cerca","Enter search term":"Introduïu el terme de cerca","No results":"Sense resultats","Search":"Cerca","Searching ...":"Cercant ...","Searching …":"S'està cercant...","Selected: %{name}":"Seleccionat: %{name}","Show %{totalResults} result":["Mostra %{totalResults} resultat","Mostra %{totalResults} resultats"],"Show all results":"Mostra tots els resultats","Results will appear if they exist.":{"Accesibility label to inform user that search results will appear below the search bar if they exist":"Els resultats apareixeran si existeixen."}},"bg":{"Click to display and focus the search bar":"Натиснете, за да се покаже и фокусира лентата за търсене","Display search bar":"Показване на лентата за търсене","Enter search term":"Въведете термин за търсене","No results":"Няма резултати","Search":"Търсене","Searching ...":"Търсене ...","Show %{totalResults} result":["Показване на %{totalResults} резултат","Показване на %{totalResults} резултата"],"Show all results":"Показване на всички резултати"},"cs":{"Click to display and focus the search bar":"Kliknutím zobrazíte a zaměříte vyhledávací panel","Display search bar":"Zobrazit vyhledávací lištu","Enter search term":"Zadejte hledaný výraz","No results":"Žádné výsledky","Search":"Hledat","Searching ...":"Hledání ...","Show %{totalResults} result":["Ukázat %{totalResults} výsledek","Ukázat %{totalResults} výsledky","Ukázat %{totalResults} výsledků","Ukázat %{totalResults} výsledků"],"Show all results":"Ukázat všechny výsledky"},"de":{"%{count} result found":["%{count} Ergebnisse gefunden","%{count} Ergebnisse gefunden"],"Click to display and focus the search bar":"Klicken, um die Suchleiste anzuzeigen und zu fokussieren","Display search bar":"Suchleiste anzeigen","Enter search term":"Suchbegriff eingeben","No results":"Keine Ergebnisse","Search":"Suchen","Searching ...":"Suche ...","Searching …":"Suche …","Selected: %{name}":"Ausgewählt: %{name}","Show %{totalResults} result":["Zeige %{totalResults} Ergebnisse","Zeige %{totalResults} Ergebnisse"],"Show all results":"Zeige alle Ergebnisse","Results will appear if they exist.":{"Accesibility label to inform user that search results will appear below the search bar if they exist":"Ergebnisse werden angezeigt, sofern vorhanden."}},"el":{"Search":"Αναζήτηση"},"es":{"%{count} result found":["%{count} resultado encontrado","%{count} resultados encontrados","%{count} resultados encontrados"],"Click to display and focus the search bar":"Haga clic para mostrar y enfocar la barra de búsqueda","Display search bar":"Mostrar la barra de búsqueda","Enter search term":"Introduzca el término de búsqueda","No results":"Sin resultados","Search":"Buscar","Searching ...":"Buscando...","Searching …":"Buscando ...","Selected: %{name}":"Seleccionado: %{name}","Show %{totalResults} result":["Mostrar %{totalResults} resultado","Mostrar %{totalResults} resultados","Mostrar %{totalResults} resultados"],"Show all results":"Mostrar todos los resultados","Results will appear if they exist.":{"Accesibility label to inform user that search results will appear below the search bar if they exist":"Si hay resultados, aparecerán"}},"et":{},"gl":{"Search":"Buscar"},"fr":{"Click to display and focus the search bar":"Cliquez pour afficher et focaliser la barre de recherche","Display search bar":"Afficher la barre de recherche","Enter search term":"Saisissez le terme à rechercher","No results":"Aucun résultat","Search":"Recherche","Searching ...":"Recherche...","Show %{totalResults} result":["Afficher %{totalResults} résultat","Afficher les %{totalResults} résultats","Afficher les %{totalResults} résultats"],"Show all results":"Afficher tous les résultats"},"he":{"Click to display and focus the search bar":"לחיצה תציג ותעביר את המיקוד לסרגל החיפוש","Display search bar":"הצגת סרגל חיפוש","Enter search term":"נא למלא ביטוי לחיפוש","No results":"אין תוצאות","Search":"חיפוש","Searching ...":"מתבצע חיפוש…","Show %{totalResults} result":["הצגת תוצאה","הצגת %{totalResults} תוצאות","הצגת %{totalResults} תוצאות"],"Show all results":"הצגת כל התוצאות"},"hr":{"Search":"Pretraga"},"id":{"Click to display and focus the search bar":"Klik untuk menampilkan dan memfokuskan bilah pencarianLine truncated
{"af":{},"bs":{},"ar":{"Enter search term":"أدخل مصطلح للبحث","Search":"بحث","Searching ...":"جار البحث ...","Show all results":"عرض جميع النتائج"},"bg":{"Click to display and focus the search bar":"Натиснете, за да се покаже и фокусира лентата за търсене","Display search bar":"Показване на лентата за търсене","Enter search term":"Въведете термин за търсене","No results":"Няма резултати","Search":"Търсене","Searching ...":"Търсене ...","Show %{totalResults} result":["Показване на %{totalResults} резултат","Показване на %{totalResults} резултата"],"Show all results":"Показване на всички резултати"},"ca":{"%{count} result found":["S'ha trobat %{count} resultat","S'han trobat %{count} resultats"],"Click to display and focus the search bar":"Feu clic per mostrar i enfocar la barra de cerca","Display search bar":"Mostra la barra de cerca","Enter search term":"Introduïu el terme de cerca","No results":"Sense resultats","Search":"Cerca","Searching ...":"Cercant ...","Searching …":"S'està cercant...","Selected: %{name}":"Seleccionat: %{name}","Show %{totalResults} result":["Mostra %{totalResults} resultat","Mostra %{totalResults} resultats"],"Show all results":"Mostra tots els resultats","Results will appear if they exist.":{"Accesibility label to inform user that search results will appear below the search bar if they exist":"Els resultats apareixeran si existeixen."}},"cs":{"Click to display and focus the search bar":"Kliknutím zobrazíte a zaměříte vyhledávací panel","Display search bar":"Zobrazit vyhledávací lištu","Enter search term":"Zadejte hledaný výraz","No results":"Žádné výsledky","Search":"Hledat","Searching ...":"Hledání ...","Show %{totalResults} result":["Ukázat %{totalResults} výsledek","Ukázat %{totalResults} výsledky","Ukázat %{totalResults} výsledků","Ukázat %{totalResults} výsledků"],"Show all results":"Ukázat všechny výsledky"},"de":{"%{count} result found":["%{count} Ergebnisse gefunden","%{count} Ergebnisse gefunden"],"Click to display and focus the search bar":"Klicken, um die Suchleiste anzuzeigen und zu fokussieren","Display search bar":"Suchleiste anzeigen","Enter search term":"Suchbegriff eingeben","No results":"Keine Ergebnisse","Search":"Suchen","Searching ...":"Suche ...","Searching …":"Suche …","Selected: %{name}":"Ausgewählt: %{name}","Show %{totalResults} result":["Zeige %{totalResults} Ergebnisse","Zeige %{totalResults} Ergebnisse"],"Show all results":"Zeige alle Ergebnisse","Results will appear if they exist.":{"Accesibility label to inform user that search results will appear below the search bar if they exist":"Ergebnisse werden angezeigt, sofern vorhanden."}},"el":{"Search":"Αναζήτηση"},"es":{"%{count} result found":["%{count} resultado encontrado","%{count} resultados encontrados","%{count} resultados encontrados"],"Click to display and focus the search bar":"Haga clic para mostrar y enfocar la barra de búsqueda","Display search bar":"Mostrar la barra de búsqueda","Enter search term":"Introduzca el término de búsqueda","No results":"Sin resultados","Search":"Buscar","Searching ...":"Buscando...","Searching …":"Buscando ...","Selected: %{name}":"Seleccionado: %{name}","Show %{totalResults} result":["Mostrar %{totalResults} resultado","Mostrar %{totalResults} resultados","Mostrar %{totalResults} resultados"],"Show all results":"Mostrar todos los resultados","Results will appear if they exist.":{"Accesibility label to inform user that search results will appear below the search bar if they exist":"Si hay resultados, aparecerán"}},"et":{},"fr":{"Click to display and focus the search bar":"Cliquez pour afficher et focaliser la barre de recherche","Display search bar":"Afficher la barre de recherche","Enter search term":"Saisissez le terme à rechercher","No results":"Aucun résultat","Search":"Recherche","Searching ...":"Recherche...","Show %{totalResults} result":["Afficher %{totalResults} résultat","Afficher les %{totalResults} résultats","Afficher les %{totalResults} résultats"],"Show all results":"Afficher tous les résultats"},"gl":{"Search":"Buscar"},"he":{"Click to display and focus the search bar":"לחיצה תציג ותעביר את המיקוד לסרגל החיפוש","Display search bar":"הצגת סרגל חיפוש","Enter search term":"נא למלא ביטוי לחיפוש","No results":"אין תוצאות","Search":"חיפוש","Searching ...":"מתבצע חיפוש…","Show %{totalResults} result":["הצגת תוצאה","הצגת %{totalResults} תוצאות","הצגת %{totalResults} תוצאות"],"Show all results":"הצגת כל התוצאות"},"hr":{"Search":"Pretraga"},"id":{"Click to display and focus the search bar":"Klik untuk menampilkan dan memfokuskan bilah pencarianLine truncated
@@ -36,7 +36,7 @@
cancel-button-appearance="raw-inverse"
:cancel-handler="cancelSearch"
:aria-expanded="showDrop && term ? 'true' : 'false'"
aria-controls="files-global-search-options"
:aria-controls="showDrop ? 'files-global-search-options' : null"
aria-describedby="search-description"
@advanced-search="onKeyUpEnter"
@input="updateTerm"
@@ -77,7 +77,11 @@
close-on-click
same-width-as-target
>
<oc-list role="listbox" class="oc-list-divider">
<oc-list
:role="loading || showNoResults ? undefined : 'listbox'"
:aria-label="loading || showNoResults ? undefined : searchLabel"
class="oc-list-divider"
>
<li
v-if="loading"
class="loading spinner oc-flex oc-flex-center oc-flex-middle oc-text-muted"
@@ -89,8 +93,8 @@
{{ $gettext('No results') }}
</li>
<template v-else>
<li v-for="provider in displayProviders" :key="provider.id" class="provider">
<oc-list>
<li v-for="provider in displayProviders" :key="provider.id" role="group" class="provider">
<oc-list role="presentation">
<li
role="presentation"
aria-hidden="true"
@@ -1 +1 @@
{"af":{},"ar":{},"bs":{},"bg":{"JavaScript file":"JavaScript файл","JSON file":"JSON файл","Markdown file":"Markdown файл","PHP file":"PHP файл","Plain text file":"Обикновен текстови файл","Python file":"Python файл","Text Editor":"Текстов редактор","XML file":"XML файл","YAML file":"YAML файл"},"ca":{"Configuration file":"Fitxer de configuració","JavaScript file":"Fitxer JavaScript","JSON file":"Fitxer JSON","Log file":"Fitxer de registre","Markdown file":"Fitxer Markdown","PHP file":"Fitxer PHP","Plain text file":"Fitxer de text","Python file":"Fitxer Python","Text Editor":"Editor de text","XML file":"Fitxer XML","YAML file":"Fitxer YAML"},"cs":{"JavaScript file":"JavaScript soubor","JSON file":"JSON soubor","Markdown file":"Markdown soubor","PHP file":"PHP soubor","Plain text file":"Prostý textový soubor","Python file":"Python soubor","Text Editor":"Textový editor","XML file":"XML soubor","YAML file":"YAML soubor"},"de":{"Configuration file":"Konfigurationsdatei","JavaScript file":"JavaScript-Datei","JSON file":"JSON-Datei","Log file":"Protokolldatei","Markdown file":"Markdown-Datei","PHP file":"PHP-Datei","Plain text file":"Text-Datei","Python file":"Python-Datei","Text Editor":"Texteditor","XML file":"XML-Datei","YAML file":"YAML-Datei"},"el":{},"es":{"Configuration file":"Konfigurationsdatei","JavaScript file":"Archivo JavaScript","JSON file":"Archivo JSON","Log file":"Protokolldatei","Markdown file":"Archivo Markdown","PHP file":"Archivo PHP","Plain text file":"Archivo de texto","Python file":"Archivo Python","Text Editor":"Editor de texto","XML file":"Archivo XML","YAML file":"Archivo YAML"},"et":{},"fr":{"JavaScript file":"Fichier JavaScript","JSON file":"Fichier JSON","Markdown file":"Fichier Markdown","PHP file":"Fichier PHP","Plain text file":"Fichier texte brut","Python file":"Fichier Python","Text Editor":"Éditeur de texte","XML file":"Fichier XML","YAML file":"Fichier YAML"},"gl":{},"he":{"JavaScript file":"קובץ JavaScript","JSON file":"קובץ JSON","Markdown file":"קובץ Markdown","PHP file":"קובץ PHP","Plain text file":"קובץ טקסט פשוט","Python file":"קובץ Python","Text Editor":"עורך טקסט","XML file":"קובץ XML","YAML file":"קובץ YAML"},"hr":{},"it":{"Configuration file":"File di configurazione","JavaScript file":"File JavaScript","JSON file":"File JSON","Log file":"File di registro","Markdown file":"File markdown","PHP file":"File PHP","Plain text file":"File di solo testo","Python file":"File Python","Text Editor":"Editor di testi","XML file":"File XML","YAML file":"File YAML"},"id":{},"ja":{},"nl":{"JavaScript file":"JavaScript bestand","JSON file":"JSON bestand","Markdown file":"Markdown bestand","PHP file":"PHP bestand","Plain text file":"Eenvoudig tekstbestand","Python file":"Python bestand","Text Editor":"Teksteditor","XML file":"XML bestand","YAML file":"YAML bestand"},"pl":{"JavaScript file":"Plik JavaScript","JSON file":"Plik JSON","Markdown file":"Plik z formatowaniem Markdown","PHP file":"Plik PHP","Plain text file":"Zwykły plik tekstowy","Python file":"Plik Python","Text Editor":"Edytor tekstu","XML file":"Plik XML","YAML file":"Plik YAML"},"pt":{"JavaScript file":"Arquivo JavaScript","JSON file":"Arquivo JSON","Markdown file":"Arquivo Markdown","PHP file":"Arquivo PHP","Plain text file":"Arquivo de texto Plain","Python file":"Arquivo Python","Text Editor":"Editor de Texto","XML file":"Arquivo XML","YAML file":"Arquivo YAML"},"ka":{},"ko":{"JavaScript file":"JavaScript 파일","JSON file":"JSON 파일","Markdown file":"마크다운 파일","PHP file":"PHP 파일","Plain text file":"일반 텍스트 파일","Python file":"Python 파일","Text Editor":"텍스트 편집기","XML file":"XML 파일","YAML file":"YAML 파일"},"ro":{},"ru":{"Configuration file":"Конфигурационный файл","JavaScript file":"Файл JavaScript","JSON file":"Файл JSON","Log file":"Файл журнала","Markdown file":"Файл Markdown","PHP file":"Файл PHP","Plain text file":"Простой текстовый файл","Python file":"Файл Python","Text Editor":"Текстовый редактор","XML file":"Файл XML","YAML file":"Файл YAML"},"si":{},"sq":{"Configuration file":"Kartelë formësimi","JavaScript file":"Kartelë JavaScript","JSON file":"Kartelë JSON","Log file":"Kartelë regjistër","Markdown file":"Kartelë Markdown","PHP file":"Kartelë PHP","Plain text file":"Kartelë tekst i thjeshtë","Python file":"Kartelë Python","Text Editor":"Përpunues Tekstesh","XML file":"Kartelë XML","YAML file":"Kartelë YAML"},"sk":{},"sr":{},"sv":{},"tr":{"JavaScript file":"JavaScript dosyası","JSON file":"JSON dosyası","Markdown file":"Markdown dosyası","PHP file":"PHP dosyası","Plain text file":"Düz metin dosyası","Python file":"Python dosyası","Text Editor":"Metin Editörü","XML file":"XML dosyası","YAML file":"YAML dosyası"},"ta":{},"uLine truncated
{"af":{},"bs":{},"ar":{},"bg":{"JavaScript file":"JavaScript файл","JSON file":"JSON файл","Markdown file":"Markdown файл","PHP file":"PHP файл","Plain text file":"Обикновен текстови файл","Python file":"Python файл","Text Editor":"Текстов редактор","XML file":"XML файл","YAML file":"YAML файл"},"ca":{"Configuration file":"Fitxer de configuració","JavaScript file":"Fitxer JavaScript","JSON file":"Fitxer JSON","Log file":"Fitxer de registre","Markdown file":"Fitxer Markdown","PHP file":"Fitxer PHP","Plain text file":"Fitxer de text","Python file":"Fitxer Python","Text Editor":"Editor de text","XML file":"Fitxer XML","YAML file":"Fitxer YAML"},"cs":{"JavaScript file":"JavaScript soubor","JSON file":"JSON soubor","Markdown file":"Markdown soubor","PHP file":"PHP soubor","Plain text file":"Prostý textový soubor","Python file":"Python soubor","Text Editor":"Textový editor","XML file":"XML soubor","YAML file":"YAML soubor"},"de":{"Configuration file":"Konfigurationsdatei","JavaScript file":"JavaScript-Datei","JSON file":"JSON-Datei","Log file":"Protokolldatei","Markdown file":"Markdown-Datei","PHP file":"PHP-Datei","Plain text file":"Text-Datei","Python file":"Python-Datei","Text Editor":"Texteditor","XML file":"XML-Datei","YAML file":"YAML-Datei"},"el":{},"es":{"Configuration file":"Konfigurationsdatei","JavaScript file":"Archivo JavaScript","JSON file":"Archivo JSON","Log file":"Protokolldatei","Markdown file":"Archivo Markdown","PHP file":"Archivo PHP","Plain text file":"Archivo de texto","Python file":"Archivo Python","Text Editor":"Editor de texto","XML file":"Archivo XML","YAML file":"Archivo YAML"},"et":{},"fr":{"JavaScript file":"Fichier JavaScript","JSON file":"Fichier JSON","Markdown file":"Fichier Markdown","PHP file":"Fichier PHP","Plain text file":"Fichier texte brut","Python file":"Fichier Python","Text Editor":"Éditeur de texte","XML file":"Fichier XML","YAML file":"Fichier YAML"},"gl":{},"he":{"JavaScript file":"קובץ JavaScript","JSON file":"קובץ JSON","Markdown file":"קובץ Markdown","PHP file":"קובץ PHP","Plain text file":"קובץ טקסט פשוט","Python file":"קובץ Python","Text Editor":"עורך טקסט","XML file":"קובץ XML","YAML file":"קובץ YAML"},"hr":{},"id":{},"it":{"Configuration file":"File di configurazione","JavaScript file":"File JavaScript","JSON file":"File JSON","Log file":"File di registro","Markdown file":"File markdown","PHP file":"File PHP","Plain text file":"File di solo testo","Python file":"File Python","Text Editor":"Editor di testi","XML file":"File XML","YAML file":"File YAML"},"ja":{},"pl":{"JavaScript file":"Plik JavaScript","JSON file":"Plik JSON","Markdown file":"Plik z formatowaniem Markdown","PHP file":"Plik PHP","Plain text file":"Zwykły plik tekstowy","Python file":"Plik Python","Text Editor":"Edytor tekstu","XML file":"Plik XML","YAML file":"Plik YAML"},"nl":{"JavaScript file":"JavaScript bestand","JSON file":"JSON bestand","Markdown file":"Markdown bestand","PHP file":"PHP bestand","Plain text file":"Eenvoudig tekstbestand","Python file":"Python bestand","Text Editor":"Teksteditor","XML file":"XML bestand","YAML file":"YAML bestand"},"pt":{"JavaScript file":"Arquivo JavaScript","JSON file":"Arquivo JSON","Markdown file":"Arquivo Markdown","PHP file":"Arquivo PHP","Plain text file":"Arquivo de texto Plain","Python file":"Arquivo Python","Text Editor":"Editor de Texto","XML file":"Arquivo XML","YAML file":"Arquivo YAML"},"ka":{},"ko":{"JavaScript file":"JavaScript 파일","JSON file":"JSON 파일","Markdown file":"마크다운 파일","PHP file":"PHP 파일","Plain text file":"일반 텍스트 파일","Python file":"Python 파일","Text Editor":"텍스트 편집기","XML file":"XML 파일","YAML file":"YAML 파일"},"ro":{},"ru":{"Configuration file":"Конфигурационный файл","JavaScript file":"Файл JavaScript","JSON file":"Файл JSON","Log file":"Файл журнала","Markdown file":"Файл Markdown","PHP file":"Файл PHP","Plain text file":"Простой текстовый файл","Python file":"Файл Python","Text Editor":"Текстовый редактор","XML file":"Файл XML","YAML file":"Файл YAML"},"si":{},"sk":{},"sq":{"Configuration file":"Kartelë formësimi","JavaScript file":"Kartelë JavaScript","JSON file":"Kartelë JSON","Log file":"Kartelë regjistër","Markdown file":"Kartelë Markdown","PHP file":"Kartelë PHP","Plain text file":"Kartelë tekst i thjeshtë","Python file":"Kartelë Python","Text Editor":"Përpunues Tekstesh","XML file":"Kartelë XML","YAML file":"Kartelë YAML"},"sv":{},"sr":{},"ta":{},"tr":{"JavaScript file":"JavaScript dosyası","JSON file":"JSON dosyası","Markdown file":"Markdown dosyası","PHP file":"PHP dosyası","Plain text file":"Düz metin dosyası","Python file":"Python dosyası","Text Editor":"Metin Editörü","XML file":"XML dosyası","YAML file":"YAML dosyası"},"uLine truncated
@@ -1 +1 @@
{"ar":{},"af":{},"bs":{},"bg":{"One moment please…":"Един момент, моля...","Resolve destination":"Разрешете дестинацията","Something went wrong.":"Нещо се обърка.","Sorry!":"Съжаляваме!","We could not resolve the destination.":"Дестинацията не беше открита.","Webfinger":"Webfinger","You are being redirected.":"Вие сте пренасочени."},"ca":{"One moment please…":"Un moment, si us plau...","Resolve destination":"Resol la destinació","Something went wrong.":"Alguna cosa ha anat malament.","Sorry!":"Ho sento!","We could not resolve the destination.":"No hem pogut resoldre la destinació.","Webfinger":"Webfinger","You are being redirected.":"Està sent redirigit."},"cs":{},"de":{"One moment please…":"Einen Moment bitte ...","Resolve destination":"Ziel auflösen","Something went wrong.":"Etwas ist schiefgelaufen.","Sorry!":"Entschuldigung!","We could not resolve the destination.":"Das Ziel konnte nicht aufgelöst werden.","Webfinger":"Webfinger","You are being redirected.":"Sie werden weitergeleitet."},"el":{},"es":{"One moment please…":"Espere un momento, por favor…","Resolve destination":"Resolver destino","Something went wrong.":"Se produjo un error.","Sorry!":"Lo sentimos","We could not resolve the destination.":"No hemos podido resolver el destino.","Webfinger":"Webfinger","You are being redirected.":"Está siendo redirigido."},"et":{},"fr":{"One moment please…":"Veuillez patienter …","Resolve destination":"Déterminer la destination","Something went wrong.":"Quelque chose a échoué.","Sorry!":"Désolé !","We could not resolve the destination.":"Nous n'avons pas pu identifier la destination.","Webfinger":"Webfinger","You are being redirected.":"Vous allez être redirigé..."},"gl":{},"he":{"One moment please…":"רק רגע בבקשה…","Resolve destination":"פתרון היעד","Something went wrong.":"משהו השתבש.","Sorry!":"מתנצלים!","We could not resolve the destination.":"לא הצלחנו לפתור את היעד.","Webfinger":"Webfinger","You are being redirected.":"מתבצעת הפניה."},"hr":{},"id":{},"it":{"One moment please…":"Ancora un momento...","Resolve destination":"Risoluzione destinazione","Something went wrong.":"Qualcosa è andato storto.","Sorry!":"Ci scusiamo per il disagio!","We could not resolve the destination.":"Non è stato possibile risolvere la destinazione.","Webfinger":"Webfinger","You are being redirected.":"Reindirizzamento in corso."},"ja":{},"nl":{"One moment please…":"Een ogenblik geduld alstublieft...","Resolve destination":"Bestemming oplossen","Something went wrong.":"Er ging iets fout.","Sorry!":"Helaas!","We could not resolve the destination.":"We konden de bestemming niet oplossen.","Webfinger":"Webfinger","You are being redirected.":"U wordt doorgestuurd."},"pl":{"One moment please…":"Proszę czekać…","Resolve destination":"Określanie miejsca docelowego","Something went wrong.":"Coś poszło nie tak.","Sorry!":"Przepraszam!","We could not resolve the destination.":"Nie mogliśmy określić miejsca docelowego.","Webfinger":"Webfinger","You are being redirected.":"Jesteś przekierowywany."},"pt":{"One moment please…":"Um momento por favor...","Resolve destination":"Esclarecer destino","Something went wrong.":"Alguma coisa deu errado.","Sorry!":"Desculpa!","We could not resolve the destination.":"Não conseguimos esclarecer o destino.","Webfinger":"Webfinger","You are being redirected.":"Você está sendo redirecionado"},"ka":{},"ko":{"One moment please…":"잠시 기다려주세요...","Something went wrong.":"무언가 잘못되었습니다.","Sorry!":"죄송합니다!","You are being redirected.":"리디렉션되고 있습니다."},"ro":{},"ru":{"One moment please…":"Один момент, пожалуйста…","Resolve destination":"Определить место назначения","Something went wrong.":"Что-то пошло нет так.","Sorry!":"Извините!","We could not resolve the destination.":"Нам не удалось определить место назначения.","Webfinger":"Webfinger","You are being redirected.":"Вы будете перенаправлены."},"si":{},"sk":{},"sq":{"One moment please…":"Një sekondë, ju lutemi…","Resolve destination":"Ftillo vendmbërritjen","Something went wrong.":"Diç shkoi ters.","Sorry!":"Na ndjeni!","We could not resolve the destination.":"S’ftilluam dot vendmbërritjen.","You are being redirected.":"Po bëhet ridrejtimi juaj."},"sv":{},"sr":{},"tr":{"One moment please…":"Bir dakika lütfen...","Resolve destination":"Hedefi çöz","Something went wrong.":"Bir şeyler ters gitti.","Sorry!":"Üzgünüz!","We could not resolve the destination.":"Hedefi çözemedik.","Webfinger":"Ağ parmağı","You are being redirected.":"Yönlendiriliyorsunuz."},"ta":{},"ug":{},"uk":{"One moment please…":"Будь ласка, хвилиноLine truncated
{"af":{},"ar":{},"bs":{},"bg":{"One moment please…":"Един момент, моля...","Resolve destination":"Разрешете дестинацията","Something went wrong.":"Нещо се обърка.","Sorry!":"Съжаляваме!","We could not resolve the destination.":"Дестинацията не беше открита.","Webfinger":"Webfinger","You are being redirected.":"Вие сте пренасочени."},"ca":{"One moment please…":"Un moment, si us plau...","Resolve destination":"Resol la destinació","Something went wrong.":"Alguna cosa ha anat malament.","Sorry!":"Ho sento!","We could not resolve the destination.":"No hem pogut resoldre la destinació.","Webfinger":"Webfinger","You are being redirected.":"Està sent redirigit."},"cs":{},"de":{"One moment please…":"Einen Moment bitte ...","Resolve destination":"Ziel auflösen","Something went wrong.":"Etwas ist schiefgelaufen.","Sorry!":"Entschuldigung!","We could not resolve the destination.":"Das Ziel konnte nicht aufgelöst werden.","Webfinger":"Webfinger","You are being redirected.":"Sie werden weitergeleitet."},"el":{},"es":{"One moment please…":"Espere un momento, por favor…","Resolve destination":"Resolver destino","Something went wrong.":"Se produjo un error.","Sorry!":"Lo sentimos","We could not resolve the destination.":"No hemos podido resolver el destino.","Webfinger":"Webfinger","You are being redirected.":"Está siendo redirigido."},"et":{},"fr":{"One moment please…":"Veuillez patienter …","Resolve destination":"Déterminer la destination","Something went wrong.":"Quelque chose a échoué.","Sorry!":"Désolé !","We could not resolve the destination.":"Nous n'avons pas pu identifier la destination.","Webfinger":"Webfinger","You are being redirected.":"Vous allez être redirigé..."},"gl":{},"he":{"One moment please…":"רק רגע בבקשה…","Resolve destination":"פתרון היעד","Something went wrong.":"משהו השתבש.","Sorry!":"מתנצלים!","We could not resolve the destination.":"לא הצלחנו לפתור את היעד.","Webfinger":"Webfinger","You are being redirected.":"מתבצעת הפניה."},"hr":{},"id":{},"it":{"One moment please…":"Ancora un momento...","Resolve destination":"Risoluzione destinazione","Something went wrong.":"Qualcosa è andato storto.","Sorry!":"Ci scusiamo per il disagio!","We could not resolve the destination.":"Non è stato possibile risolvere la destinazione.","Webfinger":"Webfinger","You are being redirected.":"Reindirizzamento in corso."},"nl":{"One moment please…":"Een ogenblik geduld alstublieft...","Resolve destination":"Bestemming oplossen","Something went wrong.":"Er ging iets fout.","Sorry!":"Helaas!","We could not resolve the destination.":"We konden de bestemming niet oplossen.","Webfinger":"Webfinger","You are being redirected.":"U wordt doorgestuurd."},"ja":{},"pt":{"One moment please…":"Um momento por favor...","Resolve destination":"Esclarecer destino","Something went wrong.":"Alguma coisa deu errado.","Sorry!":"Desculpa!","We could not resolve the destination.":"Não conseguimos esclarecer o destino.","Webfinger":"Webfinger","You are being redirected.":"Você está sendo redirecionado"},"pl":{"One moment please…":"Proszę czekać…","Resolve destination":"Określanie miejsca docelowego","Something went wrong.":"Coś poszło nie tak.","Sorry!":"Przepraszam!","We could not resolve the destination.":"Nie mogliśmy określić miejsca docelowego.","Webfinger":"Webfinger","You are being redirected.":"Jesteś przekierowywany."},"ka":{},"ko":{"One moment please…":"잠시 기다려주세요...","Something went wrong.":"무언가 잘못되었습니다.","Sorry!":"죄송합니다!","You are being redirected.":"리디렉션되고 있습니다."},"ro":{},"ru":{"One moment please…":"Один момент, пожалуйста…","Resolve destination":"Определить место назначения","Something went wrong.":"Что-то пошло нет так.","Sorry!":"Извините!","We could not resolve the destination.":"Нам не удалось определить место назначения.","Webfinger":"Webfinger","You are being redirected.":"Вы будете перенаправлены."},"si":{},"sk":{},"sq":{"One moment please…":"Një sekondë, ju lutemi…","Resolve destination":"Ftillo vendmbërritjen","Something went wrong.":"Diç shkoi ters.","Sorry!":"Na ndjeni!","We could not resolve the destination.":"S’ftilluam dot vendmbërritjen.","You are being redirected.":"Po bëhet ridrejtimi juaj."},"sv":{},"ta":{},"sr":{},"tr":{"One moment please…":"Bir dakika lütfen...","Resolve destination":"Hedefi çöz","Something went wrong.":"Bir şeyler ters gitti.","Sorry!":"Üzgünüz!","We could not resolve the destination.":"Hedefi çözemedik.","Webfinger":"Ağ parmağı","You are being redirected.":"Yönlendiriliyorsunuz."},"ug":{},"uk":{"One moment please…":"Будь ласка, хвилиноLine truncated
@@ -2,7 +2,7 @@
<main
class="webfinger-resolve oc-height-viewport oc-flex oc-flex-column oc-flex-center oc-flex-middle"
>
<h1 class="oc-invisible-sr" v-text="pageTitle" />
<h1 v-if="pageTitle" class="oc-invisible-sr" v-text="pageTitle" />
<div class="oc-card oc-card-body oc-text-center oc-width-large">
<template v-if="hasError">
<h2 key="webfinger-resolve-error">
@@ -1 +1 @@
{"af":{},"ar":{"Group":"مجموعة","Guest":"ضيف","Link":"رابط","User":"مستخدم"},"bs":{},"bg":{"Group":"Група","Guest":"Гост","Link":"Връзка","User":"Потребител"},"ca":{"External":"Extern","Group":"Grup","Guest":"Convidat","Link":"Enllaç","User":"Usuari"},"cs":{"Group":"Skupina","Guest":"Host","Link":"Odkaz","User":"Uživatel"},"de":{"External":"Extern","Group":"Gruppe","Guest":"Gast","Link":"Link","User":"Person"},"el":{"Group":"Ομάδα","User":"Χρήστης"},"es":{"External":"Externo","Group":"Grupo","Guest":"Invitado","Link":"Enlace","User":"Usuario"},"et":{},"fr":{"External":"Externe","Group":"Groupe","Guest":" Invité","Link":"Lien","User":"Utilisateur"},"gl":{"Group":"Grupo","Guest":"Convidado","User":"Usuario"},"he":{"External":"חיצוני","Group":"קבוצה","Guest":"אורח","Link":"קישור","User":"משתמש"},"hr":{"External":"Vanjski","Group":"Grupa","Guest":"Gost","Link":"Poveznica","User":"Korisnik"},"id":{"Group":"Grup","Guest":"Tamu","Link":"Tautan"},"it":{"External":"Esterno","Group":"Gruppo","Guest":"Ospite","Link":"Collegamento","User":"Utente"},"ja":{"External":"外部","Group":"グループ","Guest":"ゲスト","Link":"リンク","User":"ユーザー"},"nl":{"External":"Extern","Group":"Groep","Guest":"Gast","Link":"Link","User":"Gebruiker"},"pl":{"External":"Zewnętrzny","Group":"Grupa","Guest":"Gość","Link":"Link","User":"Użytkownik"},"pt":{"External":"Externo","Group":"Grupo","Guest":"Convidado","Link":"Link","User":"Usuário"},"ka":{},"ko":{"Group":"그룹","Guest":"손님","Link":"링크","User":"사용자"},"ru":{"External":"Внешние","Group":"Группа","Guest":"Гость","Link":"Ссылка","User":"Пользователь"},"ro":{},"si":{"Group":"සමූහය","User":"පරිශීලක"},"sk":{},"sv":{"Group":"Grupp","Guest":"Gäst","Link":"Länk","User":"Användare"},"sq":{"External":"I jashtëm","Group":"Grup","Guest":"Mysafir","Link":"Lidhje","User":"Përdorues"},"sr":{},"ta":{},"tr":{"Group":"Grup","Guest":"Misafir","Link":"Bağlantı","User":"Kullanıcı"},"ug":{},"uk":{"External":"Зовнішній","Group":"Група","Guest":"Гість","Link":"Посилання","User":"Користувач"},"zh":{"External":"外部","Group":"分组","Guest":"来宾","Link":"链接","User":"用户"}}
{"af":{},"bs":{},"ar":{"Group":"مجموعة","Guest":"ضيف","Link":"رابط","User":"مستخدم"},"bg":{"Group":"Група","Guest":"Гост","Link":"Връзка","User":"Потребител"},"ca":{"External":"Extern","Group":"Grup","Guest":"Convidat","Link":"Enllaç","User":"Usuari"},"cs":{"Group":"Skupina","Guest":"Host","Link":"Odkaz","User":"Uživatel"},"de":{"External":"Extern","Group":"Gruppe","Guest":"Gast","Link":"Link","User":"Person"},"el":{"Group":"Ομάδα","User":"Χρήστης"},"es":{"External":"Externo","Group":"Grupo","Guest":"Invitado","Link":"Enlace","User":"Usuario"},"et":{},"fr":{"External":"Externe","Group":"Groupe","Guest":" Invité","Link":"Lien","User":"Utilisateur"},"gl":{"Group":"Grupo","Guest":"Convidado","User":"Usuario"},"he":{"External":"חיצוני","Group":"קבוצה","Guest":"אורח","Link":"קישור","User":"משתמש"},"hr":{"External":"Vanjski","Group":"Grupa","Guest":"Gost","Link":"Poveznica","User":"Korisnik"},"id":{"Group":"Grup","Guest":"Tamu","Link":"Tautan"},"it":{"External":"Esterno","Group":"Gruppo","Guest":"Ospite","Link":"Collegamento","User":"Utente"},"ja":{"External":"外部","Group":"グループ","Guest":"ゲスト","Link":"リンク","User":"ユーザー"},"pl":{"External":"Zewnętrzny","Group":"Grupa","Guest":"Gość","Link":"Link","User":"Użytkownik"},"nl":{"External":"Extern","Group":"Groep","Guest":"Gast","Link":"Link","User":"Gebruiker"},"pt":{"External":"Externo","Group":"Grupo","Guest":"Convidado","Link":"Link","User":"Usuário"},"ka":{},"ko":{"Group":"그룹","Guest":"손님","Link":"링크","User":"사용자"},"ro":{},"ru":{"External":"Внешние","Group":"Группа","Guest":"Гость","Link":"Ссылка","User":"Пользователь"},"si":{"Group":"සමූහය","User":"පරිශීලක"},"sk":{},"sq":{"External":"I jashtëm","Group":"Grup","Guest":"Mysafir","Link":"Lidhje","User":"Përdorues"},"sv":{"Group":"Grupp","Guest":"Gäst","Link":"Länk","User":"Användare"},"sr":{},"ta":{},"tr":{"Group":"Grup","Guest":"Misafir","Link":"Bağlantı","User":"Kullanıcı"},"ug":{},"uk":{"External":"Зовнішній","Group":"Група","Guest":"Гість","Link":"Посилання","User":"Користувач"},"zh":{"External":"外部","Group":"分组","Guest":"来宾","Link":"链接","User":"用户"}}
+1 -1
View File
@@ -1 +1 @@
{"af":{"An error occurred":"Ein Fehler ist aufgetreten","Can edit":"Kan wysig"},"ar":{"Actions":"إجراءات","All deleted files were removed":"تمت إزالة جميع الملفات المحذوفة","All files":"كل الملفات","Are you sure you want to delete all selected resources? All their content will be permanently removed. This action cannot be undone.":"هل أنت متأكد أنك تريد حذف كافة الموارد المحددة؟ سيتم إزالة كل محتوياتهم بشكل دائم. لا يمكن التراجع عن هذا الإجراء.","Can edit":" يستطيع التحرير","Cancel":"إلغاء","Clear selection":"تحديد واضح","Close":"غلق","Confirm":"تأكيد","Continue":"إستمرار","Copy":"نسخ","Create":"أنشأ","Create a new file":"قم بإنشاء ملف جديد","Create a new folder":"انشاء مجلد جديد","Delete":"حذف","Details":"التفاصيل","Disabled":"تعطيل","Download":"تحميل","Download failed":"فشل التحميل ","Edit quota":"تعديل الحصة النسبية","Empty trash bin":"سلة المهملات فارغة","Enabled":"تمكين","Favorite files":"الملفات المفضلة","File could not be located":"تعذر تحديد موقع الملف","File name":"اسم الملف","File name cannot be empty":"لا يمكن أن يكون اسم الملف فارغًا","File name cannot be equal to \"..\"":"لا يمكن أن يكون اسم الملف مساويًا لـ \"..\"","File name cannot be equal to \".\"":"لا يمكن أن يكون اسم الملف مساويًا لـ \".\"","File name cannot contain \"/\"":"لا يمكن أن يحتوي اسم الملف على \"/\"","File name cannot end with whitespace":"لا يمكن لاسم الملف أن ينتهي بمسافة بيضاء","Files shared via link":"تمت مشاركة الملفات عبر رابط","Files shared with me":"الملفات المشتركة معي","Files shared with others":"الملفات المشتركة مع الآخرين","Folder name":"إسم الملف","Folder name cannot be empty":"لا يمكن لاسم المجلد أن يكون فارغًا","Folder name cannot be equal to \"..\"":"لا يمكن أن يكون اسم المجلد مساويًا لـ \"..\"","Folder name cannot be equal to \".\"":"لا يمكن أن يكون اسم المجلد مساويًا لـ \".\"","Folder name cannot contain \"/\"":"لا يمكن أن يحتوي اسم المجلد على \"/\"","Info":"معلومات","Log out":"تسجيل الخروج","Manager":"مدير","Members":"اعضاء","Modified":"تم التعديل","Name":"اسم","New file":"ملف جديد","New folder":"ملف جديد","No restriction":"لا قيود","Open folder":"افتح المجلد","Password":"كلمة المرور","Quota":"الحصه النسبيه","Remaining quota":"الحصة المتبقية","Rename":"إعادة تسمية","Restore":"استرجع","Save":"حفظ","Share":"شارك","Shared by":"تمت المشاركة بواسطة","Shared with me":"مشاركة معي","Show context menu":"إظهار قائمة السياق","Show links":"اظهار الروابط","Spaces":"مسافات","Status":"حالة","The name cannot be empty":"لا يمكن أن يكون الاسم فارغًا","The name cannot be equal to \"..\"":"لا يمكن أن يكون الاسم مساويًا لـ \"..\"","The name cannot be equal to \".\"":"لا يمكن أن يكون الاسم مساويًا لـ \".\"","The name cannot contain \"/\"":"لا يمكن أن يحتوي الاسم على \"/\"","The name cannot end with whitespace":"لا يمكن أن ينتهي الاسم بمسافة بيضاء","This item is directly shared with others.":"ذا العضو المشترك مباشرة مع الآخرين","Total quota":"إجمالي الحصة","Used quota":"الحصة المستخدمة"},"bs":{},"bg":{"\"%{fileName}\" was created successfully":"\"%{fileName}\" е създаден успешно","\"%{folderName}\" was created successfully":"\"%{folderName}\" е създаден успешно","\"%{item}\" was deleted successfully":"\"%{item}\" е изтрит успешно","%{ amount } item selected. Actions are available above the table.":["%{ amount } избран елемент. Действията са достъпни над таблицата.","%{ amount } избрани елемента. Действията са достъпни над таблицата."],"%{ filesCount } file":["%{ foldersCount } файл","%{ foldersCount } файла"],"%{ foldersCount } folder":["%{ foldersCount } папка","%{ foldersCount } папки"],"%{ itemCount } space selected":["%{ itemCount } избрано пространство","%{ itemCount } избрани пространства"],"%{ spacesCount } space":["%{ spacesCount } пространство","%{ spacesCount } пространства"],"%{count} item was copied succesLine truncated
{"af":{"An error occurred":"Ein Fehler ist aufgetreten","Can edit":"Kan wysig"},"ar":{"Actions":"إجراءات","All deleted files were removed":"تمت إزالة جميع الملفات المحذوفة","All files":"كل الملفات","Are you sure you want to delete all selected resources? All their content will be permanently removed. This action cannot be undone.":"هل أنت متأكد أنك تريد حذف كافة الموارد المحددة؟ سيتم إزالة كل محتوياتهم بشكل دائم. لا يمكن التراجع عن هذا الإجراء.","Can edit":" يستطيع التحرير","Cancel":"إلغاء","Clear selection":"تحديد واضح","Close":"غلق","Confirm":"تأكيد","Continue":"إستمرار","Copy":"نسخ","Create":"أنشأ","Create a new file":"قم بإنشاء ملف جديد","Create a new folder":"انشاء مجلد جديد","Delete":"حذف","Details":"التفاصيل","Disabled":"تعطيل","Download":"تحميل","Download failed":"فشل التحميل ","Edit quota":"تعديل الحصة النسبية","Empty trash bin":"سلة المهملات فارغة","Enabled":"تمكين","Favorite files":"الملفات المفضلة","File could not be located":"تعذر تحديد موقع الملف","File name":"اسم الملف","File name cannot be empty":"لا يمكن أن يكون اسم الملف فارغًا","File name cannot be equal to \"..\"":"لا يمكن أن يكون اسم الملف مساويًا لـ \"..\"","File name cannot be equal to \".\"":"لا يمكن أن يكون اسم الملف مساويًا لـ \".\"","File name cannot contain \"/\"":"لا يمكن أن يحتوي اسم الملف على \"/\"","File name cannot end with whitespace":"لا يمكن لاسم الملف أن ينتهي بمسافة بيضاء","Files shared via link":"تمت مشاركة الملفات عبر رابط","Files shared with me":"الملفات المشتركة معي","Files shared with others":"الملفات المشتركة مع الآخرين","Folder name":"إسم الملف","Folder name cannot be empty":"لا يمكن لاسم المجلد أن يكون فارغًا","Folder name cannot be equal to \"..\"":"لا يمكن أن يكون اسم المجلد مساويًا لـ \"..\"","Folder name cannot be equal to \".\"":"لا يمكن أن يكون اسم المجلد مساويًا لـ \".\"","Folder name cannot contain \"/\"":"لا يمكن أن يحتوي اسم المجلد على \"/\"","Info":"معلومات","Loading":"جار التحميل","Log out":"تسجيل الخروج","Manager":"مدير","Members":"اعضاء","Modified":"تم التعديل","Name":"اسم","New file":"ملف جديد","New folder":"ملف جديد","No restriction":"لا قيود","Open folder":"افتح المجلد","Password":"كلمة المرور","Quota":"الحصه النسبيه","Remaining quota":"الحصة المتبقية","Rename":"إعادة تسمية","Restore":"استرجع","Save":"حفظ","Share":"شارك","Shared by":"تمت المشاركة بواسطة","Shared with me":"مشاركة معي","Show context menu":"إظهار قائمة السياق","Show links":"اظهار الروابط","Spaces":"مسافات","Status":"حالة","The name cannot be empty":"لا يمكن أن يكون الاسم فارغًا","The name cannot be equal to \"..\"":"لا يمكن أن يكون الاسم مساويًا لـ \"..\"","The name cannot be equal to \".\"":"لا يمكن أن يكون الاسم مساويًا لـ \".\"","The name cannot contain \"/\"":"لا يمكن أن يحتوي الاسم على \"/\"","The name cannot end with whitespace":"لا يمكن أن ينتهي الاسم بمسافة بيضاء","This item is directly shared with others.":"ذا العضو المشترك مباشرة مع الآخرين","Total quota":"إجمالي الحصة","Used quota":"الحصة المستخدمة"},"bs":{},"bg":{"\"%{fileName}\" was created successfully":"\"%{fileName}\" е създаден успешно","\"%{folderName}\" was created successfully":"\"%{folderName}\" е създаден успешно","\"%{item}\" was deleted successfully":"\"%{item}\" е изтрит успешно","%{ amount } item selected. Actions are available above the table.":["%{ amount } избран елемент. Действията са достъпни над таблицата.","%{ amount } избрани елемента. Действията са достъпни над таблицата."],"%{ filesCount } file":["%{ foldersCount } файл","%{ foldersCount } файла"],"%{ foldersCount } folder":["%{ foldersCount } папка","%{ foldersCount } папки"],"%{ itemCount } space selected":["%{ itemCount } избрано пространство","%{ itemCount } избрани пространства"],"%{ spacesCount } space":["%{ spacesCount } пространство","%{ spacesCount } пространства"Line truncated
@@ -5,7 +5,7 @@
:class="{ 'files-app-bar-squashed': isSideBarOpen, 'files-app-bar-sticky': isSticky }"
>
<div class="files-topbar oc-py-s">
<h1 class="oc-invisible-sr" v-text="pageTitle" />
<h1 v-if="pageTitle" class="oc-invisible-sr" v-text="pageTitle" />
<oc-hidden-announcer :announcement="selectedResourcesAnnouncement" level="polite" />
<div
class="oc-flex oc-flex-middle files-app-bar-controls"
@@ -3,7 +3,7 @@
<template>
<main :id="applicationId" class="app-wrapper oc-height-1-1" @keydown.esc="closeApp">
<!-- eslint-enable vuejs-accessibility/no-static-element-interactions -->
<h1 class="oc-invisible-sr" v-text="pageTitle" />
<h1 v-if="pageTitle" class="oc-invisible-sr" v-text="pageTitle" />
<app-top-bar
v-if="!loading && !loadingError && resource"
:main-actions="fileActions"
@@ -1,6 +1,6 @@
<template>
<div class="oc-text-center oc-flex oc-flex-center oc-flex-middle oc-height-1-1">
<oc-spinner size="xlarge" />
<oc-spinner :aria-label="$gettext('Loading app')" size="xlarge" />
<p v-translate class="oc-invisible">Loading app</p>
</div>
</template>
@@ -4,6 +4,10 @@
v-model="inputUrl"
:placeholder="'example.org'"
:label="$gettext('Webpage or file')"
role="combobox"
aria-autocomplete="list"
:aria-expanded="isDropOpen ? 'true' : 'false'"
aria-controls="create-shortcut-modal-contextmenu"
@keydown.up="onKeyUpDrop"
@keydown.down="onKeyDownDrop"
@keydown.esc="onKeyEscDrop"
@@ -31,6 +35,7 @@
class="oc-pt-s"
padding-size="remove"
drop-id="create-shortcut-modal-contextmenu"
toggle="#create-shortcut-modal-url-input"
mode="manual"
position="bottom-start"
:close-on-click="true"
@@ -5,15 +5,18 @@
:indeterminate="currentProgress === null"
:value="currentProgress"
size="small"
:aria-label="$gettext('Loading')"
/>
</div>
</template>
<script lang="ts" setup>
import { onBeforeUnmount, onMounted, ref } from 'vue'
import { useGettext } from 'vue3-gettext'
import { eventBus, LoadingEventTopics } from '../services'
import { useLoadingService } from '../composables'
const { $gettext } = useGettext()
const loadingService = useLoadingService()
let addLoadingEventToken: string
let removeLoadingEventToken: string
@@ -1,11 +1,12 @@
<template>
<div class="space-quota">
<p class="oc-mb-s oc-mt-rm" v-text="spaceStorageDetailsLabel" />
<p id="space-quota-label" class="oc-mb-s oc-mt-rm" v-text="spaceStorageDetailsLabel" />
<oc-progress
:value="quotaUsagePercent"
:max="100"
size="small"
:variation="quotaProgressVariant"
aria-labelledby="space-quota-label"
/>
</div>
</template>
@@ -58,7 +58,7 @@
</template>
<script lang="ts" setup>
import { computed, unref } from 'vue'
import { computed, nextTick, onMounted, unref } from 'vue'
import { Resource } from '@ownclouders/web-client'
import dompurify from 'dompurify'
@@ -106,7 +106,7 @@ const {
defineEmits<TextEditorEmits>()
const { current: currentLanguage } = useGettext()
const { current: currentLanguage, $gettext } = useGettext()
const { currentTheme } = useThemeStore()
// Should not be a ref, otherwise functions like setMarkdown won't work
@@ -128,6 +128,18 @@ const theme = computed(() => (unref(currentTheme).isDark ? 'dark' : 'light'))
const sanitize = (html) =>
dompurify.sanitize(html, { ADD_ATTR: ['target'], ADD_TAGS: ['foreignObject'] })
onMounted(async () => {
if (isReadOnly) {
return
}
// md-editor-v3's underlying CodeMirror instance renders its editable div without
// an accessible name and doesn't expose a prop for one, so it's set imperatively here
await nextTick()
document
.querySelector('#text-editor-component .cm-content')
?.setAttribute('aria-label', $gettext('Text editor'))
})
config({
editorConfig: {
languageUserDefined
@@ -244,6 +256,11 @@ config({
.md-editor-preview {
color: var(--oc-color-text-default);
font-size: var(--oc-text-default);
// override md-editor-v3's default link/inline-code colors, which don't meet
// WCAG AA contrast against the app's card background
--md-theme-link-color: var(--oc-color-swatch-primary-muted);
--md-theme-code-inline-color: var(--oc-color-text-default);
--md-theme-code-inline-bg-color: var(--oc-color-background-default);
}
}
</style>
@@ -61,7 +61,7 @@ export const useEmbedMode = () => {
const verifyDelegatedAuthenticationOrigin = (eventOrigin: string): boolean => {
if (!unref(delegateAuthenticationOrigin)) {
return true
return false
}
return unref(delegateAuthenticationOrigin) === eventOrigin
@@ -2,7 +2,7 @@
exports[`The external app loading screen component > displays a spinner and a paragraph 1`] = `
"<div class="oc-text-center oc-flex oc-flex-center oc-flex-middle oc-height-1-1">
<oc-spinner-stub arialabel="" size="xlarge"></oc-spinner-stub>
<oc-spinner-stub arialabel="Loading app" size="xlarge"></oc-spinner-stub>
<p class="oc-invisible" data-msgid="Loading app" data-current-language="en">Loading app</p>
</div>"
`;
@@ -2,7 +2,7 @@
exports[`SpaceQuota component > renders the space storage quota label 1`] = `
"<div class="space-quota">
<p class="oc-mb-s oc-mt-rm">1 B of 10 B used (10% used)</p>
<oc-progress-stub max="100" size="small" variation="primary" indeterminate="false" value="10"></oc-progress-stub>
<p id="space-quota-label" class="oc-mb-s oc-mt-rm">1 B of 10 B used (10% used)</p>
<oc-progress-stub max="100" size="small" variation="primary" indeterminate="false" aria-labelledby="space-quota-label" value="10"></oc-progress-stub>
</div>"
`;
@@ -168,12 +168,12 @@ describe('useEmbedMode', () => {
})
describe('verifyDelegatedAuthenticationOrigin', () => {
it('when delegateAuthenticationOrigin is not set should return true', () => {
it('when delegateAuthenticationOrigin is not set should return false', () => {
getComposableWrapper(
() => {
const { verifyDelegatedAuthenticationOrigin } = useEmbedMode()
expect(verifyDelegatedAuthenticationOrigin('event-origin')).toStrictEqual(true)
expect(verifyDelegatedAuthenticationOrigin('event-origin')).toStrictEqual(false)
},
{ mocks: defaultComponentMocks() }
)
@@ -186,7 +186,7 @@ describe('useEmbedMode', () => {
expect(verifyDelegatedAuthenticationOrigin('event-origin')).toStrictEqual(true)
},
getWrapperOptions({ messagesOrigin: 'event-origin' })
getWrapperOptions({ delegateAuthenticationOrigin: 'event-origin' })
)
})
@@ -1 +1 @@
{"af":{"Can edit":"Kan wysig"},"ar":{"Access denied":"الدخول مرفوض","Account":"حساب","Account Information":"معلومات الحساب","Account menu":"قائمة الحساب","An error occurred while loading the public link":"حدث خطأ أثناء تحميل الرابط العام","An error occurred while resolving the private link":"حدث خطأ أثناء حل الرابط الخاص","Application Switcher":"موزع التطبيق","Authentication failed":"فشلت المصادقة ","Can edit":" يستطيع التحرير","chat":"دردشة","Close":"غلق","Close sidebar to hide details":"إغلاق الشريط الجانبي لإخفاء التفاصيل","Continue":"إستمرار","documentation":"توثيق","Download":"تحميل","Edit":"يحرر","Email":"بريد إلكتروني","Enter password for public link":"أدخل كلمة مرور الرابط العام","First and last name":"الاسم الأول والأخير","For help visit our":"للمساعدة قم بزيارة موقعنا","Group memberships":"أعضاء المجموعة","Incorrect password":"كلمة سر خاطئة","Loading public link…":"تحميل الرابط العام ...","Log out":"تسجيل الخروج","Login":"تسجيل الدخول","Missing or invalid config":"التكوين مفقود أو غير صالح","Navigated to %{ pageTitle }":"تم الانتقال إلى٪ {page Title}","No email has been set up":"لم يتم إعداد بريد إلكتروني","Notifications":"إشعارات","Oidc callback":"رد اتصال Oidc","Oidc redirect":"إعادة توجيه Oidc","Open sidebar to view details":"افتح الشريط الجانبي لعرض التفاصيل","or join our":"او انظم الينا","Password":"كلمة المرور","Please contact the administrator if this error persists.":"يرجى الاتصال بالمسؤول إذا استمر هذا الخطأ.","Private link":"رابط خاص","Public link":{"":"رابط عام","The root parent folder name displayed in the upload overlay in public links.":"رابط عام"},"Resolving private link…":"جارٍ حل الارتباط الخاص ...","Show details":"اظهر التفاصيل","Top bar":"الشريط العلوي","Upload complete":{"":"اكتمل التحميل","The title of the upload overlay when upload has been completed.":"اكتمل التحميل"},"Upload failed":{"":"فشل التحميل","The title of the upload overlay when upload has failed.":"فشل التحميل"},"User":"مستخدم","Username":"اسم المستخدم","You are not part of any group":"أنت لست جزءًا من أي مجموعة"},"bs":{},"bg":{"%{ errors } of %{ uploads } item failed":{"":["%{ errors } от %{ uploads } елемент е неуспешен","%{ errors } от %{ uploads } елемента са неуспешни"],"The label of the upload overlay displayed when at least one item has failed.":["%{ errors } от %{ uploads } елемент е неуспешен","%{ errors } от %{ uploads } елемента са неуспешни"]},"%{ filesInProgressCount } item uploading...":{"":["%{ filesInProgressCount } елемент се качва...","%{ filesInProgressCount } елемента се качват..."],"The title of the upload overlay when upload is being transferred.":["%{ filesInProgressCount } елемент се качва...","%{ filesInProgressCount } елемента се качват..."]},"%{ roundedRemainingHours } hour left":{"":["Остава %{ roundedRemainingHours } час","Остават %{ roundedRemainingHours } часа"],"The remaining upload time in hours displayed in the upload overlay.":["Остава %{ roundedRemainingHours } час","Остават %{ roundedRemainingHours } часа"]},"%{ roundedRemainingMinutes } minute left":{"":["Остава %{ roundedRemainingMinutes } минута","Остават %{ roundedRemainingMinutes } минути"],"The remaining upload time in minutes displayed in the upload overlay.":["Остава %{ roundedRemainingMinutes } минута","Остават %{ roundedRemainingMinutes } минути"]},"%{ successfulUploads } item uploaded":{"":["Качен %{ successfulUploads } елемент","Качени %{ successfulUploads } елемента"],"The label of the upload overlay displayed when all items have been uploaded.":["Качен %{ successfulUploads } елемент","Качени %{ successfulUploads } елемента"]},"%{uploadedBytes} of %{totalBytes} (%{currentUploadSpeed}/s)":{"":"%{uploadedBytes} от %{totalBytes} (%{currentUploadSpeed}/s)","The upload details displayed in the upload overlay.":"%{uploadedBytes} от %{totalBytes} (%{currentUploadSpeed}/s)"},"%{used} used":"%{used} използвани","Access denied":"Отказан достъп","Account":"Профил","Account Information":"Информация за профила","Account menu":"Профилно меню","Activities":"ДеLine truncated
{"af":{"Can edit":"Kan wysig"},"bs":{},"ar":{"Access denied":"الدخول مرفوض","Account":"حساب","Account Information":"معلومات الحساب","Account menu":"قائمة الحساب","An error occurred while loading the public link":"حدث خطأ أثناء تحميل الرابط العام","An error occurred while resolving the private link":"حدث خطأ أثناء حل الرابط الخاص","Application Switcher":"موزع التطبيق","Authentication failed":"فشلت المصادقة ","Can edit":" يستطيع التحرير","chat":"دردشة","Close":"غلق","Close sidebar to hide details":"إغلاق الشريط الجانبي لإخفاء التفاصيل","Continue":"إستمرار","documentation":"توثيق","Download":"تحميل","Edit":"يحرر","Email":"بريد إلكتروني","Enter password for public link":"أدخل كلمة مرور الرابط العام","First and last name":"الاسم الأول والأخير","For help visit our":"للمساعدة قم بزيارة موقعنا","Group memberships":"أعضاء المجموعة","Incorrect password":"كلمة سر خاطئة","Loading public link…":"تحميل الرابط العام ...","Log out":"تسجيل الخروج","Login":"تسجيل الدخول","Missing or invalid config":"التكوين مفقود أو غير صالح","Navigated to %{ pageTitle }":"تم الانتقال إلى٪ {page Title}","No email has been set up":"لم يتم إعداد بريد إلكتروني","Notifications":"إشعارات","Oidc callback":"رد اتصال Oidc","Oidc redirect":"إعادة توجيه Oidc","Open sidebar to view details":"افتح الشريط الجانبي لعرض التفاصيل","or join our":"او انظم الينا","Password":"كلمة المرور","Please contact the administrator if this error persists.":"يرجى الاتصال بالمسؤول إذا استمر هذا الخطأ.","Private link":"رابط خاص","Public link":{"":"رابط عام","The root parent folder name displayed in the upload overlay in public links.":"رابط عام"},"Resolving private link…":"جارٍ حل الارتباط الخاص ...","Show details":"اظهر التفاصيل","Top bar":"الشريط العلوي","Upload complete":{"":"اكتمل التحميل","The title of the upload overlay when upload has been completed.":"اكتمل التحميل"},"Upload failed":{"":"فشل التحميل","The title of the upload overlay when upload has failed.":"فشل التحميل"},"User":"مستخدم","Username":"اسم المستخدم","You are not part of any group":"أنت لست جزءًا من أي مجموعة"},"bg":{"%{ errors } of %{ uploads } item failed":{"":["%{ errors } от %{ uploads } елемент е неуспешен","%{ errors } от %{ uploads } елемента са неуспешни"],"The label of the upload overlay displayed when at least one item has failed.":["%{ errors } от %{ uploads } елемент е неуспешен","%{ errors } от %{ uploads } елемента са неуспешни"]},"%{ filesInProgressCount } item uploading...":{"":["%{ filesInProgressCount } елемент се качва...","%{ filesInProgressCount } елемента се качват..."],"The title of the upload overlay when upload is being transferred.":["%{ filesInProgressCount } елемент се качва...","%{ filesInProgressCount } елемента се качват..."]},"%{ roundedRemainingHours } hour left":{"":["Остава %{ roundedRemainingHours } час","Остават %{ roundedRemainingHours } часа"],"The remaining upload time in hours displayed in the upload overlay.":["Остава %{ roundedRemainingHours } час","Остават %{ roundedRemainingHours } часа"]},"%{ roundedRemainingMinutes } minute left":{"":["Остава %{ roundedRemainingMinutes } минута","Остават %{ roundedRemainingMinutes } минути"],"The remaining upload time in minutes displayed in the upload overlay.":["Остава %{ roundedRemainingMinutes } минута","Остават %{ roundedRemainingMinutes } минути"]},"%{ successfulUploads } item uploaded":{"":["Качен %{ successfulUploads } елемент","Качени %{ successfulUploads } елемента"],"The label of the upload overlay displayed when all items have been uploaded.":["Качен %{ successfulUploads } елемент","Качени %{ successfulUploads } елемента"]},"%{uploadedBytes} of %{totalBytes} (%{currentUploadSpeed}/s)":{"":"%{uploadedBytes} от %{totalBytes} (%{currentUploadSpeed}/s)","The upload details displayed in the upload overlay.":"%{uploadedBytes} от %{totalBytes} (%{currentUploadSpeed}/s)"},"%{used} used":"%{used} използвани","Access denied":"Отказан достъп","Account":"Профил","Account Information":"Информация за профила","Account menu":"Профилно меню","Activities":"ДеLine truncated
@@ -1,7 +1,7 @@
<template>
<div>
<span v-if="loading">
<oc-spinner />
<oc-spinner :aria-label="$gettext('Loading GDPR export status')" />
</span>
<span
v-else-if="exportInProgress"
@@ -12,6 +12,7 @@
:max="100"
size="small"
:variation="quotaProgressVariant"
:aria-label="personalStorageDetailsLabel"
/>
</div>
</div>
@@ -1,6 +1,7 @@
<template>
<div
<aside
id="web-nav-sidebar"
:aria-label="$gettext('Application navigation')"
:class="{
'oc-app-navigation-collapsed': closed,
'oc-app-navigation-expanded': !closed
@@ -50,7 +51,7 @@
<span v-text="webVersion" />
</div>
</slot>
</div>
</aside>
</template>
<script lang="ts">
@@ -97,6 +97,7 @@
:max="100"
size="small"
:indeterminate="!filesInProgressCount"
:aria-label="$gettext('Upload progress')"
/>
</div>
<div
@@ -120,12 +120,6 @@ const getEmbedConfigFromQuery = (
config.delegateAuthentication = delegateAuthentication === 'true'
}
const delegateAuthenticationOrigin = getQueryParam('embed-delegate-authentication-origin')
if (delegateAuthentication) {
config.delegateAuthenticationOrigin = delegateAuthenticationOrigin
}
return config
}
@@ -3,8 +3,10 @@
class="oc-login oc-height-viewport"
:style="{ '--oc-login-background-image': 'url(' + backgroundImg + ')' }"
>
<h1 class="oc-invisible-sr" v-text="pageTitle" />
<router-view />
<main>
<h1 v-if="pageTitle" class="oc-invisible-sr" v-text="pageTitle" />
<router-view />
</main>
</div>
</template>
@@ -406,10 +406,7 @@ export class AuthService implements AuthServiceInterface {
}
private handleDelegatedTokenUpdate(event: MessageEvent) {
if (
this.configStore.options.embed?.delegateAuthenticationOrigin &&
event.origin !== this.configStore.options.embed.delegateAuthenticationOrigin
) {
if (event.origin !== this.configStore.options.embed?.delegateAuthenticationOrigin) {
return
}
@@ -71,7 +71,7 @@ exports[`User Menu component > when quota and no email is set > renders a naviga
<oc-icon-stub name="hard-drive-2" size="small" fill-type="line" class="oc-mr-xs"></oc-icon-stub>
<div>
<p class="oc-my-rm"><span class="quota-information-text">300 B of 1 kB used (30%)</span></p>
<oc-progress-stub class="quota-information-progress-bar" max="100" size="small" variation="primary" value="30"></oc-progress-stub>
<oc-progress-stub class="quota-information-progress-bar" max="100" size="small" variation="primary" aria-label="300 B of 1 kB used (30%)" value="30"></oc-progress-stub>
</div>
</div></span>
</li>
@@ -105,7 +105,7 @@ exports[`User Menu component > when quota is above 80% and below 90% > renders a
<oc-icon-stub name="hard-drive-2" size="small" fill-type="line" class="oc-mr-xs"></oc-icon-stub>
<div>
<p class="oc-my-rm"><span class="quota-information-text">810 B of 1 kB used (81%)</span></p>
<oc-progress-stub class="quota-information-progress-bar" max="100" size="small" variation="warning" value="81"></oc-progress-stub>
<oc-progress-stub class="quota-information-progress-bar" max="100" size="small" variation="warning" aria-label="810 B of 1 kB used (81%)" value="81"></oc-progress-stub>
</div>
</div></span>
</li>
@@ -139,7 +139,7 @@ exports[`User Menu component > when quota is above 90% > renders a danger quota
<oc-icon-stub name="hard-drive-2" size="small" fill-type="line" class="oc-mr-xs"></oc-icon-stub>
<div>
<p class="oc-my-rm"><span class="quota-information-text">910 B of 1 kB used (91%)</span></p>
<oc-progress-stub class="quota-information-progress-bar" max="100" size="small" variation="danger" value="91"></oc-progress-stub>
<oc-progress-stub class="quota-information-progress-bar" max="100" size="small" variation="danger" aria-label="910 B of 1 kB used (91%)" value="91"></oc-progress-stub>
</div>
</div></span>
</li>
@@ -173,7 +173,7 @@ exports[`User Menu component > when quota is below 80% > renders a primary quota
<oc-icon-stub name="hard-drive-2" size="small" fill-type="line" class="oc-mr-xs"></oc-icon-stub>
<div>
<p class="oc-my-rm"><span class="quota-information-text">300 B of 1 kB used (30%)</span></p>
<oc-progress-stub class="quota-information-progress-bar" max="100" size="small" variation="primary" value="30"></oc-progress-stub>
<oc-progress-stub class="quota-information-progress-bar" max="100" size="small" variation="primary" aria-label="300 B of 1 kB used (30%)" value="30"></oc-progress-stub>
</div>
</div></span>
</li>
@@ -205,6 +205,57 @@ describe('announceConfiguration', () => {
expect(configStore.options.embed.enabled).toStrictEqual(false)
})
it('should not allow delegateAuthenticationOrigin to be set via URL query', async () => {
Object.defineProperty(window, 'location', {
value: {
search:
'?embed=true&embed-delegate-authentication=true&embed-delegate-authentication-origin=https://attacker.example'
},
writable: true
})
vi.spyOn(global, 'fetch').mockResolvedValue(
mock<Response>({
status: 200,
json: () => Promise.resolve({ theme: '', server: '', options: {} })
})
)
const configStore = useConfigStore()
await announceConfiguration({ path: '/config.json', configStore })
expect(configStore.options.embed.delegateAuthentication).toStrictEqual(true)
expect(configStore.options.embed.delegateAuthenticationOrigin).toBeUndefined()
})
it('should keep the server-configured delegateAuthenticationOrigin even if a URL query tries to override it', async () => {
Object.defineProperty(window, 'location', {
value: {
search: '?embed-delegate-authentication-origin=https://attacker.example'
},
writable: true
})
vi.spyOn(global, 'fetch').mockResolvedValue(
mock<Response>({
status: 200,
json: () =>
Promise.resolve({
theme: '',
server: '',
options: {
embed: {
enabled: true,
delegateAuthentication: true,
delegateAuthenticationOrigin: 'https://trusted.example'
}
}
})
})
)
const configStore = useConfigStore()
await announceConfiguration({ path: '/config.json', configStore })
expect(configStore.options.embed.delegateAuthenticationOrigin).toStrictEqual(
'https://trusted.example'
)
})
it('should set default language to value set in URL query when it matches supported languages', async () => {
Object.defineProperty(window, 'location', {
value: {
@@ -83,7 +83,7 @@ exports[`account page > public link context > should render a limited view 1`] =
<!--v-if-->
<!--v-if-->
<div dir="auto" class="v-select vs--single vs--searchable oc-select" style="background: transparent;">
<div id="vs1__combobox" class="vs__dropdown-toggle" role="combobox" aria-expanded="false" aria-owns="vs1__listbox" aria-label="Search for option">
<div id="vs1__combobox" class="vs__dropdown-toggle" role="combobox" aria-expanded="false" aria-owns="vs1__listbox" aria-controls="vs1__listbox" aria-label="Search for option">
<div class="vs__selected-options"><span class="vs__selected"><!--v-if--> English <!--v-if--></span><input class="vs__search" id="oc-select-1" aria-autocomplete="list" aria-labelledby="vs1__combobox" aria-controls="oc-select-1-listbox" type="search" autocomplete="off" role="combobox" aria-expanded="false" aria-haspopup="listbox" aria-label="Language" value=""></div>
<div class="vs__actions"><button type="button" class="vs__clear" title="Clear Selected" aria-label="Clear Selected" style="display: none;"><svg xmlns="http://www.w3.org/2000/svg" width="10" height="10">
<path d="M6.895455 5l2.842897-2.842898c.348864-.348863.348864-.914488 0-1.263636L9.106534.261648c-.348864-.348864-.914489-.348864-1.263636 0L5 3.104545 2.157102.261648c-.348863-.348864-.914488-.348864-1.263636 0L.261648.893466c-.348864.348864-.348864.914489 0 1.263636L3.104545 5 .261648 7.842898c-.348864.348863-.348864.914488 0 1.263636l.631818.631818c.348864.348864.914773.348864 1.263636 0L5 6.895455l2.842898 2.842897c.348863.348864.914772.348864 1.263636 0l.631818-.631818c.348864-.348864.348864-.914489 0-1.263636L6.895455 5z"></path>
@@ -111,7 +111,7 @@ exports[`account page > public link context > should render a limited view 1`] =
<!--v-if-->
<!--v-if-->
<div dir="auto" class="v-select vs--single vs--searchable oc-select" style="background: transparent;">
<div id="vs2__combobox" class="vs__dropdown-toggle" role="combobox" aria-expanded="false" aria-owns="vs2__listbox" aria-label="Search for option">
<div id="vs2__combobox" class="vs__dropdown-toggle" role="combobox" aria-expanded="false" aria-owns="vs2__listbox" aria-controls="vs2__listbox" aria-label="Search for option">
<div class="vs__selected-options"><span class="vs__selected"><!--v-if--> Auto (same as system) <!--v-if--></span><input class="vs__search" id="oc-select-2" aria-autocomplete="list" aria-labelledby="vs2__combobox" aria-controls="oc-select-2-listbox" type="search" autocomplete="off" role="combobox" aria-expanded="false" aria-haspopup="listbox" aria-label="Theme" value=""></div>
<div class="vs__actions"><button type="button" class="vs__clear" title="Clear Selected" aria-label="Clear Selected" style="display: none;"><svg xmlns="http://www.w3.org/2000/svg" width="10" height="10">
<path d="M6.895455 5l2.842897-2.842898c.348864-.348863.348864-.914488 0-1.263636L9.106534.261648c-.348864-.348864-.914489-.348864-1.263636 0L5 3.104545 2.157102.261648c-.348863-.348864-.914488-.348864-1.263636 0L.261648.893466c-.348864.348864-.348864.914489 0 1.263636L3.104545 5 .261648 7.842898c-.348864.348863-.348864.914488 0 1.263636l.631818.631818c.348864.348864.914773.348864 1.263636 0L5 6.895455l2.842898 2.842897c.348863.348864.914772.348864 1.263636 0l.631818-.631818c.348864-.348864.348864-.914489 0-1.263636L6.895455 5z"></path>
@@ -159,6 +159,75 @@ describe('AuthService', () => {
})
})
describe('handleDelegatedTokenUpdate', () => {
const buildMessageEvent = (origin: string) =>
mock<MessageEvent>({
origin,
data: { name: 'owncloud-embed:update-token', data: { access_token: 'attacker-token' } }
})
it('when delegateAuthenticationOrigin is not configured, should reject the message regardless of its origin', () => {
const authService = new AuthService()
Object.defineProperty(authService, 'userManager', {
value: mock<UserManager>({ updateContext: mockUpdateContext })
})
const configStore = useConfigStore()
configStore.options = { embed: { enabled: true, delegateAuthentication: true } }
initAuthService({ authService, configStore })
;(authService as any).handleDelegatedTokenUpdate(
buildMessageEvent('https://attacker.example')
)
expect(mockUpdateContext).not.toHaveBeenCalled()
})
it('when the message origin does not match the configured delegateAuthenticationOrigin, should reject the message', () => {
const authService = new AuthService()
Object.defineProperty(authService, 'userManager', {
value: mock<UserManager>({ updateContext: mockUpdateContext })
})
const configStore = useConfigStore()
configStore.options = {
embed: {
enabled: true,
delegateAuthentication: true,
delegateAuthenticationOrigin: 'https://trusted.example'
}
}
initAuthService({ authService, configStore })
;(authService as any).handleDelegatedTokenUpdate(
buildMessageEvent('https://attacker.example')
)
expect(mockUpdateContext).not.toHaveBeenCalled()
})
it('when the message origin matches the configured delegateAuthenticationOrigin, should update the context', () => {
const authService = new AuthService()
Object.defineProperty(authService, 'userManager', {
value: mock<UserManager>({ updateContext: mockUpdateContext })
})
const configStore = useConfigStore()
configStore.options = {
embed: {
enabled: true,
delegateAuthentication: true,
delegateAuthenticationOrigin: 'https://trusted.example'
}
}
initAuthService({ authService, configStore })
;(authService as any).handleDelegatedTokenUpdate(buildMessageEvent('https://trusted.example'))
expect(mockUpdateContext).toHaveBeenCalled()
})
})
describe('acr', () => {
const mockSignInRedirect = vi.fn()
+21
View File
@@ -0,0 +1,21 @@
diff --git a/dist/vue-select.es.js b/dist/vue-select.es.js
index 6a49eb6ac1e599868f530ba53760387b4eaffc1a..48a9e5a7c44184c38c2f3c082a44724f8672c6fd 100644
--- a/dist/vue-select.es.js
+++ b/dist/vue-select.es.js
@@ -632,7 +632,7 @@ https://vue-select.org/api/props.html#getoptionkey`, e, t);
return n[e.keyCode](e);
}
}
-}, he = ["dir"], ce = ["id", "aria-expanded", "aria-owns"], ue = {
+}, he = ["dir"], ce = ["id", "aria-expanded", "aria-owns", "aria-controls"], ue = {
ref: "selectedOptions",
class: "vs__selected-options"
}, pe = ["disabled", "title", "aria-label", "onClick"], fe = {
@@ -656,6 +656,7 @@ function ve(e, t, s, n, l, i) {
role: "combobox",
"aria-expanded": i.dropdownOpen.toString(),
"aria-owns": `vs${s.uid}__listbox`,
+ "aria-controls": `vs${s.uid}__listbox`,
"aria-label": "Search for option",
onMousedown: t[1] || (t[1] = (o) => i.toggleDropdown(o))
}, [
+5 -2
View File
@@ -25,6 +25,9 @@ patchedDependencies:
portal-vue@3.0.0:
hash: ce486dc8fb49b1e3f9b160bfede1dfeb31a492b7e1ea6dc8d10bbee39174cdcb
path: patches/portal-vue@3.0.0.patch
vue-select@4.0.0-beta.6:
hash: 3cffa7f2dfdb75bd1f98edbf4df29a19c6c0bcb7979a6dfe8610db0175c9e1ef
path: patches/vue-select@4.0.0-beta.6.patch
vue3-gettext@2.4.0:
hash: 6f231bbef273efbc788b5657c47fc744b52bc838f972357a764c144fde6065f2
path: patches/vue3-gettext@2.4.0.patch
@@ -273,7 +276,7 @@ importers:
version: 5.0.6(@vue/compiler-sfc@3.5.29)(pinia@3.0.4(typescript@5.9.3)(vue@3.5.29(typescript@5.9.3)))(vue@3.5.29(typescript@5.9.3))
vue-select:
specifier: 4.0.0-beta.6
version: 4.0.0-beta.6(vue@3.5.29(typescript@5.9.3))
version: 4.0.0-beta.6(patch_hash=3cffa7f2dfdb75bd1f98edbf4df29a19c6c0bcb7979a6dfe8610db0175c9e1ef)(vue@3.5.29(typescript@5.9.3))
vue3-gettext:
specifier: ^2.4.0
version: 2.4.0(patch_hash=6f231bbef273efbc788b5657c47fc744b52bc838f972357a764c144fde6065f2)(@vue/compiler-sfc@3.5.29)(vue@3.5.29(typescript@5.9.3))
@@ -14136,7 +14139,7 @@ snapshots:
'@vue/compiler-sfc': 3.5.29
pinia: 3.0.4(typescript@5.9.3)(vue@3.5.29(typescript@5.9.3))
vue-select@4.0.0-beta.6(vue@3.5.29(typescript@5.9.3)):
vue-select@4.0.0-beta.6(patch_hash=3cffa7f2dfdb75bd1f98edbf4df29a19c6c0bcb7979a6dfe8610db0175c9e1ef)(vue@3.5.29(typescript@5.9.3)):
dependencies:
vue: 3.5.29(typescript@5.9.3)
@@ -28,6 +28,10 @@ test.describe('Kindergarten can use web to organize a day', () => {
})
test('Alice can share this weeks meal plan with all parents', async () => {
// This journey performs 16 downloads plus shares and deletes, each cycling the
// sidebar with a11y scans - it consistently runs beyond the default 180s budget.
test.slow()
// When "Alice" logs in
await ui.userLogsIn({ stepUser: 'Alice' })
+1 -1
View File
@@ -1,6 +1,6 @@
import { CrashPage } from '../../support/objects/crash-page'
import { config } from '../../config'
import { Page } from '@playwright/test'
import { expect, Page } from '@playwright/test'
export function expectCrashPageToBeVisible({ page }: { page: Page }) {
const crashPageObject = new CrashPage({ page })
@@ -33,7 +33,10 @@ export const buildBrowserContextOptions = (options: ActorOptions): BrowserContex
acceptDownloads: options.context.acceptDownloads,
permissions: permissions,
ignoreHTTPSErrors: true,
locale: 'en-US'
locale: 'en-US',
// disable CSS animations so a11y scans don't race mid-transition (e.g. notification fade-in)
// and report false color-contrast violations from partially-transparent elements
reducedMotion: 'reduce'
}
if (options.context.reportVideo) {
+11 -7
View File
@@ -56,8 +56,8 @@ export const selectors = {
createGroupInput: '#create-group-input-display-name',
actionConfirmButton: '.oc-modal-body-actions-confirm',
contextMenuContainer: '#oc-files-context-menu',
groupList: '.group-list',
editPanel: '.sidebar-panel__body-EditPanel:visible',
groupList: '#group-list',
editPanel: '.sidebar-panel:not([inert]) .sidebar-panel__body-EditPanel',
breadcrumb: '#files-breadcrumb',
previewControlBar: '.preview-controls-action-bar',
uploadInfoSnackBar: '#upload-info-snackbar',
@@ -87,17 +87,21 @@ const a11yRuleTags = ['wcag2a', 'wcag2aa', 'wcag21a', 'wcag21aa', 'best-practice
export const analyzeAccessibilityConformityViolations = async (args: {
page: Page
include: string
disabledRules?: string[]
}): Promise<AxeResults['violations']> => {
if (config.skipA11y) {
return []
}
const { page, include } = args
const { page, include, disabledRules } = args
const a11yResult = await new AxeBuilder({ page })
.withTags(a11yRuleTags)
.include(include)
.analyze()
const axeBuilder = new AxeBuilder({ page }).withTags(a11yRuleTags).include(include)
if (disabledRules?.length) {
axeBuilder.disableRules(disabledRules)
}
const a11yResult = await axeBuilder.analyze()
if (config.testType === 'playwright') {
test.info().attach('accessibility-scan', {
+17 -6
View File
@@ -13,12 +13,22 @@ export class Accessibility {
return po.selectors
}
async getAccessibilityConformityViolations(include: string): Promise<AxeResults['violations']> {
return await po.analyzeAccessibilityConformityViolations({ page: this.#page, include })
async getAccessibilityConformityViolations(
include: string,
disabledRules?: string[]
): Promise<AxeResults['violations']> {
return await po.analyzeAccessibilityConformityViolations({
page: this.#page,
include,
disabledRules
})
}
async getSevereAccessibilityViolations(include: string): Promise<AxeResults['violations']> {
const violations = await this.getAccessibilityConformityViolations(include)
async getSevereAccessibilityViolations(
include: string,
disabledRules?: string[]
): Promise<AxeResults['violations']> {
const violations = await this.getAccessibilityConformityViolations(include, disabledRules)
return violations.filter(
(violation) => violation.impact === 'critical' || violation.impact === 'serious'
)
@@ -86,13 +96,14 @@ export class Accessibility {
static async assertNoSevereA11yViolations(
page: Page,
selectors: string[],
selectorLabel: string
selectorLabel: string,
disabledRules?: string[]
): Promise<void> {
const a11yObject = new Accessibility({ page })
const allViolations: AxeResults['violations'] = []
for (const selector of selectors) {
const include = a11yObject.getSelectors()[selector] || selector
const violations = await a11yObject.getSevereAccessibilityViolations(include)
const violations = await a11yObject.getSevereAccessibilityViolations(include, disabledRules)
allViolations.push(...violations)
}
expect(
@@ -20,6 +20,7 @@ export const uploadLogo = async (path: string, page: Page): Promise<void> => {
await page.locator('.oc-notification-message').waitFor()
await page.reload()
const selectors = new objects.a11y.Accessibility({ page }).getSelectors()
await page.locator(selectors.logoWrapper).waitFor()
// run accessibility scan on the logo area after upload
await objects.a11y.Accessibility.assertNoSevereA11yViolations(
page,
@@ -51,6 +52,7 @@ export const resetLogo = async (page: Page): Promise<void> => {
await page.locator('.oc-notification-message').waitFor()
await page.reload()
await page.locator(selectors.logoWrapper).waitFor()
// run accessibility scan on the logo area after reset
await objects.a11y.Accessibility.assertNoSevereA11yViolations(
@@ -106,7 +106,7 @@ export const deleteGroupUsingContextMenu = async (args: {
await page.locator(util.format(groupIdSelector, uuid)).click()
await objects.a11y.Accessibility.assertNoSevereA11yViolations(
page,
['tippbBox'],
['tippyBox'],
'group contex menu'
)
await page.locator(deleteBtnContextMenu).click()
@@ -224,7 +224,7 @@ export const openEditPanel = async (args: {
await page.locator(util.format(groupIdSelector, uuid)).click()
await objects.a11y.Accessibility.assertNoSevereA11yViolations(
page,
['tippbBox'],
['tippyBox'],
'group contex menu'
)
await page.locator(editActionBtnContextMenu).click()
@@ -15,7 +15,7 @@ export class Users {
await this.#page.locator(appLoadingSpinnerSelector).waitFor({ state: 'detached' })
await objects.a11y.Accessibility.assertNoSevereA11yViolations(
this.#page,
['adminSettingsWrapper', 'appSidebar'],
['body'],
'users page'
)
}
Loaded 100 of 112 files, more files were not shown because too many files have changed in this diff. Show more