Skip to content

Commit

Permalink
update notifier and filenames
Browse files Browse the repository at this point in the history
  • Loading branch information
alensiljak committed Nov 22, 2024
1 parent 46da39b commit 51bd96b
Show file tree
Hide file tree
Showing 8 changed files with 14 additions and 14 deletions.
2 changes: 1 addition & 1 deletion src/appService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/export
*/
import db from './store/indexedDb'
import db from './store/db'
import {
Account,
AccountBalance,
Expand Down
4 changes: 2 additions & 2 deletions src/components/CloudBackupSchTxCard.vue
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,11 @@
</q-card-section>
</q-card>
</template>

<script lang="ts" setup>
import { onMounted, Ref, ref } from 'vue'
import useCloudBackup from 'src/lib/CloudBackup'
import db from 'src/store/indexedDb';
import db from 'src/store/db';
import useNotifications from 'src/lib/CashierNotification'
import { CalendarClock } from 'lucide-vue-next'
Expand Down
4 changes: 2 additions & 2 deletions src/lib/accountsService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@
* No other local storage is used.
*/
import { Account, AccountBalance } from 'src/model'
import db from 'src/store/indexedDb'
import db from 'src/store/db'
import { SettingKeys, settings, Constants } from './settings'

export class AccountService {
constructor() {}
constructor() { }

async createDefaultAccounts() {
let accountsList = this.getDefaultChartOfAccounts()
Expand Down
2 changes: 1 addition & 1 deletion src/lib/settings.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
Various configuration-related things
*/
import db from '../store/indexedDb'
import db from '../store/db'
import { Setting } from '../model'

/**
Expand Down
2 changes: 1 addition & 1 deletion src/pages/Settings.vue
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@

<script setup lang="ts">
import { onMounted, Ref, ref } from 'vue'
import db from '../store/indexedDb'
import db from '../store/db'
import Toolbar from '../components/CashierToolbar.vue'
import { SettingKeys, settings } from '../lib/settings'
import useNotifications from 'src/lib/CashierNotification'
Expand Down
12 changes: 6 additions & 6 deletions src/pages/Sync.vue
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ import CashierDal from '../store/dal'
import { Activity, MoreVertical, Power, RefreshCw } from 'lucide-vue-next'
// const router = useRouter()
const Notification = useNotifications()
const Notifier = useNotifications()
// data
const serverUrl = ref('http://localhost:3000') // the default value
Expand Down Expand Up @@ -145,7 +145,7 @@ async function onConnectClicked() {
}
function onShutdownClick() {
Notification.neutral('sending shutdown request')
Notifier.neutral('sending shutdown request')
let sync = new CashierSync(serverUrl.value)
sync.shutdown()
Expand Down Expand Up @@ -235,7 +235,7 @@ async function synchronizePayees() {
const response = await sync.readPayees()
if (!response || response.length == 0) {
Notification.negative('Invalid response received: ' + response)
Notifier.negative('Invalid response received: ' + response)
return
}
Expand All @@ -245,7 +245,7 @@ async function synchronizePayees() {
await appService.importPayees(response)
Notification.positive('Payees fetched from Ledger')
Notifier.positive('Payees fetched from Ledger')
}
async function shutdown() {
Expand All @@ -254,9 +254,9 @@ async function shutdown() {
await sync.shutdown()
} catch (error: any) {
console.error(error)
Notification.negative(error.message)
Notifier.negative(error.message)
}
Notification.neutral('The server shutdown request sent.')
Notifier.neutral('The server shutdown request sent.')
}
</script>
2 changes: 1 addition & 1 deletion src/store/dal.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

import { Collection, IndexableType } from 'dexie'
import { Account, Payee, ScheduledTransaction, Transaction } from 'src/model'
import db from './indexedDb'
import db from './db'

class CashierDAL {
async deletePayees() {
Expand Down
File renamed without changes.

0 comments on commit 51bd96b

Please sign in to comment.