Initial commit, framework/frontend assets setup

This commit is contained in:
Maarten 2024-11-25 18:59:11 +01:00
commit 9d9858bb37
32 changed files with 4651 additions and 0 deletions

21
resources/scripts/main.ts Normal file
View file

@ -0,0 +1,21 @@
import '@styles/main.scss';
import { createApp } from 'vue';
import ToastPlugin from 'vue-toast-notification';
import 'vue-toast-notification/dist/theme-default.css';
// Import components
import Subnet from '@app/Subnet.vue';
// Initialize vue app
function initializeApp(element: string, component: any): void {
const app = createApp(component);
// Use plugins and global settings
app.use(ToastPlugin);
// Mount the app to a specific DOM element
app.mount(element);
}
// Load components
initializeApp('#subnet-app', Subnet);