1 Commits

Author SHA1 Message Date
Sebastian aac5e72e67 chore(deps): update dependency vite to v8.2.2
Build Test / test (pull_request) Successful in 52s
JS Unit Tests / test (pull_request) Successful in 51s
2026-08-27 03:05:07 +00:00
3 changed files with 12 additions and 10 deletions
+12 -7
View File
@@ -2,11 +2,10 @@
namespace KTXM\MediaViewer; namespace KTXM\MediaViewer;
use KTXF\Module\Configuration\BrowserModuleContextInterface; use KTXF\Module\ModuleBrowserInterface;
use KTXF\Module\Configuration\ModuleContextInterface;
use KTXF\Module\ModuleInstanceAbstract; use KTXF\Module\ModuleInstanceAbstract;
class Module extends ModuleInstanceAbstract class Module extends ModuleInstanceAbstract implements ModuleBrowserInterface
{ {
public function __construct() public function __construct()
@@ -42,10 +41,16 @@ class Module extends ModuleInstanceAbstract
return []; return [];
} }
public function configure(ModuleContextInterface $context): void public function registerBI(): array
{ {
if ($context instanceof BrowserModuleContextInterface) { return [
$context->registerModule($this, 'MediaViewer', 'static/module.mjs'); 'handle' => $this->handle(),
} 'namespace' => 'MediaViewer',
'version' => $this->version(),
'label' => $this->label(),
'author' => $this->author(),
'description' => $this->description(),
'boot' => 'static/module.mjs',
];
} }
} }
-2
View File
@@ -3,7 +3,6 @@ import { ref, computed, onMounted, onUnmounted } from 'vue'
import type { MediaLeafProps } from '@/types' import type { MediaLeafProps } from '@/types'
const props = defineProps<MediaLeafProps>() const props = defineProps<MediaLeafProps>()
const emit = defineEmits<{ error: [] }>()
// ── Pan / zoom state ──────────────────────────────────────────────────────── // ── Pan / zoom state ────────────────────────────────────────────────────────
@@ -104,7 +103,6 @@ onUnmounted(() => {
transformOrigin: 'center center', transformOrigin: 'center center',
}" }"
draggable="false" draggable="false"
@error="emit('error')"
/> />
<!-- Zoom hint --> <!-- Zoom hint -->
-1
View File
@@ -82,7 +82,6 @@ defineExpose({
:item="item" :item="item"
:presentation="presentation" :presentation="presentation"
class="media-stage__viewer" class="media-stage__viewer"
@error="error = true; url = ''"
/> />
</template> </template>
<template #fallback> <template #fallback>