2
0
mirror of https://github.com/frappe/books.git synced 2025-01-09 09:50:27 +00:00
books/src
18alantom afe04cccaf fix: init with schemas even if no db
- ux: show reload dialog on settings save
2023-05-10 22:46:01 -07:00
..
assets
components v0.14.0 2023-05-09 12:43:07 +05:30
pages fix: init with schemas even if no db 2023-05-10 22:46:01 -07:00
regional
renderer fix: capture patch fail errors 2023-04-04 22:10:32 -07:00
setup incr: add default location 2022-11-21 12:45:57 +05:30
styles fix(ux): replace status badge with status pill 2023-04-17 14:26:14 +05:30
utils fix: reset template builder doc on navigating away 2023-05-09 09:53:32 +05:30
App.vue fix: capture patch fail errors 2023-04-04 22:10:32 -07:00
errorHandling.ts fix: capture patch fail errors 2023-04-04 22:10:32 -07:00
importer.ts fix: failing importer tests due to undefined read 2023-02-21 18:24:46 +05:30
index.html
initFyo.ts refactor: move init code out of initFyo 2022-11-07 13:28:35 +05:30
README.md
renderer.ts incr: insert or update .template.html files 2023-03-07 14:16:19 +05:30
router.ts fix: uninserted doc cache router break 2023-04-17 09:59:12 +05:30
shims-tsx.d.ts
shims-vue-custom.d.ts refactor: use App level shortcut 2022-12-08 15:19:22 +05:30
shims-vue.d.ts

src

This is where all the frontend code lives

Fyo Initialization

The initialization flows are different when the instance is new or is existing. All of them are triggered from src/App.vue.

New Instance

  1. Run Setup Wizard for init values (eg: country).
  2. Call setupInstance.ts/setupInstance using init values.

Existing Instance

  1. Connect to db.
  2. Check if Setup Wizard has been completed, if not, jump to New Instance
  3. Call initFyo/initializeInstance with dbPath and countryCode

Global Fyo

Global fyo is exported from initFyo.ts. Only code that isn't going to be unit tested using mocha should use this, i.e. code in src