From 0f0723740559ee48c25f8eddc11bc40455358cb0 Mon Sep 17 00:00:00 2001 From: Vikram Chand Date: Sat, 6 Apr 2024 11:16:20 +0530 Subject: [PATCH] Added: setup steps notification files --- .../Backend/BackendController.php.ejs | 18 +++++++++++++ .../Vue/components/TopNotification.vue | 25 +++++++++++++++++++ .../vaahcms/module-vue3/Vue/layouts/App.vue | 2 ++ 3 files changed, 45 insertions(+) create mode 100644 skeletons/vaahcms/module-vue3/Vue/components/TopNotification.vue diff --git a/skeletons/vaahcms/module-vue3/Http/Controllers/Backend/BackendController.php.ejs b/skeletons/vaahcms/module-vue3/Http/Controllers/Backend/BackendController.php.ejs index c6d9e35..75718c5 100644 --- a/skeletons/vaahcms/module-vue3/Http/Controllers/Backend/BackendController.php.ejs +++ b/skeletons/vaahcms/module-vue3/Http/Controllers/Backend/BackendController.php.ejs @@ -68,10 +68,17 @@ class BackendController extends Controller $data=[]; + $steps = array(); + +// $steps[] = $this->isSetupComplete(); + $data['module'] = [ 'name' => config('<%= module_name_lower %>.name'), 'version' => config('settings.global.<%= module_name_lower %>_version')??config('<%= module_name_lower %>.version'), 'is_dev' => config('<%= module_name_lower %>.is_dev'), + 'setup' => [ + 'steps' => $steps + ] ]; $v_version = config('vaahcms.version'); @@ -114,4 +121,15 @@ class BackendController extends Controller } + + //------------------------------------------------- + public function isSetupComplete(){ + + $response['is_complete'] = false; + $response['message'] = "Your module is successfully setup."; + + return $response; + + } + } diff --git a/skeletons/vaahcms/module-vue3/Vue/components/TopNotification.vue b/skeletons/vaahcms/module-vue3/Vue/components/TopNotification.vue new file mode 100644 index 0000000..af25152 --- /dev/null +++ b/skeletons/vaahcms/module-vue3/Vue/components/TopNotification.vue @@ -0,0 +1,25 @@ + + + diff --git a/skeletons/vaahcms/module-vue3/Vue/layouts/App.vue b/skeletons/vaahcms/module-vue3/Vue/layouts/App.vue index 9b1778e..5fdcd96 100644 --- a/skeletons/vaahcms/module-vue3/Vue/layouts/App.vue +++ b/skeletons/vaahcms/module-vue3/Vue/layouts/App.vue @@ -2,6 +2,7 @@ import {vaah} from '../vaahvue/pinia/vaah.js' import {useRootStore} from '../stores/root.js' import Footer from '../components/Footer.vue' +import TopNotification from '../components/TopNotification.vue' import { useToast } from "primevue/usetoast"; import { useConfirm } from "primevue/useconfirm"; @@ -17,6 +18,7 @@ useVaah.setConfirm(confirm);