2
0
mirror of https://github.com/frappe/books.git synced 2024-11-14 01:14:03 +00:00
books/src
18alantom cd09d31b9b incr: remove redundant fields
- complete the feature
2022-10-03 11:48:14 +05:30
..
assets [ImgBot] Optimize images 2022-05-22 19:13:02 +00:00
components incr: add exchange rate widget 2022-10-03 11:48:14 +05:30
pages incr: remove redundant fields 2022-10-03 11:48:14 +05:30
regional incr: simplify doc a bit 2022-05-23 16:18:22 +05:30
renderer fix: better error handling on updation fails 2022-08-31 14:25:25 +05:30
setup FIX : Translation not made and code suggestion 2022-08-24 10:35:13 -05:00
styles fix(ui): add mandatory fields indicator 2022-09-19 15:23:01 +05:30
utils Init ko translation 2022-09-30 21:13:42 +09:00
App.vue fix: purgeCache, close db 2022-07-30 16:33:09 +05:30
dataImport.ts incr: get dataimport to work 2022-05-23 16:18:23 +05:30
errorHandling.ts incr: add logUnexpected 2022-09-20 22:49:09 +05:30
index.html refactor: mounting behaviour for toasts and app 2022-02-10 17:02:55 +05:30
initFyo.ts fix: purgeCache, close db 2022-07-30 16:33:09 +05:30
README.md incr: fix build issue and minor updates to readme 2022-05-27 00:45:05 +05:30
renderer.ts incr: add logUnexpected 2022-09-20 22:49:09 +05:30
router.ts incr: get doc search working 2022-05-29 18:02:21 +05:30
shims-tsx.d.ts chore: enable typescript support 2022-01-24 12:49:27 +05:30
shims-vue.d.ts chore: convert main.js to renderer.ts 2022-03-18 16:02:08 +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