1
0
mirror of https://github.com/quay/quay.git synced 2026-01-26 06:21:37 +03:00

deps: removing unused raven dependencies (PROJQUAY-9198) (#4179)

* removing unused raven dependencies

* moving fake sentry initialization before the main script

---------

Co-authored-by: shudeshp <shudeshp@redhat.com>
This commit is contained in:
Shubhra Deshpande
2025-08-08 12:09:46 -04:00
committed by GitHub
parent 14e3e4aeb2
commit 148db8e4db
4 changed files with 30 additions and 12023 deletions

View File

@@ -24,7 +24,6 @@ EXTERNAL_JS = [
"cdnjs.cloudflare.com/ajax/libs/bootstrap-datepicker/1.2.0/js/bootstrap-datepicker.min.js",
"cdnjs.cloudflare.com/ajax/libs/bootstrap-datetimepicker/4.17.37/js/bootstrap-datetimepicker.min.js",
"cdn.jsdelivr.net/g/bootbox@4.1.0,underscorejs@1.5.2,restangular@1.2.0,d3js@3.3.3",
"cdn.ravenjs.com/3.1.0/angular/raven.min.js",
"cdn.jsdelivr.net/cal-heatmap/3.3.10/cal-heatmap.min.js",
"cdnjs.cloudflare.com/ajax/libs/angular-recaptcha/4.1.3/angular-recaptcha.min.js",
"cdnjs.cloudflare.com/ajax/libs/ng-tags-input/3.1.1/ng-tags-input.min.js",

View File

@@ -21,7 +21,6 @@ module.exports = function(config) {
'node_modules/underscore/underscore.js',
'node_modules/restangular/dist/restangular.js',
'node_modules/d3/d3.js',
'node_modules/raven-js/dist/raven.js',
'node_modules/cal-heatmap/cal-heatmap.js',
// Polyfills

12034
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@@ -76,10 +76,6 @@
{% endblock %}
{% for script_path in main_scripts %}
<script src="/static/{{ script_path }}"></script>
{% endfor %}
{% if sentry_public_dsn %}
<script src="https://browser.sentry-cdn.com/7.100.0/bundle.min.js" integrity="sha384-..." crossorigin="anonymous"></script>
<script type="text/javascript">
@@ -87,8 +83,21 @@
dsn: '{{ sentry_public_dsn }}'
});
</script>
{% else %}
<script type="text/javascript">
// FakeSentry wrapper when Sentry is not available
window.Sentry = {
captureException: function() {},
setUser: function() {},
init: function() {}
};
</script>
{% endif %}
{% for script_path in main_scripts %}
<script src="/static/{{ script_path }}"></script>
{% endfor %}
{% if google_analytics_key %}
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){