Browse Source

Merge branch 'main' into feature/improve-import-of-historical-market-data

pull/2559/head
Thomas Kaul 2 years ago
committed by GitHub
parent
commit
d241abbc7c
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      CHANGELOG.md
  2. 14
      apps/client/src/app/components/admin-overview/admin-overview.component.ts
  3. 10
      apps/client/src/app/components/admin-overview/admin-overview.html
  4. 4
      apps/client/src/app/components/admin-overview/admin-overview.module.ts
  5. 2
      apps/client/src/app/pages/accounts/accounts-page.component.ts
  6. 16
      apps/client/src/locales/messages.de.xlf
  7. 16
      apps/client/src/locales/messages.es.xlf
  8. 16
      apps/client/src/locales/messages.fr.xlf
  9. 16
      apps/client/src/locales/messages.it.xlf
  10. 16
      apps/client/src/locales/messages.nl.xlf
  11. 16
      apps/client/src/locales/messages.pt.xlf
  12. 16
      apps/client/src/locales/messages.tr.xlf
  13. 14
      apps/client/src/locales/messages.xlf

4
CHANGELOG.md

@ -10,9 +10,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Changed
- Improved the usability and validation in the cash balance transfer from one to another account
- Improved the localized meta data (keywords) in `html` files
- Changed the checkboxes to slide toggles in the overview of the admin control panel
- Switched from the deprecated (`PUT`) to the new endpoint (`POST`) to manage historical market data in the asset profile details dialog of the admin control panel
- Improved the date parsing in the import historical market data of the admin control panel
- Improved the localized meta data (keywords) in `html` files
- Improved the language localization for German (`de`)
## 2.15.0 - 2023-10-26

14
apps/client/src/app/components/admin-overview/admin-overview.component.ts

