From ef79fd94519a3c1efc7de2e620327b28ea363067 Mon Sep 17 00:00:00 2001 From: Geriano Date: Sat, 30 Jul 2022 10:03:44 +0700 Subject: [PATCH] implementing modal component --- resources/js/Pages/Superuser/Menu/Index.vue | 257 ++++++++---------- .../js/Pages/Superuser/Permission/Index.vue | 83 +++--- resources/js/Pages/Superuser/Role/Index.vue | 112 ++++---- resources/js/Pages/Superuser/User/Index.vue | 212 +++++++-------- 4 files changed, 306 insertions(+), 358 deletions(-) diff --git a/resources/js/Pages/Superuser/Menu/Index.vue b/resources/js/Pages/Superuser/Menu/Index.vue index 8824b0a..9aef9aa 100644 --- a/resources/js/Pages/Superuser/Menu/Index.vue +++ b/resources/js/Pages/Superuser/Menu/Index.vue @@ -9,6 +9,7 @@ import axios from 'axios' import Swal from 'sweetalert2' import Select from '@vueform/multiselect' import Nested from './Nested.vue' +import Modal from '@/Components/Modal.vue' const self = getCurrentInstance() const { permissions, routes, icons } = defineProps({ @@ -160,150 +161,130 @@ onUnmounted(() => window.removeEventListener('keydown', esc)) - -
-
- - -
-
- - - - - - - -
-
-
- - -
- + +
+ + + -
-
+ + + + + + + + + + \ No newline at end of file diff --git a/resources/js/Pages/Superuser/Permission/Index.vue b/resources/js/Pages/Superuser/Permission/Index.vue index 547290a..9983b87 100644 --- a/resources/js/Pages/Superuser/Permission/Index.vue +++ b/resources/js/Pages/Superuser/Permission/Index.vue @@ -7,6 +7,7 @@ import DashboardLayout from '@/Layouts/DashboardLayout.vue' import Card from '@/Components/Card.vue' import Icon from '@/Components/Icon.vue' import { Inertia } from '@inertiajs/inertia' +import Modal from '@/Components/Modal.vue' const self = getCurrentInstance() const permissions = ref([]) @@ -135,56 +136,42 @@ onUnmounted(() => window.removeEventListener('keydown', esc)) + + +
+ + - -
-
- - -
- - - - - - - - -
-
+ +
+ +
\ No newline at end of file diff --git a/resources/js/Pages/Superuser/Role/Index.vue b/resources/js/Pages/Superuser/Role/Index.vue index c9318bd..710c46b 100644 --- a/resources/js/Pages/Superuser/Role/Index.vue +++ b/resources/js/Pages/Superuser/Role/Index.vue @@ -9,6 +9,7 @@ import Builder from '@/Components/DataTable/Builder.vue' import Th from '@/Components/DataTable/Th.vue' import Swal from 'sweetalert2' import Select from '@vueform/multiselect' +import Modal from '@/Components/Modal.vue' const self = getCurrentInstance() const { permissions } = defineProps({ @@ -31,7 +32,6 @@ const show = () => { const close = () => { open.value = false form.reset() - tableRefresh.value && tableRefresh.value() } const detach = async (role, permission, refresh) => { @@ -190,73 +190,59 @@ onUnmounted(() => window.removeEventListener('keydown', esc)) - -
-
+ +
+ + - -
- - - - - + + + + + \ No newline at end of file diff --git a/resources/js/Pages/Superuser/User/Index.vue b/resources/js/Pages/Superuser/User/Index.vue index 45c9668..a7e0532 100644 --- a/resources/js/Pages/Superuser/User/Index.vue +++ b/resources/js/Pages/Superuser/User/Index.vue @@ -9,6 +9,7 @@ import Builder from '@/Components/DataTable/Builder.vue' import Th from '@/Components/DataTable/Th.vue' import Swal from 'sweetalert2' import Select from '@vueform/multiselect' +import Modal from '@/Components/Modal.vue' const self = getCurrentInstance() const { permissions, roles } = defineProps({ @@ -38,7 +39,6 @@ const close = () => { open.value = false form.reset() form.clearErrors() - tableRefresh.value && tableRefresh.value() } const store = () => { @@ -256,120 +256,114 @@ onUnmounted(() => window.removeEventListener('keydown', esc))
- -
-
- - + + + +
+ \ No newline at end of file