2
0
mirror of https://github.com/frappe/books.git synced 2024-12-23 19:39:07 +00:00
books/src
18alantom 024687c1b9 fix: get Invoice settings to render and work
- remove "computed"
- fix a few formcontrols
- simplify doc.ts a bit more
2022-05-23 16:18:22 +05:30
..
assets [ImgBot] Optimize images 2022-05-22 19:13:02 +00:00
components fix: get Invoice settings to render and work 2022-05-23 16:18:22 +05:30
pages fix: get Invoice settings to render and work 2022-05-23 16:18:22 +05:30
regional incr: simplify doc a bit 2022-05-23 16:18:22 +05:30
renderer incr: get setupwizard to display 2022-05-23 16:18:22 +05:30
setup fix: make setupInstance code work 2022-05-23 16:18:22 +05:30
styles incr: update DatabaseSelector 2022-05-23 16:18:22 +05:30
utils fix: get Invoice settings to render and work 2022-05-23 16:18:22 +05:30
App.vue fix: get Invoice settings to render and work 2022-05-23 16:18:22 +05:30
contactMothership.js chore: change err_log_creds to log_creds 2022-03-14 12:36:42 +05:30
dataImport.ts incr: simplify doc a bit 2022-05-23 16:18:22 +05:30
errorHandling.ts fix: get Invoice settings to render and work 2022-05-23 16:18:22 +05:30
getLanguageMap.ts incr: type some files, frappe -> fyo 2022-05-23 16:18:22 +05:30
index.html refactor: mounting behaviour for toasts and app 2022-02-10 17:02:55 +05:30
initFyo.ts incr: simplify doc a bit 2022-05-23 16:18:22 +05:30
print.html feat: Print 2019-11-28 00:07:38 +05:30
print.ts incr: type renderer 2022-05-23 16:18:22 +05:30
README.md incr: simplify doc a bit 2022-05-23 16:18:22 +05:30
renderer.ts incr: get setupwizard to display 2022-05-23 16:18:22 +05:30
router.ts fix: get Invoice settings to render and work 2022-05-23 16:18:22 +05:30
saveHtmlAsPdf.js incr: type some files, frappe -> fyo 2022-05-23 16:18:22 +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
theme.js build(electron): bump electron to 15.3.0 2021-11-05 14:31:35 +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 should use this.