Browse Source

Add Sentry integration

master
KaKi87 4 months ago
parent
commit
ee40be4cc9
  1. 8
      config.example.js
  2. 1
      package.json
  3. 10
      src/index.js
  4. 69
      yarn.lock

8
config.example.js

@ -2,4 +2,10 @@
* API URL
* @type {String}
*/
export const apiUrl = null;
export const apiUrl = null;
/**
* Sentry DSN
* @type {String}
*/
export const sentryDsn = null;

1
package.json

@ -4,6 +4,7 @@
"license": "MIT",
"dependencies": {
"@playsearch.kaki87.net/v2-client": "https://git.kaki87.net/playsearch.kaki87.net/v2-client.git",
"@sentry/vue": "^6.16.1",
"compare-versions": "^4.1.3",
"dayjs": "^1.10.7",
"destyle.css": "^3.0.2",

10
src/index.js

@ -1,7 +1,17 @@
import { createApp } from 'vue';
import * as Sentry from '@sentry/vue';
import { sentryDsn } from '../config.js';
import App from './components/App.vue';
const app = createApp(App);
if(sentryDsn){
Sentry.init({
app,
dsn: sentryDsn
});
}
app.mount('.App');

69
yarn.lock

@ -934,6 +934,70 @@
dependencies:
launchdarkly-eventsource "^1.4.3"
"@sentry/browser@6.16.1":
version "6.16.1"
resolved "https://registry.yarnpkg.com/@sentry/browser/-/browser-6.16.1.tgz#4270ab0fbd1de425e339b3e7a364feb09f470a87"
integrity sha512-F2I5RL7RTLQF9CccMrqt73GRdK3FdqaChED3RulGQX5lH6U3exHGFxwyZxSrY4x6FedfBFYlfXWWCJXpLnFkow==
dependencies:
"@sentry/core" "6.16.1"
"@sentry/types" "6.16.1"
"@sentry/utils" "6.16.1"
tslib "^1.9.3"
"@sentry/core@6.16.1":
version "6.16.1"
resolved "https://registry.yarnpkg.com/@sentry/core/-/core-6.16.1.tgz#d9f7a75f641acaddf21b6aafa7a32e142f68f17c"
integrity sha512-UFI0264CPUc5cR1zJH+S2UPOANpm6dLJOnsvnIGTjsrwzR0h8Hdl6rC2R/GPq+WNbnipo9hkiIwDlqbqvIU5vw==
dependencies:
"@sentry/hub" "6.16.1"
"@sentry/minimal" "6.16.1"
"@sentry/types" "6.16.1"
"@sentry/utils" "6.16.1"
tslib "^1.9.3"
"@sentry/hub@6.16.1":
version "6.16.1"
resolved "https://registry.yarnpkg.com/@sentry/hub/-/hub-6.16.1.tgz#526e19db51f4412da8634734044c605b936a7b80"
integrity sha512-4PGtg6AfpqMkreTpL7ymDeQ/U1uXv03bKUuFdtsSTn/FRf9TLS4JB0KuTZCxfp1IRgAA+iFg6B784dDkT8R9eg==
dependencies:
"@sentry/types" "6.16.1"
"@sentry/utils" "6.16.1"
tslib "^1.9.3"
"@sentry/minimal@6.16.1":
version "6.16.1"
resolved "https://registry.yarnpkg.com/@sentry/minimal/-/minimal-6.16.1.tgz#6a9506a92623d2ff1fc17d60989688323326772e"
integrity sha512-dq+mI1EQIvUM+zJtGCVgH3/B3Sbx4hKlGf2Usovm9KoqWYA+QpfVBholYDe/H2RXgO7LFEefDLvOdHDkqeJoyA==
dependencies:
"@sentry/hub" "6.16.1"
"@sentry/types" "6.16.1"
tslib "^1.9.3"
"@sentry/types@6.16.1":
version "6.16.1"
resolved "https://registry.yarnpkg.com/@sentry/types/-/types-6.16.1.tgz#4917607115b30315757c2cf84f80bac5100b8ac0"
integrity sha512-Wh354g30UsJ5kYJbercektGX4ZMc9MHU++1NjeN2bTMnbofEcpUDWIiKeulZEY65IC1iU+1zRQQgtYO+/hgCUQ==
"@sentry/utils@6.16.1":
version "6.16.1"
resolved "https://registry.yarnpkg.com/@sentry/utils/-/utils-6.16.1.tgz#1b9e14c2831b6e8b816f7021b9876133bf2be008"
integrity sha512-7ngq/i4R8JZitJo9Sl8PDnjSbDehOxgr1vsoMmerIsyRZ651C/8B+jVkMhaAPgSdyJ0AlE3O7DKKTP1FXFw9qw==
dependencies:
"@sentry/types" "6.16.1"
tslib "^1.9.3"
"@sentry/vue@^6.16.1":
version "6.16.1"
resolved "https://registry.yarnpkg.com/@sentry/vue/-/vue-6.16.1.tgz#0baca237519e290fb770148e434a0efcebc5745b"
integrity sha512-0WV6Qbkyq2YeYStZtULTS+YVimcSsoxYTFZVvs7fJUFQjWjO2bg2aT2ZoGXqYXT5WFmPLvJzWD1q22UtrxDMHQ==
dependencies:
"@sentry/browser" "6.16.1"
"@sentry/core" "6.16.1"
"@sentry/minimal" "6.16.1"
"@sentry/types" "6.16.1"
"@sentry/utils" "6.16.1"
tslib "^1.9.3"
"@swc/helpers@^0.2.11":
version "0.2.13"
resolved "https://registry.yarnpkg.com/@swc/helpers/-/helpers-0.2.13.tgz#95d69aaed0998040d455832efbe1342ed79d0809"
@ -3722,6 +3786,11 @@ to-regex-range@^5.0.1:
dependencies:
is-number "^7.0.0"
tslib@^1.9.3:
version "1.14.1"
resolved "https://registry.yarnpkg.com/tslib/-/tslib-1.14.1.tgz#cf2d38bdc34a134bcaf1091c41f6619e2f672d00"
integrity sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==
tty-browserify@^0.0.1:
version "0.0.1"
resolved "https://registry.yarnpkg.com/tty-browserify/-/tty-browserify-0.0.1.tgz#3f05251ee17904dfd0677546670db9651682b811"

Loading…
Cancel
Save