mirror of https://github.com/ghostfolio/ghostfolio
91 changed files with 12394 additions and 2362 deletions
@ -1,8 +1,8 @@ |
|||||
{ |
{ |
||||
"recommendations": [ |
"recommendations": [ |
||||
"angular.ng-template", |
"angular.ng-template", |
||||
|
"esbenp.prettier-vscode", |
||||
"firsttris.vscode-jest-runner", |
"firsttris.vscode-jest-runner", |
||||
"nrwl.angular-console", |
"nrwl.angular-console" |
||||
"prettier.prettier-vscode" |
|
||||
] |
] |
||||
} |
} |
||||
|
|||||
@ -1,4 +1,4 @@ |
|||||
{ |
{ |
||||
"editor.defaultFormatter": "prettier.prettier-vscode", |
"editor.defaultFormatter": "esbenp.prettier-vscode", |
||||
"editor.formatOnSave": true |
"editor.formatOnSave": true |
||||
} |
} |
||||
|
|||||
File diff suppressed because it is too large
|
Before Width: | Height: | Size: 3.4 KiB |
|
After Width: | Height: | Size: 12 KiB |
|
After Width: | Height: | Size: 12 KiB |
File diff suppressed because it is too large
File diff suppressed because it is too large
File diff suppressed because it is too large
File diff suppressed because it is too large
File diff suppressed because it is too large
File diff suppressed because it is too large
File diff suppressed because it is too large
File diff suppressed because it is too large
File diff suppressed because it is too large
File diff suppressed because it is too large
File diff suppressed because it is too large
File diff suppressed because it is too large
File diff suppressed because it is too large
@ -0,0 +1,155 @@ |
|||||
|
// This file was generated by running 'ng generate @angular/material:m3-theme'. |
||||
|
// Proceed with caution if making changes to this file. |
||||
|
|
||||
|
@use 'sass:map'; |
||||
|
@use '@angular/material' as mat; |
||||
|
|
||||
|
// Note: Color palettes are generated from primary: #36cfcc, secondary: #3686cf |
||||
|
$_palettes: ( |
||||
|
primary: ( |
||||
|
0: #000000, |
||||
|
10: #00201f, |
||||
|
20: #003736, |
||||
|
25: #004342, |
||||
|
30: #00504e, |
||||
|
35: #005d5b, |
||||
|
40: #006a68, |
||||
|
50: #008583, |
||||
|
60: #00a19f, |
||||
|
70: #11bebc, |
||||
|
80: #47dbd7, |
||||
|
90: #6bf7f4, |
||||
|
95: #affffc, |
||||
|
98: #e3fffd, |
||||
|
99: #f2fffe, |
||||
|
100: #ffffff |
||||
|
), |
||||
|
secondary: ( |
||||
|
0: #000000, |
||||
|
10: #001d36, |
||||
|
20: #003258, |
||||
|
25: #003d6a, |
||||
|
30: #00497c, |
||||
|
35: #00558f, |
||||
|
40: #0061a3, |
||||
|
50: #267bc3, |
||||
|
60: #4895df, |
||||
|
70: #66b0fb, |
||||
|
80: #9ecaff, |
||||
|
90: #d1e4ff, |
||||
|
95: #e9f1ff, |
||||
|
98: #f8f9ff, |
||||
|
99: #fdfcff, |
||||
|
100: #ffffff |
||||
|
), |
||||
|
tertiary: ( |
||||
|
0: #000000, |
||||
|
10: #031d35, |
||||
|
20: #1b324b, |
||||
|
25: #273d57, |
||||
|
30: #324863, |
||||
|
35: #3e546f, |
||||
|
40: #4a607b, |
||||
|
50: #637995, |
||||
|
60: #7c92b0, |
||||
|
70: #97adcc, |
||||
|
80: #b2c8e8, |
||||
|
90: #d2e4ff, |
||||
|
95: #eaf1ff, |
||||
|
98: #f8f9ff, |
||||
|
99: #fdfcff, |
||||
|
100: #ffffff |
||||
|
), |
||||
|
neutral: ( |
||||
|
0: #000000, |
||||
|
10: #191c1c, |
||||
|
20: #2d3131, |
||||
|
25: #383c3c, |
||||
|
30: #444747, |
||||
|
35: #4f5353, |
||||
|
40: #5b5f5e, |
||||
|
50: #747877, |
||||
|
60: #8e9191, |
||||
|
70: #a9acab, |
||||
|
80: #c4c7c6, |
||||
|
90: #e0e3e2, |
||||
|
95: #eff1f0, |
||||
|
98: #f7faf9, |
||||
|
99: #fafdfc, |
||||
|
100: #ffffff, |
||||
|
4: #0b0f0f, |
||||
|
6: #101414, |
||||
|
12: #1d2020, |
||||
|
17: #272b2a, |
||||
|
22: #323535, |
||||
|
24: #363a39, |
||||
|
87: #d8dada, |
||||
|
92: #e6e9e8, |
||||
|
94: #eceeed, |
||||
|
96: #f2f4f3 |
||||
|
), |
||||
|
neutral-variant: ( |
||||
|
0: #000000, |
||||
|
10: #141d1d, |
||||
|
20: #293232, |
||||
|
25: #343d3d, |
||||
|
30: #3f4948, |
||||
|
35: #4a5454, |
||||
|
40: #566060, |
||||
|
50: #6f7978, |
||||
|
60: #889392, |
||||
|
70: #a3adac, |
||||
|
80: #bec9c7, |
||||
|
90: #dae5e3, |
||||
|
95: #e8f3f2, |
||||
|
98: #f1fbfa, |
||||
|
99: #f4fefd, |
||||
|
100: #ffffff |
||||
|
), |
||||
|
error: ( |
||||
|
0: #000000, |
||||
|
10: #410002, |
||||
|
20: #690005, |
||||
|
25: #7e0007, |
||||
|
30: #93000a, |
||||
|
35: #a80710, |
||||
|
40: #ba1a1a, |
||||
|
50: #de3730, |
||||
|
60: #ff5449, |
||||
|
70: #ff897d, |
||||
|
80: #ffb4ab, |
||||
|
90: #ffdad6, |
||||
|
95: #ffedea, |
||||
|
98: #fff8f7, |
||||
|
99: #fffbff, |
||||
|
100: #ffffff |
||||
|
) |
||||
|
); |
||||
|
|
||||
|
$_rest: ( |
||||
|
secondary: map.get($_palettes, secondary), |
||||
|
neutral: map.get($_palettes, neutral), |
||||
|
neutral-variant: map.get($_palettes, neutral-variant), |
||||
|
error: map.get($_palettes, error) |
||||
|
); |
||||
|
$_primary: map.merge(map.get($_palettes, primary), $_rest); |
||||
|
$_tertiary: map.merge(map.get($_palettes, tertiary), $_rest); |
||||
|
|
||||
|
$light-theme: mat.define-theme( |
||||
|
( |
||||
|
color: ( |
||||
|
theme-type: light, |
||||
|
primary: $_primary, |
||||
|
tertiary: $_tertiary |
||||
|
) |
||||
|
) |
||||
|
); |
||||
|
$dark-theme: mat.define-theme( |
||||
|
( |
||||
|
color: ( |
||||
|
theme-type: dark, |
||||
|
primary: $_primary, |
||||
|
tertiary: $_tertiary |
||||
|
) |
||||
|
) |
||||
|
); |
||||
@ -1,27 +0,0 @@ |
|||||
import { MarketState } from '@ghostfolio/common/types'; |
|
||||
|
|
||||
import { AssetClass, AssetSubClass, DataSource } from '@prisma/client'; |
|
||||
|
|
||||
export interface Position { |
|
||||
assetClass: AssetClass; |
|
||||
assetSubClass: AssetSubClass; |
|
||||
averagePrice: number; |
|
||||
currency: string; |
|
||||
dataSource: DataSource; |
|
||||
firstBuyDate: string; |
|
||||
grossPerformance?: number; |
|
||||
grossPerformancePercentage?: number; |
|
||||
investment: number; |
|
||||
investmentInOriginalCurrency?: number; |
|
||||
marketPrice?: number; |
|
||||
marketState?: MarketState; |
|
||||
name?: string; |
|
||||
netPerformance?: number; |
|
||||
netPerformancePercentage?: number; |
|
||||
netPerformancePercentageWithCurrencyEffect?: number; |
|
||||
netPerformanceWithCurrencyEffect?: number; |
|
||||
quantity: number; |
|
||||
symbol: string; |
|
||||
transactionCount: number; |
|
||||
url?: string; |
|
||||
} |
|
||||
@ -1,12 +1,16 @@ |
|||||
import { Account as AccountModel, Platform } from '@prisma/client'; |
import { Account as AccountModel, Platform } from '@prisma/client'; |
||||
|
|
||||
export type AccountWithValue = AccountModel & { |
export type AccountWithValue = AccountModel & { |
||||
|
activitiesCount: number; |
||||
allocationInPercentage: number; |
allocationInPercentage: number; |
||||
balanceInBaseCurrency: number; |
balanceInBaseCurrency: number; |
||||
dividendInBaseCurrency: number; |
dividendInBaseCurrency: number; |
||||
interestInBaseCurrency: number; |
interestInBaseCurrency: number; |
||||
platform?: Platform; |
platform?: Platform; |
||||
|
|
||||
|
/** @deprecated use activitiesCount instead */ |
||||
transactionCount: number; |
transactionCount: number; |
||||
|
|
||||
value: number; |
value: number; |
||||
valueInBaseCurrency: number; |
valueInBaseCurrency: number; |
||||
}; |
}; |
||||
|
|||||
@ -1,5 +1,4 @@ |
|||||
export interface GfEnvironment { |
export interface GfEnvironment { |
||||
lastPublish: string | null; |
lastPublish: string | null; |
||||
production: boolean; |
production: boolean; |
||||
stripePublicKey: string; |
|
||||
} |
} |
||||
|
|||||
Loading…
Reference in new issue