diff --git a/src/components/DropdownBox.vue b/src/components/DropdownBox.vue new file mode 100644 index 0000000..abf7970 --- /dev/null +++ b/src/components/DropdownBox.vue @@ -0,0 +1,56 @@ + + + + + diff --git a/src/main.ts b/src/main.ts index fed8c5b..6e2de04 100644 --- a/src/main.ts +++ b/src/main.ts @@ -30,6 +30,7 @@ async function initApp() { // Init router const routes = [ { path: '/', name: 'index', component: () => import('./pages/HomeView.vue') }, + { path: '/chart-of-accounts', name: 'chart-of-accounts', component: () => import('./pages/ChartOfAccountsView.vue') }, { path: '/general-ledger', name: 'general-ledger', component: () => import('./pages/GeneralLedgerView.vue') }, { path: '/journal', name: 'journal', component: () => import('./pages/JournalView.vue') }, { path: '/journal/edit-transaction/:id', name: 'journal-edit-transaction', component: () => import('./pages/EditTransactionView.vue') }, diff --git a/src/pages/ChartOfAccountsView.vue b/src/pages/ChartOfAccountsView.vue new file mode 100644 index 0000000..ed744d1 --- /dev/null +++ b/src/pages/ChartOfAccountsView.vue @@ -0,0 +1,132 @@ + + + + + diff --git a/src/pages/HomeView.vue b/src/pages/HomeView.vue index a59b2e3..40131e0 100644 --- a/src/pages/HomeView.vue +++ b/src/pages/HomeView.vue @@ -24,7 +24,7 @@
  • Journal
  • Statement lines
  • - +
  • Chart of accounts
  • diff --git a/src/registry.ts b/src/registry.ts new file mode 100644 index 0000000..0c79d3c --- /dev/null +++ b/src/registry.ts @@ -0,0 +1,25 @@ +/* + DrCr: Web-based double-entry bookkeeping framework + Copyright (C) 2022–2024 Lee Yingtong Li (RunasSudo) + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU Affero General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU Affero General Public License for more details. + + You should have received a copy of the GNU Affero General Public License + along with this program. If not, see . +*/ + +export const accountKinds: [string, string][] = [ + ['drcr.asset', 'Asset'], + ['drcr.liability', 'Liability'], + ['drcr.income', 'Income'], + ['drcr.expense', 'Expense'], + ['drcr.equity', 'Equity'] +]; diff --git a/tsconfig.json b/tsconfig.json index f7d7733..a76293d 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,9 +1,9 @@ { "compilerOptions": { - "target": "ES2020", + "target": "ESNext", "useDefineForClassFields": true, "module": "ESNext", - "lib": ["ES2022", "DOM", "DOM.Iterable"], + "lib": ["ESNext", "DOM", "DOM.Iterable"], "skipLibCheck": true, /* Bundler mode */