moving routing to web
This commit is contained in:
@@ -13,7 +13,7 @@ const { user } = usePage().props.value
|
||||
|
||||
const f = async () => {
|
||||
try {
|
||||
const response = await axios.get(route('api.v1.user.menu', user.id))
|
||||
const response = await axios.get(route('user.menu', user.id))
|
||||
|
||||
menus.value = response.data
|
||||
} catch (e) {
|
||||
|
||||
@@ -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">
|
||||
|
||||
@@ -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({
|
||||
|
||||
@@ -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({
|
||||
|
||||
@@ -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">
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user