From a386460e85994871a13fd3557c764fcf1752c483 Mon Sep 17 00:00:00 2001
From: Henrik Askjer <henrik.askjer@uib.no>
Date: Mon, 3 Jan 2022 14:41:36 +0100
Subject: [PATCH] cleanup

---
 src/components/Article.vue        | 4 ----
 src/components/CompoundList.vue   | 1 -
 src/components/DefElement.vue     | 1 -
 src/components/Definition.vue     | 1 -
 src/components/DictionaryView.vue | 7 -------
 src/main.js                       | 2 --
 6 files changed, 16 deletions(-)

diff --git a/src/components/Article.vue b/src/components/Article.vue
index c6175402..2e4b1fbf 100644
--- a/src/components/Article.vue
+++ b/src/components/Article.vue
@@ -141,8 +141,6 @@ export default {
   },
   methods: {
     parse_definitions: function(node) {
-      //console.log(entities["nn"]["overf"])
-
       let definitionTexts = []
 
       node.forEach((definition) => {
@@ -198,11 +196,9 @@ export default {
       this.collapsed = true
     },
     article_link_click: function(item) {
-      console.log("LINK CLICK ARTIClE")
       this.$emit('article-click', item)
     },
     details_click: function(item) {
-      console.log("DETAILS ARTICLE")
       item.title_id = this.title_id
       this.$emit('details-click', item)
     }
diff --git a/src/components/CompoundList.vue b/src/components/CompoundList.vue
index 9293e7d8..fd02c852 100644
--- a/src/components/CompoundList.vue
+++ b/src/components/CompoundList.vue
@@ -28,7 +28,6 @@ export default {
   },
   methods: {
     article_link_click: function(item) {
-      console.log("COMPOUND")
       this.$emit('article-click', item)
     }
   }
diff --git a/src/components/DefElement.vue b/src/components/DefElement.vue
index 34b224bf..20a2491c 100644
--- a/src/components/DefElement.vue
+++ b/src/components/DefElement.vue
@@ -94,7 +94,6 @@ export default {
   },
   methods: {
     article_link_click: function(item) {
-      console.log("DEFELEMENT LINK", item)
       this.$emit('article-click', item)
     },
     roman_hgno: helpers.roman_hgno
diff --git a/src/components/Definition.vue b/src/components/Definition.vue
index 8ab55dd5..9959162f 100644
--- a/src/components/Definition.vue
+++ b/src/components/Definition.vue
@@ -66,7 +66,6 @@ var Definition = {
   },
   methods: {
     article_link_click: function(item) {
-      console.log("DEF LINK")
       this.$emit('article-click', item)
     },
     has_article_ref: function(item){
diff --git a/src/components/DictionaryView.vue b/src/components/DictionaryView.vue
index 8b497c5d..17d38c1e 100644
--- a/src/components/DictionaryView.vue
+++ b/src/components/DictionaryView.vue
@@ -428,20 +428,16 @@ export default {
       },
 
     article_link_click: function(item) {
-      console.log("ARTICLE DICT")
       if (this.article && this.article.article_id == item.article_id){
         this.article_key++
         this.replace_history()
-        console.log("ARTICLE LINK A")
 
       }else{
-        console.log("ARTICLE LINK B")
         navigate_to_article(this, item.source)
       }
     },
     details_click: function(item) {
       this.article = item.article
-      console.log("DETAILS DICT")
       this.replace_history()
     },
     return_to_results: function() {
@@ -507,8 +503,6 @@ export default {
   },
   watch: {
     $route(to, from) {
-      console.log("TO", to)
-      console.log("FROM", from)
       if (to.fullPath == "/") {        
         this.load_monthly_bm()
         this.load_monthly_nn()
@@ -522,7 +516,6 @@ export default {
     let self = this
     window.onpopstate = function (event) {
       if (event.state) {
-        console.log("POP")
         self.article = event.state.article
         self.search_results = event.state.search_results
         self.lang = event.state.lang
diff --git a/src/main.js b/src/main.js
index 8bd0038c..2e31d7d5 100644
--- a/src/main.js
+++ b/src/main.js
@@ -67,7 +67,6 @@ const router = new VueRouter({
             {
               path: 'nob/*',
               redirect: to => {
-                console.log(to)
                 return "nn/" + to.params.pathMatch
               }
             },
@@ -100,7 +99,6 @@ const store = new Vuex.Store({
   },
   mutations: {
     initStore(state) {
-      console.log("INIT_STATE",state)
       state.showSearchToolbar = localStorage.getItem('showSearchToolbar') || false
       state.showInflectionNo = localStorage.getItem('showInflectionNo') || false
       state.currentLocale = localStorage.getItem('currentLocale')
-- 
GitLab