- Added session initialization in main.ts to manage user sessions. - Updated router to include a new route for joining or creating a general. - Enhanced session store with methods for managing session tokens and user profiles. - Introduced new components for displaying city, general, nation, and command information. - Implemented loading states and error handling in the main view. - Created a skeleton loader component for better user experience during data fetching. - Updated TypeScript definitions for route metadata to include new authentication requirements.
18 lines
390 B
TypeScript
18 lines
390 B
TypeScript
import { createApp } from 'vue';
|
|
import { createPinia } from 'pinia';
|
|
import App from './App.vue';
|
|
import router from './router';
|
|
import './assets/main.css';
|
|
import { useSessionStore } from './stores/session';
|
|
|
|
const app = createApp(App);
|
|
|
|
const pinia = createPinia();
|
|
app.use(pinia);
|
|
app.use(router);
|
|
|
|
const session = useSessionStore(pinia);
|
|
void session.initialize();
|
|
|
|
app.mount('#app');
|