Compare commits

...

6 Commits

Author SHA1 Message Date
Sebastian 72cb2b8d02 fix: full screen preview
Signed-off-by: Sebastian Krupinski <krupinski01@gmail.com>
2026-09-14 18:56:38 -04:00
Sebastian a0c50bded9 Merge pull request 'chore(deps): update dependency vuetify to v4.2.1' (#58) from renovate/vuetify-4.x-lockfile into main
Reviewed-on: #58
2026-09-14 22:02:07 +00:00
Sebastian 09ada28f09 Merge pull request 'chore(deps): update dependency vite to v8.3.0' (#59) from renovate/vite-8.x-lockfile into main
Reviewed-on: #59
2026-09-14 22:02:01 +00:00
Sebastian ea28911822 chore(deps): update dependency vite to v8.3.0
Build Test / test (pull_request) Successful in 41s
JS Unit Tests / test (pull_request) Successful in 40s
2026-09-14 03:02:08 +00:00
Sebastian 0a88c7f14a chore(deps): update dependency vuetify to v4.2.1
Build Test / test (pull_request) Successful in 47s
JS Unit Tests / test (pull_request) Successful in 51s
2026-09-14 03:02:05 +00:00
Sebastian 1d7e363076 refactor: adjust integration points
Signed-off-by: Sebastian Krupinski <krupinski01@gmail.com>
2026-09-12 21:40:28 -04:00
3 changed files with 21 additions and 21 deletions
+17 -17
View File
@@ -1896,9 +1896,9 @@
"license": "MIT" "license": "MIT"
}, },
"node_modules/nanoid": { "node_modules/nanoid": {
"version": "3.3.17", "version": "3.3.19",
"resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.17.tgz", "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.19.tgz",
"integrity": "sha512-xQLf0A3HOMlgHq0n247/LRuAOYmB7dXJ/DvAxGvsSBij45XtBSmQycu+F8ODbHwns/XyFZagyL1+J0Offw1E0g==", "integrity": "sha512-Y2tUNy4ouw6tq5oDSKeQYGOyhkUBhNOcGV/02KC+6kd9eDGqdZd++mjMiIDilrBYvjEnCYvVtsuHCuP+okSfug==",
"funding": [ "funding": [
{ {
"type": "github", "type": "github",
@@ -2066,9 +2066,9 @@
} }
}, },
"node_modules/postcss": { "node_modules/postcss": {
"version": "8.5.26", "version": "8.5.28",
"resolved": "https://registry.npmjs.org/postcss/-/postcss-8.5.26.tgz", "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.5.28.tgz",
"integrity": "sha512-u82N74LFzG8ca+dD8puPnplTXoGH4fTPpVGuIbt36G3qvNlkvfD0lEAZSxaly3KX8TS/L1A1gsCEmvKmBcVbkQ==", "integrity": "sha512-RRuzqDtt5Y9h3quz5hWhK+TPnsmVs6WwSU6LkJMeY4HstUEDuYTG8UJSdawMRzmzAtV+KEoG8N3Qg2qLy5vM/A==",
"funding": [ "funding": [
{ {
"type": "opencollective", "type": "opencollective",
@@ -2085,7 +2085,7 @@
], ],
"license": "MIT", "license": "MIT",
"dependencies": { "dependencies": {
"nanoid": "^3.3.17", "nanoid": "^3.3.18",
"picocolors": "^1.1.1", "picocolors": "^1.1.1",
"source-map-js": "^1.2.1" "source-map-js": "^1.2.1"
}, },
@@ -2445,16 +2445,16 @@
} }
}, },
"node_modules/vite": { "node_modules/vite": {
"version": "8.2.2", "version": "8.3.0",
"resolved": "https://registry.npmjs.org/vite/-/vite-8.2.2.tgz", "resolved": "https://registry.npmjs.org/vite/-/vite-8.3.0.tgz",
"integrity": "sha512-cFKLV/PRgAUlIRm5WjMjJ86jrftzpqcgH+Us+DS8mI3CDNiH30Whrz8uHL3+MOLPAgqbMBAqWdAHAphOAM+z/Q==", "integrity": "sha512-lhZBVvEHefgE+HQZC9O7EBJgCU/nVzFNl7vkS4RE0APtWLP02/8QVIkQtzBxPquh7lq5/78NHipTj7ODQ6XuyQ==",
"devOptional": true, "devOptional": true,
"license": "MIT", "license": "MIT",
"dependencies": { "dependencies": {
"lightningcss": "^1.33.0", "lightningcss": "^1.33.0",
"picomatch": "^4.0.5", "picomatch": "^4.0.7",
"postcss": "^8.5.26", "postcss": "^8.5.28",
"rolldown": "~1.2.4", "rolldown": "~1.2.6",
"tinyglobby": "^0.2.17" "tinyglobby": "^0.2.17"
}, },
"bin": { "bin": {
@@ -2471,7 +2471,7 @@
}, },
"peerDependencies": { "peerDependencies": {
"@types/node": "^20.19.0 || >=22.12.0", "@types/node": "^20.19.0 || >=22.12.0",
"@vitejs/devtools": "^0.4.0 || ^0.5.0", "@vitejs/devtools": "^0.7.1",
"esbuild": "^0.27.0 || ^0.28.0", "esbuild": "^0.27.0 || ^0.28.0",
"jiti": ">=1.21.0", "jiti": ">=1.21.0",
"less": "^4.0.0", "less": "^4.0.0",
@@ -2716,9 +2716,9 @@
} }
}, },
"node_modules/vuetify": { "node_modules/vuetify": {
"version": "4.2.0", "version": "4.2.1",
"resolved": "https://registry.npmjs.org/vuetify/-/vuetify-4.2.0.tgz", "resolved": "https://registry.npmjs.org/vuetify/-/vuetify-4.2.1.tgz",
"integrity": "sha512-KaMbAl57GG/zdLdL9dcMqEZligIK3jYvkPkpx+RS9DufD/TOfWKnlDTOUzoYlvmhT/3LfJ/usAt1bSoWfYX4JA==", "integrity": "sha512-K3ZIqu7YkorQFB6//dR5KEBpbfOo+y/LkcGtknsnneE3JN1pW3R7o/JB9QDkJuP1ELhENIdBZIkiSmXu0dQ9lQ==",
"license": "MIT", "license": "MIT",
"dependencies": { "dependencies": {
"@vuetify/v0": "^1.2.1" "@vuetify/v0": "^1.2.1"
+3 -3
View File
@@ -1,11 +1,11 @@
/** /**
* useFileEditor — resolves which registered editor can handle a given MIME type. * useFileEditor — resolves which registered editor can handle a given MIME type.
* *
* Other modules register editors at the `documents_file_editor` integration * Other modules register editors at the `documents_editor` integration
* point by including an entry in their `integrations.ts`: * point by including an entry in their `integrations.ts`:
* *
* ```ts * ```ts
* documents_file_editor: [{ * documents_editor: [{
* id: 'my_editor', * id: 'my_editor',
* meta: { mimeTypes: ['text/plain'] }, * meta: { mimeTypes: ['text/plain'] },
* component: () => import('./components/MyEditor.vue'), * component: () => import('./components/MyEditor.vue'),
@@ -21,7 +21,7 @@
import { useIntegrationStore } from '@KTXC' import { useIntegrationStore } from '@KTXC'
import type { EntityObject } from '@DocumentsManager/models/entity' import type { EntityObject } from '@DocumentsManager/models/entity'
const INTEGRATION_POINT = 'documents_file_editor' const INTEGRATION_POINT = 'documents_editor'
function mimeMatchesPattern(mime: string, pattern: string): boolean { function mimeMatchesPattern(mime: string, pattern: string): boolean {
if (pattern.endsWith('/*')) { if (pattern.endsWith('/*')) {
+1 -1
View File
@@ -126,7 +126,7 @@ function entityToViewerItem(entity: EntityObject): ViewerItem {
return { return {
id: String(entity.identifier ?? ''), id: String(entity.identifier ?? ''),
title: entity.properties.label ?? String(entity.identifier ?? ''), title: entity.properties.label ?? String(entity.identifier ?? ''),
mime: entity.properties.mime ?? '', mime: 'image/webp',
meta: { collection: entity.collection ? String(entity.collection) : null }, meta: { collection: entity.collection ? String(entity.collection) : null },
} }
} }