@yakuzaa/jade 0.1.20 → 0.1.23
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/commands/html.js +6 -0
- package/package.json +3 -3
package/commands/html.js
CHANGED
|
@@ -597,6 +597,12 @@ async function iniciar() {
|
|
|
597
597
|
|
|
598
598
|
const ui = new UIEngine(runtime.getMemory());
|
|
599
599
|
|
|
600
|
+
// Pré-carrega TODAS as entidades nos signals para que seletores *Id funcionem
|
|
601
|
+
await Promise.all(entidades.map(async nome => {
|
|
602
|
+
const dados = await db.find(nome).catch(() => []);
|
|
603
|
+
ui.setDadosEntidade?.(nome, dados);
|
|
604
|
+
}));
|
|
605
|
+
|
|
600
606
|
document.getElementById('jade-carregando')?.remove();
|
|
601
607
|
document.getElementById('jade-app').style.display = '';
|
|
602
608
|
document.getElementById('jade-header').style.display = '';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@yakuzaa/jade",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.23",
|
|
4
4
|
"description": "Jade DSL — linguagem empresarial em português compilada para WebAssembly. Instala compilador + runtime + CLI.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -17,8 +17,8 @@
|
|
|
17
17
|
"postinstall": "node postinstall.js"
|
|
18
18
|
},
|
|
19
19
|
"dependencies": {
|
|
20
|
-
"@yakuzaa/jade-compiler": "^0.1.
|
|
21
|
-
"@yakuzaa/jade-runtime": "^0.1.
|
|
20
|
+
"@yakuzaa/jade-compiler": "^0.1.17",
|
|
21
|
+
"@yakuzaa/jade-runtime": "^0.1.16"
|
|
22
22
|
},
|
|
23
23
|
"keywords": [
|
|
24
24
|
"jade",
|