mirror of
https://github.com/home-assistant/frontend.git
synced 2025-10-08 19:29:53 +00:00
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:
@@ -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 += "};";
|
||||
|
Reference in New Issue
Block a user