Convert ha-gallery to TS (#11102)

* Convert ha-gallery to TS

* Prepare gallery to be design portal

* Import card in introduction

* Clean up demo IDs

* Convert demo-cards

* TypeScript conversion of demo-card

* Fix default demo
This commit is contained in:
Paulus Schoutsen
2022-01-05 12:49:05 -08:00
committed by GitHub
parent 76a4b1efbd
commit e3d78d6dc5
13 changed files with 550 additions and 442 deletions

View File

@@ -25,7 +25,7 @@ gulp.task("gather-gallery-demos", async function gatherDemos() {
for (const file of files) {
const demoId = path.basename(file, ".ts");
const demoPath = "../src/demos/" + demoId;
content += ` "${demoId}": () => import("${demoPath}"),\n`;
content += ` "${demoId.substring(5)}": () => import("${demoPath}"),\n`;
}
content += "};";