Skip to content

docs: say how to use <nc-viewer-file> in a Vue template - #171

Merged
skjnldsv merged 1 commit into
mainfrom
docs/nc-viewer-file-in-vue
Oct 21, 2026
Merged

skjnldsv merged 1 commit into
mainfrom
docs/nc-viewer-file-in-vue

Conversation

@skjnldsv

Copy link
Copy Markdown
Contributor

<nc-viewer-file> is a custom element, so Vue tries to resolve it as a component and warns unless told otherwise. Some builds, like @nextcloud/vite-config, don't let an app tell it. The README now shows both ways (isCustomElement, or <component :is> with the tag in a constant) and why file is bound with .prop. Came up on nextcloud/server#65753.

👾 This pull request was assisted by Claude Code, commits carry an Assisted-by trailer.

It is a custom element: Vue tries to resolve it as a component unless
told, and some builds, as @nextcloud/vite-config, do not let an app
tell it. Show both ways, and why the file is bound with .prop.

Assisted-by: ClaudeCode:claude-opus-5-5
Signed-off-by: John Molakvoæ <14975046+skjnldsv@users.noreply.github.com>
@skjnldsv skjnldsv added this to the 2.0.0 milestone Oct 21, 2026
@skjnldsv skjnldsv added type: documentation 📖 Improvements or additions to documentation AI assisted 3. to review labels Oct 21, 2026
@skjnldsv skjnldsv self-assigned this Oct 21, 2026
@codecov

codecov Bot commented Oct 21, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 91.99%. Comparing base (fe2be46) to head (a217a11).

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #171   +/-   ##
=======================================
  Coverage   91.99%   91.99%           
=======================================
  Files          54       54           
  Lines        4572     4572           
  Branches      989      989           
=======================================
  Hits         4206     4206           
  Misses        342      342           
  Partials       24       24           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@skjnldsv
skjnldsv merged commit bffa989 into main Oct 21, 2026
19 checks passed
@skjnldsv
skjnldsv deleted the docs/nc-viewer-file-in-vue branch October 21, 2026 19:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3. to review AI assisted type: documentation 📖 Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant