Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions build-all.mts
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ const targets: string[] = [
"pizzaz-carousel",
"pizzaz-list",
"pizzaz-albums",
"pizzaz-shop",
];
const builtNames: string[] = [];

Expand Down
9 changes: 9 additions & 0 deletions pizzaz_server_node/src/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,15 @@ const widgets: PizzazWidget[] = [
html: readWidgetHtml("pizzaz-list"),
responseText: "Rendered a pizza list!",
},
{
id: "pizza-shop",
title: "Open Pizzaz Shop",
templateUri: "ui://widget/pizza-shop.html",
invoking: "Opening the shop",
invoked: "Shop opened",
html: readWidgetHtml("pizzaz-shop"),
responseText: "Rendered the Pizzaz shop!",
},
];

const widgetsById = new Map<string, PizzazWidget>();
Expand Down
9 changes: 9 additions & 0 deletions pizzaz_server_python/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,15 @@ def _load_widget_html(component_name: str) -> str:
html=_load_widget_html("pizzaz-list"),
response_text="Rendered a pizza list!",
),
PizzazWidget(
identifier="pizza-shop",
title="Open Pizzaz Shop",
template_uri="ui://widget/pizza-shop.html",
invoking="Opening the shop",
invoked="Shop opened",
html=_load_widget_html("pizzaz-shop"),
response_text="Rendered the Pizzaz shop!",
),
]


Expand Down
Loading