Refactor folder layout
This commit is contained in:
parent
5e4033a1e2
commit
d3250bcfe0
@ -31,8 +31,8 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import HeaderBar from './HeaderBar.vue';
|
import HeaderBar from './components/HeaderBar.vue';
|
||||||
import NoFileView from './NoFileView.vue';
|
import NoFileView from './pages/NoFileView.vue';
|
||||||
|
|
||||||
import { db } from './db.js';
|
import { db } from './db.js';
|
||||||
</script>
|
</script>
|
||||||
|
@ -46,5 +46,5 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import { db } from './db.js';
|
import { db } from '../db.js';
|
||||||
</script>
|
</script>
|
@ -28,10 +28,10 @@ import { db } from './db.ts';
|
|||||||
async function initApp() {
|
async function initApp() {
|
||||||
// Init router
|
// Init router
|
||||||
const routes = [
|
const routes = [
|
||||||
{ path: '/', name: 'index', component: () => import('./HomeView.vue') },
|
{ path: '/', name: 'index', component: () => import('./pages/HomeView.vue') },
|
||||||
{ path: '/general-ledger', name: 'general-ledger', component: () => import('./GeneralLedgerView.vue') },
|
{ path: '/general-ledger', name: 'general-ledger', component: () => import('./pages/GeneralLedgerView.vue') },
|
||||||
{ path: '/transactions/:account', name: 'transactions', component: () => import('./TransactionsView.vue') },
|
{ path: '/transactions/:account', name: 'transactions', component: () => import('./pages/TransactionsView.vue') },
|
||||||
{ path: '/trial-balance', name: 'trial-balance', component: () => import('./TrialBalanceView.vue') },
|
{ path: '/trial-balance', name: 'trial-balance', component: () => import('./pages/TrialBalanceView.vue') },
|
||||||
];
|
];
|
||||||
const router = createRouter({
|
const router = createRouter({
|
||||||
history: createWebHistory(),
|
history: createWebHistory(),
|
||||||
|
@ -56,9 +56,9 @@
|
|||||||
|
|
||||||
import { onUnmounted, ref } from 'vue';
|
import { onUnmounted, ref } from 'vue';
|
||||||
|
|
||||||
import { asCost } from './commodities.ts';
|
import { asCost } from '../commodities.ts';
|
||||||
import { JoinedTransactionPosting, Transaction, db, joinedToTransactions } from './db.ts';
|
import { JoinedTransactionPosting, Transaction, db, joinedToTransactions } from '../db.ts';
|
||||||
import { pp, ppWithCommodity } from './display.ts';
|
import { pp, ppWithCommodity } from '../display.ts';
|
||||||
|
|
||||||
const commodityDetail = ref(false);
|
const commodityDetail = ref(false);
|
||||||
|
|
@ -27,7 +27,7 @@
|
|||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import { open } from '@tauri-apps/plugin-dialog';
|
import { open } from '@tauri-apps/plugin-dialog';
|
||||||
|
|
||||||
import { db } from './db.js';
|
import { db } from '../db.js';
|
||||||
|
|
||||||
async function openFile() {
|
async function openFile() {
|
||||||
const file = await open({
|
const file = await open({
|
@ -61,9 +61,9 @@
|
|||||||
import { onUnmounted } from 'vue';
|
import { onUnmounted } from 'vue';
|
||||||
import { useRoute } from 'vue-router';
|
import { useRoute } from 'vue-router';
|
||||||
|
|
||||||
import { asCost } from './commodities.ts';
|
import { asCost } from '../commodities.ts';
|
||||||
import { JoinedTransactionPosting, db, joinedToTransactions } from './db.ts';
|
import { JoinedTransactionPosting, db, joinedToTransactions } from '../db.ts';
|
||||||
import { pp } from './display.ts';
|
import { pp } from '../display.ts';
|
||||||
|
|
||||||
const route = useRoute();
|
const route = useRoute();
|
||||||
let clusterize: Clusterize | null = null;
|
let clusterize: Clusterize | null = null;
|
@ -51,8 +51,8 @@
|
|||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import { computed, ref } from 'vue';
|
import { computed, ref } from 'vue';
|
||||||
|
|
||||||
import { db, totalBalances } from './db.ts';
|
import { db, totalBalances } from '../db.ts';
|
||||||
import { pp } from './display.ts';
|
import { pp } from '../display.ts';
|
||||||
|
|
||||||
const accounts = ref([] as {account: string, quantity: number}[]);
|
const accounts = ref([] as {account: string, quantity: number}[]);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user