Skip to content

Commit

Permalink
Misc
Browse files Browse the repository at this point in the history
  • Loading branch information
mvdnbrk committed Dec 5, 2024
1 parent d42a43c commit 07bd64a
Show file tree
Hide file tree
Showing 6 changed files with 209 additions and 201 deletions.
9 changes: 0 additions & 9 deletions resources/js/bootstrap.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,3 @@ import axios from 'axios';
window.axios = axios;

window.axios.defaults.headers.common['X-Requested-With'] = 'XMLHttpRequest';

import { createApp } from 'vue';
import ShareNinja from './components/ShareNinja.vue';

document.addEventListener('DOMContentLoaded', () => {
const app = createApp({});
app.component('share-ninja', ShareNinja);
app.mount('#app');
});
8 changes: 8 additions & 0 deletions resources/js/vue.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import { createApp } from 'vue';
import ShareNinja from './components/ShareNinja.vue';

document.addEventListener('DOMContentLoaded', () => {
const app = createApp({});
app.component('share-ninja', ShareNinja);
app.mount('#app');
});
18 changes: 10 additions & 8 deletions resources/views/components/layout/main.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,16 +18,18 @@
<script src="https://cdn.usefathom.com/script.js" data-site="{{ config('services.fathom.site_id') }}" defer></script>
@endif
</head>
<body id="app" class="bg-pizza-orange">
<x-navigation-bar/>
<body class="bg-pizza-orange">
<div id="app">
<x-navigation-bar/>

<main>
{{ $slot }}
</main>
<main>
{{ $slot }}
</main>

<x-layout.footer/>
<x-layout.footer/>

@vite('resources/js/app.js')
@stack('scripts')
@vite('resources/js/app.js')
@stack('scripts')
</div>
</body>
</html>
Loading

0 comments on commit 07bd64a

Please sign in to comment.