feat: register module in front end

Signed-off-by: Sebastian Krupinski <krupinski01@gmail.com>
This commit is contained in:
2026-09-12 21:39:16 -04:00
parent 92e85aed47
commit b79666566a
2 changed files with 12 additions and 0 deletions
+4
View File
@@ -5,6 +5,7 @@ declare(strict_types=1);
namespace KTXM\ServiceWopi;
use KTXF\Module\Configuration\ConsoleModuleContextInterface;
use KTXF\Module\Configuration\BrowserModuleContextInterface;
use KTXF\Module\Configuration\ModuleContextInterface;
use KTXF\Module\ModuleInstanceAbstract;
use KTXM\ServiceWopi\Console\CheckCommand;
@@ -26,6 +27,9 @@ class Module extends ModuleInstanceAbstract
public function configure(ModuleContextInterface $context): void
{
if ($context instanceof BrowserModuleContextInterface) {
$context->registerModule($this, 'ServiceWopi', 'static/module.mjs');
}
if ($context instanceof ConsoleModuleContextInterface) {
$context->registerCommand(CheckCommand::class);
$context->registerCommand(CleanupCommand::class);
+8
View File
@@ -0,0 +1,8 @@
// This entry advertises the service; session creation validates access and configuration.
export const integrations = {
documents_editor_service: [{
id: 'wopi',
label: 'WOPI Service',
meta: { protocol: 'wopi' },
}],
}