1 Commits

Author SHA1 Message Date
Sebastian ef9a17d89b chore: implement js test suites
Build Test / test (pull_request) Successful in 52s
JS Unit Tests / test (pull_request) Successful in 56s
Signed-off-by: Sebastian Krupinski <krupinski01@gmail.com>
2026-07-24 00:13:45 -04:00
3 changed files with 1316 additions and 407 deletions
+12 -8
View File
@@ -2,14 +2,13 @@
namespace KTXM\Dashboard;
use KTXF\Module\Configuration\BrowserModuleContextInterface;
use KTXF\Module\Configuration\ModuleContextInterface;
use KTXF\Module\ModuleBrowserInterface;
use KTXF\Module\ModuleInstanceAbstract;
/**
* Dashboard Module
*/
class Module extends ModuleInstanceAbstract
class Module extends ModuleInstanceAbstract implements ModuleBrowserInterface
{
public function __construct()
@@ -51,11 +50,16 @@ class Module extends ModuleInstanceAbstract
];
}
public function configure(ModuleContextInterface $context): void
{
if ($context instanceof BrowserModuleContextInterface) {
$context->registerModule($this, 'Dashboard', 'static/module.mjs');
}
public function registerBI(): array {
return [
'handle' => $this->handle(),
'namespace' => 'Dashboard',
'version' => $this->version(),
'label' => $this->label(),
'author' => $this->author(),
'description' => $this->description(),
'boot' => 'static/module.mjs',
];
}
}
+1302 -397
View File
File diff suppressed because it is too large Load Diff
+2 -2
View File
@@ -20,7 +20,7 @@
"dependencies": {
"@mdi/js": "^7.4.47",
"echarts": "^6.0.0",
"pinia": "^4.0.0",
"pinia": "^3.0.0",
"vue": "^3.5.13",
"vue-echarts": "^8.0.0",
"vue-router": "^5.0.0",
@@ -37,7 +37,7 @@
"vue-tsc": "^3.0.0",
"@vitest/coverage-v8": "^4.1.6",
"@vue/test-utils": "^2.4.10",
"jsdom": "^30.0.0",
"jsdom": "^29.1.1",
"vitest": "^4.1.6"
}
}