1AppRegistry.registerBundle({applicationId:'image-card-external|0.0.1',bundle: {}}); 2AppRegistry.registerModule({applicationId:'image-card-external|0.0.1',path:'/template/partials/big',module:function(define){define(function(require){var _=require('underscore');return function(obj){ 3var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');}; 4with(obj||{}){ 5__p+='<div class="olof-image-highlight olof-image-highlight--big" style="background-image:url(\''+ 6((__t=( image && image.URI ))==null?'':__t)+ 7'\')">\r\n <a href="'+ 8((__t=( url ))==null?'':__t)+ 9'" class="olof-image-highlight__content" title="test">\r\n <h2 class="olof-image-highlight__header">'+ 10((__t=( title ))==null?'':__t)+ 11'</h2>\r\n <span class="olof-image-highlight__description">'+ 12((__t=( description ))==null?'':__t)+ 13'</span>\r\n </a>\r\n</div>'; 14} 15return __p; 16};});}}); 17AppRegistry.registerModule({applicationId:'image-card-external|0.0.1',path:'/template/partials/small',module:function(define){define(function(require){var _=require('underscore');return function(obj){ 18var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');}; 19with(obj||{}){ 20__p+='<div class="olof-image-highlight olof-image-highlight--small" title="'+ 21((__t=( title ))==null?'':_.escape(__t))+ 22'" data-link-box>\r\n '; 23 if(image) { 24__p+='\r\n <div class="olof-image-highlight__image">\r\n <img src="'+ 25((__t=( image.URI ))==null?'':__t)+ 26'" alt="'+ 27((__t=( image.alt ))==null?'':__t)+ 28'">\r\n </div>\r\n '; 29 } 30__p+='\r\n <div class="olof-image-highlight__content">\r\n <h2 class="olof-image-highlight__header">\r\n <a href="'+ 31((__t=( url ))==null?'':__t)+ 32'" class="olof-image-highlight__header-link">'+ 33((__t=( title ))==null?'':__t)+ 34'</a>\r\n </h2>\r\n <span class="olof-image-highlight__description">\r\n '+ 35((__t=( description ))==null?'':__t)+ 36'\r\n </span>\r\n </div>\r\n</div>\r\n'; 37} 38return __p; 39};});}}); 40AppRegistry.registerModule({applicationId:'image-card-external|0.0.1',path:'/main',module:function(define){'use strict';define(function(require) { 41 "use strict"; 42 43 var _ = require("underscore"); 44 var Component = require("Component"); 45 var bigTemplate = require("/template/partials/big"); 46 var smallTemplate = require("/template/partials/small"); 47 48 return Component.extend({ 49 attributes: { 50 class: "olof-image-highlight__wrapper", 51 }, 52 getTemplate: function() { 53 if (this.state.big) { 54 return bigTemplate; 55 } 56 return smallTemplate; 57 }, 58 filterState: function(state) { 59 return _.extend({}, state); 60 }, 61 templateFunctions: function() { 62 var _this = this; 63 64 return { 65 // Functions allows rendering of sub views, with optional data to be pushed into the renderer. If no data the whole state will be present 66 renderPartial: function(partialName, data) { 67 var template = require("/template/partials/" + partialName); 68 if (template) { 69 if (data) { 70 return _this.renderTemplate(template, { 71 data: data, 72 }); 73 } else { 74 return _this.renderTemplate(template, _this.state); 75 } 76 } else { 77 return "No partial template found"; 78 } 79 }, 80 }; 81 }, 82 }); 83}); 84}});
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.