PageSourceSearch

https://www.rf.se/webapp-resource/2.141179d117f7286571f370ce/360.6…/1669792854549/webapp-assets.js

js rf.se collected 2026-09-24 08:56:26 UTC 3,757 bytes, 92 lines download raw bytes

1AppRegistry.registerBundle({applicationId:'news-list|0.0.2',bundle: {"en":{},"sv":{}}});
2AppRegistry.registerModule({applicationId:'news-list|0.0.2',path:'/template/partials/message',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+='<h1>'+
6((__t=( message ))==null?'':__t)+
7'</h1>';
8}
9return __p;
10};});}});
11AppRegistry.registerModule({applicationId:'news-list|0.0.2',path:'/template/main',module:function(define){define(function(require){var _=require('underscore');return function(obj){
12var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');};
13with(obj||{}){
14__p+='<div class="hiq-news-list">\r\n	<h2 class="hiq-news-list__heading">'+
15((__t=( title ))==null?'':_.escape(__t))+
16'</h2>\r\n	<div class="hiq-news-list__container">\r\n		';
17 articles.forEach(function(article, index) { 
18__p+='\r\n			';
19 if(index === 0) { 
20__p+='\r\n				<div class="hiq-news-list__left hiq-news-list__fronted" data-link-box>\r\n					<img src="'+
21((__t=( article.image ))==null?'':_.escape(__t))+
22'" class="hiq-news-list__image" alt="">\r\n					<p class="hiq-news-list__date">'+
23((__t=( article.published ))==null?'':_.escape(__t))+
24'</p>\r\n					<p class="hiq-news-list__title large">\r\n						<a href="'+
25((__t=( article.uri ))==null?'':_.escape(__t))+
26'" title="'+
27((__t=( article.title ))==null?'':_.escape(__t))+
28'">'+
29((__t=( article.title ))==null?'':_.escape(__t))+
30'</a>\r\n					</p>\r\n					<p class="hiq-news-list__preamble">'+
31((__t=( article.preamble ))==null?'':_.escape(__t))+
32'</p>\r\n				</div>			\r\n			';
33 } 
34__p+='\r\n		';
35 }) 
36__p+='\r\n		<div class="hiq-news-list__right">\r\n			<ul class="hiq-news-list__list ">\r\n				';
37 articles.forEach(function(article, index) { 
38__p+='\r\n					';
39 if(index != 0) { 
40__p+='\r\n						<li class="hiq-news-list__item hiq-news-list__normal" data-link-box>\r\n							<div class="hiq-news-list__normal" data-link-box>\r\n								<p class="hiq-news-list__date">'+
41((__t=( article.published ))==null?'':_.escape(__t))+
42'</p>\r\n								<p class="hiq-news-list__title">\r\n									<a href="'+
43((__t=( article.uri ))==null?'':_.escape(__t))+
44'" title="'+
45((__t=( article.title ))==null?'':_.escape(__t))+
46'">'+
47((__t=( article.title ))==null?'':_.escape(__t))+
48'</a>\r\n								</p>\r\n							</div>\r\n						</li>\r\n					';
49 } 
50__p+='\r\n				';
51 }) 
52__p+='\r\n			</ul>\r\n			<div class="hiq-news-list__button-wrapper">\r\n				<a href="'+
53((__t=( page ))==null?'':_.escape(__t))+
54'" class="hiq-news-list__button">Fler nyheter</a>\r\n			</div>\r\n		</div>\r\n	</div>\r\n</div>';
55}
56return __p;
57};});}});
58AppRegistry.registerModule({applicationId:'news-list|0.0.2',path:'/main',module:function(define){'use strict';define(function(require) {
59	'use strict';
60 
61	var _          = require('underscore');
62	var Component  = require('Component');
63	var template   = require('/template/main');
64 
65	return Component.extend({
66 
67	   template: template,
68 
69	   filterState: function(state) {
70		  return _.extend({}, state);
71	   },
72	   templateFunctions: function() {
73			var _this = this;
74
75			return {
76				// Functions allows rendering of sub views, with optional data to be pushed into the renderer. If no data the whole state will be present
77				renderPartial: function(partialName, data) {
78					var template = require('/template/partials/' + partialName);
79					if (template) {
80						if (data) {
81							return _this.renderTemplate(template, data);
82						} else {
83							return _this.renderTemplate(template, _this.state);
84						}
85					} else {
86						return 'No partial template found';
87					}
88				}
89			}
90		}
91	});
92 });}});

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.