Sha256: d4e8aa82c7af0ddbdd8f5ab9949d1c005d2e725d1fbe693b746da07828abcccf

Contents?: true

Size: 1.97 KB

Versions: 38

Compression:

Stored size: 1.97 KB

Contents

I"Ó(function() {
  jQuery(function($) {
    var dismissIgnoreCiMessage, displayIgnoreCiMessage, getLocalStorageKey, listenToEventSource, retries, updatePage;
    displayIgnoreCiMessage = function() {
      var ignoreCiMessage;
      ignoreCiMessage = $(".ignoring-ci");
      if (!ignoreCiMessage) {
        return;
      }
      $('.dismiss-ignore-ci-warning').click(function(event) {
        event.preventDefault();
        return dismissIgnoreCiMessage();
      });
      if (localStorage.getItem(getLocalStorageKey())) {
        return ignoreCiMessage.hide();
      }
    };
    dismissIgnoreCiMessage = function() {
      var ignoreCiMessage;
      localStorage.setItem(getLocalStorageKey(), true);
      ignoreCiMessage = $(".ignoring-ci");
      if (ignoreCiMessage) {
        return ignoreCiMessage.hide();
      }
    };
    getLocalStorageKey = function() {
      var stackName;
      stackName = $('.repo-name').data('repo-full-name');
      return "ignoreCIDismissed" + stackName;
    };
    displayIgnoreCiMessage();
    updatePage = function(message) {
      var payload;
      payload = JSON.parse(message.data);
      return $('[data-layout-content]').load(payload.url + " [data-layout-content] > *", function() {
        return $('time[data-time-ago]').timeago();
      });
    };
    retries = 0;
    listenToEventSource = function(url) {
      var interval, source;
      source = new EventSource(url);
      source.addEventListener('stack.update', updatePage);
      return interval = setInterval(function() {
        switch (source.readyState) {
          case source.CLOSED:
            clearInterval(interval);
            if (retries > 0) {
              retries -= 1;
              return listenToEventSource(url);
            }
            break;
          default:
            return retries = 2;
        }
      }, 30000);
    };
    return $('[data-event-stream]').each(function() {
      return listenToEventSource($(this).data('event-stream'));
    });
  });

}).call(this);
:ET

Version data entries

38 entries across 17 versions & 1 rubygems

Version Path
shipit-engine-0.5.0 test/dummy/tmp/cache/assets/development/sprockets/v3.0/G8CjtmtHvgWxU82_CPzGwNQAN7hJJXcEya6Yi4hCtMo.cache
shipit-engine-0.5.0 test/dummy/tmp/cache/assets/test/sprockets/v3.0/GjzHbFeaFoOvC8CJaPq8D7peK9Y6BleJruxF8TH2Cl0.cache
shipit-engine-0.5.0 test/dummy/tmp/cache/assets/test/sprockets/v3.0/G8CjtmtHvgWxU82_CPzGwNQAN7hJJXcEya6Yi4hCtMo.cache
shipit-engine-0.5.0 test/dummy/tmp/cache/assets/development/sprockets/v3.0/GjzHbFeaFoOvC8CJaPq8D7peK9Y6BleJruxF8TH2Cl0.cache
shipit-engine-0.4.10 test/dummy/tmp/cache/assets/test/sprockets/v3.0/G8CjtmtHvgWxU82_CPzGwNQAN7hJJXcEya6Yi4hCtMo.cache
shipit-engine-0.4.10 test/dummy/tmp/cache/assets/development/sprockets/v3.0/G8CjtmtHvgWxU82_CPzGwNQAN7hJJXcEya6Yi4hCtMo.cache
shipit-engine-0.4.10 test/dummy/tmp/cache/assets/test/sprockets/v3.0/GjzHbFeaFoOvC8CJaPq8D7peK9Y6BleJruxF8TH2Cl0.cache
shipit-engine-0.4.9 test/dummy/tmp/cache/assets/development/sprockets/v3.0/G8CjtmtHvgWxU82_CPzGwNQAN7hJJXcEya6Yi4hCtMo.cache
shipit-engine-0.4.9 test/dummy/tmp/cache/assets/test/sprockets/v3.0/GjzHbFeaFoOvC8CJaPq8D7peK9Y6BleJruxF8TH2Cl0.cache
shipit-engine-0.4.9 test/dummy/tmp/cache/assets/test/sprockets/v3.0/G8CjtmtHvgWxU82_CPzGwNQAN7hJJXcEya6Yi4hCtMo.cache
shipit-engine-0.4.8 test/dummy/tmp/cache/assets/test/sprockets/v3.0/G8CjtmtHvgWxU82_CPzGwNQAN7hJJXcEya6Yi4hCtMo.cache
shipit-engine-0.4.8 test/dummy/tmp/cache/assets/development/sprockets/v3.0/G8CjtmtHvgWxU82_CPzGwNQAN7hJJXcEya6Yi4hCtMo.cache
shipit-engine-0.4.7 test/dummy/tmp/cache/assets/test/sprockets/v3.0/G8CjtmtHvgWxU82_CPzGwNQAN7hJJXcEya6Yi4hCtMo.cache
shipit-engine-0.4.7 test/dummy/tmp/cache/assets/development/sprockets/v3.0/G8CjtmtHvgWxU82_CPzGwNQAN7hJJXcEya6Yi4hCtMo.cache
shipit-engine-0.4.6 test/dummy/tmp/cache/assets/development/sprockets/v3.0/G8CjtmtHvgWxU82_CPzGwNQAN7hJJXcEya6Yi4hCtMo.cache
shipit-engine-0.4.6 test/dummy/tmp/cache/assets/test/sprockets/v3.0/G8CjtmtHvgWxU82_CPzGwNQAN7hJJXcEya6Yi4hCtMo.cache
shipit-engine-0.4.5 test/dummy/tmp/cache/assets/test/sprockets/v3.0/G8CjtmtHvgWxU82_CPzGwNQAN7hJJXcEya6Yi4hCtMo.cache
shipit-engine-0.4.5 test/dummy/tmp/cache/assets/development/sprockets/v3.0/G8CjtmtHvgWxU82_CPzGwNQAN7hJJXcEya6Yi4hCtMo.cache
shipit-engine-0.4.4 test/dummy/tmp/cache/assets/development/sprockets/v3.0/G8CjtmtHvgWxU82_CPzGwNQAN7hJJXcEya6Yi4hCtMo.cache
shipit-engine-0.4.4 test/dummy/tmp/cache/assets/test/sprockets/v3.0/G8CjtmtHvgWxU82_CPzGwNQAN7hJJXcEya6Yi4hCtMo.cache