feat(project): base smatec's frontend

This commit is contained in:
Tran Anh Tuan
2026-01-21 11:48:57 +07:00
commit 5c2a909bed
138 changed files with 43666 additions and 0 deletions

66
.umirc.sgw.ts Normal file
View File

@@ -0,0 +1,66 @@
import { defineConfig } from '@umijs/max';
import {
alarmsRoute,
commonManagerRoutes,
loginRoute,
managerRouteBase,
notFoundRoute,
profileRoute,
} from './config/routes';
export default defineConfig({
favicons: ['/sgw-logo.png'],
layout: {
title: 'SGW',
},
routes: [
loginRoute,
alarmsRoute,
profileRoute,
{
name: 'sgw.map',
icon: 'icon-map',
path: '/map',
component: './Slave/SGW/Map',
},
{
name: 'sgw.trips',
icon: 'icon-trip',
path: '/trips',
component: './Slave/SGW/Trip',
},
{
...managerRouteBase,
routes: [
...commonManagerRoutes,
{
name: 'sgw.fishes',
icon: 'icon-fish',
path: '/manager/fish',
routes: [
{
path: '/manager/fish',
component: './Slave/SGW/Manager/Fish',
},
],
},
{
name: 'sgw.zones',
icon: 'icon-prohibited',
path: '/manager/area',
routes: [
{
path: '/manager/area',
component: './Slave/SGW/Manager/Area',
},
],
},
],
},
{
path: '/',
redirect: '/map',
},
notFoundRoute,
],
});