mirror of
https://github.com/Horizontal42/summarum.git
synced 2026-11-10 21:31:59 +03:00
update docs: fix test count (373 not 259), add missing files to arch tree
- vitest actually runs 373 cases across 21 files, not 259 - added workspace.ts, sparkline.ts, logger.ts to the file tree in ARCHITECTURE - fixes in all four language variants: README + ARCHITECTURE in EN and RU
This commit is contained in:
parent
663b2ccab8
commit
37cfd2144b
4 changed files with 10 additions and 4 deletions
|
|
@ -23,13 +23,16 @@ src/
|
||||||
editor.ts CodeMirror 6 wiring: highlight, results overlay, copy
|
editor.ts CodeMirror 6 wiring: highlight, results overlay, copy
|
||||||
search.ts cross-sheet search overlay (text + result-value queries)
|
search.ts cross-sheet search overlay (text + result-value queries)
|
||||||
export.ts renders the sheet + results to a PNG (clipboard/file)
|
export.ts renders the sheet + results to a PNG (clipboard/file)
|
||||||
|
sparkline.ts SVG sparkline renderer for `chart` results
|
||||||
app.css themes (light/dark via CSS variables)
|
app.css themes (light/dark via CSS variables)
|
||||||
main.ts app bootstrap: documents, settings, status bar, dnd
|
main.ts app bootstrap: documents, settings, status bar, dnd
|
||||||
|
workspace.ts cross-sheet references: exports cache, cycle detection
|
||||||
storage.ts Tauri commands / localStorage fallback
|
storage.ts Tauri commands / localStorage fallback
|
||||||
extensions.ts runs user .js files in a QuickJS/WASM sandbox, bridged
|
extensions.ts runs user .js files in a QuickJS/WASM sandbox, bridged
|
||||||
to the engine's numi.* API
|
to the engine's numi.* API
|
||||||
i18n.ts interface strings (en/ru)
|
i18n.ts interface strings (en/ru)
|
||||||
updater.ts checks tauri-plugin-updater, installs + relaunches
|
updater.ts checks tauri-plugin-updater, installs + relaunches
|
||||||
|
logger.ts thin console wrapper (info/warn/error)
|
||||||
src-tauri/
|
src-tauri/
|
||||||
src/main.rs tray, hide-to-tray, storage commands, rates fetching
|
src/main.rs tray, hide-to-tray, storage commands, rates fetching
|
||||||
(open.er-api.com + CoinGecko + Yahoo Finance v8 chart)
|
(open.er-api.com + CoinGecko + Yahoo Finance v8 chart)
|
||||||
|
|
@ -300,7 +303,7 @@ All files below live in `%APPDATA%/app.summarum.calc` (or the user-chosen folder
|
||||||
|
|
||||||
## Tests
|
## Tests
|
||||||
|
|
||||||
`npm test` runs 259 vitest cases: `src/engine/*.test.ts` covers every
|
`npm test` runs 373 vitest cases across 21 files: `src/engine/*.test.ts` covers every
|
||||||
expression class, both languages, deterministic injected rates, goal seek,
|
expression class, both languages, deterministic injected rates, goal seek,
|
||||||
historical rates (injected), date-format literals/display (dedicated engines
|
historical rates (injected), date-format literals/display (dedicated engines
|
||||||
with an explicit `dateFormat`, since the default "system" format depends on
|
with an explicit `dateFormat`, since the default "system" format depends on
|
||||||
|
|
|
||||||
|
|
@ -24,13 +24,16 @@ src/
|
||||||
editor.ts обвязка CodeMirror 6: подсветка, оверлей результатов, копирование
|
editor.ts обвязка CodeMirror 6: подсветка, оверлей результатов, копирование
|
||||||
search.ts оверлей поиска по всем листам (текст + запросы по значению)
|
search.ts оверлей поиска по всем листам (текст + запросы по значению)
|
||||||
export.ts рендерит лист + результаты в PNG (буфер обмена/файл)
|
export.ts рендерит лист + результаты в PNG (буфер обмена/файл)
|
||||||
|
sparkline.ts рендер SVG-спарклайна для результатов `chart`
|
||||||
app.css темы (светлая/тёмная через CSS-переменные)
|
app.css темы (светлая/тёмная через CSS-переменные)
|
||||||
main.ts запуск приложения: документы, настройки, строка статуса, dnd
|
main.ts запуск приложения: документы, настройки, строка статуса, dnd
|
||||||
|
workspace.ts межлистовые ссылки: кэш экспортов, обнаружение циклов
|
||||||
storage.ts команды Tauri / запасной вариант на localStorage
|
storage.ts команды Tauri / запасной вариант на localStorage
|
||||||
extensions.ts запускает пользовательские .js-файлы в песочнице
|
extensions.ts запускает пользовательские .js-файлы в песочнице
|
||||||
QuickJS/WASM, мост к API numi.* движка
|
QuickJS/WASM, мост к API numi.* движка
|
||||||
i18n.ts строки интерфейса (en/ru)
|
i18n.ts строки интерфейса (en/ru)
|
||||||
updater.ts проверка tauri-plugin-updater, установка + перезапуск
|
updater.ts проверка tauri-plugin-updater, установка + перезапуск
|
||||||
|
logger.ts тонкая обёртка над console (info/warn/error)
|
||||||
src-tauri/
|
src-tauri/
|
||||||
src/main.rs трей, скрытие в трей, команды хранилища, загрузка курсов
|
src/main.rs трей, скрытие в трей, команды хранилища, загрузка курсов
|
||||||
(open.er-api.com + CoinGecko + Yahoo Finance v8 chart)
|
(open.er-api.com + CoinGecko + Yahoo Finance v8 chart)
|
||||||
|
|
@ -304,7 +307,7 @@ src-tauri/
|
||||||
|
|
||||||
## Тесты
|
## Тесты
|
||||||
|
|
||||||
`npm test` запускает 259 vitest-кейсов: `src/engine/*.test.ts` покрывает все
|
`npm test` запускает 373 vitest-кейса в 21 файле: `src/engine/*.test.ts` покрывает все
|
||||||
классы выражений, оба языка, детерминированные инжектированные курсы, поиск
|
классы выражений, оба языка, детерминированные инжектированные курсы, поиск
|
||||||
неизвестного, исторические курсы (инжектированные), литералы и отображение
|
неизвестного, исторические курсы (инжектированные), литералы и отображение
|
||||||
форматов дат (отдельные движки с явным `dateFormat` — формат «system» по
|
форматов дат (отдельные движки с явным `dateFormat` — формат «system» по
|
||||||
|
|
|
||||||
|
|
@ -169,7 +169,7 @@ see [ARCHITECTURE.md](ARCHITECTURE.md).
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
npm install
|
npm install
|
||||||
npm test # engine tests (259 cases)
|
npm test # engine tests (373 cases)
|
||||||
npm run tauri dev # run the app
|
npm run tauri dev # run the app
|
||||||
npm run tauri build # build the installer
|
npm run tauri build # build the installer
|
||||||
```
|
```
|
||||||
|
|
|
||||||
|
|
@ -165,7 +165,7 @@ numi.addFunction({ id: "гипот", phrases: "гипот" },
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
npm install
|
npm install
|
||||||
npm test # тесты движка (259 кейсов)
|
npm test # тесты движка (373 кейса)
|
||||||
npm run tauri dev # запустить приложение
|
npm run tauri dev # запустить приложение
|
||||||
npm run tauri build # собрать установщик
|
npm run tauri build # собрать установщик
|
||||||
```
|
```
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue