|
<!DOCTYPE html> |
|
<html lang="en"> |
|
|
|
<head> |
|
<meta charset="UTF-8"> |
|
<base href="/"> |
|
<style> |
|
body { |
|
background-color: #ffffff; |
|
} |
|
</style> |
|
<script src="http://localhost:4200/assets/js/[email protected]/system.js"></script> |
|
</head> |
|
|
|
<body> |
|
<script> |
|
System.config({ |
|
"warnings": false, |
|
"map": { |
|
"svelte": "https://unpkg.com/[email protected]/index.js", |
|
"svelte/animate": "https://unpkg.com/[email protected]/animate/index.js", |
|
"svelte/easing": "https://unpkg.com/[email protected]/easing/index.js", |
|
"svelte/internal": "https://unpkg.com/[email protected]/internal/index.js", |
|
"svelte/motion": "https://unpkg.com/[email protected]/motion/index.js", |
|
"svelte/store": "https://unpkg.com/[email protected]/store/index.js", |
|
"svelte/transition": "https://unpkg.com/[email protected]/transition/index.js" |
|
} |
|
}); |
|
</script> |
|
<div id="root"></div> |
|
|
|
|
|
<script> |
|
System.register("./index.js", ["./App.svelte.js"], function (exports_1, context_1) { |
|
"use strict"; |
|
var App_svelte_1; |
|
var __moduleName = context_1 && context_1.id; |
|
return { |
|
setters: [ |
|
function (App_svelte_1_1) { |
|
App_svelte_1 = App_svelte_1_1; |
|
} |
|
], |
|
execute: function () { |
|
new App_svelte_1.default({ target: document.querySelector("#root"), props: {} }); |
|
} |
|
}; |
|
}); |
|
|
|
System.register("./println.js", [], function (exports_1, context_1) { |
|
"use strict"; |
|
var __moduleName = context_1 && context_1.id; |
|
function println(x) { |
|
const text = new Text(`${x}`); |
|
const div = document.createElement('div'); |
|
div.appendChild(text); |
|
document.body.appendChild(div); |
|
} |
|
exports_1("println", println); |
|
return { |
|
setters: [], |
|
execute: function () { |
|
} |
|
}; |
|
}); |
|
|
|
System.register("./App.svelte.js", ["svelte/internal", "./Info.svelte.js"], function (exports_1, context_1) { |
|
"use strict"; |
|
var internal_1, Info_svelte_1, App; |
|
var __moduleName = context_1 && context_1.id; |
|
function create_fragment(ctx) { |
|
let info; |
|
let current; |
|
const info_spread_levels = [ctx[0]]; |
|
let info_props = {}; |
|
for (let i = 0; i < info_spread_levels.length; i += 1) { |
|
info_props = internal_1.assign(info_props, info_spread_levels[i]); |
|
} |
|
info = new Info_svelte_1.default({ props: info_props }); |
|
return { |
|
c() { |
|
internal_1.create_component(info.$$.fragment); |
|
}, |
|
m(target, anchor) { |
|
internal_1.mount_component(info, target, anchor); |
|
current = true; |
|
}, |
|
p(ctx, [dirty]) { |
|
const info_changes = (dirty & 1) |
|
? internal_1.get_spread_update(info_spread_levels, [internal_1.get_spread_object(ctx[0])]) |
|
: {}; |
|
info.$set(info_changes); |
|
}, |
|
i(local) { |
|
if (current) |
|
return; |
|
internal_1.transition_in(info.$$.fragment, local); |
|
current = true; |
|
}, |
|
o(local) { |
|
internal_1.transition_out(info.$$.fragment, local); |
|
current = false; |
|
}, |
|
d(detaching) { |
|
internal_1.destroy_component(info, detaching); |
|
} |
|
}; |
|
} |
|
function instance($$self) { |
|
const pkg = { |
|
name: 'svelte', |
|
version: 3, |
|
speed: 'blazing', |
|
website: 'https://svelte.dev' |
|
}; |
|
return [pkg]; |
|
} |
|
return { |
|
setters: [ |
|
function (internal_1_1) { |
|
internal_1 = internal_1_1; |
|
}, |
|
function (Info_svelte_1_1) { |
|
Info_svelte_1 = Info_svelte_1_1; |
|
} |
|
], |
|
execute: function () { |
|
App = class App extends internal_1.SvelteComponent { |
|
constructor(options) { |
|
super(); |
|
internal_1.init(this, options, instance, create_fragment, internal_1.safe_not_equal, {}); |
|
} |
|
}; |
|
exports_1("default", App); |
|
} |
|
}; |
|
}); |
|
|
|
System.register("./Info.svelte.js", ["svelte/internal"], function (exports_1, context_1) { |
|
"use strict"; |
|
var internal_1, Info; |
|
var __moduleName = context_1 && context_1.id; |
|
function create_fragment(ctx) { |
|
let p; |
|
let t0; |
|
let code; |
|
let t1; |
|
let t2; |
|
let t3; |
|
let t4; |
|
let t5; |
|
let t6; |
|
let a0; |
|
let t7; |
|
let a0_href_value; |
|
let t8; |
|
let a1; |
|
let t9; |
|
return { |
|
c() { |
|
p = internal_1.element("p"); |
|
t0 = internal_1.text("The "); |
|
code = internal_1.element("code"); |
|
t1 = internal_1.text(ctx[0]); |
|
t2 = internal_1.text(" package is "); |
|
t3 = internal_1.text(ctx[2]); |
|
t4 = internal_1.text(" fast.\n\tDownload version "); |
|
t5 = internal_1.text(ctx[1]); |
|
t6 = internal_1.text(" from "); |
|
a0 = internal_1.element("a"); |
|
t7 = internal_1.text("npm"); |
|
t8 = internal_1.text("\n\tand "); |
|
a1 = internal_1.element("a"); |
|
t9 = internal_1.text("learn more here"); |
|
internal_1.attr(a0, "href", a0_href_value = "https://www.npmjs.com/package/" + ctx[0]); |
|
internal_1.attr(a1, "href", ctx[3]); |
|
}, |
|
m(target, anchor) { |
|
internal_1.insert(target, p, anchor); |
|
internal_1.append(p, t0); |
|
internal_1.append(p, code); |
|
internal_1.append(code, t1); |
|
internal_1.append(p, t2); |
|
internal_1.append(p, t3); |
|
internal_1.append(p, t4); |
|
internal_1.append(p, t5); |
|
internal_1.append(p, t6); |
|
internal_1.append(p, a0); |
|
internal_1.append(a0, t7); |
|
internal_1.append(p, t8); |
|
internal_1.append(p, a1); |
|
internal_1.append(a1, t9); |
|
}, |
|
p(ctx, [dirty]) { |
|
if (dirty & 1) |
|
internal_1.set_data(t1, ctx[0]); |
|
if (dirty & 4) |
|
internal_1.set_data(t3, ctx[2]); |
|
if (dirty & 2) |
|
internal_1.set_data(t5, ctx[1]); |
|
if (dirty & 1 && a0_href_value !== (a0_href_value = "https://www.npmjs.com/package/" + ctx[0])) { |
|
internal_1.attr(a0, "href", a0_href_value); |
|
} |
|
if (dirty & 8) { |
|
internal_1.attr(a1, "href", ctx[3]); |
|
} |
|
}, |
|
i: internal_1.noop, |
|
o: internal_1.noop, |
|
d(detaching) { |
|
if (detaching) |
|
internal_1.detach(p); |
|
} |
|
}; |
|
} |
|
function instance($$self, $$props, $$invalidate) { |
|
let { name } = $$props; |
|
let { version } = $$props; |
|
let { speed } = $$props; |
|
let { website } = $$props; |
|
$$self.$$set = $$props => { |
|
if ('name' in $$props) |
|
$$invalidate(0, name = $$props.name); |
|
if ('version' in $$props) |
|
$$invalidate(1, version = $$props.version); |
|
if ('speed' in $$props) |
|
$$invalidate(2, speed = $$props.speed); |
|
if ('website' in $$props) |
|
$$invalidate(3, website = $$props.website); |
|
}; |
|
return [name, version, speed, website]; |
|
} |
|
return { |
|
setters: [ |
|
function (internal_1_1) { |
|
internal_1 = internal_1_1; |
|
} |
|
], |
|
execute: function () { |
|
Info = class Info extends internal_1.SvelteComponent { |
|
constructor(options) { |
|
super(); |
|
internal_1.init(this, options, instance, create_fragment, internal_1.safe_not_equal, { |
|
name: 0, |
|
version: 1, |
|
speed: 2, |
|
website: 3 |
|
}); |
|
} |
|
}; |
|
exports_1("default", Info); |
|
} |
|
}; |
|
}); |
|
</script> |
|
<script> |
|
System.defaultJSExtensions = true |
|
System.import('./index.js').catch(function(e) { console.error(e) }) |
|
</script> |
|
</body> |
|
|
|
</html> |