Modules store and bar (#112)

* 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
This commit is contained in:
Rijk van Zanten
2020-02-19 15:21:54 -05:00
committed by GitHub
parent a16569f45d
commit 031bae4ac8
31 changed files with 270 additions and 96 deletions

View File

@@ -1,8 +1,10 @@
import { ModuleConfig } from '@/modules/types';
import { ModuleConfig } from '@/types/modules';
import Settings from './settings.vue';
const config: ModuleConfig = {
id: 'settings',
icon: 'settings',
name: i18n => i18n.t('settings'),
routes: [
{
path: '/',