Sha256: 77bf4f3dbf42b2565574e4973d2900502cc5eb0547aacae7876c7070cd69bb20
Contents?: true
Size: 1.96 KB
Versions: 10
Compression:
Stored size: 1.96 KB
Contents
{:uriI"file://app/assets/javascripts/admin/swal.js?type=application/javascript&pipeline=self&id=8672e38ddd29dbd1c1fa0a6ee883758935340548cc2dbcd59bfbae783e688c40:ET:load_pathI"app/assets/javascripts;T: filenameI")app/assets/javascripts/admin/swal.js;T: nameI"admin/swal;T:logical_pathI"admin/swal.self.js;T:content_typeI"application/javascript;T:sourceI"A$(document).on('turbolinks:load', function() { $(function ($) { $('.delete').click(function(e){ e.preventDefault() swal({ title: 'Submit your Github username', input: 'text', inputAttributes: { autocapitalize: 'off' }, showCancelButton: true, confirmButtonText: 'Look up', showLoaderOnConfirm: true, preConfirm: (login) => { return fetch(`//api.github.com/users/${login}`) .then(response => { if (!response.ok) { throw new Error(response.statusText) } return response.json() }) .catch(error => { swal.showValidationError( `Request failed: ${error}` ) }) }, allowOutsideClick: () => !swal.isLoading() }).then((result) => { if (result.value) { swal({ title: `${result.value.login}'s avatar`, imageUrl: result.value.avatar_url }) } }) }) }); }); ;T: metadata{:dependencieso:Set: @hash} I"environment-version;TTI"environment-paths;TTI"rails-env;TTI"Zprocessors:type=application/javascript&file_type=application/javascript&pipeline=self;TTI"7file-digest://app/assets/javascripts/admin/swal.js;TTF: requiredo;;} F:stubbedo;;} F: linkso;;} F:charsetI" utf-8;F:digest"% QShj´F~ǷÎ QiJR:lengthiA:dependencies_digest"%2QFGO&O݇+ÌA :idI"E8672e38ddd29dbd1c1fa0a6ee883758935340548cc2dbcd59bfbae783e688c40;F: mtimel+{[
Version data entries
10 entries across 10 versions & 1 rubygems