From 9371f5d46fb9119df895e881493d02b36044e272 Mon Sep 17 00:00:00 2001 From: Jean-Baptiste Pasquier Date: Tue, 13 Apr 2021 12:11:49 +0200 Subject: [PATCH] fix: solid-event#36 --- README.md | 6 ++++-- src/dependencies.pug | 8 +++++++- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 7e690ce..0a13f8f 100644 --- a/README.md +++ b/README.md @@ -267,7 +267,8 @@ Eg.: "get": "http://server.url/events/", "post": "http://server.url/events/", "typeevents": "http://server.url/typeevents/", - "postTypeevents": "http://server.url/typeevents/" + "postTypeevents": "http://server.url/typeevents/", + "uploads": "http://server.url/upload/" } } ] @@ -335,7 +336,8 @@ Module declaration, on `config.json`: "get": "http://server.url/events/", "post": "http://server.url/events/", "typeevents": "http://server.url/typeevents/", - "postTypeevents": "http://server.url/typeevents/" + "postTypeevents": "http://server.url/typeevents/", + "uploads": "http://server.url/upload/" } } ``` diff --git a/src/dependencies.pug b/src/dependencies.pug index 8c4b512..99b97a2 100644 --- a/src/dependencies.pug +++ b/src/dependencies.pug @@ -4,7 +4,13 @@ script(type="module" src="https://cdn.skypack.dev/@startinblox/core@0.16" defer) script(type="module" src="https://cdn.skypack.dev/@startinblox/router@0.11" defer) //- script(type="module" src="/lib/sib-router/src/index.js" defer) -- const componentSet = new Set(components.map(c=>c.type)); +- + 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") script(type="module" src="https://cdn.skypack.dev/@startinblox/oidc@0.14" defer)