You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
43 lines
696 B
JavaScript
43 lines
696 B
JavaScript
import 'tachyons';
|
|
import './styles/index.css';
|
|
|
|
import Vue from 'vue';
|
|
import Home from './Home.vue';
|
|
import App from './App.vue';
|
|
import GetWorker from './workerInterface.js';
|
|
import Router from 'vue-router';
|
|
|
|
|
|
Vue.use(Router)
|
|
|
|
const router = new Router({
|
|
routes: [
|
|
{
|
|
path: '/',
|
|
name: 'home',
|
|
component: Home,
|
|
},
|
|
{
|
|
path:'/u/:uploadId',
|
|
name: 'upload',
|
|
//component:
|
|
}
|
|
|
|
]
|
|
})
|
|
|
|
//const router = new VueRouter({
|
|
//routes
|
|
//})
|
|
|
|
|
|
const app = new Vue({
|
|
template: '<App/>',
|
|
components: { App },
|
|
router: router
|
|
}).$mount('#app');
|
|
|
|
//window.worker = GetWorker('main');
|
|
|
|
|