mirror of
https://github.com/frappe/books.git
synced 2024-11-15 09:54:04 +00:00
ba97f25318
- TemplateBuilder prevent reset if doc is not saved |
||
---|---|---|
.. | ||
assets | ||
components | ||
pages | ||
regional | ||
renderer | ||
setup | ||
styles | ||
utils | ||
App.vue | ||
errorHandling.ts | ||
importer.ts | ||
index.html | ||
initFyo.ts | ||
README.md | ||
renderer.ts | ||
router.ts | ||
shims-tsx.d.ts | ||
shims-vue-custom.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