Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 13 additions & 13 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ PATH
active_model_serializers (~> 0.9.3)
ansi_stream (~> 0.0.6)
autoprefixer-rails (~> 6.4.1)
coffee-rails (~> 5.0)
explicit-parameters (~> 0.4.0)
faraday (~> 1.3)
faraday-http-cache (~> 2.2)
Expand Down Expand Up @@ -126,13 +125,6 @@ GEM
coderay (1.1.3)
coercible (1.0.0)
descendants_tracker (~> 0.0.1)
coffee-rails (5.0.0)
coffee-script (>= 2.2.0)
railties (>= 5.2.0)
coffee-script (2.4.1)
coffee-script-source
execjs
coffee-script-source (1.12.2)
concurrent-ruby (1.3.5)
connection_pool (2.5.3)
crack (1.0.0)
Expand Down Expand Up @@ -176,13 +168,13 @@ GEM
faraday-http-cache (2.5.0)
faraday (>= 0.8)
faraday-httpclient (1.0.1)
faraday-multipart (1.0.4)
multipart-post (~> 2)
faraday-multipart (1.2.0)
multipart-post (~> 2.0)
faraday-net_http (1.0.1)
faraday-net_http_persistent (1.2.0)
faraday-patron (1.0.0)
faraday-rack (1.0.0)
faraday-retry (1.0.3)
faraday-retry (1.0.4)
gemoji (2.1.0)
globalid (1.2.1)
activesupport (>= 6.1)
Expand Down Expand Up @@ -215,7 +207,10 @@ GEM
marcel (1.0.4)
method_source (1.0.0)
mini_mime (1.1.5)
minitest (5.25.5)
mini_portile2 (2.8.9)
minitest (6.0.2)
drb (~> 2.0)
prism (~> 1.5)
mocha (2.4.5)
ruby2_keywords (>= 0.0.5)
msgpack (1.7.1)
Expand All @@ -232,6 +227,9 @@ GEM
net-smtp (0.5.0)
net-protocol
nio4r (2.7.3)
nokogiri (1.18.9)
mini_portile2 (~> 2.8.2)
racc (~> 1.4)
nokogiri (1.18.9-arm64-darwin)
racc (~> 1.4)
nokogiri (1.18.9-x86_64-linux-gnu)
Expand Down Expand Up @@ -263,7 +261,7 @@ GEM
ast (~> 2.4.1)
racc
pg (1.3.3)
prism (1.4.0)
prism (1.9.0)
pry (0.14.1)
coderay (~> 1.1)
method_source (~> 1.0)
Expand Down Expand Up @@ -373,6 +371,8 @@ GEM
activesupport (>= 5.2)
sprockets (>= 3.0.0)
spy (1.0.2)
sqlite3 (2.6.0)
mini_portile2 (~> 2.8.0)
sqlite3 (2.6.0-arm64-darwin)
sqlite3 (2.6.0-x86_64-linux-gnu)
state_machines (0.5.0)
Expand Down
83 changes: 0 additions & 83 deletions app/assets/javascripts/merge_status.coffee

This file was deleted.

155 changes: 155 additions & 0 deletions app/assets/javascripts/merge_status.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

52 changes: 52 additions & 0 deletions app/assets/javascripts/shipit.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
// This is a manifest file that'll be compiled into application.js, which will include all the files
// listed below.
//
// Any JavaScript file within this directory, lib/assets/javascripts, vendor/assets/javascripts,
// or vendor/assets/javascripts of plugins, if any, can be referenced here using a relative path.
//
// It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the
// compiled file.
//
// Read Sprockets README (https://github.com/sstephenson/sprockets#sprockets-directives) for details
// about supported directives.
//
//= require jquery
//= require jquery_ujs
//= require rails-timeago
//= require jquery-notify
//= require_tree ./shipit
//= require_self

$(document).on('click', '.disabled, .btn--disabled', function(event) {
event.preventDefault();
});

$(document).on('click', '.banner__dismiss', function(event) {
$(event.target).closest('.banner').addClass('hidden');
});

$(document).on('click', '.enable-notifications .banner__dismiss', function(event) {
localStorage.setItem("dismissed-enable-notifications", true);
});

$(document).on('click', '.github-status .banner__dismiss', function(event) {
localStorage.setItem("dismissed-github-status", true);
});

jQuery(function() {
var $button, $notificationNotice;
if (!(localStorage.getItem("dismissed-enable-notifications"))) {
$notificationNotice = $('.enable-notifications');
if ($.notifyCheck() === $.NOTIFY_NOT_ALLOWED) {
$button = $notificationNotice.find('button');
$button.on('click', function() {
$.notifyRequest();
$notificationNotice.addClass('hidden');
});
$notificationNotice.removeClass('hidden');
}
}
if (!(localStorage.getItem("dismissed-github-status"))) {
$('.github-status').removeClass('hidden');
}
});
Loading
Loading