Skip to content

Commit

Permalink
renames
Browse files Browse the repository at this point in the history
  • Loading branch information
alensiljak committed Dec 14, 2024
1 parent 998c048 commit a3965bf
Show file tree
Hide file tree
Showing 10 changed files with 9 additions and 14 deletions.
2 changes: 0 additions & 2 deletions src/appService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,9 @@
import db from './store/db'
import {
Account,
AccountBalance,
LastTransaction,
Payee,
Posting,
ScheduledTransaction,
Transaction,
} from './model'
import { Notify } from 'quasar'
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import moment from 'moment'
import { settings, SettingKeys } from './settings'
import { settings, SettingKeys } from '../settings'
import { LedgerApi } from './ledgerApi'
import { LedgerOutputParser } from './ledgerOutputParser'

Expand Down Expand Up @@ -101,7 +101,7 @@ export class SecurityAnalyser {
const report = await this.ledgerApi.query(command)
const line = report[0]

if(!line) {
if (!line) {
return 'n/a'
}

Expand Down
2 changes: 0 additions & 2 deletions src/pages/AASetup.vue
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,6 @@ import { SettingKeys } from '../lib/settings'
import appService from '../appService'
import { Setting } from '../model'
// const errorMessage = { color: "secondary", textColor: "amber-2" };
export default {
data() {
return {
Expand Down
2 changes: 1 addition & 1 deletion src/pages/AssetAllocation.vue
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ import { useMainStore } from '../store/mainStore'
import { computed, onMounted, Ref, ref } from 'vue'
import { useQuasar } from 'quasar'
import { engine, NUMBER_FORMAT } from '../lib/AssetAllocation'
import { AssetClass } from 'src/lib/AssetClass'
import { AssetClass } from 'src/lib/assetAllocation/AssetClass'
import {
FileDown, HelpCircle, Menu as IconMenu, MoreVertical, Settings as IconSettings,
Scale as IconScale, Share2
Expand Down
11 changes: 5 additions & 6 deletions src/pages/AssetClassDetail.vue
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,9 @@ import appService from '../appService'
import { CashierSync } from '../lib/cashier-sync'
import { SettingKeys, settings } from '../lib/settings'
import Toolbar from '../components/CashierToolbar.vue'
import { SecurityAnalyser, SecurityAnalysis } from 'src/lib/securityAnalysis'
import { SecurityAnalyser, SecurityAnalysis } from 'src/lib/assetAllocation/securityAnalysis'
import { useRoute } from 'vue-router'
import { AssetClass, StockSymbol } from 'src/lib/AssetClass'
import { Collection } from 'dexie'
import { AssetClass, StockSymbol } from 'src/lib/assetAllocation/AssetClass'
import { Account } from 'src/model'
import useNotifications from '../lib/Notifier'
Expand Down Expand Up @@ -68,13 +67,13 @@ async function loadData() {
async function loadAssetClass() {
const ac: AssetClass = await appService.loadAssetClass($route.params.fullname as string)
assetClass.value = ac
getConstituents()
populateStocks()
}
/**
* Load all constituents - stocks, currencies.
*/
function getConstituents() {
function populateStocks() {
let childNames = assetClass.value.symbols
if (!childNames || childNames.length == 0) return;
Expand Down Expand Up @@ -116,7 +115,7 @@ async function fetchAnalysisFor(symbol: string, stockAnalysis: SecurityAnalysis)
} catch (error: any) {
let msg = symbol + ':' + error.message
console.error(msg)
Notification.negative(msg)
Notification.error(msg)
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/store/db.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import {
ScheduledTransaction,
Setting,
} from '../model'
import { AssetClass } from '../lib/AssetClass'
import { AssetClass } from '../lib/assetAllocation/AssetClass'

// Define the schema

Expand Down

0 comments on commit a3965bf

Please sign in to comment.