mirror of
https://github.com/directus/directus.git
synced 2026-04-25 03:00:53 -04:00
* Register views globally * Use global private view in debug route * Register login route * Add barebones login form * Add auth check on routing * Add tests and extract checkAuth function * Fix tests of router * Move stores into subfolders * Register modules from modules store * Register name / icon in modules store * Update module configs * Render v-button in module sidebar * Render correct paths in module sidebar * Add activated style to button * Use correct color for button in module bar * Use correct icons for system modules * Add tests for modules store * Remove readme in favor of inline comments
17 lines
276 B
TypeScript
17 lines
276 B
TypeScript
import { ModuleConfig } from '@/types/modules';
|
|
import Settings from './settings.vue';
|
|
|
|
const config: ModuleConfig = {
|
|
id: 'settings',
|
|
icon: 'settings',
|
|
name: i18n => i18n.t('settings'),
|
|
routes: [
|
|
{
|
|
path: '/',
|
|
component: Settings
|
|
}
|
|
]
|
|
};
|
|
|
|
export default config;
|