diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index f1081b5..abdac39 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -36,8 +36,6 @@ {{ partial "script.html" "js/jquery.js" }} - {{ partial "script_async.html" "js/sentry.js" }} - {{ if eq .Params.layout "flickr" }} {{ partial "script_async.html" "js/lightgallery.js" }} {{ end }} diff --git a/package-lock.json b/package-lock.json index b42d0cc..1eb75ca 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1089,63 +1089,6 @@ "physical-cpu-count": "^2.0.0" } }, - "@sentry/browser": { - "version": "5.15.0", - "resolved": "https://registry.npmjs.org/@sentry/browser/-/browser-5.15.0.tgz", - "integrity": "sha512-9sgqWGaoT5jb3vk8sgQ1bz1LzhUf3oKoDMp/c6vX0reuA6Vz+/jwOC7a/FPWtQir2PwRJfbak2QOxw8W6Mwa3g==", - "requires": { - "@sentry/core": "5.15.0", - "@sentry/types": "5.15.0", - "@sentry/utils": "5.15.0", - "tslib": "^1.9.3" - } - }, - "@sentry/core": { - "version": "5.15.0", - "resolved": "https://registry.npmjs.org/@sentry/core/-/core-5.15.0.tgz", - "integrity": "sha512-ujwHMwinPwuADoIBFjh1BiC6Li7RpEG3Mmo0MxOqKm7xKngkRUk5uH5e36roORnx+ngr/3NCe80QuvSqK7gQsw==", - "requires": { - "@sentry/hub": "5.15.0", - "@sentry/minimal": "5.15.0", - "@sentry/types": "5.15.0", - "@sentry/utils": "5.15.0", - "tslib": "^1.9.3" - } - }, - "@sentry/hub": { - "version": "5.15.0", - "resolved": "https://registry.npmjs.org/@sentry/hub/-/hub-5.15.0.tgz", - "integrity": "sha512-wIDcaIuaYpg+Ma01NfFQTOnZLDCKSx2D06TTBqlo93WfMFNgyEgdMbU5Fk1PFZzjj2AMtzlc9DJzAfvt1hZx3w==", - "requires": { - "@sentry/types": "5.15.0", - "@sentry/utils": "5.15.0", - "tslib": "^1.9.3" - } - }, - "@sentry/minimal": { - "version": "5.15.0", - "resolved": "https://registry.npmjs.org/@sentry/minimal/-/minimal-5.15.0.tgz", - "integrity": "sha512-VBkMfR6ahmuJrx4V51BNYd6XzGZ7GB8sfnBufMzqK6MsKe+g5oSyXeqHFd4oFC0co0YlFIw7IphF2JZLwVs0zA==", - "requires": { - "@sentry/hub": "5.15.0", - "@sentry/types": "5.15.0", - "tslib": "^1.9.3" - } - }, - "@sentry/types": { - "version": "5.15.0", - "resolved": "https://registry.npmjs.org/@sentry/types/-/types-5.15.0.tgz", - "integrity": "sha512-MC96wUAHhzRuH3xo4Qd+EXTOap8+d+SWbAdLBukScxuwhOSY/HNRh1TW17CuAu7s1oXa7xxO2ZCdyamSZinIiQ==" - }, - "@sentry/utils": { - "version": "5.15.0", - "resolved": "https://registry.npmjs.org/@sentry/utils/-/utils-5.15.0.tgz", - "integrity": "sha512-td+wSBdVUPO3mEPcEHZwJiVEQ0+wplJCHBvM1PHqwQd+miB2mQAaiSkzdAAHzUpTeqPBI3rzjWPn59WkCcVF5Q==", - "requires": { - "@sentry/types": "5.15.0", - "tslib": "^1.9.3" - } - }, "@types/node": { "version": "12.12.5", "resolved": "https://registry.npmjs.org/@types/node/-/node-12.12.5.tgz", @@ -10586,7 +10529,8 @@ "tslib": { "version": "1.10.0", "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.10.0.tgz", - "integrity": "sha512-qOebF53frne81cf0S9B41ByenJ3/IuH8yJKngAX35CmiZySA0khhkovshKK+jGCaMnVomla7gVlIcc3EvKPbTQ==" + "integrity": "sha512-qOebF53frne81cf0S9B41ByenJ3/IuH8yJKngAX35CmiZySA0khhkovshKK+jGCaMnVomla7gVlIcc3EvKPbTQ==", + "dev": true }, "tty-browserify": { "version": "0.0.0", diff --git a/package.json b/package.json index db8db57..1a2b918 100644 --- a/package.json +++ b/package.json @@ -15,7 +15,6 @@ }, "dependencies": { "@fortawesome/fontawesome-free": "5.12.1", - "@sentry/browser": "5.15.0", "bootstrap": "4.4.1", "clipboard": "2.0.6", "jquery": "3.4.1", diff --git a/scripts/build.sh b/scripts/build.sh index 0fa1f25..d4f3cdd 100755 --- a/scripts/build.sh +++ b/scripts/build.sh @@ -19,7 +19,7 @@ cp $BASEDIR/node_modules/jquery/dist/jquery.min.js $STATIC_BUILD/js/jquery.js cp $BASEDIR/node_modules/lightgallery/dist/js/lightgallery-all.min.js $STATIC_BUILD/js/lightgallery.js cp $BASEDIR/node_modules/bootstrap/dist/js/bootstrap.bundle.min.js $STATIC_BUILD/js/bootstrap.js -parcel build -d $STATIC_BUILD/js/ $STATIC_SRC/js/app.js $STATIC_SRC/js/sentry.js $STATIC_SRC/js/mermaid.js +parcel build -d $STATIC_BUILD/js/ $STATIC_SRC/js/app.js $STATIC_SRC/js/mermaid.js cp -r $STATIC_SRC/scss $STATIC_BUILD/scss hugo gen chromastyles --style=monokai > $STATIC_BUILD/css/highlight.css diff --git a/static/src/js/sentry.js b/static/src/js/sentry.js deleted file mode 100644 index 7810f5e..0000000 --- a/static/src/js/sentry.js +++ /dev/null @@ -1,3 +0,0 @@ -'use strict'; - -require('@sentry/browser').init({ dsn: process.env.SENTRY_DSN });