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.

36 lines
918 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('import-tweet', require('./components/ImportTweet.vue'));
  20. Vue.component('scorecard', require('./components/Scorecard.vue'));
  21. var data = {
  22. queue: [],
  23. showScorecard: false,
  24. };
  25. var app = new Vue({
  26. el: '#app',
  27. data: data
  28. });