mirror of https://github.com/statping/statping
yarn
parent
9e62ba8fbe
commit
630bf08817
|
@ -16,6 +16,7 @@ const VERSION = process.env.VERSION;
|
||||||
|
|
||||||
const webpackConfig = merge(commonConfig, {
|
const webpackConfig = merge(commonConfig, {
|
||||||
mode: 'production',
|
mode: 'production',
|
||||||
|
productionSourceMap: true,
|
||||||
output: {
|
output: {
|
||||||
path: helpers.root('dist'),
|
path: helpers.root('dist'),
|
||||||
publicPath: '',
|
publicPath: '',
|
||||||
|
|
|
@ -19,14 +19,11 @@
|
||||||
"@fortawesome/free-brands-svg-icons": "^5.12.1",
|
"@fortawesome/free-brands-svg-icons": "^5.12.1",
|
||||||
"@fortawesome/free-solid-svg-icons": "^5.12.0",
|
"@fortawesome/free-solid-svg-icons": "^5.12.0",
|
||||||
"@fortawesome/vue-fontawesome": "^0.1.9",
|
"@fortawesome/vue-fontawesome": "^0.1.9",
|
||||||
"@sentry/browser": "^5.13.2",
|
|
||||||
"@sentry/integrations": "^5.13.2",
|
|
||||||
"apexcharts": "^3.15.0",
|
"apexcharts": "^3.15.0",
|
||||||
|
"@sentry/browser": "^5.20.1",
|
||||||
|
"@sentry/integrations": "^5.20.1",
|
||||||
"axios": "^0.19.1",
|
"axios": "^0.19.1",
|
||||||
"bootstrap": "^4.4.1",
|
|
||||||
"bootstrap-vue": "^2.6.1",
|
|
||||||
"codemirror-colorpicker": "^1.9.66",
|
"codemirror-colorpicker": "^1.9.66",
|
||||||
"core-js": "^3.4.4",
|
|
||||||
"date-fns": "^2.9.0",
|
"date-fns": "^2.9.0",
|
||||||
"js-beautify": "^1.11.0",
|
"js-beautify": "^1.11.0",
|
||||||
"querystring": "^0.2.0",
|
"querystring": "^0.2.0",
|
||||||
|
@ -39,7 +36,6 @@
|
||||||
"vue-flatpickr-component": "^8.1.5",
|
"vue-flatpickr-component": "^8.1.5",
|
||||||
"vue-github-button": "^1.1.2",
|
"vue-github-button": "^1.1.2",
|
||||||
"vue-i18n": "^8.18.1",
|
"vue-i18n": "^8.18.1",
|
||||||
"vue-moment": "^4.1.0",
|
|
||||||
"vue-observe-visibility": "^0.4.6",
|
"vue-observe-visibility": "^0.4.6",
|
||||||
"vue-router": "~3.0",
|
"vue-router": "~3.0",
|
||||||
"vuedraggable": "^2.23.2",
|
"vuedraggable": "^2.23.2",
|
||||||
|
|
|
@ -1,12 +1,9 @@
|
||||||
import Vue from "vue";
|
|
||||||
import axios from 'axios'
|
import axios from 'axios'
|
||||||
import * as Sentry from "@sentry/browser";
|
|
||||||
import * as Integrations from "@sentry/integrations";
|
|
||||||
const qs = require('querystring');
|
const qs = require('querystring');
|
||||||
axios.defaults.withCredentials = true
|
axios.defaults.withCredentials = true
|
||||||
|
|
||||||
const tokenKey = "statping_auth";
|
const tokenKey = "statping_auth";
|
||||||
const errorReporter = "https://bed4d75404924cb3a799e370733a1b64@sentry.statping.com/3"
|
|
||||||
|
|
||||||
class Api {
|
class Api {
|
||||||
constructor() {
|
constructor() {
|
||||||
|
@ -277,13 +274,6 @@ class Api {
|
||||||
await axios.all([all])
|
await axios.all([all])
|
||||||
}
|
}
|
||||||
|
|
||||||
async sentry_init() {
|
|
||||||
Sentry.init({
|
|
||||||
dsn: errorReporter,
|
|
||||||
integrations: [new Integrations.Vue({Vue, attachProps: true})],
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
const api = new Api()
|
const api = new Api()
|
||||||
export default api
|
export default api
|
||||||
|
|
|
@ -5,12 +5,16 @@ import VueObserveVisibility from 'vue-observe-visibility'
|
||||||
import VueClipboard from 'vue-clipboard2'
|
import VueClipboard from 'vue-clipboard2'
|
||||||
import VueCookies from 'vue-cookies'
|
import VueCookies from 'vue-cookies'
|
||||||
import VueI18n from 'vue-i18n'
|
import VueI18n from 'vue-i18n'
|
||||||
|
import * as Sentry from "@sentry/browser";
|
||||||
|
import * as Integrations from "@sentry/integrations";
|
||||||
import router from './routes'
|
import router from './routes'
|
||||||
import "./mixin"
|
import "./mixin"
|
||||||
import "./icons"
|
import "./icons"
|
||||||
import store from './store'
|
import store from './store'
|
||||||
import language from './languages'
|
import language from './languages'
|
||||||
|
|
||||||
|
const errorReporter = "https://bed4d75404924cb3a799e370733a1b64@sentry.statping.com/3"
|
||||||
|
|
||||||
const App = () => import(/* webpackChunkName: "index" */ '@/App.vue')
|
const App = () => import(/* webpackChunkName: "index" */ '@/App.vue')
|
||||||
|
|
||||||
Vue.component('apexchart', VueApexCharts)
|
Vue.component('apexchart', VueApexCharts)
|
||||||
|
@ -28,6 +32,11 @@ const i18n = new VueI18n({
|
||||||
|
|
||||||
Vue.$cookies.config('3d')
|
Vue.$cookies.config('3d')
|
||||||
|
|
||||||
|
Sentry.init({
|
||||||
|
dsn: errorReporter,
|
||||||
|
integrations: [new Integrations.Vue({Vue, attachProps: true, logErrors: true})],
|
||||||
|
});
|
||||||
|
|
||||||
Vue.config.productionTip = false
|
Vue.config.productionTip = false
|
||||||
new Vue({
|
new Vue({
|
||||||
router,
|
router,
|
||||||
|
|
|
@ -52,4 +52,3 @@ const emailFailure = `<!doctype html><html xmlns=http://www.w3.org/1999/xhtml xm
|
||||||
<a class=footer-link href=https://github.com/statping/statping>Github</a>        
|
<a class=footer-link href=https://github.com/statping/statping>Github</a>        
|
||||||
<a class=footer-link href=https://statping.com/privacy>Privacy</a>        
|
<a class=footer-link href=https://statping.com/privacy>Privacy</a>        
|
||||||
<a class=footer-link href="https://news.statping.com/delete?email={{.Email}}">Unsubscribe</a></div></table></table></div></div></table></div></table></div></table></div></div>`
|
<a class=footer-link href="https://news.statping.com/delete?email={{.Email}}">Unsubscribe</a></div></table></table></div></div></table></div></table></div></table></div></div>`
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue