-
-
- {{ episode.description }}
-
-
+
+
+ {{ episode.description }}
+
+
-
+
-
-
- Deleted Scene {{ scene.deleted }}
-
+
+
+ Deleted Scene {{ scene.deleted }}
+
@@ -24,7 +42,7 @@
diff --git a/client/src/components/Home.vue b/client/src/components/Home.vue
index 948d470..ce53609 100644
--- a/client/src/components/Home.vue
+++ b/client/src/components/Home.vue
@@ -1,8 +1,9 @@
- A Vue.js application serving you {{ stats.totals.quote }} quotes from your favorite show - The Office.
-
+ A Vue.js application serving you {{ stats.totals.quote }} quotes from your
+ favorite show - The Office.
+
Click on a Season and Episode on the left-hand sidebar to view quotes.
Search for quotes with the instant searchbox.
@@ -10,41 +11,42 @@
diff --git a/client/src/components/SearchResult.vue b/client/src/components/SearchResult.vue
index 73d4d44..c8f691c 100644
--- a/client/src/components/SearchResult.vue
+++ b/client/src/components/SearchResult.vue
@@ -1,9 +1,19 @@
-
+
-
+
|
{{ quote.speaker }}
|
@@ -12,10 +22,20 @@
- |
- |
+ |
+ |
-
+
|
{{ quote.speaker }}
|
@@ -26,14 +46,27 @@
-
- Season {{ item.season }} Episode {{ item.episode_rel }} Scene {{ item.section_rel }}
+
+ Season {{ item.season }} Episode {{ item.episode_rel }} Scene
+ {{ item.section_rel }}
@@ -73,57 +106,58 @@
font-weight: 600;
vertical-align: text-top;
text-align: right;
- font-family: 'Montserrat', sans-serif;
+ font-family: "Montserrat", sans-serif;
}
diff --git a/client/src/main.js b/client/src/main.js
index 2f5fcbd..d2ca680 100644
--- a/client/src/main.js
+++ b/client/src/main.js
@@ -1,19 +1,29 @@
-import 'bootstrap/dist/css/bootstrap.css';
-import Vue from 'vue';
-import { BootstrapVue, BootstrapVueIcons } from 'bootstrap-vue';
-import InstantSearch from 'vue-instantsearch';
-import VueScrollTo from 'vue-scrollto';
-import App from './App.vue';
-import router from './router';
+import "bootstrap/dist/css/bootstrap.css";
+import Vue from "vue";
+import {BootstrapVue, BootstrapVueIcons} from "bootstrap-vue";
+import InstantSearch from "vue-instantsearch";
+import VueClipboard from 'vue-clipboard2'
+import VueScrollTo from "vue-scrollto";
+import App from "./App.vue";
+import router from "./router";
+import store from "./store";
Vue.use(VueScrollTo);
Vue.use(BootstrapVue);
Vue.use(BootstrapVueIcons);
Vue.use(InstantSearch);
+Vue.use(VueClipboard)
Vue.config.productionTip = false;
+router.beforeEach((to, from, next) => {
+ // eslint-disable-next-line no-constant-condition
+ if (from.name !== null && to.name === "Character" && false) next(false);
+ else next();
+});
+
new Vue({
- router,
- render: (h) => h(App),
-}).$mount('#app');
+ router,
+ store,
+ render: (h) => h(App),
+}).$mount("#app");
diff --git a/client/src/store.js b/client/src/store.js
new file mode 100644
index 0000000..b228841
--- /dev/null
+++ b/client/src/store.js
@@ -0,0 +1,12 @@
+import Vue from "vue";
+import Vuex from "vuex";
+
+Vue.use(Vuex);
+
+export default new Vuex.Store({
+ state: {
+ episodeCount: [6, 22, 23, 14, 26, 24, 24, 24, 23]
+ },
+ mutations: {},
+ actions: {},
+});