main.js 848 B

1234567891011121314151617181920212223242526
  1. // Copyright 2019 Hackware SpA <human@hackware.cl>
  2. // This file is part of "Hackware Userland" and licensed under the terms
  3. // of the GNU Affero General Public License version 3, or (at your option)
  4. // a later version. You should have received a copy of this license along
  5. // with the software. If not, see <https://www.gnu.org/licenses/>.
  6. import '@fortawesome/fontawesome-free/css/all.css';
  7. import Vue from 'vue';
  8. import App from './App.vue';
  9. import router from './router';
  10. import Auth from './Auth';
  11. import Fetcher from './Fetcher';
  12. import './filters';
  13. Vue.prototype.$fetcher = new Fetcher(process.env.VUE_APP_HAWESE_ENDPOINT);
  14. Vue.prototype.$auth = new Auth(Vue.prototype.$fetcher);
  15. Vue.prototype.$eventHub = new Vue(); // This looks like Vuex
  16. Vue.config.productionTip = false;
  17. new Vue({
  18. router,
  19. render: h => h(App),
  20. }).$mount('#app');