Refactor folder layout

This commit is contained in:
RunasSudo 2024-11-16 15:39:44 +11:00
parent 5e4033a1e2
commit d3250bcfe0
Signed by: RunasSudo
GPG Key ID: 7234E476BF21C61A
8 changed files with 16 additions and 16 deletions

View File

@ -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>

View File

@ -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>

View File

@ -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(),

View File

@ -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);

View File

@ -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({

View File

@ -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;

View File

@ -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}[]);