@ -1,5 +1,5 @@
import { ChangeDetectorRef, Component, OnDestroy, OnInit } from '@angular/core';
import { MatCheckboxChange } from '@angular/material/checkbox';
import { MatSlideToggleChange } from '@angular/material/slide-toggle';
import { AdminService } from '@ghostfolio/client/services/admin.service';
import { CacheService } from '@ghostfolio/client/services/cache.service';
import { DataService } from '@ghostfolio/client/services/data.service';
@ -169,17 +169,17 @@ export class AdminOverviewComponent implements OnDestroy, OnInit {
}
}
public onReadOnlyModeChange(aEvent: MatCheckboxChange) {
public onEnableUserSignupModeChange(aEvent: MatSlideToggleChange) {
this.putAdminSetting({
key: PROPERTY_IS_READ_ONLY_MODE,
value: aEvent.checked ? true : undefined
key: PROPERTY_IS_USER_SIGNUP_ENABLED,
value: aEvent.checked ? undefined : false
});
}
public onEnableUserSignupModeChange(aEvent: MatCheckboxChange) {
public onReadOnlyModeChange(aEvent: MatSlideToggleChange) {
this.putAdminSetting({
key: PROPERTY_IS_USER_SIGNUP_ENABLED,
value: aEvent.checked ? undefined : false
key: PROPERTY_IS_READ_ONLY_MODE,
value: aEvent.checked ? true : undefined
});
}

10
apps/client/src/app/components/admin-overview/admin-overview.html

@ -81,21 +81,23 @@
<div class="d-flex my-3">
<div class="w-50" i18n>User Signup</div>
<div class="w-50">
<mat-checkbox
<mat-slide-toggle
color="primary"
hideIcon="true"
[checked]="info.globalPermissions.includes(permissions.createUserAccount)"
(change)="onEnableUserSignupModeChange($event)"
></mat-checkbox>
></mat-slide-toggle>
</div>
</div>
<div *ngIf="hasPermissionToToggleReadOnlyMode" class="d-flex my-3">
<div class="w-50" i18n>Read-only Mode</div>
<div class="w-50">
<mat-checkbox
<mat-slide-toggle
color="primary"
hideIcon="true"
[checked]="info?.isReadOnlyMode"
(change)="onReadOnlyModeChange($event)"
></mat-checkbox>
></mat-slide-toggle>
</div>
</div>
<div *ngIf="hasPermissionForSystemMessage" class="d-flex my-3">

4
apps/client/src/app/components/admin-overview/admin-overview.module.ts

@ -3,8 +3,8 @@ import { CUSTOM_ELEMENTS_SCHEMA, NgModule } from '@angular/core';
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
import { MatButtonModule } from '@angular/material/button';
import { MatCardModule } from '@angular/material/card';
import { MatCheckboxModule } from '@angular/material/checkbox';
import { MatSelectModule } from '@angular/material/select';
import { MatSlideToggleModule } from '@angular/material/slide-toggle';
import { CacheService } from '@ghostfolio/client/services/cache.service';
import { GfValueModule } from '@ghostfolio/ui/value';
@ -18,9 +18,9 @@ import { AdminOverviewComponent } from './admin-overview.component';
FormsModule,
GfValueModule,
MatButtonModule,
MatCheckboxModule,
MatCardModule,
MatSelectModule,
MatSlideToggleModule,
ReactiveFormsModule
],
providers: [CacheService],

2
apps/client/src/app/pages/accounts/accounts-page.component.ts

@ -302,7 +302,7 @@ export class AccountsPageComponent implements OnDestroy, OnInit {
})
.pipe(
catchError(() => {
alert($localize`Oops, transfer cash balance has failed.`);
alert($localize`Oops, cash balance transfer has failed.`);
return EMPTY;
}),

16
apps/client/src/locales/messages.de.xlf

@ -10935,14 +10935,6 @@
<context context-type="linenumber">12</context>
</context-group>
</trans-unit>
<trans-unit id="763978324449731326" datatype="html">
<source>Oops, transfer cash balance has failed.</source>
<target state="new">Oops, transfer cash balance has failed.</target>
<context-group purpose="location">
<context context-type="sourcefile">apps/client/src/app/pages/accounts/accounts-page.component.ts</context>
<context context-type="linenumber">305</context>
</context-group>
</trans-unit>
<trans-unit id="metaKeywords" datatype="html">
<source> app, asset, cryptocurrency, dashboard, etf, finance, management, performance, portfolio, software, stock, trading, wealth, web3 </source>
<target state="translated"> aktie, app, asset, dashboard, etf, finanzen, kryptowährung, management, performance, portfolio, software, trading, vermögen, web3 </target>
@ -10951,6 +10943,14 @@
<context context-type="linenumber">8,11</context>
</context-group>
</trans-unit>
<trans-unit id="1868064391111970959" datatype="html">
<source>Oops, cash balance transfer has failed.</source>
<target state="translated">Ups, der Cash-Bestand Transfer ist fehlgeschlagen.</target>
<context-group purpose="location">
<context context-type="sourcefile">apps/client/src/app/pages/accounts/accounts-page.component.ts</context>
<context context-type="linenumber">305</context>
</context-group>
</trans-unit>
</body>
</file>
</xliff>

16
apps/client/src/locales/messages.es.xlf

@ -10933,14 +10933,6 @@
<context context-type="linenumber">12</context>
</context-group>
</trans-unit>
<trans-unit id="763978324449731326" datatype="html">
<source>Oops, transfer cash balance has failed.</source>
<target state="new">Oops, transfer cash balance has failed.</target>
<context-group purpose="location">
<context context-type="sourcefile">apps/client/src/app/pages/accounts/accounts-page.component.ts</context>
<context context-type="linenumber">305</context>
</context-group>
</trans-unit>
<trans-unit id="metaKeywords" datatype="html">
<source> app, asset, cryptocurrency, dashboard, etf, finance, management, performance, portfolio, software, stock, trading, wealth, web3 </source>
<target state="new"> app, asset, cryptocurrency, dashboard, etf, finance, management, performance, portfolio, software, stock, trading, wealth, web3 </target>
@ -10949,6 +10941,14 @@
<context context-type="linenumber">8,11</context>
</context-group>
</trans-unit>
<trans-unit id="1868064391111970959" datatype="html">
<source>Oops, cash balance transfer has failed.</source>
<target state="new">Oops, cash balance transfer has failed.</target>
<context-group purpose="location">
<context context-type="sourcefile">apps/client/src/app/pages/accounts/accounts-page.component.ts</context>
<context context-type="linenumber">305</context>
</context-group>
</trans-unit>
</body>
</file>
</xliff>

16
apps/client/src/locales/messages.fr.xlf

@ -10932,14 +10932,6 @@
<context context-type="linenumber">12</context>
</context-group>
</trans-unit>
<trans-unit id="763978324449731326" datatype="html">
<source>Oops, transfer cash balance has failed.</source>
<target state="new">Oops, transfer cash balance has failed.</target>
<context-group purpose="location">
<context context-type="sourcefile">apps/client/src/app/pages/accounts/accounts-page.component.ts</context>
<context context-type="linenumber">305</context>
</context-group>
</trans-unit>
<trans-unit id="metaKeywords" datatype="html">
<source> app, asset, cryptocurrency, dashboard, etf, finance, management, performance, portfolio, software, stock, trading, wealth, web3 </source>
<target state="new"> app, asset, cryptocurrency, dashboard, etf, finance, management, performance, portfolio, software, stock, trading, wealth, web3 </target>
@ -10948,6 +10940,14 @@
<context context-type="linenumber">8,11</context>
</context-group>
</trans-unit>
<trans-unit id="1868064391111970959" datatype="html">
<source>Oops, cash balance transfer has failed.</source>
<target state="new">Oops, cash balance transfer has failed.</target>
<context-group purpose="location">
<context context-type="sourcefile">apps/client/src/app/pages/accounts/accounts-page.component.ts</context>
<context context-type="linenumber">305</context>
</context-group>
</trans-unit>
</body>
</file>
</xliff>

16
apps/client/src/locales/messages.it.xlf

@ -10933,14 +10933,6 @@
<context context-type="linenumber">12</context>
</context-group>
</trans-unit>
<trans-unit id="763978324449731326" datatype="html">
<source>Oops, transfer cash balance has failed.</source>
<target state="new">Oops, transfer cash balance has failed.</target>
<context-group purpose="location">
<context context-type="sourcefile">apps/client/src/app/pages/accounts/accounts-page.component.ts</context>
<context context-type="linenumber">305</context>
</context-group>
</trans-unit>
<trans-unit id="metaKeywords" datatype="html">
<source> app, asset, cryptocurrency, dashboard, etf, finance, management, performance, portfolio, software, stock, trading, wealth, web3 </source>
<target state="new"> app, asset, cryptocurrency, dashboard, etf, finance, management, performance, portfolio, software, stock, trading, wealth, web3 </target>
@ -10949,6 +10941,14 @@
<context context-type="linenumber">8,11</context>
</context-group>
</trans-unit>
<trans-unit id="1868064391111970959" datatype="html">
<source>Oops, cash balance transfer has failed.</source>
<target state="new">Oops, cash balance transfer has failed.</target>
<context-group purpose="location">
<context context-type="sourcefile">apps/client/src/app/pages/accounts/accounts-page.component.ts</context>
<context context-type="linenumber">305</context>
</context-group>
</trans-unit>
</body>
</file>
</xliff>

16
apps/client/src/locales/messages.nl.xlf

@ -10932,14 +10932,6 @@
<context context-type="linenumber">12</context>
</context-group>
</trans-unit>
<trans-unit id="763978324449731326" datatype="html">
<source>Oops, transfer cash balance has failed.</source>
<target state="new">Oops, transfer cash balance has failed.</target>
<context-group purpose="location">
<context context-type="sourcefile">apps/client/src/app/pages/accounts/accounts-page.component.ts</context>
<context context-type="linenumber">305</context>
</context-group>
</trans-unit>
<trans-unit id="metaKeywords" datatype="html">
<source> app, asset, cryptocurrency, dashboard, etf, finance, management, performance, portfolio, software, stock, trading, wealth, web3 </source>
<target state="new"> app, asset, cryptocurrency, dashboard, etf, finance, management, performance, portfolio, software, stock, trading, wealth, web3 </target>
@ -10948,6 +10940,14 @@
<context context-type="linenumber">8,11</context>
</context-group>
</trans-unit>
<trans-unit id="1868064391111970959" datatype="html">
<source>Oops, cash balance transfer has failed.</source>
<target state="new">Oops, cash balance transfer has failed.</target>
<context-group purpose="location">
<context context-type="sourcefile">apps/client/src/app/pages/accounts/accounts-page.component.ts</context>
<context context-type="linenumber">305</context>
</context-group>
</trans-unit>
</body>
</file>
</xliff>

16
apps/client/src/locales/messages.pt.xlf

@ -10932,14 +10932,6 @@
<context context-type="linenumber">12</context>
</context-group>
</trans-unit>
<trans-unit id="763978324449731326" datatype="html">
<source>Oops, transfer cash balance has failed.</source>
<target state="new">Oops, transfer cash balance has failed.</target>
<context-group purpose="location">
<context context-type="sourcefile">apps/client/src/app/pages/accounts/accounts-page.component.ts</context>
<context context-type="linenumber">305</context>
</context-group>
</trans-unit>
<trans-unit id="metaKeywords" datatype="html">
<source> app, asset, cryptocurrency, dashboard, etf, finance, management, performance, portfolio, software, stock, trading, wealth, web3 </source>
<target state="new"> app, asset, cryptocurrency, dashboard, etf, finance, management, performance, portfolio, software, stock, trading, wealth, web3 </target>
@ -10948,6 +10940,14 @@
<context context-type="linenumber">8,11</context>
</context-group>
</trans-unit>
<trans-unit id="1868064391111970959" datatype="html">
<source>Oops, cash balance transfer has failed.</source>
<target state="new">Oops, cash balance transfer has failed.</target>
<context-group purpose="location">
<context context-type="sourcefile">apps/client/src/app/pages/accounts/accounts-page.component.ts</context>
<context context-type="linenumber">305</context>
</context-group>
</trans-unit>
</body>
</file>
</xliff>

16
apps/client/src/locales/messages.tr.xlf

@ -10932,14 +10932,6 @@
<context context-type="linenumber">12</context>
</context-group>
</trans-unit>
<trans-unit id="763978324449731326" datatype="html">
<source>Oops, transfer cash balance has failed.</source>
<target state="new">Oops, transfer cash balance has failed.</target>
<context-group purpose="location">
<context context-type="sourcefile">apps/client/src/app/pages/accounts/accounts-page.component.ts</context>
<context context-type="linenumber">305</context>
</context-group>
</trans-unit>
<trans-unit id="metaKeywords" datatype="html">
<source> app, asset, cryptocurrency, dashboard, etf, finance, management, performance, portfolio, software, stock, trading, wealth, web3 </source>
<target state="new"> app, asset, cryptocurrency, dashboard, etf, finance, management, performance, portfolio, software, stock, trading, wealth, web3 </target>
@ -10948,6 +10940,14 @@
<context context-type="linenumber">8,11</context>
</context-group>
</trans-unit>
<trans-unit id="1868064391111970959" datatype="html">
<source>Oops, cash balance transfer has failed.</source>
<target state="new">Oops, cash balance transfer has failed.</target>
<context-group purpose="location">
<context context-type="sourcefile">apps/client/src/app/pages/accounts/accounts-page.component.ts</context>
<context context-type="linenumber">305</context>
</context-group>
</trans-unit>
</body>
</file>
</xliff>

14
apps/client/src/locales/messages.xlf

@ -10357,13 +10357,6 @@
<context context-type="linenumber">12</context>
</context-group>
</trans-unit>
<trans-unit id="763978324449731326" datatype="html">
<source>Oops, transfer cash balance has failed.</source>
<context-group purpose="location">
<context context-type="sourcefile">apps/client/src/app/pages/accounts/accounts-page.component.ts</context>
<context context-type="linenumber">305</context>
</context-group>
</trans-unit>
<trans-unit id="metaKeywords" datatype="html">
<source> app, asset, cryptocurrency, dashboard, etf, finance, management, performance, portfolio, software, stock, trading, wealth, web3 </source>
<context-group purpose="location">
@ -10371,6 +10364,13 @@
<context context-type="linenumber">8,11</context>
</context-group>
</trans-unit>
<trans-unit id="1868064391111970959" datatype="html">
<source>Oops, cash balance transfer has failed.</source>
<context-group purpose="location">
<context context-type="sourcefile">apps/client/src/app/pages/accounts/accounts-page.component.ts</context>
<context context-type="linenumber">305</context>
</context-group>
</trans-unit>
</body>
</file>
</xliff>

Loading…
Cancel
Save