You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

35 lines
846 B

  1. /**
  2. * First we will load all of this project's JavaScript dependencies which
  3. * includes Vue and other libraries. It is a great starting point when
  4. * building robust, powerful web applications using Vue and Laravel.
  5. */
  6. require('./bootstrap');
  7. $.ajaxSetup({
  8. headers: {
  9. 'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content')
  10. }
  11. });
  12. window.Vue = require('vue');
  13. /**
  14. * Next, we will create a fresh Vue application instance and attach it to
  15. * the page. Then, you may begin adding components to this application
  16. * or customize the JavaScript scaffolding to fit your unique needs.
  17. */
  18. Vue.component('tweet-queue', require('./components/TweetQueue.vue'));
  19. Vue.component('scorecard', require('./components/Scorecard.vue'));
  20. var data = {
  21. queue: [],
  22. showScorecard: false,
  23. };
  24. var app = new Vue({
  25. el: '#app',
  26. data: data
  27. });