Compare commits

...
Author SHA1 Message Date
Roman PerekhodandClaude Opus 4.8 61b4e1b7de chore: bump golang.org/x/text to v0.39.0
Addresses GO-2026-5970 (infinite loop on invalid input), which govulncheck
flags as a fixable vulnerability and fails CI on. Also pulls the coupled
golang.org/x/mod and golang.org/x/tools bumps.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-07-22 09:41:49 +02:00
Lukas Hirt cdcabdb527 chore(web): upgrade vue3-gettext from 2.4.0 to 4.0.1 (#12622)
Migrates all v-translate directive usages to $gettext() calls since
v4 removes the deprecated <translate> component/directive entirely
and silently drops such strings during extraction. Also drops the
now-unsupported disableHtmlEscaping positional argument from ~40
call sites (v4 no longer HTML-escapes interpolated values; none of
the affected strings are rendered via v-html) and removes the pnpm
patch that only backported a types export field v4 now ships
natively.

Signed-off-by: Lukas Hirt <info@hirt.cz>
2026-07-21 15:40:24 +00:00
2f70a6856f build(deps): Bump dependencies (#12620)
* build(deps): bump pnpm dependencies

* style(web): format code with prettier

Signed-off-by: Lukas Hirt <info@hirt.cz>

* test(web): update ActivitiesPanel snapshot for dompurify/happy-dom sanitization change

The dependency bump upgraded dompurify to 3.4.3+, which combined with
happy-dom's DOM implementation drops a leading <strong> tag that is the
first sanitized child node. Real browsers are unaffected; only the
happy-dom test snapshot needed updating.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>

---------

Signed-off-by: Lukas Hirt <info@hirt.cz>
Co-authored-by: Lukas Hirt <info@hirt.cz>
Co-authored-by: Claude Sonnet 5 <noreply@anthropic.com>
2026-07-21 16:20:30 +02:00
Matteo eb06e23a09 fix: restore hover feedback lost to background-highlight/default collision (#12613)
The Light/Dark High-Contrast themes set colorPalette.background-highlight
equal to background-default, making hover backgrounds indistinguishable
from the resting page background wherever background-highlight was used
for interactive feedback (e.g. the global search results dropdown). The
non-high-contrast Dark theme had the same collision.

Set background-highlight to the same value as background-hover in those
theme blocks, and point SearchBar's result-preview hover/active state and
CreateShortcutModal's context-menu hover/active state at
--oc-color-background-hover directly, since background-highlight is
otherwise used for static surfaces (cards, modals, form fields) rather
than interaction feedback.
2026-07-20 15:18:17 +02:00
owncloud-settings-bot[bot] 604cb5a069 chore: add CODEOWNERS (managed by owncloud/admin) (#12604)
Co-authored-by: owncloud-settings-bot[bot] <291027677+owncloud-settings-bot[bot]@users.noreply.github.com>
2026-07-20 10:26:43 +02:00
owncloud-translations-bot[bot]andMartin 6361b52b7f chore: update translations from transifex (#12606)
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-20 08:03:38 +00:00
Matteo 5e7ce5c7de fix: resolve e2e violations in web UI (#12597)
- 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-20 06:36:49 +02:00
owncloud-translations-bot[bot] 63b0cdda0e chore: update translations from transifex (#12601)
Co-authored-by: owncloud-translations-bot[bot] <274778013+owncloud-translations-bot[bot]@users.noreply.github.com>
2026-07-17 13:03:10 +02:00
owncloud-translations-bot[bot]andMartin 31ccffa99c chore: update translations from transifex (#12575)
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-16 09:07:38 +00:00
Lukas Hirt 5f1dbeca53 fix: [OCISDEV-1001] restrict group member data to authorized users (#12573)
The groups API could return group membership details to callers who
should not have had access to it via the single-group GET endpoint.
Access to group member data is now properly restricted based on the
caller's permissions.

Signed-off-by: Lukas Hirt <info@hirt.cz>
2026-07-16 10:24:17 +02:00
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
206 changed files with 6338 additions and 3880 deletions

No files matched your search

+3
View File
@@ -1,3 +1,6 @@
# SPDX-FileCopyrightText: ownCloud GmbH - A Kiteworks Company and ownCloud contributors
# SPDX-License-Identifier: Apache-2.0
#
# Managed by owncloud/admin — edit codeowners/ownership.yml, not this file.
# Generated by scripts/sync-codeowners.py. Last matching pattern wins.
* @owncloud/ocis-maintainers
+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,15 @@
Bugfix: Restore hover feedback in high-contrast and dark themes
The Light and Dark High-Contrast themes set the background-highlight color
token equal to the default page background, making hover backgrounds
indistinguishable from the resting background wherever background-highlight
was used for interactive feedback, such as the global search results
dropdown. The non-high-contrast Dark theme had the same collision.
background-highlight now matches background-hover in the affected theme
definitions, and the search results dropdown and create-shortcut context
menu now use the background-hover color directly for their hover and active
states, since background-highlight is otherwise used for static surfaces
like cards, modals and form fields rather than interaction feedback.
https://github.com/owncloud/ocis/pull/12613
@@ -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,5 @@
Security: Bump golang.org/x/text to v0.39.0
We bumped golang.org/x/text to v0.39.0 to address GO-2026-5970, an infinite loop
on invalid input. This unblocks the govulncheck CI check, which fails on fixable
vulnerabilities.
@@ -0,0 +1,5 @@
Security: Restrict group member data to authorized users
The groups API could return group membership details to callers who should not have had access to it. Access to group member data is now properly restricted based on the caller's permissions.
https://github.com/owncloud/ocis/pull/12573
@@ -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"
}
}
}
+3 -3
View File
@@ -103,7 +103,7 @@ require (
golang.org/x/oauth2 v0.36.0
golang.org/x/sync v0.21.0
golang.org/x/term v0.44.0
golang.org/x/text v0.38.0
golang.org/x/text v0.39.0
google.golang.org/genproto/googleapis/api v0.0.0-20260526163538-3dc84a4a5aaa
google.golang.org/grpc v1.82.0
google.golang.org/protobuf v1.36.11
@@ -341,10 +341,10 @@ require (
go.uber.org/zap v1.27.0 // indirect
go.yaml.in/yaml/v2 v2.4.4 // indirect
go.yaml.in/yaml/v3 v3.0.4 // indirect
golang.org/x/mod v0.36.0 // indirect
golang.org/x/mod v0.37.0 // indirect
golang.org/x/sys v0.46.0 // indirect
golang.org/x/time v0.15.0 // indirect
golang.org/x/tools v0.45.0 // indirect
golang.org/x/tools v0.47.0 // indirect
google.golang.org/genproto v0.0.0-20260319201613-d00831a3d3e7 // indirect
google.golang.org/genproto/googleapis/rpc v0.0.0-20260526163538-3dc84a4a5aaa // indirect
gopkg.in/cenkalti/backoff.v1 v1.1.0 // indirect
+6 -6
View File
@@ -1054,8 +1054,8 @@ golang.org/x/mod v0.2.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA=
golang.org/x/mod v0.3.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA=
golang.org/x/mod v0.6.0-dev.0.20220419223038-86c51ed26bb4/go.mod h1:jJ57K6gSWd91VN4djpZkiMVwK6gcyfeH4XE8wZrZaV4=
golang.org/x/mod v0.8.0/go.mod h1:iBbtSCu2XBx23ZKBPSOrRkjjQPZFPuis4dIYUhu/chs=
golang.org/x/mod v0.36.0 h1:JJjpVx6myfUsUdAzZuOSTTmRE0PfZeNWzzvKrP7amb4=
golang.org/x/mod v0.36.0/go.mod h1:moc6ELqsWcOw5Ef3xVprK5ul/MvtVvkIXLziUOICjUQ=
golang.org/x/mod v0.37.0 h1:vF1DjpVEshcIqoEaauuHebaLk1O1forxjxBaVn884JQ=
golang.org/x/mod v0.37.0/go.mod h1:m8S8VeM9r4dzDwjrKO0a1sZP3YjeMamRRlD+fmR2Q/0=
golang.org/x/net v0.0.0-20180724234803-3673e40ba225/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
golang.org/x/net v0.0.0-20180826012351-8a410e7b638d/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
golang.org/x/net v0.0.0-20180906233101-161cd47e91fd/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
@@ -1210,8 +1210,8 @@ golang.org/x/text v0.7.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8=
golang.org/x/text v0.9.0/go.mod h1:e1OnstbJyHTd6l/uOt8jFFHp6TRDWZR/bV3emEE/zU8=
golang.org/x/text v0.13.0/go.mod h1:TvPlkZtksWOMsz7fbANvkp4WM8x/WCo/om8BMLbz+aE=
golang.org/x/text v0.14.0/go.mod h1:18ZOQIKpY8NJVqYksKHtTdi31H5itFRjB5/qKTNYzSU=
golang.org/x/text v0.38.0 h1:sXmwo9DwP3OK9EZ7PqAdaooSGozfl/3a6/xJcbzPRhE=
golang.org/x/text v0.38.0/go.mod h1:YXZt3QhHUKYT53r2lLKFIVi6Ao1jdzrTR/KQ09qyxF4=
golang.org/x/text v0.39.0 h1:UbZz4pLOvn600D6Oh6GGEI6VAmndrEBLv8/6BEXzyus=
golang.org/x/text v0.39.0/go.mod h1:3UwRclnC2g0TU9x8PZiyfOajCd1zaUNHF9cvqcQZ+ZM=
golang.org/x/time v0.0.0-20181108054448-85acf8d2951c/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ=
golang.org/x/time v0.0.0-20190308202827-9d24e82272b4/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ=
golang.org/x/time v0.0.0-20191024005414-555d28b269f0/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ=
@@ -1264,8 +1264,8 @@ golang.org/x/tools v0.0.0-20210106214847-113979e3529a/go.mod h1:emZCQorbCU4vsT4f
golang.org/x/tools v0.0.0-20210112230658-8b4aab62c064/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA=
golang.org/x/tools v0.1.12/go.mod h1:hNGJHUnrk76NpqgfD5Aqm5Crs+Hm0VOH/i9J2+nxYbc=
golang.org/x/tools v0.6.0/go.mod h1:Xwgl3UAJ/d3gWutnCtw505GrjyAbvKui8lOU390QaIU=
golang.org/x/tools v0.45.0 h1:18qN3FAooORvApf5XjCXgsuayZOEtXf6JK18I3+ONa8=
golang.org/x/tools v0.45.0/go.mod h1:LuUGqqaXcXMEFEruIVJVm5mgDD8vww/z/SR1gQ4uE/0=
golang.org/x/tools v0.47.0 h1:7Kn5x/d1svx/PzryTsqeoZN4TZwqeH5pGWjefhLi/1Q=
golang.org/x/tools v0.47.0/go.mod h1:dFHnyTvFWY212G+h7ZY4Vsp/K3U4/7W9TyVaAul8uCA=
golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
golang.org/x/xerrors v0.0.0-20191011141410-1b5146add898/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
@@ -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)
+4
View File
@@ -262,6 +262,10 @@ func (g Graph) GetGroup(w http.ResponseWriter, r *http.Request) {
return
}
if !g.contextUserHasFullAccountPerms(r.Context()) {
group.Members = nil
}
render.Status(r, http.StatusOK)
render.JSON(w, r, group)
}
@@ -303,6 +303,12 @@ var _ = Describe("Groups", func() {
Context("with an existing group", func() {
BeforeEach(func() {
permissionService.On("GetPermissionByID", mock.Anything, mock.Anything).Return(&settings.GetPermissionByIDResponse{
Permission: &settingsmsg.Permission{
Operation: settingsmsg.Permission_OPERATION_UNKNOWN,
Constraint: settingsmsg.Permission_CONSTRAINT_ALL,
},
}, nil)
identityBackend.On("GetGroup", mock.Anything, mock.Anything, mock.Anything).Return(newGroup, nil)
})
@@ -317,6 +323,76 @@ var _ = Describe("Groups", func() {
Expect(rr.Code).To(Equal(http.StatusOK))
})
})
It("does not leak group members to unprivileged users", func() {
permissionService.On("GetPermissionByID", mock.Anything, mock.Anything).Return(&settings.GetPermissionByIDResponse{}, nil)
group := &libregraph.Group{}
group.SetId("group1")
group.SetDisplayName("Group Name")
group.SetMembers(
[]libregraph.User{
{
Id: libregraph.PtrString("userid"),
},
},
)
identityBackend.On("GetGroup", mock.Anything, mock.Anything, mock.Anything).Return(group, nil)
r := httptest.NewRequest(http.MethodGet, "/graph/v1.0/groups/group1?$expand=members", nil)
rctx := chi.NewRouteContext()
rctx.URLParams.Add("groupID", "group1")
r = r.WithContext(context.WithValue(revactx.ContextSetUser(ctx, nil), chi.RouteCtxKey, rctx))
svc.GetGroup(rr, r)
Expect(rr.Code).To(Equal(http.StatusOK))
data, err := io.ReadAll(rr.Body)
Expect(err).ToNot(HaveOccurred())
respGroup := libregraph.Group{}
err = json.Unmarshal(data, &respGroup)
Expect(err).ToNot(HaveOccurred())
Expect(respGroup.Members).To(BeEmpty())
})
It("returns group members to privileged users", func() {
permissionService.On("GetPermissionByID", mock.Anything, mock.Anything).Return(&settings.GetPermissionByIDResponse{
Permission: &settingsmsg.Permission{
Operation: settingsmsg.Permission_OPERATION_UNKNOWN,
Constraint: settingsmsg.Permission_CONSTRAINT_ALL,
},
}, nil)
group := &libregraph.Group{}
group.SetId("group1")
group.SetDisplayName("Group Name")
group.SetMembers(
[]libregraph.User{
{
Id: libregraph.PtrString("userid"),
},
},
)
identityBackend.On("GetGroup", mock.Anything, mock.Anything, mock.Anything).Return(group, nil)
r := httptest.NewRequest(http.MethodGet, "/graph/v1.0/groups/group1?$expand=members", nil)
rctx := chi.NewRouteContext()
rctx.URLParams.Add("groupID", "group1")
r = r.WithContext(context.WithValue(revactx.ContextSetUser(ctx, nil), chi.RouteCtxKey, rctx))
svc.GetGroup(rr, r)
Expect(rr.Code).To(Equal(http.StatusOK))
data, err := io.ReadAll(rr.Body)
Expect(err).ToNot(HaveOccurred())
respGroup := libregraph.Group{}
err = json.Unmarshal(data, &respGroup)
Expect(err).ToNot(HaveOccurred())
Expect(respGroup.Members).To(HaveLen(1))
Expect(respGroup.Members[0].GetId()).To(Equal("userid"))
})
})
Describe("PostGroup", func() {
-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"`
@@ -147,7 +147,7 @@
"colorPalette": {
"background-accentuate": "rgba(255, 255, 5, 0.1)",
"background-default": "#ffffff",
"background-highlight": "#ffffff",
"background-highlight": "oklch(87.2% 0.01 258.338)",
"background-muted": "#ffffff",
"background-secondary": "#ffffff",
"background-hover": "oklch(87.2% 0.01 258.338)",
@@ -212,7 +212,7 @@
"colorPalette": {
"background-accentuate": "#696969",
"background-default": "#000000",
"background-highlight": "#000000",
"background-highlight": "#383838",
"background-muted": "oklch(21% 0.034 264.665)",
"background-secondary": "#404040",
"background-hover": "#383838",
@@ -279,7 +279,7 @@
"colorPalette": {
"background-accentuate": "#696969",
"background-default": "#000000",
"background-highlight": "#000000",
"background-highlight": "oklch(21% 0.034 264.665)",
"background-muted": "#000000",
"background-secondary": "#000000",
"background-hover": "oklch(21% 0.034 264.665)",
@@ -423,7 +423,7 @@
"colorPalette": {
"background-accentuate": "rgba(255, 255, 5, 0.1)",
"background-default": "#ffffff",
"background-highlight": "#ffffff",
"background-highlight": "oklch(87.2% 0.01 258.338)",
"background-muted": "#ffffff",
"background-secondary": "#ffffff",
"background-hover": "oklch(87.2% 0.01 258.338)",
@@ -489,7 +489,7 @@
"colorPalette": {
"background-accentuate": "#696969",
"background-default": "#000000",
"background-highlight": "#000000",
"background-highlight": "#383838",
"background-muted": "oklch(21% 0.034 264.665)",
"background-secondary": "#404040",
"background-hover": "#383838",
@@ -563,7 +563,7 @@
"colorPalette": {
"background-accentuate": "#696969",
"background-default": "#000000",
"background-highlight": "#000000",
"background-highlight": "oklch(21% 0.034 264.665)",
"background-muted": "#000000",
"background-secondary": "#000000",
"background-hover": "oklch(21% 0.034 264.665)",
+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%"
}
}
}
}
}
}
}
"""
+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()
+1 -1
View File
@@ -249,7 +249,7 @@ func upper(c *context) bool {
return c.copy()
}
// isUpper writes the isUppercase version of the current rune to dst.
// isUpper reports whether the current rune is in upper case.
func isUpper(c *context) bool {
ct := c.caseType()
if c.info&hasMappingMask == 0 || ct == cUpper {
+2 -2
View File
@@ -774,7 +774,7 @@ func nlTitle(c *context) bool {
// From CLDR:
// # Special titlecasing for Dutch initial "ij".
// ::Any-Title();
// # Fix up Ij at the beginning of a "word" (per Any-Title, notUAX #29)
// # Fix up Ij at the beginning of a "word" (per Any-Title, not UAX #29)
// [:^WB=ALetter:] [:WB=Extend:]* [[:WB=MidLetter:][:WB=MidNumLet:]]? { Ij } → IJ ;
if c.src[c.pSrc] != 'I' && c.src[c.pSrc] != 'i' {
return title(c)
@@ -794,7 +794,7 @@ func nlTitleSpan(c *context) bool {
// From CLDR:
// # Special titlecasing for Dutch initial "ij".
// ::Any-Title();
// # Fix up Ij at the beginning of a "word" (per Any-Title, notUAX #29)
// # Fix up Ij at the beginning of a "word" (per Any-Title, not UAX #29)
// [:^WB=ALetter:] [:WB=Extend:]* [[:WB=MidLetter:][:WB=MidNumLet:]]? { Ij } → IJ ;
if c.src[c.pSrc] != 'I' {
return isTitle(c)
+8 -1
View File
@@ -121,8 +121,12 @@ func (p Properties) BoundaryAfter() bool {
//
// When all 6 bits are zero, the character is inert, meaning it is never
// influenced by normalization.
//
// We set flags to 0x80 (high bit 7 unused in quick check data) to indicate an invalid rune.
type qcInfo uint8
func (p Properties) isInvalid() bool { return p.flags == 0x80 }
func (p Properties) isYesC() bool { return p.flags&0x10 == 0 }
func (p Properties) isYesD() bool { return p.flags&0x4 == 0 }
@@ -247,6 +251,9 @@ func (f Form) PropertiesString(s string) Properties {
// to a Properties. See the comment at the top of the file
// for more information on the format.
func compInfo(v uint16, sz int) Properties {
if sz == 0 {
return Properties{flags: 0x80, size: 1}
}
if v == 0 {
return Properties{size: uint8(sz)}
} else if v >= 0x8000 {
@@ -254,7 +261,7 @@ func compInfo(v uint16, sz int) Properties {
size: uint8(sz),
ccc: uint8(v),
tccc: uint8(v),
flags: qcInfo(v >> 8),
flags: qcInfo(v>>8) & 0x3f,
}
if p.ccc > 0 || p.combinesBackward() {
p.nLead = uint8(p.flags & 0x3)
+2 -6
View File
@@ -376,16 +376,12 @@ func nextComposed(i *Iter) []byte {
goto doNorm
}
prevCC = i.info.tccc
sz := int(i.info.size)
if sz == 0 {
sz = 1 // illegal rune: copy byte-by-byte
}
p := outp + sz
p := outp + int(i.info.size)
if p > len(i.buf) {
break
}
outp = p
i.p += sz
i.p += int(i.info.size)
if i.p >= i.rb.nsrc {
i.setDone()
break
+10 -10
View File
@@ -148,7 +148,7 @@ func (f Form) IsNormalString(s string) bool {
// patched buffer and whether the decomposition is still in progress.
func patchTail(rb *reorderBuffer) bool {
info, p := lastRuneStart(&rb.f, rb.out)
if p == -1 || info.size == 0 {
if p == -1 || info.isInvalid() {
return true
}
end := p + int(info.size)
@@ -225,7 +225,7 @@ func doAppend(rb *reorderBuffer, out []byte, p int) []byte {
}
fd := &rb.f
if doMerge {
var info Properties
info := Properties{flags: 0x80, size: 1} // invalid rune
if p < n {
info = fd.info(src, p)
if !info.BoundaryBefore() || info.nLeadingNonStarters() > 0 {
@@ -235,7 +235,7 @@ func doAppend(rb *reorderBuffer, out []byte, p int) []byte {
p = decomposeSegment(rb, p, true)
}
}
if info.size == 0 {
if info.isInvalid() {
rb.doFlush()
// Append incomplete UTF-8 encoding.
return src.appendSlice(rb.out, p, n)
@@ -314,7 +314,7 @@ func (f *formInfo) quickSpan(src input, i, end int, atEOF bool) (n int, ok bool)
continue
}
info := f.info(src, i)
if info.size == 0 {
if info.isInvalid() {
if atEOF {
// include incomplete runes
return n, true
@@ -379,7 +379,7 @@ func (f Form) firstBoundary(src input, nsrc int) int {
// CGJ insertion points correctly. Luckily it doesn't have to.
for {
info := fd.info(src, i)
if info.size == 0 {
if info.isInvalid() {
return -1
}
if s := ss.next(info); s != ssSuccess {
@@ -424,7 +424,7 @@ func (f Form) nextBoundary(src input, nsrc int, atEOF bool) int {
}
fd := formTable[f]
info := fd.info(src, 0)
if info.size == 0 {
if info.isInvalid() {
if atEOF {
return 1
}
@@ -435,7 +435,7 @@ func (f Form) nextBoundary(src input, nsrc int, atEOF bool) int {
for i := int(info.size); i < nsrc; i += int(info.size) {
info = fd.info(src, i)
if info.size == 0 {
if info.isInvalid() {
if atEOF {
return i
}
@@ -465,7 +465,7 @@ func lastBoundary(fd *formInfo, b []byte) int {
if p == -1 {
return -1
}
if info.size == 0 { // ends with incomplete rune
if info.isInvalid() { // ends with incomplete rune
if p == 0 { // starts with incomplete rune
return -1
}
@@ -504,7 +504,7 @@ func lastBoundary(fd *formInfo, b []byte) int {
func decomposeSegment(rb *reorderBuffer, sp int, atEOF bool) int {
// Force one character to be consumed.
info := rb.f.info(rb.src, sp)
if info.size == 0 {
if info.isInvalid() {
return 0
}
if s := rb.ss.next(info); s == ssStarter {
@@ -528,7 +528,7 @@ func decomposeSegment(rb *reorderBuffer, sp int, atEOF bool) int {
break
}
info = rb.f.info(rb.src, sp)
if info.size == 0 {
if info.isInvalid() {
if !atEOF {
return int(iShortSrc)
}
+14
View File
@@ -815,6 +815,12 @@ func (ld *loader) refine(response *DriverResponse) ([]*Package, error) {
needsrc: needsrc,
goVersion: response.GoVersion,
}
// Don't trust the driver to respond with duplicate-free
// package names (go.dev/issue/63822).
if _, ok := ld.pkgs[lpkg.ID]; ok {
return nil, fmt.Errorf("%s response contained duplicate packages for ID %q",
cond(ld.externalDriver, "go/packages driver", "go list"), lpkg.ID)
}
ld.pkgs[lpkg.ID] = lpkg
if rootIndex >= 0 {
initial[rootIndex] = lpkg
@@ -1589,3 +1595,11 @@ func usesExportData(cfg *Config) bool {
}
type unit struct{}
func cond[T any](cond bool, t, f T) T {
if cond {
return t
} else {
return f
}
}
+3
View File
@@ -823,6 +823,9 @@ func (p *iexporter) doDecl(obj types.Object) {
w.pos(m.Pos())
w.string(m.Name())
sig, _ := m.Type().(*types.Signature)
if w.p.version >= iexportVersionGenericMethods && w.bool(sig.TypeParams().Len() > 0) {
w.tparamList(obj.Name()+"."+m.Name(), sig.TypeParams(), obj.Pkg())
}
// Receiver type parameters are type arguments of the receiver type, so
// their name must be qualified before exporting recv.
+14 -10
View File
@@ -48,13 +48,14 @@ func (r *intReader) uint64() uint64 {
// Keep this in sync with constants in iexport.go.
const (
iexportVersionGo1_11 = 0
iexportVersionPosCol = 1
iexportVersionGo1_18 = 2
iexportVersionGenerics = 2
iexportVersion = iexportVersionGenerics
iexportVersionGo1_11 = 0
iexportVersionPosCol = 1
iexportVersionGo1_18 = 2
iexportVersionGenerics = 2
iexportVersionGenericMethods = 3
iexportVersion = iexportVersionGenericMethods
iexportVersionCurrent = 2
iexportVersionCurrent = 3
)
type ident struct {
@@ -179,9 +180,9 @@ func iimportCommon(fset *token.FileSet, getPackages GetPackagesFunc, data []byte
version = int64(r.uint64())
switch version {
case iexportVersionGo1_18, iexportVersionPosCol, iexportVersionGo1_11:
case iexportVersionGenericMethods, iexportVersionGo1_18, iexportVersionPosCol, iexportVersionGo1_11:
default:
if version > iexportVersionGo1_18 {
if version > iexportVersionGenericMethods {
errorf("unstable iexport format version %d, just rebuild compiler and std library", version)
} else {
errorf("unknown iexport format version %d", version)
@@ -614,6 +615,10 @@ func (r *importReader) obj(pkg *types.Package, name string) {
for n := r.uint64(); n > 0; n-- {
mpos := r.pos()
mname := r.ident()
var tpars []*types.TypeParam
if r.p.version >= iexportVersionGenericMethods && r.bool() {
tpars = r.tparamList()
}
recv := r.param(pkg)
// If the receiver has any targs, set those as the
@@ -628,8 +633,7 @@ func (r *importReader) obj(pkg *types.Package, name string) {
rparams[i] = types.Unalias(targs.At(i)).(*types.TypeParam)
}
}
msig := r.signature(pkg, recv, rparams, nil)
msig := r.signature(pkg, recv, rparams, tpars)
named.AddMethod(types.NewFunc(mpos, pkg, mname, msig))
}
}
-1
View File
@@ -273,7 +273,6 @@ func (p *pass) loadPackageNames(ctx context.Context, imports []*ImportInfo) erro
}
unknown = append(unknown, imp.ImportPath)
}
names, err := p.source.LoadPackageNames(ctx, p.srcDir, unknown)
if err != nil {
return err
+4
View File
@@ -74,6 +74,10 @@ func Process(filename string, src []byte, opt *Options) (formatted []byte, err e
// Note that filename's directory influences which imports can be chosen,
// so it is important that filename be accurate.
func FixImports(ctx context.Context, filename string, src []byte, goroot string, logf func(string, ...any), source Source) (fixes []*ImportFix, err error) {
if source == nil {
// In case someone adds a defective call from a new place
panic("source is nil")
}
ctx, done := event.Start(ctx, "imports.FixImports")
defer done()
+338 -316
View File
@@ -12,366 +12,386 @@ type pkginfo struct {
}
var deps = [...]pkginfo{
{"archive/tar", "\x03q\x03F=\x01\n\x01$\x01\x01\x02\x05\b\x02\x01\x02\x02\r"},
{"archive/zip", "\x02\x04g\a\x03\x13\x021=\x01+\x05\x01\x0f\x03\x02\x0f\x04"},
{"bufio", "\x03q\x86\x01D\x15"},
{"bytes", "t+[\x03\fH\x02\x02"},
{"archive/tar", "\x03{\x03F>\x01\n\x01&\x01\x01\x02\x05\b\x02\x01\x02\x02\r"},
{"archive/zip", "\x02\x04j\x0e\x03\x12\x022>\x01-\x05\x01\x0f\x03\x02\x0f\x04"},
{"bufio", "\x03{\x87\x01F\x15"},
{"bytes", "~*]\x03\fJ\x02\x02"},
{"cmp", ""},
{"compress/bzip2", "\x02\x02\xf6\x01A"},
{"compress/flate", "\x02r\x03\x83\x01\f\x033\x01\x03"},
{"compress/gzip", "\x02\x04g\a\x03\x15nU"},
{"compress/lzw", "\x02r\x03\x83\x01"},
{"compress/zlib", "\x02\x04g\a\x03\x13\x01o"},
{"container/heap", "\xbc\x02"},
{"compress/bzip2", "\x02\x02\x81\x02C"},
{"compress/flate", "\x02|\x03\x84\x01\f\x034\x02\x03"},
{"compress/gzip", "\x02\x04j\x0e\x03\x14pW"},
{"compress/lzw", "\x02|\x03\x84\x01"},
{"compress/zlib", "\x02\x04j\x0e\x03\x12\x01q"},
{"container/heap", "\xc9\x02"},
{"container/list", ""},
{"container/ring", ""},
{"context", "t\\p\x01\x0e"},
{"crypto", "\x8a\x01pC"},
{"crypto/aes", "\x10\v\t\x99\x02"},
{"crypto/cipher", "\x03!\x01\x01 \x12\x1c,Z"},
{"crypto/des", "\x10\x16 .,\x9d\x01\x03"},
{"crypto/dsa", "F\x03+\x86\x01\r"},
{"crypto/ecdh", "\x03\v\r\x10\x04\x17\x03\x0f\x1c\x86\x01"},
{"crypto/ecdsa", "\x0e\x05\x03\x05\x01\x10\b\v\x06\x01\x03\x0e\x01\x1c\x86\x01\r\x05L\x01"},
{"crypto/ed25519", "\x0e\x1f\x12\a\x03\b\a\x1cI=C"},
{"crypto/elliptic", "4@\x86\x01\r9"},
{"crypto/fips140", "#\x05\x95\x01\x98\x01"},
{"crypto/hkdf", "0\x15\x01.\x16"},
{"crypto/hmac", "\x1b\x16\x14\x01\x122"},
{"crypto/hpke", "\x03\v\x02\x03\x04\x01\f\x01\x05\x1f\x05\a\x01\x01\x1d\x03\x13\x16\x9b\x01\x1c"},
{"crypto/internal/boring", "\x0e\x02\x0el"},
{"crypto/internal/boring/bbig", "\x1b\xec\x01N"},
{"crypto/internal/boring/bcache", "\xc1\x02\x14"},
{"context", "~]r\x01\x0e"},
{"crypto", "\x93\x01rE"},
{"crypto/aes", "\x10\v\n\xa5\x02"},
{"crypto/cipher", "\x03\"\x01\x01 \x13$+\\"},
{"crypto/des", "\x10\x17 7+\xa1\x01\x03"},
{"crypto/dsa", "G\x034\x87\x01\r"},
{"crypto/ecdh", "\x03\v\r\x11\x04\x17\x03\x10$\x87\x01"},
{"crypto/ecdsa", "\x0e\x05\x03\x05\x01\x11\b\v\x06\x01\x03\x0f\x01$\x87\x01\r\x05O\x01"},
{"crypto/ed25519", "\x0e \x12\a\x03\t\a$I>E"},
{"crypto/elliptic", "5I\x87\x01\r;"},
{"crypto/fips140", "$\x05\x9e\x01\x9b\x01"},
{"crypto/hkdf", "1\x15\x017\x15"},
{"crypto/hmac", "\x1b\x17\x14\x01\x139"},
{"crypto/hpke", "\x03\v\x02\x03\x04\x01\r\x01\x05\x1f\x06\a\x01\x01%\x03\x12\x16\x9f\x01\x1d"},
{"crypto/internal/boring", "\x0e\x02\x0eu"},
{"crypto/internal/boring/bbig", "\x1b\xf7\x01P"},
{"crypto/internal/boring/bcache", "\xce\x02\x14"},
{"crypto/internal/boring/sig", ""},
{"crypto/internal/constanttime", ""},
{"crypto/internal/cryptotest", "\x03\r\v\b%\x10\x19\x06\x13\x12 \x04\x06\t\x19\x01\x11\x11\x1b\x01\a\x05\b\x03\x05\f"},
{"crypto/internal/entropy", "K"},
{"crypto/internal/entropy/v1.0.0", "D0\x95\x018\x14"},
{"crypto/internal/fips140", "C1\xbf\x01\v\x17"},
{"crypto/internal/fips140/aes", "\x03 \x03\x02\x14\x05\x01\x01\x05,\x95\x014"},
{"crypto/internal/fips140/aes/gcm", "#\x01\x02\x02\x02\x12\x05\x01\x06,\x92\x01"},
{"crypto/internal/fips140/alias", "\xd5\x02"},
{"crypto/internal/fips140/bigmod", "(\x19\x01\x06,\x95\x01"},
{"crypto/internal/fips140/check", "#\x0e\a\t\x02\xb7\x01["},
{"crypto/internal/fips140/check/checktest", "(\x8b\x02\""},
{"crypto/internal/fips140/drbg", "\x03\x1f\x01\x01\x04\x14\x05\n)\x86\x01\x0f7\x01"},
{"crypto/internal/fips140/ecdh", "\x03 \x05\x02\n\r3\x86\x01\x0f7"},
{"crypto/internal/fips140/ecdsa", "\x03 \x04\x01\x02\a\x03\x06:\x16pF"},
{"crypto/internal/fips140/ed25519", "\x03 \x05\x02\x04\f:\xc9\x01\x03"},
{"crypto/internal/fips140/edwards25519", "\x1f\t\a\x123\x95\x017"},
{"crypto/internal/fips140/edwards25519/field", "(\x14\x053\x95\x01"},
{"crypto/internal/fips140/hkdf", "\x03 \x05\t\a<\x16"},
{"crypto/internal/fips140/hmac", "\x03 \x15\x01\x01:\x16"},
{"crypto/internal/fips140/mldsa", "\x03\x1c\x04\x05\x02\x0e\x01\x03\x053\x95\x017"},
{"crypto/internal/fips140/mlkem", "\x03 \x05\x02\x0f\x03\x053\xcc\x01"},
{"crypto/internal/fips140/nistec", "\x1f\t\r\f3\x95\x01*\r\x15"},
{"crypto/internal/fips140/nistec/fiat", "(\x148\x95\x01"},
{"crypto/internal/fips140/pbkdf2", "\x03 \x05\t\a<\x16"},
{"crypto/internal/fips140/rsa", "\x03\x1c\x04\x04\x01\x02\x0e\x01\x01\x028\x16pF"},
{"crypto/internal/fips140/sha256", "\x03 \x1e\x01\x06,\x16\x7f"},
{"crypto/internal/fips140/sha3", "\x03 \x19\x05\x012\x95\x01L"},
{"crypto/internal/fips140/sha512", "\x03 \x1e\x01\x06,\x16\x7f"},
{"crypto/internal/fips140/ssh", "(b"},
{"crypto/internal/fips140/subtle", "\x1f\a\x1b\xc8\x01"},
{"crypto/internal/fips140/tls12", "\x03 \x05\t\a\x02:\x16"},
{"crypto/internal/fips140/tls13", "\x03 \x05\b\b\t3\x16"},
{"crypto/internal/fips140cache", "\xb3\x02\r'"},
{"crypto/internal/cryptotest", "\x03\r\v\t%\x11\x1a\r\x12\x12!\x04\x06\n\x19\x01\x11\x11\x1d\x01\a\x03\x02\b\x02\x01\x05\f"},
{"crypto/internal/cryptotest/wycheproof", "\x0e\x12S\x01\f\x01r@\x05\x03\x15\x10"},
{"crypto/internal/entropy", "L"},
{"crypto/internal/entropy/v1.0.0", "E9\x96\x01:\x14"},
{"crypto/internal/fips140", "D:\xc2\x01\v\x17"},
{"crypto/internal/fips140/aes", "\x03!\x03\x02\x14\x05\x01\x01\x055\x96\x016"},
{"crypto/internal/fips140/aes/gcm", "$\x01\x02\x02\x02\x12\x05\x01\x065\x93\x01"},
{"crypto/internal/fips140/alias", "\xe2\x02"},
{"crypto/internal/fips140/bigmod", ")\x19\x01\x065\x96\x01"},
{"crypto/internal/fips140/check", "$\x0e\a\t\x02\xc1\x01]"},
{"crypto/internal/fips140/check/checktest", ")\x97\x02\""},
{"crypto/internal/fips140/drbg", "\x03 \x01\x01\x04\x14\x05\n2\x87\x01\x0f9\x01"},
{"crypto/internal/fips140/ecdh", "\x03!\x05\x02\n\r<\x87\x01\x0f9"},
{"crypto/internal/fips140/ecdsa", "\x03!\x04\x01\x02\a\x03\x06C\x15r\x0f9"},
{"crypto/internal/fips140/ed25519", "\x03!\x05\x02\x04\fC\xcc\x01\x03"},
{"crypto/internal/fips140/edwards25519", "\x1f\n\a\x12<\x96\x019"},
{"crypto/internal/fips140/edwards25519/field", ")\x14\x05<\x96\x01"},
{"crypto/internal/fips140/hkdf", "\x03!\x05\t\aE\x15"},
{"crypto/internal/fips140/hmac", "\x03!\x15\x01\x01C\x15"},
{"crypto/internal/fips140/mldsa", "\x03\x1c\x05\x05\x02\x0e\x01\x03\x05<\x96\x019"},
{"crypto/internal/fips140/mlkem", "\x03!\x05\x02\x0f\x03\x05<\xcf\x01"},
{"crypto/internal/fips140/nistec", "\x1f\n\r\f<\x96\x01,\r\x15"},
{"crypto/internal/fips140/nistec/fiat", ")\x14A\x96\x01"},
{"crypto/internal/fips140/pbkdf2", "\x03!\x05\t\aE\x15"},
{"crypto/internal/fips140/rsa", "\x03\x1c\x05\x04\x01\x02\x0e\x01\x01\x02A\x15rH"},
{"crypto/internal/fips140/sha256", "\x03!\x1e\x01\x065\x15\x81\x01"},
{"crypto/internal/fips140/sha3", "\x03!\x19\x05\x01;\x96\x01N"},
{"crypto/internal/fips140/sha512", "\x03!\x1e\x01\x065\x15\x81\x01"},
{"crypto/internal/fips140/ssh", ")j"},
{"crypto/internal/fips140/subtle", "\x1f\b\x1b\xd2\x01"},
{"crypto/internal/fips140/tls12", "\x03!\x05\t\a\x02C\x15"},
{"crypto/internal/fips140/tls13", "\x03!\x05\b\b\t<\x15"},
{"crypto/internal/fips140cache", "\xc0\x02\r."},
{"crypto/internal/fips140deps", ""},
{"crypto/internal/fips140deps/byteorder", "\xa0\x01"},
{"crypto/internal/fips140deps/cpu", "\xb5\x01\a"},
{"crypto/internal/fips140deps/godebug", "\xbd\x01"},
{"crypto/internal/fips140deps/time", "\xcf\x02"},
{"crypto/internal/fips140hash", "9\x1d4\xcb\x01"},
{"crypto/internal/fips140only", "\x17\x13\x0e\x01\x01Pp"},
{"crypto/internal/fips140deps/byteorder", "\xa9\x01"},
{"crypto/internal/fips140deps/cpu", "\xbe\x01\b"},
{"crypto/internal/fips140deps/godebug", "\xc7\x01"},
{"crypto/internal/fips140deps/time", "\xe2\x02"},
{"crypto/internal/fips140hash", ":\x1e;\xcf\x01"},
{"crypto/internal/fips140only", "\x17\x14\x0e\x01\x01Xr"},
{"crypto/internal/fips140test", ""},
{"crypto/internal/impl", "\xbe\x02"},
{"crypto/internal/rand", "\x1b\x0f s=["},
{"crypto/internal/randutil", "\xfa\x01\x12"},
{"crypto/internal/sysrand", "tq! \r\r\x01\x01\r\x06"},
{"crypto/internal/sysrand/internal/seccomp", "t"},
{"crypto/md5", "\x0e8.\x16\x16i"},
{"crypto/mlkem", "\x0e%"},
{"crypto/mlkem/mlkemtest", "3\x13\b&"},
{"crypto/pbkdf2", "6\x0f\x01.\x16"},
{"crypto/rand", "\x1b\x0f\x1c\x03+\x86\x01\rN"},
{"crypto/rc4", "& .\xc9\x01"},
{"crypto/rsa", "\x0e\r\x01\v\x10\x0e\x01\x03\b\a\x1c\x03\x133=\f\x01"},
{"crypto/sha1", "\x0e\r+\x02,\x16\x16\x15T"},
{"crypto/sha256", "\x0e\r\x1dR"},
{"crypto/sha3", "\x0e+Q\xcb\x01"},
{"crypto/sha512", "\x0e\r\x1fP"},
{"crypto/subtle", "\x1f\x1d\x9f\x01z"},
{"crypto/tls", "\x03\b\x02\x01\x01\x01\x01\x02\x01\x01\x01\x02\x01\x01\x01\t\x01\x18\x01\x0f\x01\x03\x01\x01\x01\x01\x02\x01\x02\x01\x17\x02\x03\x13\x16\x15\b=\x16\x16\r\b\x01\x01\x01\x02\x01\x0e\x06\x02\x01\x0f"},
{"crypto/tls/internal/fips140tls", "\x17\xaa\x02"},
{"crypto/x509", "\x03\v\x01\x01\x01\x01\x01\x01\x01\x017\x06\x01\x01\x02\x05\x0e\x06\x02\x02\x03F\x03:\x01\x02\b\x01\x01\x02\a\x10\x05\x01\x06\a\b\x02\x01\x02\x0f\x02\x01\x01\x02\x03\x01"},
{"crypto/x509/pkix", "j\x06\a\x90\x01H"},
{"database/sql", "\x03\nQ\x16\x03\x83\x01\v\a\"\x05\b\x02\x03\x01\x0e\x02\x02\x02"},
{"database/sql/driver", "\rg\x03\xb7\x01\x0f\x12"},
{"debug/buildinfo", "\x03^\x02\x01\x01\b\a\x03g\x1a\x02\x01+\x0f "},
{"debug/dwarf", "\x03j\a\x03\x83\x011\x11\x01\x01"},
{"debug/elf", "\x03\x06W\r\a\x03g\x1b\x01\f \x17\x01\x17"},
{"debug/gosym", "\x03j\n$\xa1\x01\x01\x01\x02"},
{"debug/macho", "\x03\x06W\r\ng\x1c,\x17\x01"},
{"debug/pe", "\x03\x06W\r\a\x03g\x1c,\x17\x01\x17"},
{"debug/plan9obj", "m\a\x03g\x1c,"},
{"embed", "t+B\x19\x01T"},
{"crypto/internal/impl", "\xcb\x02"},
{"crypto/internal/rand", "\x1b\x10 |>]"},
{"crypto/internal/randutil", "\x85\x02\x12"},
{"crypto/internal/sysrand", "~r!\"\r\r\x01\x01\r\x06"},
{"crypto/internal/sysrand/internal/seccomp", "~"},
{"crypto/md5", "\x0e97\x15\x16k"},
{"crypto/mldsa", "\x0e%K\x87\x01"},
{"crypto/mlkem", "\x0e&"},
{"crypto/mlkem/mlkemtest", "4\x13\t."},
{"crypto/pbkdf2", "7\x0f\x017\x15"},
{"crypto/rand", "\x1b\x10\x1c\x034\x87\x01\rP"},
{"crypto/rc4", "' 7\xcc\x01"},
{"crypto/rsa", "\x0e\r\x01\f\x10\x0e\x01\x03\t\a$\x03\x124>\f\x01"},
{"crypto/sha1", "\x0e\r,\x025\x15\x16\x15V"},
{"crypto/sha256", "\x0e\r\x1eZ"},
{"crypto/sha3", "\x0e,Y\xcf\x01"},
{"crypto/sha512", "\x0e\r X"},
{"crypto/subtle", "\x1f\x1e\xa9\x01|"},
{"crypto/tls", "\x03\b\x02\x01\x01\x01\x01\x02\x01\x01\x01\x01\x01\x01\x01\x01\n\x01\x18\x01\x0f\x01\x01\x03\x01\x01\x01\x01\x02\x01\x02\x01\x1f\x02\x03\x12\x16\x15\t>\x16\x18\r\b\x01\x01\x01\x02\x01\x0e\x06\x03\x01\x15"},
{"crypto/tls/internal/fips140tls", "\x17\xb7\x02"},
{"crypto/x509", "\x03\v\x01\x01\x01\x01\x01\x01\x01\x01\x017\x01\x06\x01\x01\x02\x05\x0f\x06\t\x02\x03F\x03;\x01\x02\b\x01\x01\x02\a\x12\x05\x01\x06\a\b\x02\x01\x02\x0f\x02\x01\x01\x02\x04\x01"},
{"crypto/x509/pkix", "m\x06\x0e\x91\x019\x11"},
{"database/sql", "\x03\nS\x01\x1d\x03\x84\x01\v\a$\x05\b\x02\x03\x01\x0e\x02\x02\x02\x01"},
{"database/sql/driver", "\rT\x1d\x03\xba\x01\x0f\x12\a"},
{"database/sql/internal", ""},
{"debug/buildinfo", "\x03a\x02\x01\x01\b\x0e\x03h\x1a\x02\x01-\x0f "},
{"debug/dwarf", "\x03m\x0e\x03\x84\x013\x11\x01\x01"},
{"debug/elf", "\x03\x06Z\r\x0e\x03h\x1b\x01\f\"\x17\x01\x17"},
{"debug/gosym", "\x03m\x11#\xa5\x01\x01\x01\x02"},
{"debug/macho", "\x03\x06Z\r\x11h\x1c.\x17\x01"},
{"debug/pe", "\x03\x06Z\r\x0e\x03h\x1c.\x17\x01\x17"},
{"debug/plan9obj", "p\x0e\x03h\x1c."},
{"embed", "~*D\x19\x01V"},
{"embed/internal/embedtest", ""},
{"encoding", ""},
{"encoding/ascii85", "\xfa\x01C"},
{"encoding/asn1", "\x03q\x03g(\x01'\r\x02\x01\x11\x03\x01"},
{"encoding/base32", "\xfa\x01A\x02"},
{"encoding/base64", "\xa0\x01ZA\x02"},
{"encoding/binary", "t\x86\x01\f(\r\x05"},
{"encoding/csv", "\x02\x01q\x03\x83\x01D\x13\x02"},
{"encoding/gob", "\x02f\x05\a\x03g\x1c\v\x01\x03\x1d\b\x12\x01\x10\x02"},
{"encoding/hex", "t\x03\x83\x01A\x03"},
{"encoding/json", "\x03\x01d\x04\b\x03\x83\x01\f(\r\x02\x01\x02\x11\x01\x01\x02"},
{"encoding/pem", "\x03i\b\x86\x01A\x03"},
{"encoding/xml", "\x02\x01e\f\x03\x83\x014\x05\n\x01\x02\x11\x02"},
{"errors", "\xd0\x01\x85\x01"},
{"expvar", "qLA\b\v\x15\r\b\x02\x03\x01\x12"},
{"flag", "h\f\x03\x83\x01,\b\x05\b\x02\x01\x11"},
{"fmt", "tF'\x19\f \b\r\x02\x03\x13"},
{"go/ast", "\x03\x01s\x0f\x01s\x03)\b\r\x02\x01\x13\x02"},
{"go/build", "\x02\x01q\x03\x01\x02\x02\b\x02\x01\x17\x1f\x04\x02\b\x1c\x13\x01+\x01\x04\x01\a\b\x02\x01\x13\x02\x02"},
{"go/build/constraint", "t\xc9\x01\x01\x13\x02"},
{"go/constant", "w\x10\x7f\x01\x024\x01\x02\x13"},
{"go/doc", "\x04s\x01\x05\n=61\x10\x02\x01\x13\x02"},
{"go/doc/comment", "\x03t\xc4\x01\x01\x01\x01\x13\x02"},
{"go/format", "\x03t\x01\f\x01\x02sD"},
{"go/importer", "y\a\x01\x02\x04\x01r9"},
{"go/internal/gccgoimporter", "\x02\x01^\x13\x03\x04\f\x01p\x02,\x01\x05\x11\x01\r\b"},
{"go/internal/gcimporter", "\x02u\x10\x010\x05\r0,\x15\x03\x02"},
{"go/internal/scannerhooks", "\x87\x01"},
{"go/internal/srcimporter", "w\x01\x01\v\x03\x01r,\x01\x05\x12\x02\x15"},
{"go/parser", "\x03q\x03\x01\x02\b\x04\x01s\x01+\x06\x12"},
{"go/printer", "w\x01\x02\x03\ns\f \x15\x02\x01\x02\f\x05\x02"},
{"go/scanner", "\x03t\v\x05s2\x10\x01\x14\x02"},
{"go/token", "\x04s\x86\x01>\x02\x03\x01\x10\x02"},
{"go/types", "\x03\x01\x06j\x03\x01\x03\t\x03\x024\x063\x04\x03\t \x06\a\b\x01\x01\x01\x02\x01\x10\x02\x02"},
{"go/version", "\xc2\x01|"},
{"hash", "\xfa\x01"},
{"hash/adler32", "t\x16\x16"},
{"hash/crc32", "t\x16\x16\x15\x8b\x01\x01\x14"},
{"hash/crc64", "t\x16\x16\xa0\x01"},
{"hash/fnv", "t\x16\x16i"},
{"hash/maphash", "\x8a\x01\x11<~"},
{"html", "\xbe\x02\x02\x13"},
{"html/template", "\x03n\x06\x19-=\x01\n!\x05\x01\x02\x03\f\x01\x02\r\x01\x03\x02"},
{"image", "\x02r\x1fg\x0f4\x03\x01"},
{"encoding/ascii85", "\x85\x02E"},
{"encoding/asn1", "\x03{\x03h(\x01)\r\x02\x01\x11\x03\x01"},
{"encoding/base32", "\x85\x02C\x02"},
{"encoding/base64", "\xa9\x01\\C\x02"},
{"encoding/binary", "~\x87\x01\f*\r\x05"},
{"encoding/csv", "\x02\x01{\x03\x84\x01F\x13\x02"},
{"encoding/gob", "\x02i\x05\x0e\x03h\x1c\v\x01\x03\x1f\b\x12\x01\x10\x02"},
{"encoding/hex", "~\x03\x84\x01C\x03"},
{"encoding/json", "\x03\x01g\n\x01\x01\x02\x01\x01\x03\x03\x84\x016\x0f\x01"},
{"encoding/json/internal", "~"},
{"encoding/json/internal/jsonflags", "u"},
{"encoding/json/internal/jsonopts", "u\x01"},
{"encoding/json/internal/jsontest", "\x03f\x15\x03\x83\x01\x01\x012\b\b\x03\x02\x0f"},
{"encoding/json/internal/jsonwire", "\x04r\b\x87\x01\f7\x02\x01\x13\x01\x01"},
{"encoding/json/jsontext", "\x03r\x01\x01\x02\x05\x87\x01\x03\t\x034\x02\x01\x02\x13"},
{"encoding/json/v2", "\x03\x01g\x03\x01\x01\x03\x02\x01\x01\x02\x01\x04\x03\x84\x01\f\x03'\r\x02\x01\x02\x0f\x02\x02"},
{"encoding/pem", "\x03l\x0f\x87\x01C\x03"},
{"encoding/xml", "\x02\x01h\x13\x03\x84\x016\x05\n\x01\x02\x11\x02"},
{"errors", "\xdb\x01\x87\x01"},
{"expvar", "tSB\b\v\x17\r\b\x02\x03\x01\x12"},
{"flag", "k\x13\x03\x84\x01.\b\x05\b\x02\x01\x11"},
{"fmt", "~E)\x19\f\"\b\r\x02\x03\x13"},
{"go/ast", "\x03\x01}\x0e\x01u\x03+\b\r\x02\x01\x13\x02"},
{"go/build", "\x02\x01{\x03\x01\x02\x02\a\x02\x01\x17 \x04\x02\t\x1c\x13\x01-\x01\x04\x01\a\b\x02\x01\x13\x02\x02"},
{"go/build/constraint", "~\xcc\x01\x01\x13\x02"},
{"go/constant", "\x81\x01\x0f\x81\x01\x01\x026\x01\x02\x13"},
{"go/doc", "\x04}\x01\x05\t>73\x10\x02\x01\x13\x02"},
{"go/doc/comment", "\x03~\xc7\x01\x01\x01\x01\x13\x02"},
{"go/format", "\x03~\x01\v\x01\x02uF"},
{"go/importer", "\x83\x01\a\x01\x01\x04\x01t;"},
{"go/internal/gccgoimporter", "\x02\x01a\x1a\x03\x04\v\x01r\x02.\x01\x05\x11\x01\r\b"},
{"go/internal/gcimporter", "\x02\x7f\x0f\x010\x140.\x15\x03\x02"},
{"go/internal/srcimporter", "\x81\x01\x01\x01\n\x03\x01t.\x01\x05\x12\x02\x15"},
{"go/parser", "\x03{\x03\x01\x02\v\x01u\x01-\x06\x12"},
{"go/printer", "\x81\x01\x01\x02\x03\tu\f\"\x15\x02\x01\x02\f\x05\x02"},
{"go/scanner", "\x03~\x0fu4\x10\x01\x14\x02"},
{"go/token", "\x04}\x87\x01@\x02\x03\x01\x10\x02"},
{"go/types", "\x03\x01\x06t\x03\x01\x03\b\x03\x02\x0654\x04\x03\t\"\x06\a\b\x01\x01\x01\x02\x01\x10\x02\x02"},
{"go/version", "\xcc\x01\x7f"},
{"hash", "\x85\x02"},
{"hash/adler32", "~\x15\x16"},
{"hash/crc32", "~\x15\x16\x15\x8f\x01\x01\x14"},
{"hash/crc64", "~\x15\x16\xa4\x01"},
{"hash/fnv", "~\x15\x16k"},
{"hash/maphash", "\x93\x01\x11>\x80\x01"},
{"html", "\xcb\x02\x02\x13"},
{"html/template", "\x03q\r\x18.>\x01\n#\x05\x01\x02\x03\n\x02\x01\x02\r\x01\x03\x02"},
{"image", "\x02|\x1ei\x0f6\x03\x01"},
{"image/color", ""},
{"image/color/palette", "\x93\x01"},
{"image/draw", "\x92\x01\x01\x04"},
{"image/gif", "\x02\x01\x05l\x03\x1b\x01\x01\x01\vZ\x0f"},
{"image/internal/imageutil", "\x92\x01"},
{"image/jpeg", "\x02r\x1e\x01\x04c"},
{"image/png", "\x02\ad\n\x13\x02\x06\x01gC"},
{"index/suffixarray", "\x03j\a\x86\x01\f+\n\x01"},
{"internal/abi", "\xbc\x01\x99\x01"},
{"internal/asan", "\xd5\x02"},
{"internal/bisect", "\xb3\x02\r\x01"},
{"internal/buildcfg", "wHg\x06\x02\x05\n\x01"},
{"internal/bytealg", "\xb5\x01\xa0\x01"},
{"image/color/palette", "\x9c\x01"},
{"image/draw", "\x9b\x01\x01\x04"},
{"image/gif", "\x02\x01\x05v\x03\x1a\x01\x01\x01\v\\\x0f"},
{"image/internal/imageutil", "\x9b\x01"},
{"image/jpeg", "\x02|\x1d\x01\x04e"},
{"image/png", "\x02\ag\x11\x12\x02\x06\x01iE"},
{"index/suffixarray", "\x03m\x0e\x87\x01\f-\n\x01"},
{"internal/abi", "\xc6\x01\x9c\x01"},
{"internal/asan", "\xe2\x02"},
{"internal/bisect", "\xc0\x02\r\x01"},
{"internal/buildcfg", "\x81\x01Hj\x06\x02\x05\n\x01"},
{"internal/bytealg", "\xbe\x01\xa4\x01"},
{"internal/byteorder", ""},
{"internal/cfg", ""},
{"internal/cgrouptest", "w[T\x06\x0f\x02\x01\x04\x01"},
{"internal/chacha8rand", "\xa0\x01\x15\a\x99\x01"},
{"internal/cgrouptest", "\x81\x01\\V\x06\x0f\x02\x01\x04\x01"},
{"internal/chacha8rand", "\xa9\x01\x15\b\x9c\x01"},
{"internal/copyright", ""},
{"internal/coverage", ""},
{"internal/coverage/calloc", ""},
{"internal/coverage/cfile", "q\x06\x17\x17\x01\x02\x01\x01\x01\x01\x01\x01\x01\"\x02',\x06\a\n\x01\x03\x0e\x06"},
{"internal/coverage/cformat", "\x04s.\x04Q\v6\x01\x02\x0e"},
{"internal/coverage/cmerge", "w.a"},
{"internal/coverage/decodecounter", "m\n.\v\x02H,\x17\x18"},
{"internal/coverage/decodemeta", "\x02k\n\x17\x17\v\x02H,"},
{"internal/coverage/encodecounter", "\x02k\n.\f\x01\x02F\v!\x15"},
{"internal/coverage/encodemeta", "\x02\x01j\n\x13\x04\x17\r\x02F,/"},
{"internal/coverage/pods", "\x04s.\x81\x01\x06\x05\n\x02\x01"},
{"internal/coverage/rtcov", "\xd5\x02"},
{"internal/coverage/slicereader", "m\n\x83\x01["},
{"internal/coverage/slicewriter", "w\x83\x01"},
{"internal/coverage/stringtab", "w9\x04F"},
{"internal/coverage/cfile", "t\r\x16\x17\x01\x02\x01\x01\x01\x01\x01\x01\x01$\x02'.\x06\a\n\x01\x03\x0e\x06"},
{"internal/coverage/cformat", "\x04}-\x04S\v8\x01\x02\x0e"},
{"internal/coverage/cmerge", "\x81\x01-c"},
{"internal/coverage/decodecounter", "p\x11-\v\x02J.\x17\x18"},
{"internal/coverage/decodemeta", "\x02n\x11\x16\x17\v\x02J."},
{"internal/coverage/encodecounter", "\x02n\x11-\f\x01\x02H\v#\x15"},
{"internal/coverage/encodemeta", "\x02\x01m\x11\x12\x04\x17\r\x02H./"},
{"internal/coverage/pods", "\x04}-\x85\x01\x06\x05\n\x02\x01"},
{"internal/coverage/rtcov", "\xe2\x02"},
{"internal/coverage/slicereader", "p\x11\x84\x01]"},
{"internal/coverage/slicewriter", "\x81\x01\x84\x01"},
{"internal/coverage/stringtab", "\x81\x018\x04H"},
{"internal/coverage/test", ""},
{"internal/coverage/uleb128", ""},
{"internal/cpu", "\xd5\x02"},
{"internal/dag", "\x04s\xc4\x01\x03"},
{"internal/diff", "\x03t\xc5\x01\x02"},
{"internal/exportdata", "\x02\x01q\x03\x02e\x1c,\x01\x05\x11\x01\x02"},
{"internal/filepathlite", "t+B\x1a@"},
{"internal/fmtsort", "\x04\xaa\x02\r"},
{"internal/fuzz", "\x03\nH\x18\x04\x03\x03\x01\f\x036=\f\x03\x1d\x01\x05\x02\x05\n\x01\x02\x01\x01\r\x04\x02"},
{"internal/cpu", "\xe2\x02"},
{"internal/dag", "\x04}\xc7\x01\x03"},
{"internal/diff", "\x03~\xc8\x01\x02"},
{"internal/exportdata", "\x02\x01{\x03\x02f\x1c.\x01\x05\x11\x01\x02"},
{"internal/filepathlite", "~*D\x1aB"},
{"internal/fmtsort", "\x04\xb7\x02\r"},
{"internal/fuzz", "\x03\nJ\x19\x04\n\x03\x01\v\x037>\f\x03\x1f\x01\x05\x02\x05\n\x01\x02\x01\x01\r\x04\x02"},
{"internal/gate", "\r"},
{"internal/goarch", ""},
{"internal/godebug", "\x9d\x01!\x82\x01\x01\x14"},
{"internal/godebug", "\xa6\x01\"\x85\x01\x01\x14"},
{"internal/godebugs", ""},
{"internal/goexperiment", ""},
{"internal/goos", ""},
{"internal/goroot", "\xa6\x02\x01\x05\x12\x02"},
{"internal/goroot", "\xb3\x02\x01\x05\x12\x02"},
{"internal/gover", "\x04"},
{"internal/goversion", ""},
{"internal/lazyregexp", "\xa6\x02\v\r\x02"},
{"internal/lazytemplate", "\xfa\x01,\x18\x02\r"},
{"internal/msan", "\xd5\x02"},
{"internal/lazyregexp", "\xb3\x02\v\r\x02"},
{"internal/lazytemplate", "\x85\x02.\x18\x02\r"},
{"internal/msan", "\xe2\x02"},
{"internal/nettest", "\x03\nqG@\f\n\x12\x06\x15\x05\x0f"},
{"internal/nettrace", ""},
{"internal/obscuretestdata", "l\x8e\x01,"},
{"internal/oserror", "t"},
{"internal/pkgbits", "\x03R\x18\a\x03\x04\fs\r\x1f\r\n\x01"},
{"internal/obscuretestdata", "o\x96\x01."},
{"internal/oserror", "~"},
{"internal/pkgbits", "\x03T\x19\x0e\x03\x04\vu\r!\r\n\x01"},
{"internal/platform", ""},
{"internal/poll", "tl\x05\x159\r\x01\x01\r\x06"},
{"internal/profile", "\x03\x04m\x03\x83\x017\n\x01\x01\x01\x11"},
{"internal/poll", "~m\x05\x15;\r\x01\x01\r\x06"},
{"internal/profile", "\x03\x04w\x03\x84\x019\n\x01\x01\x01\x11"},
{"internal/profilerecord", ""},
{"internal/race", "\x9b\x01\xba\x01"},
{"internal/reflectlite", "\x9b\x01!;<\""},
{"internal/runtime/atomic", "\xbc\x01\x99\x01"},
{"internal/runtime/cgroup", "\x9f\x01=\x04u"},
{"internal/runtime/exithook", "\xd1\x01\x84\x01"},
{"internal/runtime/gc", "\xbc\x01"},
{"internal/runtime/gc/internal/gen", "\nc\n\x18k\x04\v\x1d\b\x10\x02"},
{"internal/runtime/gc/scan", "\xb5\x01\a\x18\az"},
{"internal/runtime/maps", "\x9b\x01\x01 \n\t\t\x03z"},
{"internal/runtime/math", "\xbc\x01"},
{"internal/race", "\xa4\x01\xbe\x01"},
{"internal/reflectlite", "\xa4\x01\"<>\""},
{"internal/runtime/atomic", "\xc6\x01\x9c\x01"},
{"internal/runtime/cgroup", "\xa8\x01?\x04w"},
{"internal/runtime/exithook", "\xdc\x01\x86\x01"},
{"internal/runtime/gc", "\xc6\x01"},
{"internal/runtime/gc/internal/gen", "\nf\x11\x17m\x04\v\x1f\b\x10\x02"},
{"internal/runtime/gc/scan", "\xbe\x01\b\x19\a|"},
{"internal/runtime/maps", "\xa4\x01\x01\x04\x15\b\x03\a\n\t\x03.N"},
{"internal/runtime/math", "\xc6\x01"},
{"internal/runtime/pprof/label", ""},
{"internal/runtime/startlinetest", ""},
{"internal/runtime/sys", "\xbc\x01\x04"},
{"internal/runtime/syscall/linux", "\xbc\x01\x99\x01"},
{"internal/runtime/sys", "\xc6\x01\x04"},
{"internal/runtime/syscall/linux", "\xc6\x01\x9c\x01"},
{"internal/runtime/wasitest", ""},
{"internal/saferio", "\xfa\x01["},
{"internal/singleflight", "\xc0\x02"},
{"internal/strconv", "\x89\x02L"},
{"internal/stringslite", "\x9f\x01\xb6\x01"},
{"internal/sync", "\x9b\x01!\x13r\x14"},
{"internal/synctest", "\x9b\x01\xba\x01"},
{"internal/syscall/execenv", "\xc2\x02"},
{"internal/syscall/unix", "\xb3\x02\x0e\x01\x13"},
{"internal/sysinfo", "\x02\x01\xb2\x01E,\x18\x02"},
{"internal/saferio", "\x85\x02]"},
{"internal/singleflight", "\xcd\x02"},
{"internal/strconv", "\x94\x02N"},
{"internal/stringslite", "\xa8\x01\xba\x01"},
{"internal/sync", "\xa4\x01\"\x14t\x14"},
{"internal/synctest", "\xa4\x01\xbe\x01"},
{"internal/syscall/execenv", "\xcf\x02"},
{"internal/syscall/unix", "\xeb\x01U\x0e\x01\x13"},
{"internal/sysinfo", "\x02\x01\xbb\x01G.\x18\x02"},
{"internal/syslist", ""},
{"internal/testenv", "\x03\ng\x02\x01*\x1b\x0f0+\x01\x05\a\n\x01\x02\x02\x01\f"},
{"internal/testhash", "\x03\x87\x01p\x118\f"},
{"internal/testlog", "\xc0\x02\x01\x14"},
{"internal/testpty", "t\x03\xaf\x01"},
{"internal/trace", "\x02\x01\x01\x06c\a\x03w\x03\x03\x06\x03\t+\n\x01\x01\x01\x11\x06"},
{"internal/trace/internal/testgen", "\x03j\nu\x03\x02\x03\x011\v\r\x11"},
{"internal/trace/internal/tracev1", "\x03\x01i\a\x03}\x06\f5\x01"},
{"internal/trace/raw", "\x02k\nz\x03\x06C\x01\x13"},
{"internal/trace/testtrace", "\x02\x01q\x03q\x04\x03\x05\x01\x05,\v\x02\b\x02\x01\x05"},
{"internal/testenv", "\x03\nq\x02\x01)\x1c\x100-\x01\x05\a\n\x01\x02\x02\x01\f"},
{"internal/testhash", "\x03\x90\x01r\x11:\f"},
{"internal/testlog", "\xcd\x02\x01\x14"},
{"internal/testpty", "~\x03\xb2\x01"},
{"internal/trace", "\x02\x01\x01\x06f\x0e\x03x\x03\x03\x06\x03\t-\n\x01\x01\x01\x11\x06"},
{"internal/trace/internal/testgen", "\x03m\x11v\x03\x02\x03\x013\v\r\x11"},
{"internal/trace/internal/tracev1", "\x03\x01l\x0e\x03~\x06\f7\x01"},
{"internal/trace/raw", "\x02n\x11{\x03\x06E\x01\x13"},
{"internal/trace/testtrace", "\x02\x01{\x03r\x04\x03\x05\x01\x05.\v\x02\b\x02\x01\x05"},
{"internal/trace/tracev2", ""},
{"internal/trace/traceviewer", "\x02d\v\x06\x1a<\x1f\a\a\x04\b\v\x15\x01\x05\a\n\x01\x02\x0f"},
{"internal/trace/traceviewer", "\x02g\v\r\x19>\x1f\a\a\x04\b\v\x17\x01\x05\a\n\x01\x02\x0f"},
{"internal/trace/traceviewer/format", ""},
{"internal/trace/version", "wz\t"},
{"internal/txtar", "\x03t\xaf\x01\x18"},
{"internal/types/errors", "\xbd\x02"},
{"internal/unsafeheader", "\xd5\x02"},
{"internal/xcoff", "`\r\a\x03g\x1c,\x17\x01"},
{"internal/zstd", "m\a\x03\x83\x01\x0f"},
{"io", "t\xcc\x01"},
{"io/fs", "t+*11\x10\x14\x04"},
{"io/ioutil", "\xfa\x01\x01+\x15\x03"},
{"iter", "\xcf\x01d\""},
{"log", "w\x83\x01\x05'\r\r\x01\x0e"},
{"internal/trace/version", "\x81\x01{\t"},
{"internal/txtar", "\x03~\xb2\x01\x18"},
{"internal/types/errors", "\xca\x02"},
{"internal/unsafeheader", "\xe2\x02"},
{"internal/xcoff", "c\r\x0e\x03h\x1c.\x17\x01"},
{"internal/zstd", "p\x0e\x03\x84\x01\x0f"},
{"io", "~\xcf\x01"},
{"io/fs", "~*,13\x10\x14\x04"},
{"io/ioutil", "\x85\x02\x01-\x15\x03"},
{"iter", "\xda\x01f\""},
{"log", "\x81\x01\x84\x01\x05)\r\r\x01\x0e"},
{"log/internal", ""},
{"log/slog", "\x03\n[\t\x03\x03\x83\x01\x04\x01\x02\x02\x03(\x05\b\x02\x01\x02\x01\x0e\x02\x02\x02"},
{"log/slog", "\x03\n^\t\n\x03H<\x04\x01\x02\x02\x03*\x05\b\x02\x01\x02\x01\x0e\x02\x02\x02"},
{"log/slog/internal", ""},
{"log/slog/internal/benchmarks", "\rg\x03\x83\x01\x06\x03:\x12"},
{"log/slog/internal/buffer", "\xc0\x02"},
{"log/syslog", "t\x03\x87\x01\x12\x16\x18\x02\x0f"},
{"maps", "\xfd\x01X"},
{"math", "\xb5\x01TL"},
{"math/big", "\x03q\x03)\x15E\f\x03\x020\x02\x01\x02\x15"},
{"math/big/internal/asmgen", "\x03\x01s\x92\x012\x03"},
{"math/bits", "\xd5\x02"},
{"math/cmplx", "\x86\x02\x03"},
{"math/rand", "\xbd\x01I:\x01\x14"},
{"math/rand/v2", "t,\x03c\x03L"},
{"mime", "\x02\x01i\b\x03\x83\x01\v!\x15\x03\x02\x11\x02"},
{"mime/multipart", "\x02\x01N#\x03F=\v\x01\a\x02\x15\x02\x06\x0f\x02\x01\x17"},
{"mime/quotedprintable", "\x02\x01t\x83\x01"},
{"net", "\x04\tg+\x1e\n\x05\x13\x01\x01\x04\x15\x01%\x06\r\b\x05\x01\x01\r\x06\a"},
{"net/http", "\x02\x01\x03\x01\x04\x02D\b\x13\x01\a\x03F=\x01\x03\a\x01\x03\x02\x02\x01\x02\x06\x02\x01\x01\n\x01\x01\x05\x01\x02\x05\b\x01\x01\x01\x02\x01\x0e\x02\x02\x02\b\x01\x01\x01"},
{"net/http/cgi", "\x02W\x1b\x03\x83\x01\x04\a\v\x01\x13\x01\x01\x01\x04\x01\x05\x02\b\x02\x01\x11\x0e"},
{"net/http/cookiejar", "\x04p\x03\x99\x01\x01\b\a\x05\x16\x03\x02\x0f\x04"},
{"net/http/fcgi", "\x02\x01\n`\a\x03\x83\x01\x16\x01\x01\x14\x18\x02\x0f"},
{"net/http/httptest", "\x02\x01\nL\x02\x1b\x01\x83\x01\x04\x12\x01\n\t\x02\x17\x01\x02\x0f\x0e"},
{"net/http/httptrace", "\rLnI\x14\n!"},
{"net/http/httputil", "\x02\x01\ng\x03\x83\x01\x04\x0f\x03\x01\x05\x02\x01\v\x01\x19\x02\x01\x0e\x0e"},
{"net/http/internal", "\x02\x01q\x03\x83\x01"},
{"net/http/internal/ascii", "\xbe\x02\x13"},
{"net/http/internal/httpcommon", "\rg\x03\x9f\x01\x0e\x01\x17\x01\x01\x02\x1d\x02"},
{"net/http/internal/testcert", "\xbe\x02"},
{"net/http/pprof", "\x02\x01\nj\x19-\x02\x0e-\x04\x13\x14\x01\r\x04\x03\x01\x02\x01\x11"},
{"log/slog/internal/benchmarks", "\rq\x03\x84\x01\x06\x03<\x12"},
{"log/slog/internal/buffer", "\xcd\x02"},
{"log/syslog", "~\x03\x88\x01\x12\x18\x18\x02\x0f"},
{"maps", "\x88\x02Z"},
{"math", "\xbe\x01VN"},
{"math/big", "\x03{\x03(\x15G\f\x03\x022\x02\x01\x02\x15"},
{"math/big/internal/asmgen", "\x03\x01}\x93\x014\x03"},
{"math/bits", "\xe2\x02"},
{"math/cmplx", "\x91\x02\x03"},
{"math/rand", "\xc7\x01J<\x01\x14"},
{"math/rand/v2", "~+\x03e\x03N"},
{"mime", "\x02\x01l\x0f\x03\x84\x01\v#\x15\x03\x02\x11\x02"},
{"mime/multipart", "\x02\x01P+\x03F>\v\x01\a\x02\x17\x02\x06\x0f\x02\x01\x17"},
{"mime/quotedprintable", "\x02\x01~\x84\x01"},
{"net", "\x04\tq*\x1f\v\x05\x13\x01\x01\x04\x15\x01'\x06\r\b\x05\x01\x01\r\x06\t"},
{"net/http", "\x02\x01\x03\x01\x04\x02N\x14\x0f\x03F>\x01\x03\a\x01\x06\x01\x01\x02\x06\x02\x01\x01\f\x01\x01\x05\x01\x02\x05\b\x01\x01\x01\x02\x01\x0e\x02\x02\x02\n\x01\x03"},
{"net/http/cgi", "\x02Y#\x03\x84\x01\x04\a\v\x01\x15\x01\x01\x01\x04\x01\x05\x02\b\x02\x01\x11\x10"},
{"net/http/cookiejar", "\x04z\x03\x9a\x01\x01\b\t\x05\x16\x03\x02\x0f\x04"},
{"net/http/fcgi", "\x02\x01\nc\x0e\x03\x84\x01\x16\x01\x01\x16\x18\x02\x0f"},
{"net/http/httptest", "\x02\x01\nN\x02#\x01P4\x04\x12\x01\f\t\x02\r\n\x01\x02\x03\f\x06\n"},
{"net/http/httptrace", "\rNwI\x16+"},
{"net/http/httputil", "\x02\x01\nq\x03F>\x04\x0f\x03\x01\x05\x02\x01\r\x01\x19\x02\x01\x0e\x10"},
{"net/http/internal", "\x02\x01m\x0e\x03\x84\x01"},
{"net/http/internal/ascii", "\xcb\x02\x13"},
{"net/http/internal/http2", "\x02\x01\x03\x01\x06F\b\x15\x0e\x03\x84\x01\x01\x03\b\x03\x02\x03\x02\x06\x02\x03\x01\n\x01\x01\b\x05\b\x02\x01\x02\x01\x0e\x10\x02\x02"},
{"net/http/internal/httpcommon", "\rq\x03\xa0\x01\x10\x01\x17\x01\x01\x02\x1f\x02"},
{"net/http/internal/httpsfv", "\xc8\x02\x02\x01\x11\x04"},
{"net/http/internal/testcert", "\xcb\x02"},
{"net/http/pprof", "\x02\x01\nt\x18.\x11-\x04\x13\x16\x01\r\x04\x03\x01\x02\x01\x11"},
{"net/internal/cgotest", ""},
{"net/internal/socktest", "w\xc9\x01\x02"},
{"net/mail", "\x02r\x03\x83\x01\x04\x0f\x03\x14\x1a\x02\x0f\x04"},
{"net/netip", "\x04p+\x01f\x034\x17"},
{"net/rpc", "\x02m\x05\x03\x10\ni\x04\x12\x01\x1d\r\x03\x02"},
{"net/rpc/jsonrpc", "q\x03\x03\x83\x01\x16\x11\x1f"},
{"net/smtp", "\x194\f\x13\b\x03\x83\x01\x16\x14\x1a"},
{"net/textproto", "\x02\x01q\x03\x83\x01\f\n-\x01\x02\x15"},
{"net/url", "t\x03Fc\v\x10\x02\x01\x17"},
{"os", "t+\x01\x19\x03\x10\x14\x01\x03\x01\x05\x10\x018\b\x05\x01\x01\r\x06"},
{"os/exec", "\x03\ngI'\x01\x15\x01+\x06\a\n\x01\x03\x01\r"},
{"os/exec/internal/fdtest", "\xc2\x02"},
{"os/signal", "\r\x99\x02\x15\x05\x02"},
{"os/user", "\x02\x01q\x03\x83\x01,\r\n\x01\x02"},
{"path", "t+\xb4\x01"},
{"path/filepath", "t+\x1aB+\r\b\x03\x04\x11"},
{"plugin", "t"},
{"reflect", "t'\x04\x1d\x13\b\x04\x05\x17\x06\t-\n\x03\x11\x02\x02"},
{"net/internal/socktest", "\x81\x01\xcc\x01\x02"},
{"net/mail", "\x02|\x03\x84\x01\x04\x0f\x03\x16\x1a\x02\x0f\x04"},
{"net/netip", "\x04z*\x01h\x036\x17"},
{"net/rpc", "\x02p\f\x03\x0f\nk\x04\x12\x01\x1f\r\x03\x02"},
{"net/rpc/jsonrpc", "t\n\x03\x84\x01\x16\x13\x1f"},
{"net/smtp", "\x195\r\x14\x0f\x03\x84\x01\x16\x16\x1a"},
{"net/textproto", "\x02\x01{\x03\x84\x01\f\n/\x01\x02\x15"},
{"net/url", "~\x03Ff\v\x10\x02\x01\x17"},
{"os", "~*\x01\x19\x04\x11\x14\x01\x03\x01\x05\x10\x01:\b\x05\x01\x01\r\x06"},
{"os/exec", "\x03\nqI(\x01\x15\x01-\x06\a\n\x01\x03\x01\r"},
{"os/exec/internal/fdtest", "\xcf\x02"},
{"os/signal", "\r\xa6\x02\x15\x05\x02"},
{"os/user", "\x02\x01{\x03\x84\x01.\r\n\x01\x02"},
{"path", "~*\xb8\x01"},
{"path/filepath", "~*\x1aD-\r\b\x03\x04\x11"},
{"plugin", "~"},
{"reflect", "~&\x04\x1e\x03\x11\b\x04\x05\x17\x06\t/\n\x03\x11\x02\x02"},
{"reflect/internal/example1", ""},
{"reflect/internal/example2", ""},
{"regexp", "\x03\xf7\x018\t\x02\x01\x02\x11\x02"},
{"regexp/syntax", "\xbb\x02\x01\x01\x01\x02\x11\x02"},
{"runtime", "\x9b\x01\x04\x01\x03\f\x06\a\x02\x01\x01\x0e\x03\x01\x01\x01\x02\x01\x01\x01\x02\x01\x04\x01\x10\x18L"},
{"runtime/coverage", "\xa7\x01S"},
{"runtime/debug", "wUZ\r\b\x02\x01\x11\x06"},
{"runtime/metrics", "\xbe\x01H-\""},
{"runtime/pprof", "\x02\x01\x01\x03\x06`\a\x03$$\x0f\v!\f \r\b\x01\x01\x01\x02\x02\n\x03\x06"},
{"runtime/race", "\xb9\x02"},
{"regexp", "\x03\x82\x02\x037\t\x02\x01\x02\x11\x02"},
{"regexp/syntax", "\xc8\x02\x01\x01\x01\x02\x11\x02"},
{"runtime", "\xa4\x01\x04\x01\x03\f\x06\b\x02\x01\x01\x0f\x03\x01\x01\x01\x02\x01\x01\x01\x02\x01\x04\x01\x10\x18N"},
{"runtime/coverage", "\xb0\x01U"},
{"runtime/debug", "\x81\x01V\\\r\b\x02\x01\x11\x06"},
{"runtime/metrics", "\xc8\x01I/\""},
{"runtime/pprof", "\x02\x01\x01\x03\x06c\x0e\x03#5\v!\f\"\r\b\x01\x01\x01\x02\x02\n\x03\x06"},
{"runtime/race", "\xc6\x02"},
{"runtime/race/internal/amd64v1", ""},
{"runtime/trace", "\rg\x03z\t9\b\x05\x01\x0e\x06"},
{"slices", "\x04\xf9\x01\fL"},
{"sort", "\xd0\x0192"},
{"strconv", "t+A\x01r"},
{"strings", "t'\x04B\x19\x03\f7\x11\x02\x02"},
{"runtime/trace", "\rq\x03{\t;\b\x05\x01\x0e\x06"},
{"slices", "\x04\x84\x02\fN"},
{"sort", "\xdb\x0194"},
{"strconv", "~*C\x01t"},
{"strings", "~&\x04D\x19\x03\f9\x11\x02\x02"},
{"structs", ""},
{"sync", "\xcf\x01\x13\x01P\x0e\x14"},
{"sync/atomic", "\xd5\x02"},
{"syscall", "t(\x03\x01\x1c\n\x03\x06\r\x04S\b\x05\x01\x14"},
{"testing", "\x03\ng\x02\x01X\x17\x14\f\x05\x1b\x06\x02\x05\x02\x05\x01\x02\x01\x02\x01\x0e\x02\x04"},
{"testing/cryptotest", "QOZ\x124\x03\x12"},
{"testing/fstest", "t\x03\x83\x01\x01\n&\x10\x03\t\b"},
{"testing/internal/testdeps", "\x02\v\xae\x01/\x10,\x03\x05\x03\x06\a\x02\x0f"},
{"testing/iotest", "\x03q\x03\x83\x01\x04"},
{"testing/quick", "v\x01\x8f\x01\x05#\x10\x11"},
{"testing/slogtest", "\rg\x03\x89\x01.\x05\x10\f"},
{"testing/synctest", "\xe3\x01`\x12"},
{"text/scanner", "\x03t\x83\x01,+\x02"},
{"text/tabwriter", "w\x83\x01Y"},
{"text/template", "t\x03C@\x01\n \x01\x05\x01\x02\x05\v\x02\x0e\x03\x02"},
{"text/template/parse", "\x03t\xbc\x01\n\x01\x13\x02"},
{"time", "t+\x1e$(*\r\x02\x13"},
{"time/tzdata", "t\xce\x01\x13"},
{"sync", "\xda\x01\x02\x11\x01R\x0e\x14"},
{"sync/atomic", "\xe2\x02"},
{"syscall", "~'\x03\x01\x1d\n\x04\x06\r\x04U\b\x05\x01\x14"},
{"testing", "\x03\nq\x02\x01Y\x17\x14\f\x05\x1d\x06\x02\x05\x02\x05\x01\x02\x01\x02\x01\x0e\x02\x04"},
{"testing/cryptotest", "SV\\\x126\x03\x12"},
{"testing/fstest", "~\x03\x84\x01\x01\n(\x10\x03\t\b"},
{"testing/internal/testdeps", "\x02\v\xb7\x011\x10.\x03\x05\x03\x06\a\x02\x0f"},
{"testing/iotest", "\x03{\x03\x84\x01\x04"},
{"testing/quick", "\x80\x01\x01\x90\x01\x05%\x10\x11"},
{"testing/slogtest", "\rq\x03\x8a\x010\x05\x10\f"},
{"testing/synctest", "\xee\x01b\f\x06"},
{"text/scanner", "\x03~\x84\x01.+\x02"},
{"text/tabwriter", "\x81\x01\x84\x01["},
{"text/template", "~\x03BB\x01\n\"\x01\x05\x01\x02\x05\v\x02\x0e\x03\x02"},
{"text/template/parse", "\x03~\xbf\x01\n\x01\x13\x02"},
{"time", "~*D(,\r\x02\x13"},
{"time/tzdata", "~\xd1\x01\x13"},
{"unicode", ""},
{"unicode/utf16", ""},
{"unicode/utf8", ""},
{"unique", "\x9b\x01!%\x01Q\r\x01\x14\x12"},
{"unique", "\xa4\x01\"&\x01S\r\x01\x14\x19"},
{"unsafe", ""},
{"vendor/golang.org/x/crypto/chacha20", "\x10]\a\x95\x01*'"},
{"vendor/golang.org/x/crypto/chacha20poly1305", "\x10\aV\a\xe2\x01\x04\x01\a"},
{"vendor/golang.org/x/crypto/cryptobyte", "j\n\x03\x90\x01'!\n"},
{"uuid", "\x03\x01O\x1d\x03\v\xcf\x01\x0f"},
{"vendor/golang.org/x/crypto/chacha20", "\x10`\x0e\x96\x01,)"},
{"vendor/golang.org/x/crypto/chacha20poly1305", "\x10\aY\x0e\xe6\x01\x05\x01\f"},
{"vendor/golang.org/x/crypto/cryptobyte", "m\x11\x03\x91\x01)!\v"},
{"vendor/golang.org/x/crypto/cryptobyte/asn1", ""},
{"vendor/golang.org/x/crypto/internal/alias", "\xd5\x02"},
{"vendor/golang.org/x/crypto/internal/poly1305", "X\x15\x9c\x01"},
{"vendor/golang.org/x/net/dns/dnsmessage", "t\xc7\x01"},
{"vendor/golang.org/x/net/http/httpguts", "\x90\x02\x14\x1a\x15\r"},
{"vendor/golang.org/x/net/http/httpproxy", "t\x03\x99\x01\x10\x05\x01\x18\x15\r"},
{"vendor/golang.org/x/net/http2/hpack", "\x03q\x03\x83\x01F"},
{"vendor/golang.org/x/net/idna", "w\x8f\x018\x15\x10\x02\x01"},
{"vendor/golang.org/x/net/nettest", "\x03j\a\x03\x83\x01\x11\x05\x16\x01\f\n\x01\x02\x02\x01\f"},
{"vendor/golang.org/x/sys/cpu", "\xa6\x02\r\n\x01\x17"},
{"vendor/golang.org/x/text/secure/bidirule", "t\xdf\x01\x11\x01"},
{"vendor/golang.org/x/text/transform", "\x03q\x86\x01Y"},
{"vendor/golang.org/x/text/unicode/bidi", "\x03\bl\x87\x01>\x17"},
{"vendor/golang.org/x/text/unicode/norm", "m\n\x83\x01F\x13\x11"},
{"weak", "\x9b\x01\x98\x01\""},
{"vendor/golang.org/x/crypto/hkdf", "\x18\x01e\x15r"},
{"vendor/golang.org/x/crypto/internal/alias", "\xe2\x02"},
{"vendor/golang.org/x/crypto/internal/poly1305", "Z\x16\xa4\x01"},
{"vendor/golang.org/x/net/dns/dnsmessage", "~\xca\x01"},
{"vendor/golang.org/x/net/http/httpguts", "\x9b\x02\x16\x1a\x15\x10"},
{"vendor/golang.org/x/net/http/httpproxy", "~\x03\x9a\x01\x12\x05\x01\x18\x15\x10"},
{"vendor/golang.org/x/net/http2/hpack", "\x03{\x03\x84\x01H"},
{"vendor/golang.org/x/net/http3", "\x9c\x02@\x06\x0f\x04"},
{"vendor/golang.org/x/net/idna", "\x81\x01\x90\x01:\x13\x02\x17\x02\x01"},
{"vendor/golang.org/x/net/internal/http3", "\rN#\x03\x84\x01\v\x04\a\x01\x05\x10\x01\x16\x02\x01\x02\x0f\x10\x02\x04\x03"},
{"vendor/golang.org/x/net/internal/httpcommon", "\rq\x03\xa0\x01\x10\x01\x17\x01\x01\x02\x1f\x02"},
{"vendor/golang.org/x/net/internal/quic/quicwire", "p"},
{"vendor/golang.org/x/net/nettest", "\x03m\x0e\x03\x84\x01\x11\x05\x18\x01\f\n\x01\x02\x02\x01\f"},
{"vendor/golang.org/x/net/quic", "\x03\n\x01\x01\x01\t:\x04\x04\x15\x03\v\x03\x12r\x06\x06\x06\x04\x12\x06\x15\x02\x01\x02\x01\x01\r\x06\x02\x01\x01\x02\v"},
{"vendor/golang.org/x/sys/cpu", "\xb3\x02\r\n\x01\x17"},
{"vendor/golang.org/x/text/secure/bidirule", "~\xe2\x01\x18\x01"},
{"vendor/golang.org/x/text/transform", "\x03{\x87\x01["},
{"vendor/golang.org/x/text/unicode/bidi", "\x03\bv\x88\x01@\x17"},
{"vendor/golang.org/x/text/unicode/norm", "p\x11\x84\x01H\x13\x18"},
{"weak", "\xa4\x01\x9c\x01\""},
}
// bootstrap is the list of bootstrap packages extracted from cmd/dist.
@@ -408,6 +428,7 @@ var bootstrap = map[string]bool{
"cmd/compile/internal/logopt": true,
"cmd/compile/internal/loong64": true,
"cmd/compile/internal/loopvar": true,
"cmd/compile/internal/midway": true,
"cmd/compile/internal/mips": true,
"cmd/compile/internal/mips64": true,
"cmd/compile/internal/noder": true,
@@ -512,6 +533,7 @@ var bootstrap = map[string]bool{
"internal/race": true,
"internal/runtime/gc": true,
"internal/saferio": true,
"internal/strconv": true,
"internal/syscall/unix": true,
"internal/types/errors": true,
"internal/unsafeheader": true,
+286 -1
View File
@@ -270,6 +270,7 @@ var PackageSymbols = map[string][]Symbol{
{"ContainsRune", Func, 7, "func(b []byte, r rune) bool"},
{"Count", Func, 0, "func(s []byte, sep []byte) int"},
{"Cut", Func, 18, "func(s []byte, sep []byte) (before []byte, after []byte, found bool)"},
{"CutLast", Func, 27, "func(s []byte, sep []byte) (before []byte, after []byte, found bool)"},
{"CutPrefix", Func, 20, "func(s []byte, prefix []byte) (after []byte, found bool)"},
{"CutSuffix", Func, 20, "func(s []byte, suffix []byte) (before []byte, found bool)"},
{"Equal", Func, 0, "func(a []byte, b []byte) bool"},
@@ -538,6 +539,7 @@ var PackageSymbols = map[string][]Symbol{
{"MD4", Const, 0, ""},
{"MD5", Const, 0, ""},
{"MD5SHA1", Const, 0, ""},
{"MLDSAMu", Const, 27, ""},
{"MessageSigner", Type, 25, ""},
{"PrivateKey", Type, 0, ""},
{"PublicKey", Type, 2, ""},
@@ -812,6 +814,40 @@ var PackageSymbols = map[string][]Symbol{
{"Size", Const, 0, ""},
{"Sum", Func, 2, "func(data []byte) [16]byte"},
},
"crypto/mldsa": {
{"(*Options).HashFunc", Method, 27, ""},
{"(*PrivateKey).Bytes", Method, 27, ""},
{"(*PrivateKey).Equal", Method, 27, ""},
{"(*PrivateKey).Public", Method, 27, ""},
{"(*PrivateKey).PublicKey", Method, 27, ""},
{"(*PrivateKey).Sign", Method, 27, ""},
{"(*PrivateKey).SignDeterministic", Method, 27, ""},
{"(*PublicKey).Bytes", Method, 27, ""},
{"(*PublicKey).Equal", Method, 27, ""},
{"(*PublicKey).Parameters", Method, 27, ""},
{"(Parameters).PublicKeySize", Method, 27, ""},
{"(Parameters).SignatureSize", Method, 27, ""},
{"(Parameters).String", Method, 27, ""},
{"GenerateKey", Func, 27, "func(params Parameters) (*PrivateKey, error)"},
{"MLDSA44", Func, 27, "func() Parameters"},
{"MLDSA44PublicKeySize", Const, 27, ""},
{"MLDSA44SignatureSize", Const, 27, ""},
{"MLDSA65", Func, 27, "func() Parameters"},
{"MLDSA65PublicKeySize", Const, 27, ""},
{"MLDSA65SignatureSize", Const, 27, ""},
{"MLDSA87", Func, 27, "func() Parameters"},
{"MLDSA87PublicKeySize", Const, 27, ""},
{"MLDSA87SignatureSize", Const, 27, ""},
{"NewPrivateKey", Func, 27, "func(params Parameters, seed []byte) (*PrivateKey, error)"},
{"NewPublicKey", Func, 27, "func(params Parameters, encoding []byte) (*PublicKey, error)"},
{"Options", Type, 27, ""},
{"Options.Context", Field, 27, ""},
{"Parameters", Type, 27, ""},
{"PrivateKey", Type, 27, ""},
{"PrivateKeySize", Const, 27, ""},
{"PublicKey", Type, 27, ""},
{"Verify", Func, 27, "func(pk *PublicKey, message []byte, signature []byte, opts *Options) error"},
},
"crypto/mlkem": {
{"(*DecapsulationKey1024).Bytes", Method, 24, ""},
{"(*DecapsulationKey1024).Decapsulate", Method, 24, ""},
@@ -1120,6 +1156,7 @@ var PackageSymbols = map[string][]Symbol{
{"ConnectionState.ECHAccepted", Field, 23, ""},
{"ConnectionState.HandshakeComplete", Field, 0, ""},
{"ConnectionState.HelloRetryRequest", Field, 26, ""},
{"ConnectionState.LocalCertificate", Field, 27, ""},
{"ConnectionState.NegotiatedProtocol", Field, 0, ""},
{"ConnectionState.NegotiatedProtocolIsMutual", Field, 0, ""},
{"ConnectionState.OCSPResponse", Field, 5, ""},
@@ -1152,6 +1189,10 @@ var PackageSymbols = map[string][]Symbol{
{"InsecureCipherSuites", Func, 14, "func() []*CipherSuite"},
{"Listen", Func, 0, "func(network string, laddr string, config *Config) (net.Listener, error)"},
{"LoadX509KeyPair", Func, 0, "func(certFile string, keyFile string) (Certificate, error)"},
{"MLDSA44", Const, 27, ""},
{"MLDSA65", Const, 27, ""},
{"MLDSA87", Const, 27, ""},
{"MLKEM1024", Const, 27, ""},
{"NewLRUClientSessionCache", Func, 3, "func(capacity int) ClientSessionCache"},
{"NewListener", Func, 0, "func(inner net.Listener, config *Config) net.Listener"},
{"NewResumptionState", Func, 21, "func(ticket []byte, state *SessionState) (*ClientSessionState, error)"},
@@ -1166,6 +1207,7 @@ var PackageSymbols = map[string][]Symbol{
{"ParseSessionState", Func, 21, "func(data []byte) (*SessionState, error)"},
{"QUICClient", Func, 21, "func(config *QUICConfig) *QUICConn"},
{"QUICConfig", Type, 21, ""},
{"QUICConfig.ClientHelloInfoConn", Field, 27, ""},
{"QUICConfig.EnableSessionEvents", Field, 23, ""},
{"QUICConfig.TLSConfig", Field, 21, ""},
{"QUICConn", Type, 21, ""},
@@ -1334,6 +1376,7 @@ var PackageSymbols = map[string][]Symbol{
{"Certificate.PublicKeyAlgorithm", Field, 0, ""},
{"Certificate.Raw", Field, 0, ""},
{"Certificate.RawIssuer", Field, 0, ""},
{"Certificate.RawSignatureAlgorithm", Field, 27, ""},
{"Certificate.RawSubject", Field, 0, ""},
{"Certificate.RawSubjectPublicKeyInfo", Field, 0, ""},
{"Certificate.RawTBSCertificate", Field, 0, ""},
@@ -1362,6 +1405,7 @@ var PackageSymbols = map[string][]Symbol{
{"CertificateRequest.PublicKey", Field, 3, ""},
{"CertificateRequest.PublicKeyAlgorithm", Field, 3, ""},
{"CertificateRequest.Raw", Field, 3, ""},
{"CertificateRequest.RawSignatureAlgorithm", Field, 27, ""},
{"CertificateRequest.RawSubject", Field, 3, ""},
{"CertificateRequest.RawSubjectPublicKeyInfo", Field, 3, ""},
{"CertificateRequest.RawTBSCertificateRequest", Field, 3, ""},
@@ -1422,6 +1466,10 @@ var PackageSymbols = map[string][]Symbol{
{"KeyUsageKeyEncipherment", Const, 0, ""},
{"MD2WithRSA", Const, 0, ""},
{"MD5WithRSA", Const, 0, ""},
{"MLDSA", Const, 27, ""},
{"MLDSA44", Const, 27, ""},
{"MLDSA65", Const, 27, ""},
{"MLDSA87", Const, 27, ""},
{"MarshalECPrivateKey", Func, 2, "func(key *ecdsa.PrivateKey) ([]byte, error)"},
{"MarshalPKCS1PrivateKey", Func, 0, "func(key *rsa.PrivateKey) []byte"},
{"MarshalPKCS1PublicKey", Func, 10, "func(key *rsa.PublicKey) []byte"},
@@ -1468,6 +1516,7 @@ var PackageSymbols = map[string][]Symbol{
{"RevocationList.Number", Field, 15, ""},
{"RevocationList.Raw", Field, 19, ""},
{"RevocationList.RawIssuer", Field, 19, ""},
{"RevocationList.RawSignatureAlgorithm", Field, 27, ""},
{"RevocationList.RawTBSRevocationList", Field, 19, ""},
{"RevocationList.RevokedCertificateEntries", Field, 21, ""},
{"RevocationList.RevokedCertificates", Field, 15, ""},
@@ -1648,6 +1697,7 @@ var PackageSymbols = map[string][]Symbol{
{"(Scanner).Scan", Method, 0, ""},
{"ColumnType", Type, 8, ""},
{"Conn", Type, 9, ""},
{"ConvertAssign", Func, 27, "func(scanCtx driver.ScanContext, dest any, src driver.Value) error"},
{"DB", Type, 0, ""},
{"DBStats", Type, 5, ""},
{"DBStats.Idle", Field, 11, ""},
@@ -1744,6 +1794,11 @@ var PackageSymbols = map[string][]Symbol{
{"(Rows).Next", Method, 0, ""},
{"(RowsAffected).LastInsertId", Method, 0, ""},
{"(RowsAffected).RowsAffected", Method, 0, ""},
{"(RowsColumnScanner).Close", Method, 27, ""},
{"(RowsColumnScanner).Columns", Method, 27, ""},
{"(RowsColumnScanner).Next", Method, 27, ""},
{"(RowsColumnScanner).NextRow", Method, 27, ""},
{"(RowsColumnScanner).ScanColumn", Method, 27, ""},
{"(RowsColumnTypeDatabaseTypeName).Close", Method, 8, ""},
{"(RowsColumnTypeDatabaseTypeName).ColumnTypeDatabaseTypeName", Method, 8, ""},
{"(RowsColumnTypeDatabaseTypeName).Columns", Method, 8, ""},
@@ -1815,12 +1870,14 @@ var PackageSymbols = map[string][]Symbol{
{"ResultNoRows", Var, 0, ""},
{"Rows", Type, 0, ""},
{"RowsAffected", Type, 0, ""},
{"RowsColumnScanner", Type, 27, ""},
{"RowsColumnTypeDatabaseTypeName", Type, 8, ""},
{"RowsColumnTypeLength", Type, 8, ""},
{"RowsColumnTypeNullable", Type, 8, ""},
{"RowsColumnTypePrecisionScale", Type, 8, ""},
{"RowsColumnTypeScanType", Type, 8, ""},
{"RowsNextResultSet", Type, 8, ""},
{"ScanContext", Type, 27, ""},
{"SessionResetter", Type, 10, ""},
{"Stmt", Type, 0, ""},
{"StmtExecContext", Type, 8, ""},
@@ -5038,24 +5095,32 @@ var PackageSymbols = map[string][]Symbol{
{"(*InvalidUnmarshalError).Error", Method, 0, ""},
{"(*MarshalerError).Error", Method, 0, ""},
{"(*MarshalerError).Unwrap", Method, 13, ""},
{"(*Number).UnmarshalJSONFrom", Method, 27, ""},
{"(*RawMessage).MarshalJSON", Method, 0, ""},
{"(*RawMessage).UnmarshalJSON", Method, 0, ""},
{"(*SyntaxError).Error", Method, 0, ""},
{"(*UnmarshalFieldError).Error", Method, 0, ""},
{"(*UnmarshalTypeError).Error", Method, 0, ""},
{"(*UnmarshalTypeError).Unwrap", Method, 27, ""},
{"(*UnsupportedTypeError).Error", Method, 0, ""},
{"(*UnsupportedValueError).Error", Method, 0, ""},
{"(Delim).String", Method, 5, ""},
{"(Marshaler).MarshalJSON", Method, 0, ""},
{"(Number).Float64", Method, 1, ""},
{"(Number).Int64", Method, 1, ""},
{"(Number).MarshalJSONTo", Method, 27, ""},
{"(Number).String", Method, 1, ""},
{"(RawMessage).MarshalJSON", Method, 8, ""},
{"(Unmarshaler).UnmarshalJSON", Method, 0, ""},
{"CallMethodsWithLegacySemantics", Func, 27, "func(v bool) Options"},
{"Compact", Func, 0, "func(dst *bytes.Buffer, src []byte) error"},
{"Decoder", Type, 0, ""},
{"DefaultOptionsV1", Func, 27, "func() Options"},
{"Delim", Type, 5, ""},
{"Encoder", Type, 0, ""},
{"FormatByteArrayAsArray", Func, 27, "func(v bool) Options"},
{"FormatBytesWithLegacySemantics", Func, 27, "func(v bool) Options"},
{"FormatDurationAsNano", Func, 27, "func(v bool) Options"},
{"HTMLEscape", Func, 0, "func(dst *bytes.Buffer, src []byte)"},
{"Indent", Func, 0, "func(dst *bytes.Buffer, src []byte, prefix string, indent string) error"},
{"InvalidUTF8Error", Type, 0, ""},
@@ -5068,19 +5133,29 @@ var PackageSymbols = map[string][]Symbol{
{"MarshalerError", Type, 0, ""},
{"MarshalerError.Err", Field, 0, ""},
{"MarshalerError.Type", Field, 0, ""},
{"MatchCaseSensitiveDelimiter", Func, 27, "func(v bool) Options"},
{"MergeWithLegacySemantics", Func, 27, "func(v bool) Options"},
{"NewDecoder", Func, 0, "func(r io.Reader) *Decoder"},
{"NewEncoder", Func, 0, "func(w io.Writer) *Encoder"},
{"Number", Type, 1, ""},
{"OmitEmptyWithLegacySemantics", Func, 27, "func(v bool) Options"},
{"Options", Type, 27, ""},
{"ParseBytesWithLooseRFC4648", Func, 27, "func(v bool) Options"},
{"ParseTimeWithLooseRFC3339", Func, 27, "func(v bool) Options"},
{"RawMessage", Type, 0, ""},
{"ReportErrorsWithLegacySemantics", Func, 27, "func(v bool) Options"},
{"StringifyWithLegacySemantics", Func, 27, "func(v bool) Options"},
{"SyntaxError", Type, 0, ""},
{"SyntaxError.Offset", Field, 0, ""},
{"Token", Type, 5, ""},
{"Unmarshal", Func, 0, "func(data []byte, v any) error"},
{"UnmarshalArrayFromAnyLength", Func, 27, "func(v bool) Options"},
{"UnmarshalFieldError", Type, 0, ""},
{"UnmarshalFieldError.Field", Field, 0, ""},
{"UnmarshalFieldError.Key", Field, 0, ""},
{"UnmarshalFieldError.Type", Field, 0, ""},
{"UnmarshalTypeError", Type, 0, ""},
{"UnmarshalTypeError.Err", Field, 27, ""},
{"UnmarshalTypeError.Field", Field, 8, ""},
{"UnmarshalTypeError.Offset", Field, 5, ""},
{"UnmarshalTypeError.Struct", Field, 8, ""},
@@ -5094,6 +5169,158 @@ var PackageSymbols = map[string][]Symbol{
{"UnsupportedValueError.Value", Field, 0, ""},
{"Valid", Func, 9, "func(data []byte) bool"},
},
"encoding/json/jsontext": {
{"(*Decoder).InputOffset", Method, 27, ""},
{"(*Decoder).Options", Method, 27, ""},
{"(*Decoder).PeekKind", Method, 27, ""},
{"(*Decoder).ReadToken", Method, 27, ""},
{"(*Decoder).ReadValue", Method, 27, ""},
{"(*Decoder).Reset", Method, 27, ""},
{"(*Decoder).SkipValue", Method, 27, ""},
{"(*Decoder).StackDepth", Method, 27, ""},
{"(*Decoder).StackIndex", Method, 27, ""},
{"(*Decoder).StackPointer", Method, 27, ""},
{"(*Decoder).UnreadBuffer", Method, 27, ""},
{"(*Encoder).AvailableBuffer", Method, 27, ""},
{"(*Encoder).Options", Method, 27, ""},
{"(*Encoder).OutputOffset", Method, 27, ""},
{"(*Encoder).Reset", Method, 27, ""},
{"(*Encoder).StackDepth", Method, 27, ""},
{"(*Encoder).StackIndex", Method, 27, ""},
{"(*Encoder).StackPointer", Method, 27, ""},
{"(*Encoder).WriteToken", Method, 27, ""},
{"(*Encoder).WriteValue", Method, 27, ""},
{"(*SyntacticError).Error", Method, 27, ""},
{"(*SyntacticError).Unwrap", Method, 27, ""},
{"(*Value).Canonicalize", Method, 27, ""},
{"(*Value).Compact", Method, 27, ""},
{"(*Value).Format", Method, 27, ""},
{"(*Value).Indent", Method, 27, ""},
{"(*Value).UnmarshalJSON", Method, 27, ""},
{"(Kind).String", Method, 27, ""},
{"(Pointer).AppendToken", Method, 27, ""},
{"(Pointer).Contains", Method, 27, ""},
{"(Pointer).IsValid", Method, 27, ""},
{"(Pointer).LastToken", Method, 27, ""},
{"(Pointer).Parent", Method, 27, ""},
{"(Pointer).Tokens", Method, 27, ""},
{"(Token).Bool", Method, 27, ""},
{"(Token).Clone", Method, 27, ""},
{"(Token).Float", Method, 27, ""},
{"(Token).Float32", Method, 27, ""},
{"(Token).Int", Method, 27, ""},
{"(Token).Kind", Method, 27, ""},
{"(Token).String", Method, 27, ""},
{"(Token).Uint", Method, 27, ""},
{"(Value).Clone", Method, 27, ""},
{"(Value).IsValid", Method, 27, ""},
{"(Value).Kind", Method, 27, ""},
{"(Value).MarshalJSON", Method, 27, ""},
{"(Value).String", Method, 27, ""},
{"AllowDuplicateNames", Func, 27, "func(v bool) Options"},
{"AllowInvalidUTF8", Func, 27, "func(v bool) Options"},
{"AppendFloat", Func, 27, "func(dst []byte, src float64, bits int) []byte"},
{"AppendFormat", Func, 27, "func[Bytes ~[]byte | ~string](dst []byte, src Bytes, opts ...Options) ([]byte, error)"},
{"AppendQuote", Func, 27, "func[Bytes ~[]byte | ~string](dst []byte, src Bytes) ([]byte, error)"},
{"AppendUnquote", Func, 27, "func[Bytes ~[]byte | ~string](dst []byte, src Bytes) ([]byte, error)"},
{"BeginArray", Var, 27, ""},
{"BeginObject", Var, 27, ""},
{"Bool", Func, 27, "func(b bool) Token"},
{"CanonicalizeRawFloats", Func, 27, "func(v bool) Options"},
{"CanonicalizeRawInts", Func, 27, "func(v bool) Options"},
{"Decoder", Type, 27, ""},
{"Encoder", Type, 27, ""},
{"EndArray", Var, 27, ""},
{"EndObject", Var, 27, ""},
{"ErrDuplicateName", Var, 27, ""},
{"ErrNonStringName", Var, 27, ""},
{"EscapeForHTML", Func, 27, "func(v bool) Options"},
{"EscapeForJS", Func, 27, "func(v bool) Options"},
{"False", Var, 27, ""},
{"Float", Func, 27, "func(n float64) Token"},
{"Float32", Func, 27, "func(n float32) Token"},
{"Int", Func, 27, "func(n int64) Token"},
{"Internal", Var, 27, ""},
{"Kind", Type, 27, ""},
{"KindBeginArray", Const, 27, ""},
{"KindBeginObject", Const, 27, ""},
{"KindEndArray", Const, 27, ""},
{"KindEndObject", Const, 27, ""},
{"KindFalse", Const, 27, ""},
{"KindInvalid", Const, 27, ""},
{"KindNull", Const, 27, ""},
{"KindNumber", Const, 27, ""},
{"KindString", Const, 27, ""},
{"KindTrue", Const, 27, ""},
{"Multiline", Func, 27, "func(v bool) Options"},
{"NewDecoder", Func, 27, "func(r io.Reader, opts ...Options) *Decoder"},
{"NewEncoder", Func, 27, "func(w io.Writer, opts ...Options) *Encoder"},
{"Null", Var, 27, ""},
{"Options", Type, 27, ""},
{"Pointer", Type, 27, ""},
{"PreserveRawStrings", Func, 27, "func(v bool) Options"},
{"ReorderRawObjects", Func, 27, "func(v bool) Options"},
{"SpaceAfterColon", Func, 27, "func(v bool) Options"},
{"SpaceAfterComma", Func, 27, "func(v bool) Options"},
{"String", Func, 27, "func(s string) Token"},
{"SyntacticError", Type, 27, ""},
{"SyntacticError.ByteOffset", Field, 27, ""},
{"SyntacticError.Err", Field, 27, ""},
{"SyntacticError.JSONPointer", Field, 27, ""},
{"Token", Type, 27, ""},
{"True", Var, 27, ""},
{"Uint", Func, 27, "func(n uint64) Token"},
{"Value", Type, 27, ""},
{"WithIndent", Func, 27, "func(indent string) Options"},
{"WithIndentPrefix", Func, 27, "func(prefix string) Options"},
},
"encoding/json/v2": {
{"(*SemanticError).Error", Method, 27, ""},
{"(*SemanticError).Unwrap", Method, 27, ""},
{"(Marshaler).MarshalJSON", Method, 27, ""},
{"(MarshalerTo).MarshalJSONTo", Method, 27, ""},
{"(Unmarshaler).UnmarshalJSON", Method, 27, ""},
{"(UnmarshalerFrom).UnmarshalJSONFrom", Method, 27, ""},
{"DefaultOptionsV2", Func, 27, "func() Options"},
{"Deterministic", Func, 27, "func(v bool) Options"},
{"ErrUnknownName", Var, 27, ""},
{"FormatNilMapAsNull", Func, 27, "func(v bool) Options"},
{"FormatNilSliceAsNull", Func, 27, "func(v bool) Options"},
{"GetOption", Func, 27, "func[T any](opts Options, setter func(T) Options) (T, bool)"},
{"JoinMarshalers", Func, 27, "func(ms ...*Marshalers) *Marshalers"},
{"JoinOptions", Func, 27, "func(srcs ...Options) Options"},
{"JoinUnmarshalers", Func, 27, "func(us ...*Unmarshalers) *Unmarshalers"},
{"Marshal", Func, 27, "func(in any, opts ...Options) (out []byte, err error)"},
{"MarshalEncode", Func, 27, "func(out *jsontext.Encoder, in any, opts ...Options) (err error)"},
{"MarshalFunc", Func, 27, "func[T any](fn func(T) ([]byte, error)) *Marshalers"},
{"MarshalToFunc", Func, 27, "func[T any](fn func(*jsontext.Encoder, T) error) *Marshalers"},
{"MarshalWrite", Func, 27, "func(out io.Writer, in any, opts ...Options) (err error)"},
{"Marshaler", Type, 27, ""},
{"MarshalerTo", Type, 27, ""},
{"Marshalers", Type, 27, ""},
{"MatchCaseInsensitiveNames", Func, 27, "func(v bool) Options"},
{"OmitZeroStructFields", Func, 27, "func(v bool) Options"},
{"Options", Type, 27, ""},
{"RejectUnknownMembers", Func, 27, "func(v bool) Options"},
{"SemanticError", Type, 27, ""},
{"SemanticError.ByteOffset", Field, 27, ""},
{"SemanticError.Err", Field, 27, ""},
{"SemanticError.GoType", Field, 27, ""},
{"SemanticError.JSONKind", Field, 27, ""},
{"SemanticError.JSONPointer", Field, 27, ""},
{"SemanticError.JSONValue", Field, 27, ""},
{"StringifyNumbers", Func, 27, "func(v bool) Options"},
{"Unmarshal", Func, 27, "func(in []byte, out any, opts ...Options) (err error)"},
{"UnmarshalDecode", Func, 27, "func(in *jsontext.Decoder, out any, opts ...Options) (err error)"},
{"UnmarshalFromFunc", Func, 27, "func[T any](fn func(*jsontext.Decoder, T) error) *Unmarshalers"},
{"UnmarshalFunc", Func, 27, "func[T any](fn func([]byte, T) error) *Unmarshalers"},
{"UnmarshalRead", Func, 27, "func(in io.Reader, out any, opts ...Options) (err error)"},
{"Unmarshaler", Type, 27, ""},
{"UnmarshalerFrom", Type, 27, ""},
{"Unmarshalers", Type, 27, ""},
{"WithMarshalers", Func, 27, "func(v *Marshalers) Options"},
{"WithUnmarshalers", Func, 27, "func(v *Unmarshalers) Options"},
},
"encoding/pem": {
{"Block", Type, 0, ""},
{"Block.Bytes", Field, 0, ""},
@@ -6002,6 +6229,7 @@ var PackageSymbols = map[string][]Symbol{
{"Shift", Func, 5, "func(x Value, op token.Token, s uint) Value"},
{"Sign", Func, 5, "func(x Value) int"},
{"String", Const, 5, ""},
{"StringLen", Func, 27, "func(x Value) int64"},
{"StringVal", Func, 5, "func(x Value) string"},
{"ToComplex", Func, 6, "func(x Value) Value"},
{"ToFloat", Func, 6, "func(x Value) Value"},
@@ -6183,6 +6411,7 @@ var PackageSymbols = map[string][]Symbol{
{"(*ErrorList).Add", Method, 0, ""},
{"(*ErrorList).RemoveMultiples", Method, 0, ""},
{"(*ErrorList).Reset", Method, 0, ""},
{"(*Scanner).End", Method, 27, ""},
{"(*Scanner).Init", Method, 0, ""},
{"(*Scanner).Scan", Method, 0, ""},
{"(Error).Error", Method, 0, ""},
@@ -6222,6 +6451,7 @@ var PackageSymbols = map[string][]Symbol{
{"(*File).SetLines", Method, 0, ""},
{"(*File).SetLinesForContent", Method, 0, ""},
{"(*File).Size", Method, 0, ""},
{"(*File).String", Method, 27, ""},
{"(*FileSet).AddExistingFiles", Method, 25, ""},
{"(*FileSet).AddFile", Method, 0, ""},
{"(*FileSet).Base", Method, 0, ""},
@@ -6529,6 +6759,7 @@ var PackageSymbols = map[string][]Symbol{
{"(*Tuple).Variables", Method, 24, ""},
{"(*TypeList).At", Method, 18, ""},
{"(*TypeList).Len", Method, 18, ""},
{"(*TypeList).String", Method, 27, ""},
{"(*TypeList).Types", Method, 24, ""},
{"(*TypeName).Exported", Method, 5, ""},
{"(*TypeName).Id", Method, 5, ""},
@@ -6547,6 +6778,7 @@ var PackageSymbols = map[string][]Symbol{
{"(*TypeParam).Underlying", Method, 18, ""},
{"(*TypeParamList).At", Method, 18, ""},
{"(*TypeParamList).Len", Method, 18, ""},
{"(*TypeParamList).String", Method, 27, ""},
{"(*TypeParamList).TypeParams", Method, 24, ""},
{"(*Union).Len", Method, 18, ""},
{"(*Union).String", Method, 18, ""},
@@ -6571,9 +6803,14 @@ var PackageSymbols = map[string][]Symbol{
{"(Checker).PkgNameOf", Method, 22, ""},
{"(Checker).TypeOf", Method, 5, ""},
{"(Error).Error", Method, 5, ""},
{"(Hasher).Equal", Method, 27, ""},
{"(Hasher).Hash", Method, 27, ""},
{"(HasherIgnoreTags).Equal", Method, 27, ""},
{"(HasherIgnoreTags).Hash", Method, 27, ""},
{"(Importer).Import", Method, 5, ""},
{"(ImporterFrom).Import", Method, 6, ""},
{"(ImporterFrom).ImportFrom", Method, 6, ""},
{"(Instance).String", Method, 27, ""},
{"(Object).Exported", Method, 5, ""},
{"(Object).Id", Method, 5, ""},
{"(Object).Name", Method, 5, ""},
@@ -6643,6 +6880,8 @@ var PackageSymbols = map[string][]Symbol{
{"Float32", Const, 5, ""},
{"Float64", Const, 5, ""},
{"Func", Type, 5, ""},
{"Hasher", Type, 27, ""},
{"HasherIgnoreTags", Type, 27, ""},
{"Id", Func, 5, "func(pkg *Package, name string) string"},
{"Identical", Func, 5, "func(x Type, y Type) bool"},
{"IdenticalIgnoreTags", Func, 8, "func(x Type, y Type) bool"},
@@ -6877,9 +7116,13 @@ var PackageSymbols = map[string][]Symbol{
{"(*Hash).Write", Method, 14, ""},
{"(*Hash).WriteByte", Method, 14, ""},
{"(*Hash).WriteString", Method, 14, ""},
{"(ComparableHasher).Equal", Method, 27, ""},
{"(ComparableHasher).Hash", Method, 27, ""},
{"Bytes", Func, 19, "func(seed Seed, b []byte) uint64"},
{"Comparable", Func, 24, "func[T comparable](seed Seed, v T) uint64"},
{"ComparableHasher", Type, 27, ""},
{"Hash", Type, 14, ""},
{"Hasher", Type, 27, ""},
{"MakeSeed", Func, 14, "func() Seed"},
{"Seed", Type, 14, ""},
{"String", Func, 19, "func(seed Seed, s string) uint64"},
@@ -8035,6 +8278,7 @@ var PackageSymbols = map[string][]Symbol{
{"(*Int).CmpAbs", Method, 10, ""},
{"(*Int).Div", Method, 0, ""},
{"(*Int).DivMod", Method, 0, ""},
{"(*Int).Divide", Method, 27, ""},
{"(*Int).Exp", Method, 0, ""},
{"(*Int).FillBytes", Method, 15, ""},
{"(*Int).Float64", Method, 21, ""},
@@ -8119,9 +8363,11 @@ var PackageSymbols = map[string][]Symbol{
{"Accuracy", Type, 5, ""},
{"AwayFromZero", Const, 5, ""},
{"Below", Const, 5, ""},
{"Ceil", Const, 27, ""},
{"ErrNaN", Type, 5, ""},
{"Exact", Const, 5, ""},
{"Float", Type, 5, ""},
{"Floor", Const, 27, ""},
{"Int", Type, 0, ""},
{"Jacobi", Func, 5, "func(x *Int, y *Int) int"},
{"MaxBase", Const, 0, ""},
@@ -8133,12 +8379,14 @@ var PackageSymbols = map[string][]Symbol{
{"NewRat", Func, 0, "func(a int64, b int64) *Rat"},
{"ParseFloat", Func, 5, "func(s string, base int, prec uint, mode RoundingMode) (f *Float, b int, err error)"},
{"Rat", Type, 0, ""},
{"Round", Const, 27, ""},
{"RoundingMode", Type, 5, ""},
{"ToNearestAway", Const, 5, ""},
{"ToNearestEven", Const, 5, ""},
{"ToNegativeInf", Const, 5, ""},
{"ToPositiveInf", Const, 5, ""},
{"ToZero", Const, 5, ""},
{"Trunc", Const, 27, ""},
{"Word", Type, 0, ""},
},
"math/bits": {
@@ -8290,6 +8538,7 @@ var PackageSymbols = map[string][]Symbol{
{"(*Rand).Int64", Method, 22, ""},
{"(*Rand).Int64N", Method, 22, ""},
{"(*Rand).IntN", Method, 22, ""},
{"(*Rand).N", Method, 27, ""},
{"(*Rand).NormFloat64", Method, 22, ""},
{"(*Rand).Perm", Method, 22, ""},
{"(*Rand).Shuffle", Method, 22, ""},
@@ -8985,7 +9234,7 @@ var PackageSymbols = map[string][]Symbol{
{"NoBody", Var, 8, ""},
{"NotFound", Func, 0, "func(w ResponseWriter, r *Request)"},
{"NotFoundHandler", Func, 0, "func() Handler"},
{"ParseCookie", Func, 23, "func(line string) ([]*Cookie, error)"},
{"ParseCookie", Func, 23, "func(line string) (#rv1 []*Cookie, #rv2 error)"},
{"ParseHTTPVersion", Func, 0, "func(vers string) (major int, minor int, ok bool)"},
{"ParseSetCookie", Func, 23, "func(line string) (*Cookie, error)"},
{"ParseTime", Func, 1, "func(text string) (t time.Time, err error)"},
@@ -9061,6 +9310,7 @@ var PackageSymbols = map[string][]Symbol{
{"Server.BaseContext", Field, 13, ""},
{"Server.ConnContext", Field, 13, ""},
{"Server.ConnState", Field, 3, ""},
{"Server.DisableClientPriority", Field, 27, ""},
{"Server.DisableGeneralOptionsHandler", Field, 20, ""},
{"Server.ErrorLog", Field, 3, ""},
{"Server.HTTP2", Field, 24, ""},
@@ -9226,6 +9476,7 @@ var PackageSymbols = map[string][]Symbol{
{"NewRequestWithContext", Func, 23, "func(ctx context.Context, method string, target string, body io.Reader) *http.Request"},
{"NewServer", Func, 0, "func(handler http.Handler) *Server"},
{"NewTLSServer", Func, 0, "func(handler http.Handler) *Server"},
{"NewTestServer", Func, 27, "func(t testing.TB, handler http.Handler) *Server"},
{"NewUnstartedServer", Func, 0, "func(handler http.Handler) *Server"},
{"ResponseRecorder", Type, 0, ""},
{"ResponseRecorder.Body", Field, 0, ""},
@@ -9596,6 +9847,7 @@ var PackageSymbols = map[string][]Symbol{
{"(*Error).Timeout", Method, 6, ""},
{"(*Error).Unwrap", Method, 13, ""},
{"(*URL).AppendBinary", Method, 24, ""},
{"(*URL).Clone", Method, 27, ""},
{"(*URL).EscapedFragment", Method, 15, ""},
{"(*URL).EscapedPath", Method, 5, ""},
{"(*URL).Hostname", Method, 8, ""},
@@ -9616,6 +9868,7 @@ var PackageSymbols = map[string][]Symbol{
{"(EscapeError).Error", Method, 0, ""},
{"(InvalidHostError).Error", Method, 6, ""},
{"(Values).Add", Method, 0, ""},
{"(Values).Clone", Method, 27, ""},
{"(Values).Del", Method, 0, ""},
{"(Values).Encode", Method, 0, ""},
{"(Values).Get", Method, 0, ""},
@@ -10793,6 +11046,7 @@ var PackageSymbols = map[string][]Symbol{
{"ContainsRune", Func, 0, "func(s string, r rune) bool"},
{"Count", Func, 0, "func(s string, substr string) int"},
{"Cut", Func, 18, "func(s string, sep string) (before string, after string, found bool)"},
{"CutLast", Func, 27, "func(s string, sep string) (before string, after string, found bool)"},
{"CutPrefix", Func, 20, "func(s string, prefix string) (after string, found bool)"},
{"CutSuffix", Func, 20, "func(s string, suffix string) (before string, found bool)"},
{"EqualFold", Func, 0, "func(s string, t string) bool"},
@@ -17476,6 +17730,7 @@ var PackageSymbols = map[string][]Symbol{
{"TestHandler", Func, 21, "func(h slog.Handler, results func() []map[string]any) error"},
},
"testing/synctest": {
{"Sleep", Func, 27, "func(d time.Duration)"},
{"Test", Func, 25, "func(t *testing.T, f func(*testing.T))"},
{"Wait", Func, 25, "func()"},
},
@@ -17980,6 +18235,7 @@ var PackageSymbols = map[string][]Symbol{
{"Bassa_Vah", Var, 4, ""},
{"Batak", Var, 0, ""},
{"Bengali", Var, 0, ""},
{"Beria_Erfe", Var, 27, ""},
{"Bhaiksuki", Var, 7, ""},
{"Bidi_Control", Var, 0, ""},
{"Bopomofo", Var, 0, ""},
@@ -18029,6 +18285,7 @@ var PackageSymbols = map[string][]Symbol{
{"Extender", Var, 0, ""},
{"FoldCategory", Var, 0, ""},
{"FoldScript", Var, 0, ""},
{"Garay", Var, 27, ""},
{"Georgian", Var, 0, ""},
{"Glagolitic", Var, 0, ""},
{"Gothic", Var, 0, ""},
@@ -18038,6 +18295,7 @@ var PackageSymbols = map[string][]Symbol{
{"Gujarati", Var, 0, ""},
{"Gunjala_Gondi", Var, 13, ""},
{"Gurmukhi", Var, 0, ""},
{"Gurung_Khema", Var, 27, ""},
{"Han", Var, 0, ""},
{"Hangul", Var, 0, ""},
{"Hanifi_Rohingya", Var, 13, ""},
@@ -18049,6 +18307,9 @@ var PackageSymbols = map[string][]Symbol{
{"Hyphen", Var, 0, ""},
{"IDS_Binary_Operator", Var, 0, ""},
{"IDS_Trinary_Operator", Var, 0, ""},
{"IDS_Unary_Operator", Var, 27, ""},
{"ID_Compat_Math_Continue", Var, 27, ""},
{"ID_Compat_Math_Start", Var, 27, ""},
{"Ideographic", Var, 0, ""},
{"Imperial_Aramaic", Var, 0, ""},
{"In", Func, 2, "func(r rune, ranges ...*RangeTable) bool"},
@@ -18082,6 +18343,7 @@ var PackageSymbols = map[string][]Symbol{
{"Khmer", Var, 0, ""},
{"Khojki", Var, 4, ""},
{"Khudawadi", Var, 4, ""},
{"Kirat_Rai", Var, 27, ""},
{"L", Var, 0, ""},
{"LC", Var, 25, ""},
{"Lao", Var, 0, ""},
@@ -18125,6 +18387,7 @@ var PackageSymbols = map[string][]Symbol{
{"Miao", Var, 1, ""},
{"Mn", Var, 0, ""},
{"Modi", Var, 4, ""},
{"Modifier_Combining_Mark", Var, 27, ""},
{"Mongolian", Var, 0, ""},
{"Mro", Var, 4, ""},
{"Multani", Var, 5, ""},
@@ -18145,6 +18408,7 @@ var PackageSymbols = map[string][]Symbol{
{"Nyiakeng_Puachue_Hmong", Var, 14, ""},
{"Ogham", Var, 0, ""},
{"Ol_Chiki", Var, 0, ""},
{"Ol_Onal", Var, 27, ""},
{"Old_Hungarian", Var, 5, ""},
{"Old_Italic", Var, 0, ""},
{"Old_North_Arabian", Var, 4, ""},
@@ -18214,6 +18478,7 @@ var PackageSymbols = map[string][]Symbol{
{"Sharada", Var, 1, ""},
{"Shavian", Var, 0, ""},
{"Siddham", Var, 4, ""},
{"Sidetic", Var, 27, ""},
{"SignWriting", Var, 5, ""},
{"SimpleFold", Func, 0, "func(r rune) rune"},
{"Sinhala", Var, 0, ""},
@@ -18227,6 +18492,7 @@ var PackageSymbols = map[string][]Symbol{
{"Space", Var, 0, ""},
{"SpecialCase", Type, 0, ""},
{"Sundanese", Var, 0, ""},
{"Sunuwar", Var, 27, ""},
{"Syloti_Nagri", Var, 0, ""},
{"Symbol", Var, 0, ""},
{"Syriac", Var, 0, ""},
@@ -18235,6 +18501,7 @@ var PackageSymbols = map[string][]Symbol{
{"Tai_Le", Var, 0, ""},
{"Tai_Tham", Var, 0, ""},
{"Tai_Viet", Var, 0, ""},
{"Tai_Yo", Var, 27, ""},
{"Takri", Var, 1, ""},
{"Tamil", Var, 0, ""},
{"Tangsa", Var, 21, ""},
@@ -18252,7 +18519,10 @@ var PackageSymbols = map[string][]Symbol{
{"ToLower", Func, 0, "func(r rune) rune"},
{"ToTitle", Func, 0, "func(r rune) rune"},
{"ToUpper", Func, 0, "func(r rune) rune"},
{"Todhri", Var, 27, ""},
{"Tolong_Siki", Var, 27, ""},
{"Toto", Var, 21, ""},
{"Tulu_Tigalari", Var, 27, ""},
{"TurkishCase", Var, 0, ""},
{"Ugaritic", Var, 0, ""},
{"Unified_Ideograph", Var, 0, ""},
@@ -18320,6 +18590,21 @@ var PackageSymbols = map[string][]Symbol{
{"String", Func, 0, ""},
{"StringData", Func, 0, ""},
},
"uuid": {
{"(*UUID).UnmarshalText", Method, 27, ""},
{"(UUID).AppendText", Method, 27, ""},
{"(UUID).Compare", Method, 27, ""},
{"(UUID).MarshalText", Method, 27, ""},
{"(UUID).String", Method, 27, ""},
{"Max", Func, 27, "func() UUID"},
{"MustParse", Func, 27, "func(s string) UUID"},
{"New", Func, 27, "func() UUID"},
{"NewV4", Func, 27, "func() UUID"},
{"NewV7", Func, 27, "func() UUID"},
{"Nil", Func, 27, "func() UUID"},
{"Parse", Func, 27, "func(s string) (UUID, error)"},
{"UUID", Type, 27, ""},
},
"weak": {
{"(Pointer).Value", Method, 24, ""},
{"Make", Func, 24, "func[T any](ptr *T) Pointer[T]"},
+6 -2
View File
@@ -37,6 +37,10 @@ func ForEachElement(rtypes *typeutil.Map, msets *typeutil.MethodSetCache, T type
tmset := msets.MethodSet(T)
for method := range tmset.Methods() {
sig := method.Type().(*types.Signature)
if sig.TypeParams() != nil {
continue // skip type-parameterized methods
}
// It is tempting to call visit(sig, false)
// but, as noted in golang.org/cl/65450043,
// the Signature.Recv field is ignored by
@@ -123,10 +127,10 @@ func ForEachElement(rtypes *typeutil.Map, msets *typeutil.MethodSetCache, T type
case *types.TypeParam, *types.Union:
// forEachReachable must not be called on parameterized types.
panic(T)
panic(fmt.Sprintf("ForEachElement called on type containing %T", T))
default:
panic(T)
panic(fmt.Sprintf("ForEachElement called on unexpected type %T", T))
}
}
visit(T, false)
+28
View File
@@ -22,6 +22,7 @@ import (
"go/ast"
"go/token"
"go/types"
"iter"
"reflect"
"golang.org/x/tools/go/ast/inspector"
@@ -242,3 +243,30 @@ func ObjectKind(obj types.Object) string {
}
return "unknown symbol"
}
// ImplicitFieldSelections returns the sequence of implicit embedded fields
// traversed by the given selection. It skips the final leaf field or method.
// The boolean component indicates whether the traversal traversed a pointer.
func ImplicitFieldSelections(seln types.Selection) iter.Seq2[*types.Var, bool] {
return func(yield func(*types.Var, bool) bool) {
var (
t = seln.Recv()
indices = seln.Index()
)
for _, idx := range indices[:len(indices)-1] {
ptr, isPtr := t.Underlying().(*types.Pointer)
if isPtr {
t = ptr.Elem()
}
structType, ok := t.Underlying().(*types.Struct)
if !ok {
break
}
field := structType.Field(idx)
if !yield(field, isPtr) {
break
}
t = field.Type()
}
}
}
+8 -8
View File
@@ -259,13 +259,13 @@ func TypeExpr(t types.Type, qual types.Qualifier) ast.Expr {
case *types.Signature:
var params []*ast.Field
for v := range t.Params().Variables() {
var names []*ast.Ident
if v.Name() != "" {
names = []*ast.Ident{ast.NewIdent(v.Name())}
}
params = append(params, &ast.Field{
Type: TypeExpr(v.Type(), qual),
Names: []*ast.Ident{
{
Name: v.Name(),
},
},
Type: TypeExpr(v.Type(), qual),
Names: names,
})
}
if t.Variadic() {
@@ -328,10 +328,10 @@ func TypeExpr(t types.Type, qual types.Qualifier) ast.Expr {
return expr
case *types.Struct:
return ast.NewIdent(t.String())
return ast.NewIdent(types.TypeString(t, qual))
case *types.Interface:
return ast.NewIdent(t.String())
return ast.NewIdent(types.TypeString(t, qual))
case *types.Union:
if t.Len() == 0 {
+3 -3
View File
@@ -2296,7 +2296,7 @@ golang.org/x/image/vector
golang.org/x/image/vp8
golang.org/x/image/vp8l
golang.org/x/image/webp
# golang.org/x/mod v0.36.0
# golang.org/x/mod v0.37.0
## explicit; go 1.25.0
golang.org/x/mod/internal/lazyregexp
golang.org/x/mod/module
@@ -2349,7 +2349,7 @@ golang.org/x/sys/windows/svc/mgr
# golang.org/x/term v0.44.0
## explicit; go 1.25.0
golang.org/x/term
# golang.org/x/text v0.38.0
# golang.org/x/text v0.39.0
## explicit; go 1.25.0
golang.org/x/text/cases
golang.org/x/text/encoding
@@ -2377,7 +2377,7 @@ golang.org/x/text/width
# golang.org/x/time v0.15.0
## explicit; go 1.25.0
golang.org/x/time/rate
# golang.org/x/tools v0.45.0
# golang.org/x/tools v0.47.0
## explicit; go 1.25.0
golang.org/x/tools/cover
golang.org/x/tools/go/ast/astutil
+3 -3
View File
@@ -91,7 +91,7 @@
"vue": "3.5.29",
"vue-demi": "0.14.10",
"vue-tsc": "3.1.4",
"vue3-gettext": "2.4.0"
"vue3-gettext": "^4.0.1"
},
"engines": {
"node": ">=24.15.0"
@@ -117,8 +117,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":"بحث"},"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
+1 -1
View File
@@ -100,7 +100,7 @@
"vue-inline-svg": "^4.0.1",
"vue-router": "^5.0.6",
"vue-select": "4.0.0-beta.6",
"vue3-gettext": "^2.4.0",
"vue3-gettext": "^4.0.1",
"webfontloader": "^1.6.28"
},
"devDependencies": {
@@ -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>
@@ -8,8 +8,8 @@ exports[`OcBreadcrumb > displays all items 1`] = `
<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>
<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>
<li data-key="1" aria-hidden="true" inert="" tabindex="-1" class="oc-breadcrumb-list-item oc-flex oc-flex-middle oc-invisible-sr">
<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>
@@ -44,8 +44,8 @@ exports[`OcBreadcrumb > sets correct variation 1`] = `
<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>
<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>
<li data-key="1" aria-hidden="true" inert="" tabindex="-1" class="oc-breadcrumb-list-item oc-flex oc-flex-middle oc-invisible-sr">
<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"
>
@@ -84,14 +84,7 @@ interface Props {
type?: string
size?: AvailableSizeType | string
variation?:
| 'passive'
| 'primary'
| 'danger'
| 'success'
| 'warning'
| 'brand'
| 'inherit'
| string
'passive' | 'primary' | 'danger' | 'success' | 'warning' | 'brand' | 'inherit' | string
color?: string
}
interface Emits {
@@ -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>
@@ -175,11 +175,9 @@ const passwordPolicySummary = computed(() => {
}
const messages = unmetRequirements.map((rule) => getPasswordPolicyRuleMessage(rule))
return $gettext(
'Password requirements: %{requirements}',
{ requirements: messages.join(', ') },
true
)
return $gettext('Password requirements: %{requirements}', {
requirements: messages.join(', ')
})
})
const getPasswordPolicyRuleMessage = (rule: PasswordPolicyRule) => {
@@ -189,7 +187,7 @@ const getPasswordPolicyRuleMessage = (rule: PasswordPolicyRule) => {
paramObj[`param${formatKey + 1}`] = rule.format[formatKey]?.toString()
}
return $gettext(rule.message, paramObj, true)
return $gettext(rule.message, paramObj)
}
const copyPasswordToClipboard = () => {
@@ -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
])
@@ -85,10 +85,4 @@ export interface BreadcrumbItem {
}
export type AvailableSizeType =
| 'xsmall'
| 'small'
| 'medium'
| 'large'
| 'xlarge'
| 'xxlarge'
| 'xxxlarge'
'xsmall' | 'small' | 'medium' | 'large' | 'xlarge' | 'xxlarge' | 'xxxlarge'
@@ -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":{},"ar":{},"bs":{},"cs":{"Activities":"Aktivity"},"bg":{"Activities":"Дейности"},"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."},"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."},"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":{},"si":{},"ru":{"Activities":"Активности","Activity unknown":"Неизвестная деятельность","Filter location":"Фильтр местоположения","Location":"Местоположение","No activities found":"Нет найденных активностей","The resource is unavailable, it may have been deleted.":"Ресурс недоступен, возможно, он был удален."},"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
View File
@@ -15,6 +15,6 @@
"luxon": "^3.7.2",
"vue-concurrency": "^5.0.3",
"vue-router": "^5.0.6",
"vue3-gettext": "^2.4.0"
"vue3-gettext": "^4.0.1"
}
}
@@ -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":{},"bs":{},"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
@@ -408,7 +408,7 @@ export default defineComponent({
this.sortDir = event.sortDir
},
getSelectGroupLabel(group: Group) {
return this.$gettext('Select %{ group }', { group: group.displayName }, true)
return this.$gettext('Select %{ group }', { group: group.displayName })
}
}
})
@@ -2,7 +2,7 @@
<div class="oc-mt-xl">
<div v-if="noGroups" class="oc-flex group-info oc-text-center">
<oc-icon name="group-2" size="xxlarge" />
<p v-translate>Select a group to view details</p>
<p>{{ $gettext('Select a group to view details') }}</p>
</div>
<div v-if="multipleGroups" class="oc-flex group-info">
<oc-icon name="group-2" size="xxlarge" />
@@ -375,7 +375,7 @@ const getMemberCount = (space: SpaceResource) => {
}
const getSelectSpaceLabel = (space: SpaceResource) => {
return $gettext('Select %{ space }', { space: space.name }, true)
return $gettext('Select %{ space }', { space: space.name })
}
onMounted(() => {
@@ -82,8 +82,7 @@ const onConfirm = async () => {
'%{groupAssignmentCount} group assignment was added successfully',
'%{groupAssignmentCount} group assignments were added successfully',
succeeded.length,
{ groupAssignmentCount: succeeded.length.toString() },
true
{ groupAssignmentCount: succeeded.length.toString() }
)
showMessage({ title })
}
@@ -101,8 +100,7 @@ const onConfirm = async () => {
'Failed to add %{groupAssignmentCount} group assignment',
'Failed to add %{groupAssignmentCount} group assignments',
failed.length,
{ groupAssignmentCount: failed.length.toString() },
true
{ groupAssignmentCount: failed.length.toString() }
)
showErrorMessage({
title,
@@ -94,8 +94,7 @@ const onConfirm = async () => {
'%{userCount} user login was edited successfully',
'%{userCount} users logins edited successfully',
succeeded.length,
{ userCount: succeeded.length.toString() },
true
{ userCount: succeeded.length.toString() }
)
showMessage({ title })
}
@@ -117,8 +116,7 @@ const onConfirm = async () => {
'Failed to edit %{userCount} user login',
'Failed to edit %{userCount} user logins',
failed.length,
{ userCount: failed.length.toString() },
true
{ userCount: failed.length.toString() }
)
showErrorMessage({
title,
@@ -82,8 +82,7 @@ const onConfirm = async () => {
'%{groupAssignmentCount} group assignment was deleted successfully',
'%{groupAssignmentCount} group assignments were deleted successfully',
succeeded.length,
{ groupAssignmentCount: succeeded.length.toString() },
true
{ groupAssignmentCount: succeeded.length.toString() }
)
showMessage({ title })
}
@@ -101,8 +100,7 @@ const onConfirm = async () => {
'Failed to delete %{groupAssignmentCount} group assignment',
'Failed to delete %{groupAssignmentCount} group assignments',
failed.length,
{ groupAssignmentCount: failed.length.toString() },
true
{ groupAssignmentCount: failed.length.toString() }
)
showErrorMessage({
title,
@@ -2,7 +2,7 @@
<div class="oc-mt-xl">
<div v-if="noUsers" class="oc-flex user-info oc-text-center">
<oc-icon name="user" size="xxlarge" />
<p v-translate data-testid="no-user-selected">Select a user to view details</p>
<p data-testid="no-user-selected">{{ $gettext('Select a user to view details') }}</p>
</div>
<div v-if="multipleUsers" class="oc-flex group-info">
<oc-icon name="group" size="xxlarge" />
@@ -323,7 +323,7 @@ function handleSort(event: { sortBy: string; sortDir: SortDir }) {
sortDir.value = event.sortDir
}
function getSelectUserLabel(user: User) {
return $gettext('Select %{ user }', { user: user.displayName }, true)
return $gettext('Select %{ user }', { user: user.displayName })
}
const allUsersSelected = computed(() => {
return unref(paginatedItems).length === unref(selectedUsers).length
@@ -37,8 +37,7 @@ export const useGroupActionsDelete = () => {
'%{groupCount} group was deleted successfully',
'%{groupCount} groups were deleted successfully',
succeeded.length,
{ groupCount: succeeded.length.toString() },
true
{ groupCount: succeeded.length.toString() }
)
showMessage({ title })
}
@@ -54,8 +53,7 @@ export const useGroupActionsDelete = () => {
'Failed to delete %{groupCount} group',
'Failed to delete %{groupCount} groups',
failed.length,
{ groupCount: failed.length.toString() },
true
{ groupCount: failed.length.toString() }
)
showErrorMessage({
title,
@@ -44,8 +44,7 @@ export const useUserActionsDelete = () => {
'%{userCount} user was deleted successfully',
'%{userCount} users were deleted successfully',
succeeded.length,
{ userCount: succeeded.length.toString() },
true
{ userCount: succeeded.length.toString() }
)
showMessage({ title })
}
@@ -61,8 +60,7 @@ export const useUserActionsDelete = () => {
'Failed to delete %{userCount} user',
'Failed to delete %{userCount} users',
failed.length,
{ userCount: failed.length.toString() },
true
{ userCount: failed.length.toString() }
)
showErrorMessage({
title,
@@ -18,6 +18,7 @@
<oc-button
id="create-group-btn"
v-oc-tooltip="limitedScreenSpace ? createGroupAction.label() : undefined"
:aria-label="createGroupAction.label()"
class="oc-mr-s"
variation="primary"
appearance="filled"
@@ -48,6 +49,7 @@
id="groups-filter-confirm"
class="oc-ml-xs"
appearance="raw"
:aria-label="$gettext('Search')"
@click="filterGroups"
>
<oc-icon name="search" fill-type="line" />
@@ -37,7 +37,7 @@
icon="layout-grid"
>
<template #message>
<span v-translate>No spaces in here</span>
<span>{{ $gettext('No spaces in here') }}</span>
</template>
</no-content-message>
<div v-else>
@@ -19,6 +19,7 @@
v-if="createUserAction.isVisible()"
id="create-user-btn"
v-oc-tooltip="limitedScreenSpace ? createUserAction.label() : undefined"
:aria-label="createUserAction.label()"
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" />
@@ -20,7 +20,7 @@ exports[`SpacesList > should render all spaces in a table 1`] = `
<div><span class="oc-table-thead-content"><oc-checkbox-stub id="oc-checkbox-1" modelvalue="false" disabled="false" label="Select all spaces" labelhidden="true" labelclasses="" size="large" class="oc-ml-s"></oc-checkbox-stub></span></div>
</th>
<th class="oc-table-cell oc-table-cell-align-left oc-table-cell-align-middle oc-table-cell-width-shrink oc-text-nowrap oc-th oc-table-header-cell oc-table-header-cell-icon" style="top: 0px;">
<div><span class="oc-table-thead-content header-text oc-invisible-sr" aria-hidden="true"></span></div>
<div><span class="oc-table-thead-content header-text oc-invisible-sr">icon</span></div>
</th>
<th class="oc-table-cell oc-table-cell-align-left oc-table-cell-align-middle oc-table-cell-width-auto oc-text-nowrap oc-th oc-table-header-cell oc-table-header-cell-name" style="top: 0px;" aria-sort="ascending"><button type="button" class="oc-button oc-rounded oc-button-m oc-button-justify-content-center oc-button-gap-m oc-button-passive oc-button-passive-raw oc-button-sort oc-width-1-1">
<!--v-if-->
@@ -31,7 +31,7 @@ exports[`SpacesList > should render all spaces in a table 1`] = `
<!-- @slot Content of the button --> <span class="oc-table-thead-content header-text">Status</span> <span class="oc-icon oc-icon-s oc-icon-passive oc-invisible-sr"><!----></span>
</button></th>
<th class="oc-table-cell oc-table-cell-align-left oc-table-cell-align-middle oc-table-cell-width-auto oc-text-nowrap oc-th oc-table-header-cell oc-table-header-cell-manager" style="top: 0px;">
<div><span class="oc-table-thead-content header-text" aria-hidden="false">Manager</span></div>
<div><span class="oc-table-thead-content header-text">Manager</span></div>
</th>
<th class="oc-table-cell oc-table-cell-align-left oc-table-cell-align-middle oc-table-cell-width-auto oc-text-nowrap oc-th oc-table-header-cell oc-table-header-cell-members" style="top: 0px;"><button type="button" class="oc-button oc-rounded oc-button-m oc-button-justify-content-center oc-button-gap-m oc-button-passive oc-button-passive-raw oc-button-sort oc-width-1-1">
<!--v-if-->
@@ -54,7 +54,7 @@ exports[`SpacesList > should render all spaces in a table 1`] = `
<!-- @slot Content of the button --> <span class="oc-table-thead-content header-text">Modified</span> <span class="oc-icon oc-icon-s oc-icon-passive oc-invisible-sr"><!----></span>
</button></th>
<th class="oc-table-cell oc-table-cell-align-right oc-table-cell-align-middle oc-table-cell-width-auto oc-text-nowrap oc-th oc-table-header-cell oc-table-header-cell-actions oc-pr-s" style="top: 0px;">
<div><span class="oc-table-thead-content header-text" aria-hidden="false">Actions</span></div>
<div><span class="oc-table-thead-content header-text">Actions</span></div>
</th>
</tr>
</thead>
@@ -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>
@@ -99,7 +99,7 @@ exports[`Users view > list view > renders list initially 1`] = `
<div><span class="oc-table-thead-content"><span class="oc-ml-s"><input id="oc-checkbox-1" type="checkbox" name="checkbox" class="oc-checkbox oc-rounded oc-checkbox-l"> <label for="oc-checkbox-1" class="oc-cursor-pointer oc-invisible-sr">Select all users</label></span></span></div>
</th>
<th class="oc-table-cell oc-table-cell-align-left oc-table-cell-align-middle oc-table-cell-width-shrink oc-text-nowrap oc-th oc-table-header-cell oc-table-header-cell-avatar" style="top: 0px;">
<div><span class="oc-table-thead-content header-text oc-invisible-sr" aria-hidden="true"></span></div>
<div><span class="oc-table-thead-content header-text oc-invisible-sr">avatar</span></div>
</th>
<th class="oc-table-cell oc-table-cell-align-left oc-table-cell-align-middle oc-table-cell-width-auto oc-text-nowrap oc-th oc-table-header-cell oc-table-header-cell-onPremisesSamAccountName" style="top: 0px;" aria-sort="ascending">
<oc-button-stub type="button" disabled="false" size="medium" submit="button" variation="passive" appearance="raw" justifycontent="center" gapsize="medium" showspinner="false" class="oc-button-sort oc-width-1-1"></oc-button-stub>
@@ -117,7 +117,7 @@ exports[`Users view > list view > renders list initially 1`] = `
<oc-button-stub type="button" disabled="false" size="medium" submit="button" variation="passive" appearance="raw" justifycontent="center" gapsize="medium" showspinner="false" class="oc-button-sort oc-width-1-1"></oc-button-stub>
</th>
<th class="oc-table-cell oc-table-cell-align-right oc-table-cell-align-middle oc-table-cell-width-auto oc-text-nowrap oc-th oc-table-header-cell oc-table-header-cell-actions oc-pr-s" style="top: 0px;">
<div><span class="oc-table-thead-content header-text" aria-hidden="false">Actions</span></div>
<div><span class="oc-table-thead-content header-text">Actions</span></div>
</th>
</tr>
</thead>
@@ -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":"Етикети"},"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."},"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
+1 -1
View File
@@ -22,6 +22,6 @@
"vue-concurrency": "5.0.3",
"vue-router": "5.0.6",
"zod": "4.3.6",
"vue3-gettext": "2.4.0"
"vue3-gettext": "^4.0.1"
}
}
@@ -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":{},"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":{},"el":{},"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"},"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":{},"ru":{"Chapter":"Глава","Decrease font size":"Уменьшить шрифт","Epub Reader":"Просмотрщик Epub","Increase font size":"Увеличить шрифт","Navigate to next page":"Перейти на следующую страницу","Navigate to previous page":"Перейти на предыдущую страницу","Reset font size":"Сбросить размер шрифта"},"ro":{},"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":"重置字体大小"}}
@@ -16,6 +16,6 @@
"peerDependencies": {
"@ownclouders/web-client": "workspace:*",
"@ownclouders/web-pkg": "workspace:*",
"vue3-gettext": "2.4.0"
"vue3-gettext": "^4.0.1"
}
}
@@ -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"},"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
+1 -1
View File
@@ -18,7 +18,7 @@
"qs": "^6.14.2",
"uuid": "14.0.0",
"vue-concurrency": "5.0.3",
"vue3-gettext": "2.4.0",
"vue3-gettext": "^4.0.1",
"vue-router": "5.0.6",
"zod": "4.3.6"
}
@@ -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":{},"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":"Потвърждаване","CoLine truncated
+1 -1
View File
@@ -29,7 +29,7 @@
"uuid": "14.0.0",
"vue-concurrency": "5.0.3",
"vue-router": "5.0.6",
"vue3-gettext": "2.4.0",
"vue3-gettext": "^4.0.1",
"web-app-search": "workspace:*"
}
}
@@ -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" />
@@ -5,11 +5,11 @@
>
<oc-icon name="cloud" type="div" size="xxlarge" />
<div class="oc-text-muted oc-text-xlarge">
<span v-translate>Resource not found</span>
<span>{{ $gettext('Resource not found') }}</span>
</div>
<div class="oc-text-muted">
<span v-translate>
We went looking everywhere, but were unable to find the selected resource.
<span>
{{ $gettext('We went looking everywhere, but were unable to find the selected resource.') }}
</span>
</div>
<div class="oc-mt-s">
@@ -20,7 +20,7 @@
appearance="raw"
:to="spacesRoute"
>
<span v-translate>Go to »Spaces Overview«</span>
<span>{{ $gettext('Go to »Spaces Overview«') }}</span>
</oc-button>
<oc-button
v-if="showHomeButton"
@@ -29,7 +29,7 @@
appearance="raw"
:to="homeRoute"
>
<span v-translate>Go to »Personal« page</span>
<span>{{ $gettext('Go to »Personal« page') }}</span>
</oc-button>
<oc-button
v-if="showPublicLinkButton"
@@ -38,7 +38,7 @@
appearance="raw"
:to="publicLinkRoute"
>
<span v-translate>Reload public link</span>
<span>{{ $gettext('Reload public link') }}</span>
</oc-button>
</div>
</div>
@@ -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
@@ -106,7 +106,7 @@
<td>
<p class="oc-m-rm">
{{ ownerDisplayName }}
<span v-if="ownedByCurrentUser" v-translate>(me)</span>
<span v-if="ownedByCurrentUser">{{ $gettext('(me)') }}</span>
</p>
</td>
</tr>
@@ -293,7 +293,7 @@ const hasAnyShares = computed(() => {
return unref(resource).shareTypes?.length > 0 || unref(sharedAncestor)
})
const sharedViaTooltip = computed(() => {
return $gettext("Navigate to '%{folder}'", { folder: unref(sharedAncestor).path || '' }, true)
return $gettext("Navigate to '%{folder}'", { folder: unref(sharedAncestor).path || '' })
})
const showSharedBy = computed(() => {
return unref(showShares) && !unref(ownedByCurrentUser) && unref(sharedByDisplayNames)
@@ -30,11 +30,10 @@ const dateExpire = computed(() => {
})
const expirationDateTooltip = computed(() => {
return $gettext(
'Expires %{timeToExpiry} (%{expiryDate})',
{ timeToExpiry: unref(expirationDateRelative), expiryDate: unref(dateExpire) },
true
)
return $gettext('Expires %{timeToExpiry} (%{expiryDate})', {
timeToExpiry: unref(expirationDateRelative),
expiryDate: unref(dateExpire)
})
})
const screenreaderShareExpiration = computed(() => {
Loaded 100 of 206 files, more files were not shown because too many files have changed in this diff. Show more