bit fix on build

dev
Aji Kamaludin 1 year ago
parent 32fa189e4f
commit 1101c82e02
No known key found for this signature in database
GPG Key ID: 19058F67F0083AD3

@ -1,56 +1,35 @@
import {
HiChartPie,
HiUser,
HiCollection,
HiAdjustments,
HiPlusCircle,
HiCurrencyDollar,
HiCash,
HiClipboardList,
HiHashtag,
HiUsers,
HiUserGroup,
HiUserCircle,
HiOutlineTruck,
HiDatabase,
HiShoppingBag,
HiReceiptTax,
HiHome,
HiInboxIn,
HiOutlineCash,
HiOutlineTable
} from "react-icons/hi";
import { HiChartPie, HiUser, HiUsers, HiUserGroup } from 'react-icons/hi'
export default [
{
name: "Dashboard",
name: 'Dashboard',
show: true,
icon: HiChartPie,
route: route("dashboard"),
active: "dashboard",
permission: "view-dashboard",
route: route('dashboard'),
active: 'dashboard',
permission: 'view-dashboard',
},
{
name: "User",
name: 'User',
show: true,
icon: HiUser,
items: [
{
name: "Roles",
name: 'Roles',
show: true,
icon: HiUserGroup,
route: route("roles.index"),
active: "roles.*",
permission: "view-role",
route: route('roles.index'),
active: 'roles.*',
permission: 'view-role',
},
{
name: "Users",
name: 'Users',
show: true,
icon: HiUsers,
route: route("user.index"),
active: "user.index",
permission: "view-user",
route: route('user.index'),
active: 'user.index',
permission: 'view-user',
},
],
},
];
]

@ -10,6 +10,8 @@ use Illuminate\Support\Facades\Route;
Route::middleware(['inertia.admin'])
->prefix('admin')
->group(function () {
Route::get('/', fn () => redirect()->route('admin.login'));
Route::middleware(['guest:web'])->group(function () {
Route::get('login', [AuthenticatedSessionController::class, 'create'])
->name('admin.login');
@ -17,8 +19,8 @@ Route::middleware(['inertia.admin'])
Route::post('login', [AuthenticatedSessionController::class, 'store']);
});
Route::middleware(['auth'])->group(function () {
Route::middleware(['auth:web'])->group(function () {
// dashboard
Route::get('/dashboard', [GeneralController::class, 'index'])->name('dashboard');
Route::get('/maintance', [GeneralController::class, 'maintance'])->name('maintance');
@ -28,8 +30,7 @@ Route::middleware(['inertia.admin'])
Route::delete('/profile', [ProfileController::class, 'destroy'])->name('profile.destroy');
// Logout
Route::post('logout', [AuthenticatedSessionController::class, 'destroy'])
->name('logout');
Route::post('logout', [AuthenticatedSessionController::class, 'destroy'])->name('logout');
// User
Route::get('/users', [UserController::class, 'index'])->name('user.index');

@ -1,13 +1,17 @@
import { defineConfig } from 'vite';
import laravel from 'laravel-vite-plugin';
import react from '@vitejs/plugin-react';
import { defineConfig } from 'vite'
import laravel from 'laravel-vite-plugin'
import react from '@vitejs/plugin-react'
export default defineConfig({
plugins: [
laravel({
input: ["resources/css/app.css", "resources/js/app.jsx"],
input: [
'resources/css/app.css',
'resources/js/app.jsx',
'resources/js/admin.jsx',
],
refresh: true,
}),
react(),
],
});
})

Loading…
Cancel
Save