فینورا پرو - سامانه جامع حسابداری و صدور فاکتور

fix(A07): derive runtime version from package metadata

davoodmehraban89 committed Oct 14, 2026 at 23:18 UTC ba31b86ed0ef75abd34d96db3f29d8b41933d5da
1 file changed +4 -1
src/main.js
+4 -1
@@ -2,6 +2,7 @@
2 // Finora Pro — Main Entry Point
3 // ============================================================
4
5 +import appPackage from '../package.json' with { type: 'json' };
6 import { SettingsView } from './views/SettingsView.js';
7 import { ChequesView } from './views/ChequesView.js';
8 import { TreasuryView } from './views/TreasuryView.js';
@@ -28,7 +29,7 @@ import { LicenseService } from './core/LicenseService.js';
29 import { CompanyService } from './core/CompanyService.js';
30
31 const FINORA = {
31 - version: '1.1.1',
32 + version: appPackage.version,
33 Storage: StorageService,
34 Theme, Toast, Router, Auth, EventBus, Modal, KeyboardShortcuts, License: LicenseService, Company: CompanyService,
35 Utils: { Formatters, Jalali, numberToWords, NumberInput }
@@ -141,6 +142,8 @@ function showBootstrapError(err) {
142
143 async function bootstrap() {
144 try {
145 + const visibleVersion = document.getElementById('appVersionLabel');
146 + if (visibleVersion) visibleVersion.textContent = 'نسخه ' + FINORA.version;
147 console.log('🚀 Finora Pro v' + FINORA.version);
148
149 Theme.init();