Skip to content

Commit

Permalink
Merge pull request #17 from ninja5pizza/share-link
Browse files Browse the repository at this point in the history
Add copy to clipboard
  • Loading branch information
mvdnbrk authored Dec 3, 2024
2 parents f78e49c + bf7619f commit bc8b90f
Show file tree
Hide file tree
Showing 11 changed files with 356 additions and 25 deletions.
2 changes: 1 addition & 1 deletion app/Providers/AppServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
namespace App\Providers;

use App\Ninja5;
use Illuminate\Http\Resources\Json\JsonResource;
use Illuminate\Support\Facades\View;
use Illuminate\Support\ServiceProvider;
use Illuminate\Http\Resources\Json\JsonResource;

class AppServiceProvider extends ServiceProvider
{
Expand Down
236 changes: 235 additions & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,15 @@
"build": "vite build"
},
"devDependencies": {
"@vitejs/plugin-vue": "^5.2.1",
"autoprefixer": "^10.4.20",
"axios": "^1.7.8",
"laravel-vite-plugin": "^1.0.6",
"lightweight-charts": "^4.2.1",
"postcss": "^8.4.49",
"shiki": "^1.24.0",
"tailwindcss": "^3.4.15",
"vite": "^5.4.11"
"vite": "^5.4.11",
"vue": "^3.5.13"
}
}
9 changes: 9 additions & 0 deletions resources/js/bootstrap.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,12 @@ 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({}); // Create an empty Vue application
app.component('share-ninja', ShareNinja); // Register your component globally
app.mount('#app'); // Mount the Vue app to #app
});
Loading

0 comments on commit bc8b90f

Please sign in to comment.