fix: solid-event#36

This commit is contained in:
Jean-Baptiste Pasquier 2021-04-13 12:11:49 +02:00
parent ecf8ad81d2
commit 9371f5d46f
2 changed files with 11 additions and 3 deletions

View File

@ -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/"
}
}
```

View File

@ -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)