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.

58 lines
2.2 KiB

  1. /*
  2. * app.js
  3. * Copyright (c) 2021 james@firefly-iii.org
  4. *
  5. * This file is part of the Firefly III Data Importer
  6. * (https://github.com/firefly-iii/data-importer).
  7. *
  8. * This program is free software: you can redistribute it and/or modify
  9. * it under the terms of the GNU Affero General Public License as
  10. * published by the Free Software Foundation, either version 3 of the
  11. * License, or (at your option) any later version.
  12. *
  13. * This program is distributed in the hope that it will be useful,
  14. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  15. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  16. * GNU Affero General Public License for more details.
  17. *
  18. * You should have received a copy of the GNU Affero General Public License
  19. * along with this program. If not, see <https://www.gnu.org/licenses/>.
  20. */
  21. /**
  22. * First we will load all of this project's JavaScript dependencies which
  23. * includes Vue and other libraries. It is a great starting point when
  24. * building robust, powerful web applications using Vue and Laravel.
  25. */
  26. require('./bootstrap');
  27. window.Vue = require('vue');
  28. import ConversionStatus from "./components/import/ConversionStatus";
  29. /**
  30. * The following block of code may be used to automatically register your
  31. * Vue components. It will recursively scan this directory for the Vue
  32. * components and automatically register them with their "basename".
  33. *
  34. * Eg. ./components/ExampleComponent.vue -> <example-component></example-component>
  35. */
  36. // const files = require.context('./', true, /\.vue$/i)
  37. // files.keys().map(key => Vue.component(key.split('/').pop().split('.')[0], files(key).default))
  38. Vue.component('conversion-messages', require('./components/import/ConversionMessages.vue').default);
  39. Vue.component('conversion-status', ConversionStatus);
  40. /**
  41. * Next, we will create a fresh Vue application instance and attach it to
  42. * the page. Then, you may begin adding components to this application
  43. * or customize the JavaScript scaffolding to fit your unique needs.
  44. */
  45. let props = {};
  46. new Vue({
  47. el: "#app",
  48. render: (createElement) => {
  49. return createElement(ConversionStatus, { props: props })
  50. },
  51. });