revamp template
This commit is contained in:
18
src/config/api.config.ts
Normal file
18
src/config/api.config.ts
Normal file
@ -0,0 +1,18 @@
|
||||
interface apiConfigProps {
|
||||
service_user: string;
|
||||
service_master_data: string;
|
||||
service_bank: string;
|
||||
service_bg: string;
|
||||
service_credit: string;
|
||||
}
|
||||
|
||||
const API_URL = import.meta.env.VITE_APP_API_URL;
|
||||
const apiConfig: apiConfigProps = {
|
||||
service_user: `${API_URL}/u`,
|
||||
service_master_data: `${API_URL}/m`,
|
||||
service_bank: `${API_URL}/b`,
|
||||
service_bg: `${API_URL}/bg`,
|
||||
service_credit: `${API_URL}/c`
|
||||
};
|
||||
|
||||
export { apiConfig };
|
||||
8
src/config/general.config.ts
Normal file
8
src/config/general.config.ts
Normal file
@ -0,0 +1,8 @@
|
||||
const generalSettings: any = {
|
||||
purchaseLink: 'https://1.envato.market/Vm7VRE',
|
||||
devsLink: 'https://devs.keenthemes.com',
|
||||
faqLink: 'https://keenthemes.com/metronic',
|
||||
aboutLink: 'https://keenthemes.com/metronic'
|
||||
};
|
||||
|
||||
export { generalSettings };
|
||||
3
src/config/index.ts
Normal file
3
src/config/index.ts
Normal file
@ -0,0 +1,3 @@
|
||||
export * from './settings.config';
|
||||
export * from './general.config';
|
||||
export * from './menu.config';
|
||||
76
src/config/menu.config.tsx
Normal file
76
src/config/menu.config.tsx
Normal file
@ -0,0 +1,76 @@
|
||||
import { type TMenuConfig } from '@/components/menu';
|
||||
|
||||
export const MENU_SIDEBAR: TMenuConfig = [
|
||||
{
|
||||
title: '',
|
||||
children: [
|
||||
{
|
||||
title: 'Dashboard',
|
||||
path: '/'
|
||||
},
|
||||
{
|
||||
title: 'Pengajuan Kredit',
|
||||
children: [
|
||||
{
|
||||
title: 'Chart',
|
||||
path: '/pengajuan_kredit/chart'
|
||||
},
|
||||
{
|
||||
title: 'Summary',
|
||||
path: '/pengajuan_kredit/summary'
|
||||
},
|
||||
{
|
||||
title: 'List',
|
||||
path: '/pengajuan_kredit/list'
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
title: 'Instansi',
|
||||
path: '/instansi'
|
||||
},
|
||||
{
|
||||
title: 'Configuration',
|
||||
children: [
|
||||
{
|
||||
title: 'User Management',
|
||||
children: [
|
||||
{
|
||||
title: 'Manage Position',
|
||||
path: '/configuration/user-management/manage-position'
|
||||
},
|
||||
{
|
||||
title: 'Manage User',
|
||||
path: '/configuration/user-management/manage-user'
|
||||
},
|
||||
|
||||
{
|
||||
title: 'Log Activity',
|
||||
path: '/configuration/user-management/log-activity'
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
title: 'Account',
|
||||
children: [
|
||||
{
|
||||
title: 'User Profile',
|
||||
path: '/account/home/user-profile'
|
||||
}
|
||||
]
|
||||
}
|
||||
];
|
||||
|
||||
export const MENU_ROOT: TMenuConfig = [
|
||||
{
|
||||
title: 'Pengajuan Kredit',
|
||||
icon: 'setting-2',
|
||||
rootPath: '/',
|
||||
path: '/',
|
||||
childrenIndex: 0
|
||||
}
|
||||
];
|
||||
20
src/config/settings.config.ts
Normal file
20
src/config/settings.config.ts
Normal file
@ -0,0 +1,20 @@
|
||||
import { type TKeenIconsStyle } from '../components/keenicons/types';
|
||||
|
||||
export type TSettingsThemeMode = 'light' | 'dark' | 'system';
|
||||
|
||||
export type TSettingsContainer = 'default' | 'fluid' | 'fixed';
|
||||
|
||||
export interface ISettings {
|
||||
themeMode: TSettingsThemeMode;
|
||||
container: TSettingsContainer;
|
||||
keeniconsStyle: TKeenIconsStyle;
|
||||
}
|
||||
|
||||
// Default settings for the application
|
||||
const defaultSettings: ISettings = {
|
||||
themeMode: 'light', // Default to light mode for the application
|
||||
keeniconsStyle: 'filled', // Default to using filled KeenIcons style
|
||||
container: 'fixed' // Default container layout is set to fixed
|
||||
};
|
||||
|
||||
export { defaultSettings };
|
||||
Reference in New Issue
Block a user