PageSourceSearch

https://www.rf.se/webapp-resource/4.4a2092cb182ce49ac4022b/360.733…/1657017731855/webapp-assets.js

js rf.se collected 2026-09-24 08:57:07 UTC 2,824 bytes, 71 lines download raw bytes

1AppRegistry.registerBundle({applicationId:'main-menu|0.0.1',bundle: {"en":{},"sv":{}}});
2AppRegistry.registerModule({applicationId:'main-menu|0.0.1',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>PLACEHOLDER TEXT!</h1>';
6}
7return __p;
8};});}});
9AppRegistry.registerModule({applicationId:'main-menu|0.0.1',path:'/template/main',module:function(define){define(function(require){var _=require('underscore');return function(obj){
10var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');};
11with(obj||{}){
12__p+='<div id="'+
13((__t=( appContext.getWebAppNamespace('app') ))==null?'':__t)+
14'">\r\n	<!-- Up the quality of your app by server render placeholders to later seamlessly be replaced by the VUE instance! -->\r\n	<nav class="hiq-menu" aria-label="Huvudmeny">\r\n		';
15 mainMenuItems.forEach(function(item) { 
16__p+='\r\n			<div class="hiq-menu__item">\r\n				<div class="hiq-menu__item-wrapper">\r\n					<a class="hiq-menu__link" href="'+
17((__t=( item.uri ))==null?'':_.escape(__t))+
18'">'+
19((__t=( item.name ))==null?'':_.escape(__t))+
20'</a>\r\n				</div>\r\n			</div>\r\n		';
21 }) 
22__p+='\r\n		\r\n	</nav>\r\n</div>\r\n\r\n\r\n\n<!--SCRIPT_TAG_TO_JS_FILE--><script src="'+
23((__t=( getResourceUrl('vue/app.3b96a4fa.js') ))==null?'':__t)+
24'"></script>\n';
25}
26return __p;
27};});}});
28AppRegistry.registerModule({applicationId:'main-menu|0.0.1',path:'/main',module:function(define){'use strict';define(function(require) {
29	'use strict';
30
31	var _ = require('underscore');
32	var Component = require('Component');
33	var template = require('/template/main');
34
35	return Component.extend({
36		template: template,
37		// Initialize the VUE app!
38		onAttached: function() {
39			var appId = this._templateFunctions().appContext.getWebAppNamespace(
40				'app'
41			);
42			// A bugg in SiteVision crashes the browser tab if big Vue apps are rendered in edit mode. 
43			// This prevents the vue client to be rendered in edit mode.
44			if(!this.state.isEditMode) {
45				window.svhiq3559b97d7d454bce855c40eaded97edf(document.querySelector('#' + appId), this.state);
46			}
47		},
48		filterState: function(state) {
49			return _.extend({}, state);
50		},
51		templateFunctions: function() {
52			var _this = this;
53
54			return {
55				renderPartial: function(partialName, data) {
56					var template = require('/template/partials/' + partialName);
57					if (template) {
58						if (data) {
59							return _this.renderTemplate(template, data);
60						} else {
61							return _this.renderTemplate(template, _this.state);
62						}
63					} else {
64						return 'No partial template found';
65					}
66				}
67			};
68		}
69	});
70});
71}});

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.