Separate official website page
This commit is contained in:
@@ -3,47 +3,47 @@ import React from 'react'
|
||||
export const tools: RouteJsonObject[] = [
|
||||
{
|
||||
path: '',
|
||||
absolutePath: '/tools',
|
||||
absolutePath: '/',
|
||||
id: 'tools',
|
||||
component: React.lazy(() => import('@/pages/tools')),
|
||||
name: '主页',
|
||||
icon: React.lazy(() => import('~icons/fatweb/home.jsx')),
|
||||
icon: React.lazy(() => import('~icons/oxygen/home.jsx')),
|
||||
menu: true,
|
||||
auth: false
|
||||
},
|
||||
{
|
||||
path: 'all',
|
||||
absolutePath: '/tools/all',
|
||||
absolutePath: '/all',
|
||||
id: 'tools-all',
|
||||
component: React.lazy(() => import('@/pages/tools')),
|
||||
name: '全部工具',
|
||||
titlePostfix: ' - 全部工具',
|
||||
icon: React.lazy(() => import('~icons/fatweb/tool.jsx')),
|
||||
icon: React.lazy(() => import('~icons/oxygen/tool.jsx')),
|
||||
menu: true,
|
||||
auth: false
|
||||
},
|
||||
{
|
||||
path: 'translation',
|
||||
absolutePath: '/tools/translation',
|
||||
absolutePath: '/translation',
|
||||
id: 'tools-translation',
|
||||
component: React.lazy(() => import('@/pages/tools/Translation')),
|
||||
name: '翻译',
|
||||
icon: React.lazy(() => import('~icons/fatweb/jenkins.jsx')),
|
||||
icon: React.lazy(() => import('~icons/oxygen/jenkins.jsx')),
|
||||
menu: true,
|
||||
auth: false,
|
||||
children: [
|
||||
{
|
||||
path: '1',
|
||||
absolutePath: '/tools/translation/1',
|
||||
absolutePath: '/translation/1',
|
||||
id: '1',
|
||||
name: '翻译1',
|
||||
icon: React.lazy(() => import('~icons/fatweb/logo.jsx')),
|
||||
icon: React.lazy(() => import('~icons/oxygen/logo.jsx')),
|
||||
menu: true,
|
||||
auth: false
|
||||
},
|
||||
{
|
||||
path: '2',
|
||||
absolutePath: '/tools/translation/2',
|
||||
absolutePath: '/translation/2',
|
||||
id: '2',
|
||||
name: '翻译2',
|
||||
menu: true,
|
||||
@@ -53,17 +53,17 @@ export const tools: RouteJsonObject[] = [
|
||||
},
|
||||
{
|
||||
path: 'translation-',
|
||||
absolutePath: '/tools/translation-',
|
||||
absolutePath: '/translation-',
|
||||
id: 'tools-translation-',
|
||||
component: React.lazy(() => import('@/pages/tools/Translation')),
|
||||
name: '翻译-',
|
||||
icon: React.lazy(() => import('~icons/fatweb/jenkins.jsx')),
|
||||
icon: React.lazy(() => import('~icons/oxygen/jenkins.jsx')),
|
||||
menu: true,
|
||||
auth: false,
|
||||
children: [
|
||||
{
|
||||
path: '1-',
|
||||
absolutePath: '/tools/translation-/1-',
|
||||
absolutePath: '/translation-/1-',
|
||||
id: '1-',
|
||||
name: '翻译1-',
|
||||
menu: true,
|
||||
@@ -71,7 +71,7 @@ export const tools: RouteJsonObject[] = [
|
||||
},
|
||||
{
|
||||
path: '2-',
|
||||
absolutePath: '/tools/translation-/2-',
|
||||
absolutePath: '/translation-/2-',
|
||||
id: '2-',
|
||||
name: '翻译2-',
|
||||
menu: true,
|
||||
@@ -81,217 +81,217 @@ export const tools: RouteJsonObject[] = [
|
||||
},
|
||||
{
|
||||
path: 'translation--',
|
||||
absolutePath: '/tools/translation--',
|
||||
absolutePath: '/translation--',
|
||||
id: 'tools-translation--',
|
||||
component: React.lazy(() => import('@/pages/tools/Translation')),
|
||||
name: '翻译--',
|
||||
icon: React.lazy(() => import('~icons/fatweb/jenkins.jsx')),
|
||||
icon: React.lazy(() => import('~icons/oxygen/jenkins.jsx')),
|
||||
menu: true,
|
||||
auth: false
|
||||
},
|
||||
{
|
||||
path: 'translation--1',
|
||||
absolutePath: '/tools/translation--1',
|
||||
absolutePath: '/translation--1',
|
||||
id: 'tools-translation--1',
|
||||
component: React.lazy(() => import('@/pages/tools/Translation')),
|
||||
name: '翻译--1',
|
||||
icon: React.lazy(() => import('~icons/fatweb/jenkins.jsx')),
|
||||
icon: React.lazy(() => import('~icons/oxygen/jenkins.jsx')),
|
||||
menu: true,
|
||||
auth: false
|
||||
},
|
||||
{
|
||||
path: 'translation--2',
|
||||
absolutePath: '/tools/translation--2',
|
||||
absolutePath: '/translation--2',
|
||||
id: 'tools-translation--2',
|
||||
component: React.lazy(() => import('@/pages/tools/Translation')),
|
||||
name: '翻译--2',
|
||||
icon: React.lazy(() => import('~icons/fatweb/jenkins.jsx')),
|
||||
icon: React.lazy(() => import('~icons/oxygen/jenkins.jsx')),
|
||||
menu: true,
|
||||
auth: false
|
||||
},
|
||||
{
|
||||
path: 'translation--3',
|
||||
absolutePath: '/tools/translation--3',
|
||||
absolutePath: '/translation--3',
|
||||
id: 'tools-translation--3',
|
||||
component: React.lazy(() => import('@/pages/tools/Translation')),
|
||||
name: '翻译--3',
|
||||
icon: React.lazy(() => import('~icons/fatweb/jenkins.jsx')),
|
||||
icon: React.lazy(() => import('~icons/oxygen/jenkins.jsx')),
|
||||
menu: true,
|
||||
auth: false
|
||||
},
|
||||
{
|
||||
path: 'translation--4',
|
||||
absolutePath: '/tools/translation--4',
|
||||
absolutePath: '/translation--4',
|
||||
id: 'tools-translation--4',
|
||||
component: React.lazy(() => import('@/pages/tools/Translation')),
|
||||
name: '翻译--4',
|
||||
icon: React.lazy(() => import('~icons/fatweb/jenkins.jsx')),
|
||||
icon: React.lazy(() => import('~icons/oxygen/jenkins.jsx')),
|
||||
menu: true,
|
||||
auth: false
|
||||
},
|
||||
{
|
||||
path: 'translation--5',
|
||||
absolutePath: '/tools/translation--5',
|
||||
absolutePath: '/translation--5',
|
||||
id: 'tools-translation--5',
|
||||
component: React.lazy(() => import('@/pages/tools/Translation')),
|
||||
name: '翻译--5',
|
||||
icon: React.lazy(() => import('~icons/fatweb/jenkins.jsx')),
|
||||
icon: React.lazy(() => import('~icons/oxygen/jenkins.jsx')),
|
||||
menu: true,
|
||||
auth: false
|
||||
},
|
||||
{
|
||||
path: 'translation--6',
|
||||
absolutePath: '/tools/translation--6',
|
||||
absolutePath: '/translation--6',
|
||||
id: 'tools-translation--6',
|
||||
component: React.lazy(() => import('@/pages/tools/Translation')),
|
||||
name: '翻译--6',
|
||||
icon: React.lazy(() => import('~icons/fatweb/jenkins.jsx')),
|
||||
icon: React.lazy(() => import('~icons/oxygen/jenkins.jsx')),
|
||||
menu: true,
|
||||
auth: false
|
||||
},
|
||||
{
|
||||
path: 'translation--7',
|
||||
absolutePath: '/tools/translation--7',
|
||||
absolutePath: '/translation--7',
|
||||
id: 'tools-translation--7',
|
||||
component: React.lazy(() => import('@/pages/tools/Translation')),
|
||||
name: '翻译--7',
|
||||
icon: React.lazy(() => import('~icons/fatweb/jenkins.jsx')),
|
||||
icon: React.lazy(() => import('~icons/oxygen/jenkins.jsx')),
|
||||
menu: true,
|
||||
auth: false
|
||||
},
|
||||
{
|
||||
path: 'translation--8',
|
||||
absolutePath: '/tools/translation--8',
|
||||
absolutePath: '/translation--8',
|
||||
id: 'tools-translation--8',
|
||||
component: React.lazy(() => import('@/pages/tools/Translation')),
|
||||
name: '翻译--8',
|
||||
icon: React.lazy(() => import('~icons/fatweb/jenkins.jsx')),
|
||||
icon: React.lazy(() => import('~icons/oxygen/jenkins.jsx')),
|
||||
menu: true,
|
||||
auth: false
|
||||
},
|
||||
{
|
||||
path: 'translation--9',
|
||||
absolutePath: '/tools/translation--9',
|
||||
absolutePath: '/translation--9',
|
||||
id: 'tools-translation--9',
|
||||
component: React.lazy(() => import('@/pages/tools/Translation')),
|
||||
name: '翻译--9',
|
||||
icon: React.lazy(() => import('~icons/fatweb/jenkins.jsx')),
|
||||
icon: React.lazy(() => import('~icons/oxygen/jenkins.jsx')),
|
||||
menu: true,
|
||||
auth: false
|
||||
},
|
||||
{
|
||||
path: 'translation--10',
|
||||
absolutePath: '/tools/translation--10',
|
||||
absolutePath: '/translation--10',
|
||||
id: 'tools-translation--10',
|
||||
component: React.lazy(() => import('@/pages/tools/Translation')),
|
||||
name: '翻译--10',
|
||||
icon: React.lazy(() => import('~icons/fatweb/jenkins.jsx')),
|
||||
icon: React.lazy(() => import('~icons/oxygen/jenkins.jsx')),
|
||||
menu: true,
|
||||
auth: false
|
||||
},
|
||||
{
|
||||
path: 'translation--1-',
|
||||
absolutePath: '/tools/translation--1-',
|
||||
absolutePath: '/translation--1-',
|
||||
id: 'tools-translation--1-',
|
||||
component: React.lazy(() => import('@/pages/tools/Translation')),
|
||||
name: '翻译--1-',
|
||||
icon: React.lazy(() => import('~icons/fatweb/jenkins.jsx')),
|
||||
icon: React.lazy(() => import('~icons/oxygen/jenkins.jsx')),
|
||||
menu: true,
|
||||
auth: false
|
||||
},
|
||||
{
|
||||
path: 'translation--2-',
|
||||
absolutePath: '/tools/translation--2-',
|
||||
absolutePath: '/translation--2-',
|
||||
id: 'tools-translation--2-',
|
||||
component: React.lazy(() => import('@/pages/tools/Translation')),
|
||||
name: '翻译--2-',
|
||||
icon: React.lazy(() => import('~icons/fatweb/jenkins.jsx')),
|
||||
icon: React.lazy(() => import('~icons/oxygen/jenkins.jsx')),
|
||||
menu: true,
|
||||
auth: false
|
||||
},
|
||||
{
|
||||
path: 'translation--3-',
|
||||
absolutePath: '/tools/translation--3-',
|
||||
absolutePath: '/translation--3-',
|
||||
id: 'tools-translation--3-',
|
||||
component: React.lazy(() => import('@/pages/tools/Translation')),
|
||||
name: '翻译--3-',
|
||||
icon: React.lazy(() => import('~icons/fatweb/jenkins.jsx')),
|
||||
icon: React.lazy(() => import('~icons/oxygen/jenkins.jsx')),
|
||||
menu: true,
|
||||
auth: false
|
||||
},
|
||||
{
|
||||
path: 'translation--4-',
|
||||
absolutePath: '/tools/translation--4-',
|
||||
absolutePath: '/translation--4-',
|
||||
id: 'tools-translation--4-',
|
||||
component: React.lazy(() => import('@/pages/tools/Translation')),
|
||||
name: '翻译--4-',
|
||||
icon: React.lazy(() => import('~icons/fatweb/jenkins.jsx')),
|
||||
icon: React.lazy(() => import('~icons/oxygen/jenkins.jsx')),
|
||||
menu: true,
|
||||
auth: false
|
||||
},
|
||||
{
|
||||
path: 'translation--5-',
|
||||
absolutePath: '/tools/translation--5-',
|
||||
absolutePath: '/translation--5-',
|
||||
id: 'tools-translation--5-',
|
||||
component: React.lazy(() => import('@/pages/tools/Translation')),
|
||||
name: '翻译--5-',
|
||||
icon: React.lazy(() => import('~icons/fatweb/jenkins.jsx')),
|
||||
icon: React.lazy(() => import('~icons/oxygen/jenkins.jsx')),
|
||||
menu: true,
|
||||
auth: false
|
||||
},
|
||||
{
|
||||
path: 'translation--6-',
|
||||
absolutePath: '/tools/translation--6-',
|
||||
absolutePath: '/translation--6-',
|
||||
id: 'tools-translation--6-',
|
||||
component: React.lazy(() => import('@/pages/tools/Translation')),
|
||||
name: '翻译--6-',
|
||||
icon: React.lazy(() => import('~icons/fatweb/jenkins.jsx')),
|
||||
icon: React.lazy(() => import('~icons/oxygen/jenkins.jsx')),
|
||||
menu: true,
|
||||
auth: false
|
||||
},
|
||||
{
|
||||
path: 'translation--7-',
|
||||
absolutePath: '/tools/translation--7-',
|
||||
absolutePath: '/translation--7-',
|
||||
id: 'tools-translation--7-',
|
||||
component: React.lazy(() => import('@/pages/tools/Translation')),
|
||||
name: '翻译--7-',
|
||||
icon: React.lazy(() => import('~icons/fatweb/jenkins.jsx')),
|
||||
icon: React.lazy(() => import('~icons/oxygen/jenkins.jsx')),
|
||||
menu: true,
|
||||
auth: false
|
||||
},
|
||||
{
|
||||
path: 'translation--8-',
|
||||
absolutePath: '/tools/translation--8-',
|
||||
absolutePath: '/translation--8-',
|
||||
id: 'tools-translation--8-',
|
||||
component: React.lazy(() => import('@/pages/tools/Translation')),
|
||||
name: '翻译--8-',
|
||||
icon: React.lazy(() => import('~icons/fatweb/jenkins.jsx')),
|
||||
icon: React.lazy(() => import('~icons/oxygen/jenkins.jsx')),
|
||||
menu: true,
|
||||
auth: false
|
||||
},
|
||||
{
|
||||
path: 'translation--9-',
|
||||
absolutePath: '/tools/translation--9-',
|
||||
absolutePath: '/translation--9-',
|
||||
id: 'tools-translation--9-',
|
||||
component: React.lazy(() => import('@/pages/tools/Translation')),
|
||||
name: '翻译--9-',
|
||||
icon: React.lazy(() => import('~icons/fatweb/jenkins.jsx')),
|
||||
icon: React.lazy(() => import('~icons/oxygen/jenkins.jsx')),
|
||||
menu: true,
|
||||
auth: false
|
||||
},
|
||||
{
|
||||
path: 'translation--10-',
|
||||
absolutePath: '/tools/translation--10-',
|
||||
absolutePath: '/translation--10-',
|
||||
id: 'tools-translation--10-',
|
||||
component: React.lazy(() => import('@/pages/tools/Translation')),
|
||||
name: '翻译--10-',
|
||||
icon: React.lazy(() => import('~icons/fatweb/jenkins.jsx')),
|
||||
icon: React.lazy(() => import('~icons/oxygen/jenkins.jsx')),
|
||||
menu: true,
|
||||
auth: false,
|
||||
children: [
|
||||
{
|
||||
path: '1-1',
|
||||
absolutePath: '/tools/translation--10-/1-1',
|
||||
absolutePath: '/translation--10-/1-1',
|
||||
id: '1-1',
|
||||
name: '翻译1-',
|
||||
menu: true,
|
||||
@@ -299,7 +299,7 @@ export const tools: RouteJsonObject[] = [
|
||||
},
|
||||
{
|
||||
path: '2-1',
|
||||
absolutePath: '/tools/translation--10-/2-1',
|
||||
absolutePath: '/translation--10-/2-1',
|
||||
id: '2-1',
|
||||
name: '翻译2-',
|
||||
menu: true,
|
||||
@@ -310,7 +310,7 @@ export const tools: RouteJsonObject[] = [
|
||||
{
|
||||
path: '*',
|
||||
absolutePath: '*',
|
||||
element: <Navigate to="/tools" replace />
|
||||
element: <Navigate to="/" replace />
|
||||
}
|
||||
]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user