diff --git a/backend/api/serializers/settings.py b/backend/api/serializers/settings.py index eded936b..73986efd 100644 --- a/backend/api/serializers/settings.py +++ b/backend/api/serializers/settings.py @@ -20,6 +20,7 @@ 'green', 'purple', 'red', + 'traffic', 'trans', } diff --git a/backend/backend/settings_live.py b/backend/backend/settings_live.py index ad36e56f..715a69e7 100644 --- a/backend/backend/settings_live.py +++ b/backend/backend/settings_live.py @@ -137,11 +137,7 @@ sentry_sdk.init( dsn=environ['SENTRY_DSN'], integrations=[DjangoIntegration()], - - # Set traces_sample_rate to 1.0 to capture 100% - # of transactions for performance monitoring. - # We recommend adjusting this value in production. - traces_sample_rate=1.0, + traces_sample_rate=0, # If you wish to associate users to errors (assuming you are using # django.contrib.auth) you may enable sending PII data. diff --git a/frontend/.env b/frontend/.env index e241bcf2..973afcdf 100644 --- a/frontend/.env +++ b/frontend/.env @@ -1 +1 @@ -VUE_APP_VERSION="0.2.0" +VUE_APP_VERSION="0.2.1" diff --git a/frontend/package-lock.json b/frontend/package-lock.json index c26f35d1..51f9d6dc 100644 --- a/frontend/package-lock.json +++ b/frontend/package-lock.json @@ -9,6 +9,8 @@ "version": "0.1.0", "dependencies": { "@creativebulma/bulma-badge": "^1.0.1", + "@sentry/tracing": "^6.17.3", + "@sentry/vue": "^6.17.3", "@xivapi/js": "^0.3.3", "bulma": "^0.9.3", "dayjs": "^1.10.7", @@ -208,6 +210,116 @@ "node": ">= 8" } }, + "node_modules/@sentry/browser": { + "version": "6.17.3", + "resolved": "https://registry.npmjs.org/@sentry/browser/-/browser-6.17.3.tgz", + "integrity": "sha512-UElPk6/Q/78eL8tHGHy080uHVQAuieWXlSMSzrJMVNa+vwXPwEeyL+WbPtKkND2jGwdODjg+pSj960RqhIv+ig==", + "dependencies": { + "@sentry/core": "6.17.3", + "@sentry/types": "6.17.3", + "@sentry/utils": "6.17.3", + "tslib": "^1.9.3" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/@sentry/core": { + "version": "6.17.3", + "resolved": "https://registry.npmjs.org/@sentry/core/-/core-6.17.3.tgz", + "integrity": "sha512-h7WgrNL0RVlr8Dceh97ZiXNdmEumDutpoqFijjiX4x72IiC6zSaVD4IsqrdGln+v8iJ3l3lX44HHqzubDub1OQ==", + "dependencies": { + "@sentry/hub": "6.17.3", + "@sentry/minimal": "6.17.3", + "@sentry/types": "6.17.3", + "@sentry/utils": "6.17.3", + "tslib": "^1.9.3" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/@sentry/hub": { + "version": "6.17.3", + "resolved": "https://registry.npmjs.org/@sentry/hub/-/hub-6.17.3.tgz", + "integrity": "sha512-TDxv8nRvk45xvfQg6zs8GYzQzgo0EMhI3wjQZLiNfW2rzybKmIwVp2x3O4PAc3WPzwg4bYNgSAkYKVlHmYjRCg==", + "dependencies": { + "@sentry/types": "6.17.3", + "@sentry/utils": "6.17.3", + "tslib": "^1.9.3" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/@sentry/minimal": { + "version": "6.17.3", + "resolved": "https://registry.npmjs.org/@sentry/minimal/-/minimal-6.17.3.tgz", + "integrity": "sha512-zvGGfHNNA92Lqx6P8ZwOUkmRmAiQl0AQFRXl9So1Ayq9bJRnFLJZv4YFVnp2wE4HXYIlfBYb51+GlGB5LIuPmw==", + "dependencies": { + "@sentry/hub": "6.17.3", + "@sentry/types": "6.17.3", + "tslib": "^1.9.3" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/@sentry/tracing": { + "version": "6.17.3", + "resolved": "https://registry.npmjs.org/@sentry/tracing/-/tracing-6.17.3.tgz", + "integrity": "sha512-GnHugxw5qkWwYmeQbbrswuWpb0bpYqyJr/dO25QQOCwp+cckQrvBYTMC8zGJG10u94O4el0lQaQnNFz9WF3r6g==", + "dependencies": { + "@sentry/hub": "6.17.3", + "@sentry/minimal": "6.17.3", + "@sentry/types": "6.17.3", + "@sentry/utils": "6.17.3", + "tslib": "^1.9.3" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/@sentry/types": { + "version": "6.17.3", + "resolved": "https://registry.npmjs.org/@sentry/types/-/types-6.17.3.tgz", + "integrity": "sha512-0AXCjYcfl8Vx26GfyLY4rBQ78Lyt1oND3UozTTMaVXlcKYIjzV+f7TOo5IZx+Kbr6EGUNDLdpA4xfbkWdW/1NA==", + "engines": { + "node": ">=6" + } + }, + "node_modules/@sentry/utils": { + "version": "6.17.3", + "resolved": "https://registry.npmjs.org/@sentry/utils/-/utils-6.17.3.tgz", + "integrity": "sha512-6/2awDIeHSj0JgiC7DDdV1lxvLmf+/BisWhw09dKvmhVQB3ADvQZbohjUgM+Qam5zE0xmZAfQhvuDwC41W8Wnw==", + "dependencies": { + "@sentry/types": "6.17.3", + "tslib": "^1.9.3" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/@sentry/vue": { + "version": "6.17.3", + "resolved": "https://registry.npmjs.org/@sentry/vue/-/vue-6.17.3.tgz", + "integrity": "sha512-bGk1Ir7+3XyGqawMATwUTC8fj0iR/XMRVyTjwzOJ/tyAf5nQeMEkaGE2qLxjOJ6l8GfH0ck1Mr7pPbMPLLnqLg==", + "dependencies": { + "@sentry/browser": "6.17.3", + "@sentry/core": "6.17.3", + "@sentry/minimal": "6.17.3", + "@sentry/types": "6.17.3", + "@sentry/utils": "6.17.3", + "tslib": "^1.9.3" + }, + "engines": { + "node": ">=6" + }, + "peerDependencies": { + "vue": "2.x || 3.x", + "vue-router": "3.x || 4.x" + } + }, "node_modules/@soda/friendly-errors-webpack-plugin": { "version": "1.8.0", "resolved": "https://registry.npmjs.org/@soda/friendly-errors-webpack-plugin/-/friendly-errors-webpack-plugin-1.8.0.tgz", @@ -13709,8 +13821,7 @@ "node_modules/tslib": { "version": "1.14.1", "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz", - "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==", - "dev": true + "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==" }, "node_modules/tslint": { "version": "5.20.1", @@ -16007,6 +16118,88 @@ "fastq": "^1.6.0" } }, + "@sentry/browser": { + "version": "6.17.3", + "resolved": "https://registry.npmjs.org/@sentry/browser/-/browser-6.17.3.tgz", + "integrity": "sha512-UElPk6/Q/78eL8tHGHy080uHVQAuieWXlSMSzrJMVNa+vwXPwEeyL+WbPtKkND2jGwdODjg+pSj960RqhIv+ig==", + "requires": { + "@sentry/core": "6.17.3", + "@sentry/types": "6.17.3", + "@sentry/utils": "6.17.3", + "tslib": "^1.9.3" + } + }, + "@sentry/core": { + "version": "6.17.3", + "resolved": "https://registry.npmjs.org/@sentry/core/-/core-6.17.3.tgz", + "integrity": "sha512-h7WgrNL0RVlr8Dceh97ZiXNdmEumDutpoqFijjiX4x72IiC6zSaVD4IsqrdGln+v8iJ3l3lX44HHqzubDub1OQ==", + "requires": { + "@sentry/hub": "6.17.3", + "@sentry/minimal": "6.17.3", + "@sentry/types": "6.17.3", + "@sentry/utils": "6.17.3", + "tslib": "^1.9.3" + } + }, + "@sentry/hub": { + "version": "6.17.3", + "resolved": "https://registry.npmjs.org/@sentry/hub/-/hub-6.17.3.tgz", + "integrity": "sha512-TDxv8nRvk45xvfQg6zs8GYzQzgo0EMhI3wjQZLiNfW2rzybKmIwVp2x3O4PAc3WPzwg4bYNgSAkYKVlHmYjRCg==", + "requires": { + "@sentry/types": "6.17.3", + "@sentry/utils": "6.17.3", + "tslib": "^1.9.3" + } + }, + "@sentry/minimal": { + "version": "6.17.3", + "resolved": "https://registry.npmjs.org/@sentry/minimal/-/minimal-6.17.3.tgz", + "integrity": "sha512-zvGGfHNNA92Lqx6P8ZwOUkmRmAiQl0AQFRXl9So1Ayq9bJRnFLJZv4YFVnp2wE4HXYIlfBYb51+GlGB5LIuPmw==", + "requires": { + "@sentry/hub": "6.17.3", + "@sentry/types": "6.17.3", + "tslib": "^1.9.3" + } + }, + "@sentry/tracing": { + "version": "6.17.3", + "resolved": "https://registry.npmjs.org/@sentry/tracing/-/tracing-6.17.3.tgz", + "integrity": "sha512-GnHugxw5qkWwYmeQbbrswuWpb0bpYqyJr/dO25QQOCwp+cckQrvBYTMC8zGJG10u94O4el0lQaQnNFz9WF3r6g==", + "requires": { + "@sentry/hub": "6.17.3", + "@sentry/minimal": "6.17.3", + "@sentry/types": "6.17.3", + "@sentry/utils": "6.17.3", + "tslib": "^1.9.3" + } + }, + "@sentry/types": { + "version": "6.17.3", + "resolved": "https://registry.npmjs.org/@sentry/types/-/types-6.17.3.tgz", + "integrity": "sha512-0AXCjYcfl8Vx26GfyLY4rBQ78Lyt1oND3UozTTMaVXlcKYIjzV+f7TOo5IZx+Kbr6EGUNDLdpA4xfbkWdW/1NA==" + }, + "@sentry/utils": { + "version": "6.17.3", + "resolved": "https://registry.npmjs.org/@sentry/utils/-/utils-6.17.3.tgz", + "integrity": "sha512-6/2awDIeHSj0JgiC7DDdV1lxvLmf+/BisWhw09dKvmhVQB3ADvQZbohjUgM+Qam5zE0xmZAfQhvuDwC41W8Wnw==", + "requires": { + "@sentry/types": "6.17.3", + "tslib": "^1.9.3" + } + }, + "@sentry/vue": { + "version": "6.17.3", + "resolved": "https://registry.npmjs.org/@sentry/vue/-/vue-6.17.3.tgz", + "integrity": "sha512-bGk1Ir7+3XyGqawMATwUTC8fj0iR/XMRVyTjwzOJ/tyAf5nQeMEkaGE2qLxjOJ6l8GfH0ck1Mr7pPbMPLLnqLg==", + "requires": { + "@sentry/browser": "6.17.3", + "@sentry/core": "6.17.3", + "@sentry/minimal": "6.17.3", + "@sentry/types": "6.17.3", + "@sentry/utils": "6.17.3", + "tslib": "^1.9.3" + } + }, "@soda/friendly-errors-webpack-plugin": { "version": "1.8.0", "resolved": "https://registry.npmjs.org/@soda/friendly-errors-webpack-plugin/-/friendly-errors-webpack-plugin-1.8.0.tgz", @@ -26819,8 +27012,7 @@ "tslib": { "version": "1.14.1", "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz", - "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==", - "dev": true + "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==" }, "tslint": { "version": "5.20.1", diff --git a/frontend/package.json b/frontend/package.json index 8ff394aa..c8fdc93e 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -9,6 +9,8 @@ }, "dependencies": { "@creativebulma/bulma-badge": "^1.0.1", + "@sentry/tracing": "^6.17.3", + "@sentry/vue": "^6.17.3", "@xivapi/js": "^0.3.3", "bulma": "^0.9.3", "dayjs": "^1.10.7", diff --git a/frontend/src/assets/gear_gradients/_index.scss b/frontend/src/assets/gear_gradients/_index.scss index 79062502..2a6a786c 100644 --- a/frontend/src/assets/gear_gradients/_index.scss +++ b/frontend/src/assets/gear_gradients/_index.scss @@ -3,4 +3,5 @@ @import './green.scss'; @import './purple.scss'; @import './red.scss'; +@import './traffic.scss'; @import './trans.scss'; diff --git a/frontend/src/assets/gear_gradients/beta.scss b/frontend/src/assets/gear_gradients/beta.scss index c3fe99a6..f1730137 100644 --- a/frontend/src/assets/gear_gradients/beta.scss +++ b/frontend/src/assets/gear_gradients/beta.scss @@ -13,7 +13,7 @@ table.gear-table.is-beta { } .is-il-minus-20 { background-color: $is-il-minus-20; - color: #fff; + color: rgba(#000, 0.7); } .is-il-minus-15 { background-color: $is-il-minus-15; diff --git a/frontend/src/assets/gear_gradients/traffic.scss b/frontend/src/assets/gear_gradients/traffic.scss new file mode 100644 index 00000000..5f44c022 --- /dev/null +++ b/frontend/src/assets/gear_gradients/traffic.scss @@ -0,0 +1,38 @@ +$is-il-minus-25: #7c0000; +$is-il-minus-20: #7c0000; +$is-il-minus-15: #E69F00; +$is-il-minus-10: #7c0000; +$is-il-minus-5: #7c0000; +$is-il-minus-0: #7c0000; +$is-il-bis: #163832; + +table.gear-table.is-traffic { + .is-il-minus-25 { + background-color: $is-il-minus-25; + color: #fff; + } + .is-il-minus-20 { + background-color: $is-il-minus-20; + color: #fff; + } + .is-il-minus-15 { + background-color: $is-il-minus-15; + color: rgba(#000, 0.7); + } + .is-il-minus-10 { + background-color: $is-il-minus-10; + color: #fff; + } + .is-il-minus-5 { + background-color: $is-il-minus-5; + color: #fff; + } + .is-il-minus-0 { + background-color: $is-il-minus-0; + color: #fff; + } + .is-il-bis { + background-color: $is-il-bis; + color: #fff; + } +} diff --git a/frontend/src/components/bis_list_form.vue b/frontend/src/components/bis_list_form.vue index 84fb5802..4b604d55 100644 --- a/frontend/src/components/bis_list_form.vue +++ b/frontend/src/components/bis_list_form.vue @@ -33,14 +33,15 @@
- +
- +

{{ errors.external_link[0] }}

+

This is just a link to any page you deem would be handy to have attached to the list!

diff --git a/frontend/src/components/footer.vue b/frontend/src/components/footer.vue index 6ca53976..a3335a4d 100644 --- a/frontend/src/components/footer.vue +++ b/frontend/src/components/footer.vue @@ -2,7 +2,8 @@