41 行
1.4 KiB
JavaScript
41 行
1.4 KiB
JavaScript
|
|
/**
|
|
* First we will load all of this project's JavaScript dependencies which
|
|
* includes Vue and other libraries. It is a great starting point when
|
|
* building robust, powerful web applications using Vue and Laravel.
|
|
*/
|
|
|
|
require('./bootstrap');
|
|
|
|
window.Vue = require('vue');
|
|
|
|
/**
|
|
* Next, we will create a fresh Vue application instance and attach it to
|
|
* the page. Then, you may begin adding components to this application
|
|
* or customize the JavaScript scaffolding to fit your unique needs.
|
|
*/
|
|
|
|
// Vue.component('example', require('./components/Example.vue'));
|
|
|
|
// Global.
|
|
Vue.component('global-menu', require('./components/Global/Menu.vue'));
|
|
|
|
// Homepage.
|
|
Vue.component('new-items', require('./components/Home/New.vue'));
|
|
Vue.component('hot-items', require('./components/Home/Hot.vue'));
|
|
|
|
// Entry page.
|
|
Vue.component('entry-title', require('./components/Entry/Title.vue'));
|
|
Vue.component('entry-screenshots', require('./components/Entry/Screenshots.vue'));
|
|
Vue.component('entry-description', require('./components/Entry/Description.vue'));
|
|
Vue.component('entry-changelog', require('./components/Entry/Changelog.vue'));
|
|
|
|
// Category page.
|
|
Vue.component('category-entry', require('./components/Category/All.vue'));
|
|
Vue.component('category-entry-downloads', require('./components/Category/Downloads.vue'));
|
|
Vue.component('category-entry-views', require('./components/Category/Views.vue'));
|
|
|
|
new Vue({
|
|
el: '#app'
|
|
});
|