♻️ refactor: Refactoring and adding multiple features
This commit is contained in:
+24
-59
@@ -1,42 +1,3 @@
|
||||
export const AuthControl = [
|
||||
{
|
||||
title: 'Email',
|
||||
url: '/dashboard/auth-control/email',
|
||||
},
|
||||
{
|
||||
title: 'Phone Number',
|
||||
url: '/dashboard/auth-control/phone',
|
||||
},
|
||||
{
|
||||
title: 'Telegram',
|
||||
url: '/dashboard/auth-control/telegram',
|
||||
},
|
||||
{
|
||||
title: 'Apple',
|
||||
url: '/dashboard/auth-control/apple',
|
||||
},
|
||||
{
|
||||
title: 'Google',
|
||||
url: '/dashboard/auth-control/google',
|
||||
},
|
||||
{
|
||||
title: 'Facebook',
|
||||
url: '/dashboard/auth-control/facebook',
|
||||
},
|
||||
// {
|
||||
// title: 'Twitter',
|
||||
// url: '/dashboard/auth-control/twitter',
|
||||
// },
|
||||
{
|
||||
title: 'GitHub',
|
||||
url: '/dashboard/auth-control/github',
|
||||
},
|
||||
{
|
||||
title: 'Device',
|
||||
url: '/dashboard/auth-control/device',
|
||||
},
|
||||
];
|
||||
|
||||
export const navs = [
|
||||
{
|
||||
title: 'Dashboard',
|
||||
@@ -44,7 +5,7 @@ export const navs = [
|
||||
icon: 'flat-color-icons:globe',
|
||||
},
|
||||
{
|
||||
title: 'Settings',
|
||||
title: 'System Management',
|
||||
items: [
|
||||
{
|
||||
title: 'System Config',
|
||||
@@ -55,7 +16,16 @@ export const navs = [
|
||||
title: 'Auth Control',
|
||||
url: '/dashboard/auth-control',
|
||||
icon: 'flat-color-icons:lock-portrait',
|
||||
items: AuthControl,
|
||||
},
|
||||
{
|
||||
title: 'Payment Config',
|
||||
url: '/dashboard/payment',
|
||||
icon: 'flat-color-icons:currency-exchange',
|
||||
},
|
||||
{
|
||||
title: 'Subscribe Config',
|
||||
url: '/dashboard/subscribe',
|
||||
icon: 'flat-color-icons:ruler',
|
||||
},
|
||||
{
|
||||
title: 'ADS Config',
|
||||
@@ -63,9 +33,9 @@ export const navs = [
|
||||
icon: 'flat-color-icons:electrical-sensor',
|
||||
},
|
||||
{
|
||||
title: 'Payment Config',
|
||||
url: '/dashboard/payment',
|
||||
icon: 'flat-color-icons:currency-exchange',
|
||||
title: 'System Tool',
|
||||
url: '/dashboard/tool',
|
||||
icon: 'flat-color-icons:info',
|
||||
},
|
||||
],
|
||||
},
|
||||
@@ -77,21 +47,16 @@ export const navs = [
|
||||
url: '/dashboard/server',
|
||||
icon: 'flat-color-icons:data-protection',
|
||||
},
|
||||
{
|
||||
title: 'Product Management',
|
||||
url: '/dashboard/product',
|
||||
icon: 'flat-color-icons:shop',
|
||||
},
|
||||
{
|
||||
title: 'Application Management',
|
||||
url: '/dashboard/application',
|
||||
icon: 'flat-color-icons:touchscreen-smartphone',
|
||||
},
|
||||
{
|
||||
title: 'Rule Management',
|
||||
url: '/dashboard/rules',
|
||||
icon: 'flat-color-icons:ruler',
|
||||
},
|
||||
{
|
||||
title: 'Subscribe Management',
|
||||
url: '/dashboard/subscribe',
|
||||
icon: 'flat-color-icons:shop',
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
@@ -123,6 +88,11 @@ export const navs = [
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
title: 'Marketing Management',
|
||||
url: '/dashboard/marketing',
|
||||
icon: 'flat-color-icons:bullish',
|
||||
},
|
||||
{
|
||||
title: 'Announcement Management',
|
||||
url: '/dashboard/announcement',
|
||||
@@ -140,11 +110,6 @@ export const navs = [
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
title: 'System Tool',
|
||||
url: '/dashboard/tool',
|
||||
icon: 'flat-color-icons:info',
|
||||
},
|
||||
];
|
||||
|
||||
export function findNavByUrl(url: string) {
|
||||
|
||||
Reference in New Issue
Block a user