mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-03-04 02:31:33 +00:00
Compare commits
5 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
49de11567b | ||
|
|
3af0365c6b | ||
|
|
be92b0049b | ||
|
|
a1c94d0d9f | ||
|
|
f6bb8a9a04 |
10
app/views/layouts/_bugsnag_js.html.haml
Normal file
10
app/views/layouts/_bugsnag_js.html.haml
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
- bugsnag_js_key = ENV['BUGSNAG_JS_KEY'] || ENV['BUGSNAG_API_KEY']
|
||||||
|
- if bugsnag_js_key.present?
|
||||||
|
%script{src: "//d2wy8f7a9ursnm.cloudfront.net/v6/bugsnag.min.js"}
|
||||||
|
:javascript
|
||||||
|
window.bugsnagClient = bugsnag({
|
||||||
|
apiKey: "#{bugsnag_js_key}",
|
||||||
|
beforeSend: function (report) {
|
||||||
|
report.app.releaseStage = "#{Rails.env}"
|
||||||
|
}
|
||||||
|
});
|
||||||
@@ -37,6 +37,7 @@
|
|||||||
#footer
|
#footer
|
||||||
%loading
|
%loading
|
||||||
|
|
||||||
|
= render "layouts/bugsnag_js"
|
||||||
%script{:src => "https://js.stripe.com/v3/", :type => "text/javascript"}
|
%script{:src => "https://js.stripe.com/v3/", :type => "text/javascript"}
|
||||||
%script{src: "//maps.googleapis.com/maps/api/js?libraries=places,geometry#{ ENV['GOOGLE_MAPS_API_KEY'] ? '&key=' + ENV['GOOGLE_MAPS_API_KEY'] : ''} "}
|
%script{src: "//maps.googleapis.com/maps/api/js?libraries=places,geometry#{ ENV['GOOGLE_MAPS_API_KEY'] ? '&key=' + ENV['GOOGLE_MAPS_API_KEY'] : ''} "}
|
||||||
= javascript_include_tag "darkswarm/all"
|
= javascript_include_tag "darkswarm/all"
|
||||||
|
|||||||
@@ -12,6 +12,7 @@
|
|||||||
%link{:href => "//fonts.googleapis.com/css?family=Open+Sans:400italic,600italic,400,600&subset=latin,cyrillic,greek,vietnamese", :rel => "stylesheet", :type => "text/css"}
|
%link{:href => "//fonts.googleapis.com/css?family=Open+Sans:400italic,600italic,400,600&subset=latin,cyrillic,greek,vietnamese", :rel => "stylesheet", :type => "text/css"}
|
||||||
|
|
||||||
= stylesheet_link_tag 'admin/all'
|
= stylesheet_link_tag 'admin/all'
|
||||||
|
= render "layouts/bugsnag_js"
|
||||||
= javascript_include_tag 'admin/all'
|
= javascript_include_tag 'admin/all'
|
||||||
|
|
||||||
= render "spree/admin/shared/translations"
|
= render "spree/admin/shared/translations"
|
||||||
|
|||||||
@@ -37,6 +37,9 @@ SMTP_PASSWORD: 'f00d'
|
|||||||
# MAILS_FROM: hello@example.com
|
# MAILS_FROM: hello@example.com
|
||||||
# MAIL_BCC: manager@example.com
|
# MAIL_BCC: manager@example.com
|
||||||
|
|
||||||
|
# Javascript error reporting via Bugsnag.
|
||||||
|
#BUGSNAG_JS_KEY: ""
|
||||||
|
|
||||||
# SingleSignOn login for Discourse
|
# SingleSignOn login for Discourse
|
||||||
#
|
#
|
||||||
# DISCOURSE_SSO_SECRET should be a random string. It must be the same as provided to your Discourse instance.
|
# DISCOURSE_SSO_SECRET should be a random string. It must be the same as provided to your Discourse instance.
|
||||||
|
|||||||
Reference in New Issue
Block a user