diff --git a/frontend/src/App.vue b/frontend/src/App.vue index d8074ae..b167b5e 100644 --- a/frontend/src/App.vue +++ b/frontend/src/App.vue @@ -51,7 +51,7 @@ methods: { newFile: function() { this.$store.dispatch('newFile') - .catch(err => console.log(err)) + .catch(() => {}) .then(file => { this.$store.dispatch('updateSearch') this.$router.push({ name: 'console-slug', params: { slug: file.Slug }}) diff --git a/frontend/src/components/MainEditor.vue b/frontend/src/components/MainEditor.vue index cbc41ca..1b2c4ec 100644 --- a/frontend/src/components/MainEditor.vue +++ b/frontend/src/components/MainEditor.vue @@ -78,9 +78,7 @@ if (res.data.Slug != this.$route.params.slug) this.$router.replace({params: { slug: res.data.Slug }}) }) - .catch(err => { - console.log('err:' + err) - }) + .catch(() => { }) } }, components: {TagList, Editor} diff --git a/frontend/src/components/MainView.vue b/frontend/src/components/MainView.vue index 75a6bea..a7c4e0b 100644 --- a/frontend/src/components/MainView.vue +++ b/frontend/src/components/MainView.vue @@ -8,7 +8,7 @@ - + diff --git a/frontend/src/components/Search.vue b/frontend/src/components/Search.vue index 286df71..1fc8b47 100644 --- a/frontend/src/components/Search.vue +++ b/frontend/src/components/Search.vue @@ -37,7 +37,6 @@ }, computed: { results: function() { - console.log("results:"+this.$store.state.searchResults) return this.$store.state.searchResults } }, diff --git a/frontend/src/store/index.js b/frontend/src/store/index.js index 2f28a9a..7b3873e 100644 --- a/frontend/src/store/index.js +++ b/frontend/src/store/index.js @@ -73,7 +73,6 @@ export default new Vuex.Store({ updateSearch: function ({commit, state}) { return new Promise((resolve, reject) => { let query = state.query || "" - console.log("running search for: " + query) axios.get('/v1/entries?query='+query) .catch(err => { state.addError(err) @@ -86,7 +85,6 @@ export default new Vuex.Store({ }) }, saveFile: function({state}) { - console.log(state.file) if (state.file) return axios.put('/v1/entries/'+state.file.Slug, state.file) }, @@ -94,11 +92,9 @@ export default new Vuex.Store({ axios.delete('/v1/entries/'+slug) .catch(err => { commit('addError', err) - console.log(err) }) - .then(res => { + .then(() => { dispatch('updateSearch') - console.log(res.status, res.statusText) }) } },