mirror of
https://github.com/frappe/books.git
synced 2024-11-10 07:40:55 +00:00
eb2b6f4727
- reword "Features Flags" to "Features" - reword "Save to database" - fix "New Entry" display - fix address sectioning |
||
---|---|---|
.. | ||
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