Initial commit, framework/frontend assets setup
This commit is contained in:
commit
9d9858bb37
32 changed files with 4651 additions and 0 deletions
21
resources/scripts/main.ts
Normal file
21
resources/scripts/main.ts
Normal 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);
|
Loading…
Add table
Add a link
Reference in a new issue