mirror of
https://github.com/frappe/books.git
synced 2024-11-14 01:14:03 +00:00
cd09d31b9b
- complete the feature |
||
---|---|---|
.. | ||
assets | ||
components | ||
pages | ||
regional | ||
renderer | ||
setup | ||
styles | ||
utils | ||
App.vue | ||
dataImport.ts | ||
errorHandling.ts | ||
index.html | ||
initFyo.ts | ||
README.md | ||
renderer.ts | ||
router.ts | ||
shims-tsx.d.ts | ||
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
- Run Setup Wizard for init values (eg:
country
). - Call
setupInstance.ts/setupInstance
using init values.
Existing Instance
- Connect to db.
- Check if Setup Wizard has been completed, if not, jump to New Instance
- Call
initFyo/initializeInstance
withdbPath
andcountryCode
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