mirror of
https://github.com/frappe/books.git
synced 2024-12-23 19:39:07 +00:00
024687c1b9
- remove "computed" - fix a few formcontrols - simplify doc.ts a bit more |
||
---|---|---|
.. | ||
assets | ||
components | ||
pages | ||
regional | ||
renderer | ||
setup | ||
styles | ||
utils | ||
App.vue | ||
contactMothership.js | ||
dataImport.ts | ||
errorHandling.ts | ||
getLanguageMap.ts | ||
index.html | ||
initFyo.ts | ||
print.html | ||
print.ts | ||
README.md | ||
renderer.ts | ||
router.ts | ||
saveHtmlAsPdf.js | ||
shims-tsx.d.ts | ||
shims-vue.d.ts | ||
theme.js |
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 should use this.