Browse Source

Merge branch 'main' into bugfix/force-reload-accounts-of-user-after-change

pull/994/head
Thomas Kaul 3 years ago
committed by GitHub
parent
commit
1d4d063239
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      CHANGELOG.md
  2. 0
      apps/api/src/assets/.gitkeep
  3. 8460
      apps/api/src/assets/cryptocurrencies/cryptocurrencies.json
  4. 4
      apps/api/src/assets/cryptocurrencies/custom.json
  5. 7
      apps/api/src/services/cryptocurrency/cryptocurrency.service.ts
  6. 14
      apps/api/src/services/cryptocurrency/custom-cryptocurrencies.json
  7. 2
      apps/client/src/app/pages/blog/blog-page.html
  8. 8
      libs/ui/src/lib/activities-table/activities-table.component.ts
  9. 1
      package.json
  10. 5
      yarn.lock

2
CHANGELOG.md

@ -9,6 +9,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Changed
- Refreshed the cryptocurrencies list to support more coins by default
- Increased the historical data chart of the _Fear & Greed Index_ (market mood) to 180 days
- Upgraded `chart.js` from version `3.7.0` to `3.8.0`
- Upgraded `envalid` from version `7.2.1` to `7.3.1`
@ -16,6 +17,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Fixed
- Reloaded the accounts of a user after creating, editing or deleting one
- Excluded empty items in the activities filter
## 1.156.0 - 05.06.2022

0
apps/api/src/assets/.gitkeep

8460
apps/api/src/assets/cryptocurrencies/cryptocurrencies.json

File diff suppressed because it is too large

4
apps/api/src/assets/cryptocurrencies/custom.json

@ -0,0 +1,4 @@
{
"LUNA1": "Terra",
"UNI1": "Uniswap"
}

7
apps/api/src/services/cryptocurrency/cryptocurrency.service.ts

@ -1,8 +1,7 @@
import { Injectable } from '@nestjs/common';
const cryptocurrencies = require('cryptocurrencies');
const customCryptocurrencies = require('./custom-cryptocurrencies.json');
const cryptocurrencies = require('../../assets/cryptocurrencies/cryptocurrencies.json');
const customCryptocurrencies = require('../../assets/cryptocurrencies/custom.json');
@Injectable()
export class CryptocurrencyService {
@ -18,7 +17,7 @@ export class CryptocurrencyService {
private getCryptocurrencies() {
if (!this.combinedCryptocurrencies) {
this.combinedCryptocurrencies = [
...cryptocurrencies.symbols(),
...Object.keys(cryptocurrencies),
...Object.keys(customCryptocurrencies)
];
}

14
apps/api/src/services/cryptocurrency/custom-cryptocurrencies.json

@ -1,14 +0,0 @@
{
"1INCH": "1inch",
"ALGO": "Algorand",
"ATOM": "Cosmos",
"AVAX": "Avalanche",
"DOT": "Polkadot",
"LUNA1": "Terra",
"MATIC": "Polygon",
"MINA": "Mina Protocol",
"RUNE": "THORChain",
"SHIB": "Shiba Inu",
"SOL": "Solana",
"UNI3": "Uniswap"
}

2
apps/client/src/app/pages/blog/blog-page.html

@ -14,7 +14,7 @@
<div class="h6 m-0 text-truncate">
First months in Open Source
</div>
<div class="d-flex text-muted">05.01.2021</div>
<div class="d-flex text-muted">05.01.2022</div>
</div>
<div class="align-items-center d-flex">
<ion-icon

8
libs/ui/src/lib/activities-table/activities-table.component.ts

@ -192,11 +192,13 @@ export class ActivitiesTableComponent implements OnChanges, OnDestroy {
activity: OrderWithAccount,
fieldValueMap: { [id: string]: Filter } = {}
): Filter[] {
fieldValueMap[activity.Account?.id] = {
id: activity.Account?.id,
label: activity.Account?.name,
if (activity.Account?.id) {
fieldValueMap[activity.Account.id] = {
id: activity.Account.id,
label: activity.Account.name,
type: 'ACCOUNT'
};
}
fieldValueMap[activity.SymbolProfile.currency] = {
id: activity.SymbolProfile.currency,

1
package.json

@ -93,7 +93,6 @@
"color": "4.0.1",
"countries-list": "2.6.1",
"countup.js": "2.0.7",
"cryptocurrencies": "7.0.0",
"date-fns": "2.22.1",
"envalid": "7.3.1",
"google-spreadsheet": "3.2.0",

5
yarn.lock

@ -8201,11 +8201,6 @@ crypto-browserify@^3.11.0:
randombytes "^2.0.0"
randomfill "^1.0.3"
cryptocurrencies@7.0.0:
version "7.0.0"
resolved "https://registry.yarnpkg.com/cryptocurrencies/-/cryptocurrencies-7.0.0.tgz#4f8fc826a63c14a1294e0b401bb69503506f98a5"
integrity sha512-jCA+ykHJg0BAH4eR3T5uhZJ31kp9JrZZqn7Cga4tUgONSPdg4MGLv0SuL272llVXfUgvZZX2lYM4ZjJa/+hjYw==
css-blank-pseudo@^3.0.2:
version "3.0.3"
resolved "https://registry.yarnpkg.com/css-blank-pseudo/-/css-blank-pseudo-3.0.3.tgz#36523b01c12a25d812df343a32c322d2a2324561"

Loading…
Cancel
Save