From bd011902fd6153ced264c8fe6921df14f5a83fa5 Mon Sep 17 00:00:00 2001 From: EvanG Date: Sun, 27 Nov 2022 17:46:35 +0100 Subject: [PATCH] 1.1.1 --- LightModule.php | 70 ++++++++++++++++++++++++++++++------------------- version.txt | 1 + 2 files changed, 44 insertions(+), 27 deletions(-) create mode 100644 version.txt diff --git a/LightModule.php b/LightModule.php index 5e23958..8c11b0a 100644 --- a/LightModule.php +++ b/LightModule.php @@ -1,54 +1,67 @@ assetUrl('css/imports.css'), $this->assetUrl('css/theme.css'), $this->assetUrl('css/magicsunday-fan-chart.css')]; } + + public function stylesheets(): array + { + return [ + $this->assetUrl('css/imports.css'), + $this->assetUrl('css/theme.css'), + $this->assetUrl('css/magicsunday-fan-chart.css') + ]; + } public function parameter($parameter_name) { $parameters = [ - 'chart-background-f' => 'fff4f9', - 'chart-background-m' => 'f4fdff', - 'chart-background-u' => 'f4f5f7', - 'chart-box-x' => 260, - 'chart-box-y' => 85, - 'chart-font-color' => '000000', - 'chart-spacing-x' => 5, - 'chart-spacing-y' => 10, - 'compact-chart-box-x' => 240, - 'compact-chart-box-y' => 50, + 'chart-background-f' => 'fff4f9', + 'chart-background-m' => 'f4fdff', + 'chart-background-u' => 'f4f5f7', + 'chart-box-x' => 260, + 'chart-box-y' => 85, + 'chart-font-color' => '000000', + 'chart-spacing-x' => 5, + 'chart-spacing-y' => 10, + 'compact-chart-box-x' => 240, + 'compact-chart-box-y' => 50, 'distribution-chart-high-values' => '84beff', - 'distribution-chart-low-values' => 'c3dfff', - 'distribution-chart-no-values' => 'ffffff', + 'distribution-chart-low-values' => 'c3dfff', + 'distribution-chart-no-values' => 'ffffff', ]; return $parameters[$parameter_name]; @@ -89,8 +102,11 @@ public function boot(): void /** My views **/ + View::registerCustomView('::lists/individuals-table', $this->name() . '::lists/individuals-table'); View::registerCustomView('::lists/families-table', $this->name() . '::lists/families-table'); View::registerCustomView('::individual-page-menu', $this->name() . '::individual-page-menu'); } + + public function resourcesFolder(): string { return __DIR__ . '/resources/'; } } diff --git a/version.txt b/version.txt new file mode 100644 index 0000000..8cfbc90 --- /dev/null +++ b/version.txt @@ -0,0 +1 @@ +1.1.1 \ No newline at end of file