2023-02-19 17:13:33 +01:00
|
|
|
import { createApp } from 'vue';
|
|
|
|
|
import './style.css';
|
|
|
|
|
|
|
|
|
|
import 'primevue/resources/themes/saga-blue/theme.css';
|
|
|
|
|
import 'primevue/resources/primevue.min.css';
|
|
|
|
|
import 'primeicons/primeicons.css';
|
|
|
|
|
|
|
|
|
|
import PrimeVue from 'primevue/config';
|
|
|
|
|
|
|
|
|
|
import { createRouter, createWebHashHistory } from 'vue-router';
|
|
|
|
|
|
|
|
|
|
import App from './App.vue';
|
2023-02-22 15:59:23 +01:00
|
|
|
import Login from './views/Login.vue';
|
|
|
|
|
import Home from './views/Home.vue';
|
2023-02-19 17:13:33 +01:00
|
|
|
|
|
|
|
|
const routes = [
|
|
|
|
|
{ path: '/home', component: Home },
|
|
|
|
|
{ path: '/login', component: Login },
|
|
|
|
|
];
|
|
|
|
|
|
|
|
|
|
const router = createRouter({
|
|
|
|
|
// 4. Provide the history implementation to use. We are using the hash history for simplicity here.
|
|
|
|
|
history: createWebHashHistory(),
|
|
|
|
|
routes, // short for `routes: routes`
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
const app = createApp(App);
|
|
|
|
|
|
|
|
|
|
app.use(router);
|
|
|
|
|
app.use(PrimeVue, { ripple: true });
|
|
|
|
|
|
|
|
|
|
app.mount('#app');
|