From adee99d8ad5a5e850dbc83836402e3ca308f90d4 Mon Sep 17 00:00:00 2001 From: root Date: Mon, 22 Jun 2026 15:56:05 +0000 Subject: [PATCH] v21: tauri resources config, all JS fixes tested --- src-tauri/tauri.conf.json | 5 ++++- src/index.html | 4 ++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/src-tauri/tauri.conf.json b/src-tauri/tauri.conf.json index e9b9304..2aecc69 100644 --- a/src-tauri/tauri.conf.json +++ b/src-tauri/tauri.conf.json @@ -28,7 +28,7 @@ }, "bundle": { "active": true, - "targets": "all", + "targets": ["nsis"], "icon": [ "icons/32x32.png", "icons/128x128.png", @@ -38,6 +38,9 @@ ], "windows": { "webviewInstallMode": { "type": "embedBootstrapper" } + }, + "resources": { + "../src/*": "./" } } } diff --git a/src/index.html b/src/index.html index b847aeb..0e7c7ed 100644 --- a/src/index.html +++ b/src/index.html @@ -358,7 +358,7 @@
πŸ’° Vales (FuncionΓ‘rios)
-
NomeObsValor (R$)
TOTALR$ 0,00
+
NomeValor (R$)
TOTALR$ 0,00
@@ -576,7 +576,7 @@ let estado = { // ─── Helpers ────────────────────────────────────────────────────────────── const fmt = v => 'R$ ' + (parseFloat(v) || 0).toLocaleString('pt-BR', { minimumFractionDigits: 2 }); -const parseNum = v => parseFloat((v || '0').replace(/\./g,'').replace(',','.')) || 0; +const parseNum = v => parseFloat((String(v) || '0').replace(/\./g,'').replace(',','.')) || 0; const setText = (id, t) => { const e = document.getElementById(id); if (e) e.textContent = t; }; const setVal = (id, v) => { const e = document.getElementById(id); if (e) e.value = v; }; const val = id => { const e = document.getElementById(id); return e ? e.value : ''; };