From 5ed52d91ba9876fc9341e0b1e797ed2c28723bc2 Mon Sep 17 00:00:00 2001 From: Martin Zurowietz Date: Mon, 4 Mar 2024 15:02:27 +0100 Subject: [PATCH] Configure new module --- .github/workflows/test.yml | 2 +- composer.json | 12 ++++----- src/Http/Controllers/QuotesController.php | 29 --------------------- src/Http/routes.php | 15 ++++------- src/ModuleServiceProvider.php | 14 +++++----- src/resources/assets/js/main.js | 4 +-- src/resources/assets/js/quotes.vue | 22 ---------------- src/resources/assets/sass/main.scss | 3 --- src/resources/views/dashboardMain.blade.php | 10 ------- src/resources/views/index.blade.php | 17 ------------ webpack.mix.js | 4 +-- 11 files changed, 23 insertions(+), 109 deletions(-) delete mode 100644 src/Http/Controllers/QuotesController.php delete mode 100644 src/resources/assets/js/quotes.vue delete mode 100644 src/resources/assets/sass/main.scss delete mode 100644 src/resources/views/dashboardMain.blade.php delete mode 100644 src/resources/views/index.blade.php diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 5c3a1ab..9582572 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -12,7 +12,7 @@ jobs: runs-on: ubuntu-latest env: - MODULE_NAME: Module + MODULE_NAME: Kpis steps: - uses: actions/checkout@v1 diff --git a/composer.json b/composer.json index 90fdcd6..efe2677 100644 --- a/composer.json +++ b/composer.json @@ -1,22 +1,22 @@ { - "name": "biigle/module", - "description": "A template for a new BIIGLE module.", + "name": "biigle/kpis", + "description": "BIIGLE module to collect key performance indocators.", "keywords": ["biigle", "biigle-module"], "license": "GPL-3.0-only", "support": { - "source": "https://github.com/biigle/module", - "issues": "https://github.com/biigle/module/issues" + "source": "https://github.com/biigle/kpis", + "issues": "https://github.com/biigle/kpis/issues" }, "homepage": "https://biigle.de", "authors": [ { "name": "Martin Zurowietz", - "email": "martin@cebitec.uni-bielefeld.de" + "email": "m.zurowietz@uni-bielefeld.de" } ], "autoload": { "psr-4": { - "Biigle\\Modules\\Module\\": "src" + "Biigle\\Modules\\Kpis\\": "src" } } } diff --git a/src/Http/Controllers/QuotesController.php b/src/Http/Controllers/QuotesController.php deleted file mode 100644 index 8da20e4..0000000 --- a/src/Http/Controllers/QuotesController.php +++ /dev/null @@ -1,29 +0,0 @@ -get('quotes', [ - 'middleware' => 'auth', - 'as' => 'quotes', - 'uses' => 'QuotesController@index', -]); - -$router->get('quotes/new', [ - 'middleware' => 'auth', - 'uses' => 'QuotesController@quote', -]); +// $router->get('quotes', [ +// 'middleware' => 'auth', +// 'as' => 'quotes', +// 'uses' => 'QuotesController@index', +// ]); diff --git a/src/ModuleServiceProvider.php b/src/ModuleServiceProvider.php index c06a453..066893a 100644 --- a/src/ModuleServiceProvider.php +++ b/src/ModuleServiceProvider.php @@ -1,12 +1,12 @@ loadViewsFrom(__DIR__.'/resources/views', 'module'); + // $this->loadViewsFrom(__DIR__.'/resources/views', 'kpis'); $router->group([ - 'namespace' => 'Biigle\Modules\Module\Http\Controllers', + 'namespace' => 'Biigle\Modules\Kpis\Http\Controllers', 'middleware' => 'web', ], function ($router) { require __DIR__.'/Http/routes.php'; }); - $modules->register('module', [ + $modules->register('kpis', [ 'viewMixins' => [ - 'dashboardMain', + // ], 'controllerMixins' => [ // @@ -40,7 +40,7 @@ public function boot(Modules $modules, Router $router) ]); $this->publishes([ - __DIR__.'/public/assets' => public_path('vendor/module'), + __DIR__.'/public/assets' => public_path('vendor/kpis'), ], 'public'); } diff --git a/src/resources/assets/js/main.js b/src/resources/assets/js/main.js index 3e914c0..d0845bd 100644 --- a/src/resources/assets/js/main.js +++ b/src/resources/assets/js/main.js @@ -1,3 +1,3 @@ -import Quotes from './quotes'; +// import Quotes from './quotes'; -biigle.$mount('quotes-container', Quotes); +// biigle.$mount('quotes-container', Quotes); diff --git a/src/resources/assets/js/quotes.vue b/src/resources/assets/js/quotes.vue deleted file mode 100644 index ce8fe4a..0000000 --- a/src/resources/assets/js/quotes.vue +++ /dev/null @@ -1,22 +0,0 @@ - diff --git a/src/resources/assets/sass/main.scss b/src/resources/assets/sass/main.scss deleted file mode 100644 index 096eafc..0000000 --- a/src/resources/assets/sass/main.scss +++ /dev/null @@ -1,3 +0,0 @@ -blockquote { - border-color: #398439; -} diff --git a/src/resources/views/dashboardMain.blade.php b/src/resources/views/dashboardMain.blade.php deleted file mode 100644 index af9b872..0000000 --- a/src/resources/views/dashboardMain.blade.php +++ /dev/null @@ -1,10 +0,0 @@ -
- -
-
- {{ Illuminate\Foundation\Inspiring::quote() }} -
-
-
diff --git a/src/resources/views/index.blade.php b/src/resources/views/index.blade.php deleted file mode 100644 index 62844bd..0000000 --- a/src/resources/views/index.blade.php +++ /dev/null @@ -1,17 +0,0 @@ -@extends('app') -@section('title', 'Inspiring quotes') -@section('content') -
-
-
- -
-
-@endsection - -@push('scripts') - -@endpush -@push('styles') - -@endpush diff --git a/webpack.mix.js b/webpack.mix.js index 17d77e3..3e017c7 100644 --- a/webpack.mix.js +++ b/webpack.mix.js @@ -18,9 +18,9 @@ mix.options({processCssUrls: false}); mix.setPublicPath('src/public'); mix.js('src/resources/assets/js/main.js', 'assets/scripts').vue() - .sass('src/resources/assets/sass/main.scss', 'assets/styles') + // .sass('src/resources/assets/sass/main.scss', 'assets/styles') .publish({ - provider: 'Biigle\\Modules\\Module\\ModuleServiceProvider', + provider: 'Biigle\\Modules\\Kpis\\KpisServiceProvider', tag: 'public', });