hubl/src/dependencies.pug

62 lines
3.0 KiB
Plaintext
Raw Normal View History

2021-03-16 14:27:30 +00:00
script(type="module" src="https://cdn.skypack.dev/@startinblox/core@0.16" defer)
2020-05-08 13:27:44 +00:00
//- script(type="module" src="/lib/sib-core/dist/index.js" defer)
2020-11-13 12:34:17 +00:00
script(type="module" src="https://cdn.skypack.dev/@startinblox/router@0.11" defer)
2020-09-14 13:41:10 +00:00
//- script(type="module" src="/lib/sib-router/src/index.js" defer)
2020-05-08 13:27:44 +00:00
2021-04-13 10:11:49 +00:00
-
const componentSet = new Set(components.map(c=>c.type));
components.map(c => {
if(c.extensions) {
c.extensions.forEach(e => componentSet.add(e.type));
}
});
if componentSet.has("autoLogin") || componentSet.has("registering")
2021-03-16 14:27:30 +00:00
script(type="module" src="https://cdn.skypack.dev/@startinblox/oidc@0.14" defer)
//- script(type="module" src="/lib/sib-auth/index.js" defer)
if componentSet.has("chat") || componentSet.has("circles") || componentSet.has("projects")
2021-03-22 18:58:12 +00:00
script(type="module" src="https://cdn.skypack.dev/@startinblox/component-chat@5.2" defer)
//- script(type="module" src="/lib/solid-xmpp-chat/dist/index.js" defer)
2020-05-08 13:27:44 +00:00
2021-04-07 21:21:50 +00:00
if componentSet.has("communities")
script(type="module" src="https://cdn.skypack.dev/@startinblox/core@0.16/dist/components/solid-map.js" defer)
//- script(type="module" src="/lib/sib-core/dist/components/solid-map.js" defer)
if componentSet.has("dashboard")
2021-03-16 14:27:30 +00:00
script(type="module" src="https://cdn.skypack.dev/@startinblox/component-dashboard@4.0" defer)
//- script(type="module" src="/lib/solid-dashboard/dist/index.js" defer)
if componentSet.has("events")
script(type="module", src="https://cdn.skypack.dev/@startinblox/component-event@3.0", defer)
//- script(type="module", src="/lib/solid-event/solid-event.js", defer)
2020-11-26 22:21:55 +00:00
2021-03-16 14:27:30 +00:00
//- Disabled - Not in core@0.16
2021-04-09 17:02:13 +00:00
if componentSet.has("events") || componentSet.has("polls") || componentSet.has("resources")
script(type="module" src="https://cdn.skypack.dev/@startinblox/component-conversation@0.10" defer)
2020-11-26 22:21:55 +00:00
if componentSet.has("jobBoard")
2021-03-16 14:27:30 +00:00
script(type="module" src="https://cdn.skypack.dev/@startinblox/component-job-board@5.0" defer)
//- script(type="module" src="/lib/solid-job-board/dist/index.js" defer)
2020-11-26 22:21:55 +00:00
if componentSet.has("notification")
2021-03-16 14:27:30 +00:00
script(type="module" src="https://cdn.skypack.dev/@startinblox/component-notifications@0.12" defer)
//- script(type="module" src="/lib/sib-notifications/index.js" defer)
2020-11-26 22:21:55 +00:00
2021-04-09 17:02:13 +00:00
if componentSet.has("polls")
script(type="module" src="https://cdn.skypack.dev/@startinblox/component-poll@2.1" defer)
//script(type="module" src="/lib/solid-poll/index.js" defer)
2020-11-26 22:21:55 +00:00
2021-03-16 14:27:30 +00:00
if componentSet.has("profileDirectory")
2021-03-25 10:49:16 +00:00
script(type="module" src="https://cdn.skypack.dev/@startinblox/component-directory@5.1" defer)
2021-03-16 14:27:30 +00:00
//- script(type="module" src="/lib/solid-directory/dist/index.js" defer)
2021-04-06 14:05:25 +00:00
if componentSet.has("resources")
script(type="module", src="https://cdn.skypack.dev/@startinblox/component-resource@3.1", defer)
//- script(type="module" src="/lib/solid-resource/solid-resource.js" defer)
2020-11-26 22:21:55 +00:00
if componentSet.has("themeChecker")
script(src="https://cdn.jsdelivr.net/npm/@simonwep/pickr/dist/pickr.min.js" defer)
link(rel='stylesheet', href='https://cdn.jsdelivr.net/npm/@simonwep/pickr/dist/themes/nano.min.css')