Initial commit
This commit is contained in:
32
src/main.ts
Normal file
32
src/main.ts
Normal file
@@ -0,0 +1,32 @@
|
||||
import {createApp} from 'vue'
|
||||
import './style.css'
|
||||
import App from './App.vue'
|
||||
import PrimeVue from 'primevue/config';
|
||||
import Aura from '@primeuix/themes/aura';
|
||||
import {createMemoryHistory, createRouter, type Router, type RouteRecordRaw} from "vue-router";
|
||||
import Playground from "./views/Playground.vue";
|
||||
|
||||
const routes: RouteRecordRaw[] = [
|
||||
{path: '/foo', component: Playground}
|
||||
]
|
||||
|
||||
const router: Router = createRouter({
|
||||
history: createMemoryHistory(),
|
||||
routes
|
||||
})
|
||||
|
||||
const app = createApp(App);
|
||||
app.use(PrimeVue, {
|
||||
theme: {
|
||||
preset: Aura,
|
||||
options: {
|
||||
cssLayer: {
|
||||
name: 'primevue',
|
||||
order: 'theme, base, primevue'
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
app.use(router);
|
||||
|
||||
app.mount('#app');
|
||||
Reference in New Issue
Block a user