From 838a89b7362c2767fdb0d93abd21017b5fb75a89 Mon Sep 17 00:00:00 2001 From: Roman Cervantes Date: Wed, 7 Nov 2018 20:41:27 -0700 Subject: [PATCH] Added sentry.io --- package.json | 2 ++ src/main.js | 9 +++++++++ yarn.lock | 10 ++++++++++ 3 files changed, 21 insertions(+) diff --git a/package.json b/package.json index 2db4d7a4..1ce9e9d3 100755 --- a/package.json +++ b/package.json @@ -24,6 +24,7 @@ "lodash": "^4.17.11", "moment": "^2.22.1", "node-sass": "^4.8.3", + "raven-js": "^3.27.0", "sass-loader": "^7.0.1", "sw-precache-webpack-plugin": "^0.11.5", "v-tooltip": "^2.0.0-rc.33", @@ -35,6 +36,7 @@ "vue-gallery": "^1.5.0", "vue-gravatar": "^1.2.1", "vue-i18n": "^8.0.0", + "vue-raven": "^1.0.0", "vue-router": "^3.0.1", "vue-sweetalert2": "^1.5.3", "vuedraggable": "^2.16.0", diff --git a/src/main.js b/src/main.js index 226ff523..a844f17a 100755 --- a/src/main.js +++ b/src/main.js @@ -8,6 +8,8 @@ import VueI18n from 'vue-i18n'; import VueSweetalert2 from 'vue-sweetalert2'; import axios from 'axios'; import VueAnalytics from 'vue-analytics'; +import Raven from 'raven-js'; +import RavenVue from 'raven-js/plugins/vue'; import App from './App'; import messages from './i18n'; import router from './router'; @@ -42,6 +44,13 @@ Vue.use(VueFire); Vue.use(VueI18n); Vue.use(VueSweetalert2); +if (process.env.NODE_ENV !== 'development') { + Raven + .config('https://15928bc58e7b45ac93878da6d8146064@sentry.io/1315568') + .addPlugin(RavenVue, Vue) + .install(); +} + Vue.config.productionTip = false; router.beforeEach((to, from, next) => { diff --git a/yarn.lock b/yarn.lock index a4e1f3fc..96a84459 100644 --- a/yarn.lock +++ b/yarn.lock @@ -7479,6 +7479,10 @@ range-parser@^1.0.3, range-parser@^1.2.0, range-parser@~1.2.0: version "1.2.0" resolved "https://registry.yarnpkg.com/range-parser/-/range-parser-1.2.0.tgz#f49be6b487894ddc40dcc94a322f611092e00d5e" +raven-js@^3.22.3, raven-js@^3.27.0: + version "3.27.0" + resolved "https://registry.yarnpkg.com/raven-js/-/raven-js-3.27.0.tgz#9f47c03e17933ce756e189f3669d49c441c1ba6e" + raw-body@2.3.3: version "2.3.3" resolved "https://registry.yarnpkg.com/raw-body/-/raw-body-2.3.3.tgz#1b324ece6b5706e153855bc1148c65bb7f6ea0c3" @@ -9223,6 +9227,12 @@ vue-loader@^13.3.0: vue-style-loader "^3.0.0" vue-template-es2015-compiler "^1.6.0" +vue-raven@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/vue-raven/-/vue-raven-1.0.0.tgz#d05e332a25a96fb3662fbc4979d93aa7c3fa6550" + dependencies: + raven-js "^3.22.3" + vue-resize@^0.4.3: version "0.4.4" resolved "https://registry.yarnpkg.com/vue-resize/-/vue-resize-0.4.4.tgz#dee9b8dd1b189e7e3f6ec47f86c60694a241bb17"