2
0
mirror of https://github.com/frappe/books.git synced 2025-01-23 07:08:36 +00:00
18alantom 8f84f2677c incr: add template select and save menu items
- add shortcut for view hints, show shortcut to apply changes
- update shortcut helper ui
2023-03-13 12:36:56 +05:30
..
2022-05-22 19:13:02 +00:00
2022-05-23 16:18:22 +05:30
2022-11-21 12:45:57 +05:30
2023-03-06 10:42:17 +05:30
2023-03-06 14:18:04 +05:30
2023-03-06 14:18:04 +05:30
2023-03-06 11:56:54 +05:30

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