Front stack primary updates and improvements (#757)

* (fix) index.html formating for prettier

* (add) proper icon management
- on-demand icons auto importing
- handle all available icon sets (https://icones.js.org)

* (fix) proper css management

* (add) front stack improvement:
- implement vue router
- prepare for App.vue simplification
- proper management of views and layouts
- fix Tailwind CSS and prepare for overall css cleaning

* (fix) move back user.css to public dir

* (fix) remove user.css import from main.ts
This commit is contained in:
ArtificialLab
2024-09-11 03:53:54 +04:00
committed by GitHub
parent 90abf9744c
commit 05b3ad2f59
12 changed files with 655 additions and 125 deletions

28
src/router.ts Normal file
View File

@@ -0,0 +1,28 @@
import { createRouter, createWebHistory } from 'vue-router'
import LayoutDefault from '@/views/layouts/LayoutDefault.vue'
const router = createRouter({
history: createWebHistory(),
routes: [
{
path: '/',
component: LayoutDefault,
children: [
{
path: '',
component: () => import('@/views/GraphView.vue')
}
]
}
],
scrollBehavior(to, from, savedPosition) {
if (savedPosition) {
return savedPosition
} else {
return { top: 0 }
}
}
})
export default router