2
0
mirror of https://github.com/frappe/books.git synced 2024-11-15 01:44:04 +00:00
books/src
2024-09-30 14:57:25 +05:30
..
assets fix(ui): empty state svg color 2023-09-22 12:13:08 +05:30
components Merge pull request #948 from AbleKSaju/feat-items-grid-view 2024-09-26 12:07:59 +05:30
pages Merge pull request #948 from AbleKSaju/feat-items-grid-view 2024-09-26 12:07:59 +05:30
regional incr: simplify doc a bit 2022-05-23 16:18:22 +05:30
renderer refactor: switch to preload script 2023-07-10 13:33:52 +05:30
setup chore: fix all fixable eslint errors in src 2023-06-22 11:39:32 +05:30
styles fix: added dark scrollbar for the whole html document 2024-09-07 07:25:38 +05:30
utils feat: added coupon codes to sidebar and formatted 2024-09-30 14:57:25 +05:30
App.vue fix: convert camelCase to kebab-case, resolve lint warnings 2024-09-25 09:40:04 +05:30
errorHandling.ts refactor: switch to preload script 2023-07-10 13:33:52 +05:30
importer.ts fix: show name if numberSeries naming 2023-10-09 01:42:57 -07:00
index.html chore: add lint workflow 2023-06-23 12:29:51 +05:30
initFyo.ts chore: config eslint with vue-eslint and prettier 2023-06-23 10:40:16 +05:30
README.md incr: fix build issue and minor updates to readme 2022-05-27 00:45:05 +05:30
renderer.ts feat: toggler removed from sidebar and added a field to enable dark mode in Settings > System > Theme 2024-08-20 18:17:46 +05:30
router.ts fix: party creation from POS 2023-12-04 14:38:13 +05:30
shims-tsx.d.ts refactor: switch to preload script 2023-07-10 13:33:52 +05:30
shims-vue-custom.d.ts refactor: use App level shortcut 2022-12-08 15:19:22 +05:30
shims-vue.d.ts chore: convert main.js to renderer.ts 2022-03-18 16:02:08 +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 using mocha should use this, i.e. code in src