Skip to content

Commit 1119ee8

Browse files
committed
feat: log errors on config tab
1 parent cd7f436 commit 1119ee8

File tree

5 files changed

+93
-3
lines changed

5 files changed

+93
-3
lines changed

package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@
1313
},
1414
"dependencies": {
1515
"@quasar/extras": "^1.0.0",
16+
"@sentry/tracing": "^6.2.1",
17+
"@sentry/vue": "^6.2.1",
1618
"core-js": "^3.6.5",
1719
"quasar": "^1.0.0",
1820
"ribbon-corner": "^1.0.5"

quasar.conf.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,8 @@ module.exports = function (/* ctx */) {
1919
// --> boot files are part of "main.js"
2020
// https://quasar.dev/quasar-cli/boot-files
2121
boot: [
22-
'webextension-i18n'
22+
'webextension-i18n',
23+
'sentry'
2324
],
2425

2526
// https://quasar.dev/quasar-cli/quasar-conf-js#Property%3A-css

src/boot/sentry.js

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
import Vue from "vue";
2+
import * as Sentry from "@sentry/vue";
3+
import { Integrations } from "@sentry/tracing";
4+
5+
Sentry.init({
6+
Vue,
7+
dsn: "https://943feb238ce3482694f1b37acf0b38bc@o312877.ingest.sentry.io/5658043",
8+
integrations: [new Integrations.BrowserTracing()],
9+
10+
// We recommend adjusting this value in production, or using tracesSampler
11+
// for finer control
12+
tracesSampleRate: 1.0,
13+
});

src/pages/Index.vue

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -384,7 +384,6 @@ export default {
384384
uploadJsonChange(e) {
385385
let that = this
386386
const reader = new FileReader();
387-
console.log("读取文件了!")
388387
reader.onload = function fileReadCompleted() {
389388
that.importData = JSON.parse(reader.result)
390389
that.importConfirm = true

yarn.lock

Lines changed: 76 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1045,6 +1045,81 @@
10451045
resolved "https://registry.npmjs.org/@quasar/fastclick/-/fastclick-1.1.4.tgz#21ed3e9a4387dcb43022a08af4ef08a5f1abf159"
10461046
integrity sha512-i9wbyV4iT+v4KhtHJynUFhH5LiEPvAEgSnwMqPN4hf/8uRe82nDl5qP5agrp2el1h0HzyBpbvHaW7NB0BPrtvA==
10471047

1048+
"@sentry/browser@6.2.1":
1049+
version "6.2.1"
1050+
resolved "https://registry.npmjs.org/@sentry/browser/-/browser-6.2.1.tgz#f9f277e6f8cad0c7efd1a01726095d63a47a1c16"
1051+
integrity sha512-OAikFZ9EimD3noxMp8tA6Cf6qJcQ2U8k5QSgTPwdx+09nZOGJzbRFteK7WWmrS93ZJdzN61lpSQbg5v+bmmfbQ==
1052+
dependencies:
1053+
"@sentry/core" "6.2.1"
1054+
"@sentry/types" "6.2.1"
1055+
"@sentry/utils" "6.2.1"
1056+
tslib "^1.9.3"
1057+
1058+
"@sentry/core@6.2.1":
1059+
version "6.2.1"
1060+
resolved "https://registry.npmjs.org/@sentry/core/-/core-6.2.1.tgz#8b177e9bf591e2e7ddcb04f0b1403de3f5aa8755"
1061+
integrity sha512-jPqQEtafxxDtLONhCbTHh/Uq8mZRhsfbwJTSVYfPVEe/ELfFZLQK7tP6rOh7zEWKbTkE0mE6XcaoH3ZRAhgrqg==
1062+
dependencies:
1063+
"@sentry/hub" "6.2.1"
1064+
"@sentry/minimal" "6.2.1"
1065+
"@sentry/types" "6.2.1"
1066+
"@sentry/utils" "6.2.1"
1067+
tslib "^1.9.3"
1068+
1069+
"@sentry/hub@6.2.1":
1070+
version "6.2.1"
1071+
resolved "https://registry.npmjs.org/@sentry/hub/-/hub-6.2.1.tgz#35bc6bf841a93f4354b3a17592c938b3dba20b73"
1072+
integrity sha512-pG7wCQeRpzeP6t0bT4T0X029R19dbDS3/qswF8BL6bg0AI3afjfjBAZm/fqn1Uwe/uBoMHVVdbxgJDZeQ5d4rQ==
1073+
dependencies:
1074+
"@sentry/types" "6.2.1"
1075+
"@sentry/utils" "6.2.1"
1076+
tslib "^1.9.3"
1077+
1078+
"@sentry/minimal@6.2.1":
1079+
version "6.2.1"
1080+
resolved "https://registry.npmjs.org/@sentry/minimal/-/minimal-6.2.1.tgz#8f01480e1b56bc7dd54adf925e5317f233e19384"
1081+
integrity sha512-wuSXB4Ayxv9rBEQ4pm7fnG4UU2ZPtPnnChoEfd4/mw1UthXSvmPFEn6O4pdo2G8fTkl8eqm6wT/Q7uIXMEmw+A==
1082+
dependencies:
1083+
"@sentry/hub" "6.2.1"
1084+
"@sentry/types" "6.2.1"
1085+
tslib "^1.9.3"
1086+
1087+
"@sentry/tracing@^6.2.1":
1088+
version "6.2.1"
1089+
resolved "https://registry.npmjs.org/@sentry/tracing/-/tracing-6.2.1.tgz#61c18c43c5390c348b35dafe73947ab379252d8f"
1090+
integrity sha512-bvStY1SnL08wkSeVK3j9K5rivQQJdKFCPR2VYRFOCaUoleZ6ChPUnBvxQ/E2LXc0hk/y/wo1q4r5B0dfCCY+bQ==
1091+
dependencies:
1092+
"@sentry/hub" "6.2.1"
1093+
"@sentry/minimal" "6.2.1"
1094+
"@sentry/types" "6.2.1"
1095+
"@sentry/utils" "6.2.1"
1096+
tslib "^1.9.3"
1097+
1098+
"@sentry/types@6.2.1":
1099+
version "6.2.1"
1100+
resolved "https://registry.npmjs.org/@sentry/types/-/types-6.2.1.tgz#28c946230b2023f72307b65606d32052ad9e5353"
1101+
integrity sha512-h0OV1QT+fv5ojfK5/+iEXClu33HirmvbjcQC2jf05IHj9yXIOWy6EB10S8nBjuLiiFqQiAQYj3FN9Ip4eN8NJA==
1102+
1103+
"@sentry/utils@6.2.1":
1104+
version "6.2.1"
1105+
resolved "https://registry.npmjs.org/@sentry/utils/-/utils-6.2.1.tgz#bfcb12c20d44bf2aeb0073b1264703c11c179ebd"
1106+
integrity sha512-6kQgM/yBPdXu+3qbJnI6HBcWztN9QfiMkH++ZiKk4ERhg9d2LYWlze478uTU5Fyo/JQYcp+McpjtjpR9QIrr0g==
1107+
dependencies:
1108+
"@sentry/types" "6.2.1"
1109+
tslib "^1.9.3"
1110+
1111+
"@sentry/vue@^6.2.1":
1112+
version "6.2.1"
1113+
resolved "https://registry.npmjs.org/@sentry/vue/-/vue-6.2.1.tgz#ba188a176fd607036016006f80b71d3a37c18fba"
1114+
integrity sha512-SLqki46i1s9fjnE5xR5JJ2kndvntID6GWKvXLBKeBikVXIdCC8065Dr+sustDa/NSmFnIZkcAHdnR0hqlcFgxg==
1115+
dependencies:
1116+
"@sentry/browser" "6.2.1"
1117+
"@sentry/core" "6.2.1"
1118+
"@sentry/minimal" "6.2.1"
1119+
"@sentry/types" "6.2.1"
1120+
"@sentry/utils" "6.2.1"
1121+
tslib "^1.9.3"
1122+
10481123
"@sindresorhus/is@^0.14.0":
10491124
version "0.14.0"
10501125
resolved "https://registry.npmjs.org/@sindresorhus/is/-/is-0.14.0.tgz#9fb3a3cf3132328151f353de4632e01e52102bea"
@@ -8064,7 +8139,7 @@ ts-loader@7.0.5:
80648139
micromatch "^4.0.0"
80658140
semver "^6.0.0"
80668141

8067-
tslib@^1.9.0:
8142+
tslib@^1.9.0, tslib@^1.9.3:
80688143
version "1.14.1"
80698144
resolved "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz#cf2d38bdc34a134bcaf1091c41f6619e2f672d00"
80708145
integrity sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==

0 commit comments

Comments
 (0)