- testing customEvents emberjs/ember-test-helpers#75
- isArray naming ember-cli/ember-cli-shims#27
- each tear down emberjs/ember.js#12716
- yield inverse emberjs/ember.js#12775
- serialise ids warp-drive-data/warp-drive#3078
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import Ember from 'ember'; | |
| import { helper } from 'ember-helper'; | |
| import { htmlSafe } from 'ember-string'; | |
| const { escapeExpression } = Ember.Handlebars.Utils; | |
| /** | |
| * This helper escapes a value, useful for building styles | |
| * | |
| * @example | |
| * <div style={{escape (concat 'color:' ugcColour)}}></div> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| javascript:!function(t,n,o){"use strict";var r=o("body"),e=o("<div/>",{css:{"background-color":"black","border-radius":"0 0 2px 2px","font-size":"12px","margin-left":"-30px","text-align":"center","z-index":1e4,color:"white",left:"50%",padding:"5px",position:"absolute",top:0,width:"60px"}});e.prependTo(r);var a=function(n){e.text("Loading…");var r="/service/export/contact.vcf?partyId="+n,a=t.location.protocol+"//"+t.location.host+r;return o.get(a)},i=function(){e.text("Error").delay(500).fadeOut()},c=function(n){var o=p(n);t.prompt("",o),e.remove()},p=function(t){var n=t.match(/\nFN:(.*)\n/),r=t.match(/\nORG:(.*)\n/),e=t.match(/ADR;?([^:]+):(.*)/),a=t.match(/TEL;?([^:]+):(.*)/);n=n?n[1]:"",r=r?r[1]:"",a=a?a[2]:"",e=e?e[2]:"",e=e.replace(/\\n/g,";").split(";"),e=e.filter(Boolean),e=o.trim(e.join("\n"));var i=n;return r&&r!==n&&(i+=" ("+r+")"),i+="\n\n",i+=e,a&&(i+="\n\n"+a),i},d=t.location.href.match(/party\/(\d+)/);d?a(d[1]).done(c).fail(i):i()}(window,document,jQuery); |