moving routing to web

This commit is contained in:
Geriano
2022-10-30 19:05:29 +07:00
parent 9a7a0d504f
commit 80555c27a9
8 changed files with 19 additions and 22 deletions

View File

@@ -21,7 +21,7 @@ import Th from '@/Components/DataTable/Th.vue';
<template #body>
<Builder
:url="route('api.v1.superuser.activity.login')"
:url="route('superuser.activity.login')"
>
<template #thead="table">
<tr class="bg-gray-200 dark:bg-gray-800 border-gray-300 dark:border-gray-900">

View File

@@ -39,7 +39,7 @@ const form = useForm({
const fetch = async () => {
try {
const response = await axios.get(route('api.v1.superuser.menu'))
const response = await axios.get(route('superuser.menu'))
menus.value = response.data
} catch (e) {
const response = await Swal.fire({

View File

@@ -26,7 +26,7 @@ const form = useForm({
const fetch = async () => {
try {
const response = await axios.get(route('api.v1.superuser.permission'))
const response = await axios.get(route('superuser.permission'))
permissions.value = response.data
} catch (e) {
const response = await Swal.fire({

View File

@@ -129,7 +129,7 @@ onUnmounted(() => window.removeEventListener('keydown', esc))
<div class="flex flex-col space-y-2">
<Builder
v-if="render"
:url="route('api.v1.superuser.role.paginate')"
:url="route('superuser.role.paginate')"
ref="table"
>
<template #thead="table">

View File

@@ -154,7 +154,7 @@ onUnmounted(() => window.removeEventListener('keydown', esc))
<div class="flex flex-col space-y-2">
<Builder
v-if="render"
:url="route('api.v1.superuser.user.paginate')"
:url="route('superuser.user.paginate')"
ref="table"
>
<template #thead="table">
@@ -376,10 +376,10 @@ onUnmounted(() => window.removeEventListener('keydown', esc))
<div
v-for="(permission, j) in user.permissions"
:key="j"
class="inline-block bg-gray-600 rounded-md px-3 py-1 m-[1px] text-sm"
class="inline-block bg-gray-200 dark:bg-gray-800 rounded-md px-3 py-1 m-[1px] text-sm"
>
<div class="flex items-center justify-between space-x-1">
<p class="uppercase font-semibold">
<p class="uppercase font-semibold whitespace-nowrap">
{{ __(permission.name) }}
</p>
@@ -515,7 +515,7 @@ onUnmounted(() => window.removeEventListener('keydown', esc))
<div class="flex flex-col space-y-2">
<div class="flex items-center space-x-2">
<label for="email" class="w-1/3 lowercase first-letter:capitalize">
{{ __('name') }}
{{ __('email') }}
</label>
<Input