grim/devweb

a30bcae0f3e1
Parents fa2fb7e1ebe7
Children 32558a1baa41
remove the router for now and clean up the booklist a bit
--- a/frontend/src/App.vue Fri Jan 22 16:40:43 2021 -0600
+++ b/frontend/src/App.vue Fri Jan 22 17:07:41 2021 -0600
@@ -2,7 +2,6 @@
<div id="app" class="h-100 d-flex flex-column align-items-stretch">
<Header/>
<Contents/>
- <router-view/>
</div>
</template>
--- a/frontend/src/components/BookList.vue Fri Jan 22 16:40:43 2021 -0600
+++ b/frontend/src/components/BookList.vue Fri Jan 22 17:07:41 2021 -0600
@@ -1,6 +1,12 @@
<template>
<b-list-group>
- <b-list-group-item v-for="book in books" :key="book.id" :href="'/'+book.id+'/'+book.defaultVersion" :v-active="book.id === active">{{book.displayName}}</b-list-group-item>
+ <b-list-group-item
+ v-for="book in books"
+ :key="book.id"
+ :href="'/'+book.id+'/'+book.defaultVersion"
+ :v-active="book.id === active">
+ {{book.displayName}}
+ </b-list-group-item>
</b-list-group>
</template>
--- a/frontend/src/main.js Fri Jan 22 16:40:43 2021 -0600
+++ b/frontend/src/main.js Fri Jan 22 17:07:41 2021 -0600
@@ -1,6 +1,5 @@
// basics
import Vue from 'vue'
-import VueRouter from 'vue-router'
import App from './App.vue'
import i18n from './i18n'
@@ -11,18 +10,10 @@
Vue.config.productionTip = false
-Vue.use(VueRouter)
Vue.use(BootstrapVue)
Vue.use(IconsPlugin)
-const routes = [
- { path: "/:book/:version", component: App }
-];
-
-const router = new VueRouter({routes});
-
new Vue({
i18n,
- router,
render: h => h(App)
}).$mount('#app')