mirror of https://github.com/ghostfolio/ghostfolio
				
				
			
			
			
				Browse Source
			
			
			
			
				
		* Add data providers management to admin control panel * Update changelogpull/3958/head
							committed by
							
								
								GitHub
							
						
					
				
				 12 changed files with 193 additions and 4 deletions
			
			
		@ -0,0 +1,39 @@ | 
				
			|||
import { GfPremiumIndicatorComponent } from '@ghostfolio/ui/premium-indicator'; | 
				
			|||
 | 
				
			|||
import { CommonModule } from '@angular/common'; | 
				
			|||
import { Component, Inject } from '@angular/core'; | 
				
			|||
import { MatButtonModule } from '@angular/material/button'; | 
				
			|||
import { | 
				
			|||
  MAT_DIALOG_DATA, | 
				
			|||
  MatDialogModule, | 
				
			|||
  MatDialogRef | 
				
			|||
} from '@angular/material/dialog'; | 
				
			|||
 | 
				
			|||
import { GfDialogFooterModule } from '../../dialog-footer/dialog-footer.module'; | 
				
			|||
import { GfDialogHeaderModule } from '../../dialog-header/dialog-header.module'; | 
				
			|||
import { GhostfolioPremiumApiDialogParams } from './interfaces/interfaces'; | 
				
			|||
 | 
				
			|||
@Component({ | 
				
			|||
  imports: [ | 
				
			|||
    CommonModule, | 
				
			|||
    GfDialogFooterModule, | 
				
			|||
    GfDialogHeaderModule, | 
				
			|||
    GfPremiumIndicatorComponent, | 
				
			|||
    MatButtonModule, | 
				
			|||
    MatDialogModule | 
				
			|||
  ], | 
				
			|||
  selector: 'gf-ghostfolio-premium-api-dialog', | 
				
			|||
  standalone: true, | 
				
			|||
  styleUrls: ['./ghostfolio-premium-api-dialog.scss'], | 
				
			|||
  templateUrl: './ghostfolio-premium-api-dialog.html' | 
				
			|||
}) | 
				
			|||
export class GfGhostfolioPremiumApiDialogComponent { | 
				
			|||
  public constructor( | 
				
			|||
    @Inject(MAT_DIALOG_DATA) public data: GhostfolioPremiumApiDialogParams, | 
				
			|||
    public dialogRef: MatDialogRef<GfGhostfolioPremiumApiDialogComponent> | 
				
			|||
  ) {} | 
				
			|||
 | 
				
			|||
  public onCancel() { | 
				
			|||
    this.dialogRef.close(); | 
				
			|||
  } | 
				
			|||
} | 
				
			|||
@ -0,0 +1,42 @@ | 
				
			|||
<gf-dialog-header | 
				
			|||
  mat-dialog-title | 
				
			|||
  position="center" | 
				
			|||
  title="Ghostfolio Premium Data Provider" | 
				
			|||
  [deviceType]="data.deviceType" | 
				
			|||
  (closeButtonClicked)="onCancel()" | 
				
			|||
/> | 
				
			|||
 | 
				
			|||
<div class="text-center" mat-dialog-content> | 
				
			|||
  <p class="gf-text-wrap-balance mb-1"> | 
				
			|||
    The official | 
				
			|||
    <a | 
				
			|||
      class="align-items-center d-inline-flex" | 
				
			|||
      target="_blank" | 
				
			|||
      [href]="data.pricingUrl" | 
				
			|||
      >Ghostfolio Premium | 
				
			|||
      <gf-premium-indicator class="d-inline-block ml-1" [enableLink]="false" /> | 
				
			|||
    </a> | 
				
			|||
    data provider <strong>for self-hosters</strong>, offering | 
				
			|||
    <strong>100’000+ tickers</strong> from over <strong>50 exchanges</strong>, | 
				
			|||
    is coming soon! | 
				
			|||
  </p> | 
				
			|||
  <p i18n> | 
				
			|||
    Want to stay updated? Click below to get notified as soon as it’s available. | 
				
			|||
  </p> | 
				
			|||
  <div> | 
				
			|||
    <a | 
				
			|||
      color="primary" | 
				
			|||
      href="mailto:hi@ghostfol.io?Subject=Ghostfolio Premium Data Provider&body=Hello%0D%0DPlease notify me as soon as the Ghostfolio Premium Data Provider is available.%0D%0DKind regards" | 
				
			|||
      i18n | 
				
			|||
      mat-flat-button | 
				
			|||
    > | 
				
			|||
      Notify me | 
				
			|||
    </a> | 
				
			|||
  </div> | 
				
			|||
</div> | 
				
			|||
 | 
				
			|||
<gf-dialog-footer | 
				
			|||
  mat-dialog-actions | 
				
			|||
  [deviceType]="data.deviceType" | 
				
			|||
  (closeButtonClicked)="onCancel()" | 
				
			|||
/> | 
				
			|||
@ -0,0 +1,2 @@ | 
				
			|||
:host { | 
				
			|||
} | 
				
			|||
@ -0,0 +1,4 @@ | 
				
			|||
export interface GhostfolioPremiumApiDialogParams { | 
				
			|||
  deviceType: string; | 
				
			|||
  pricingUrl: string; | 
				
			|||
} | 
				
			|||
					Loading…
					
					
				
		Reference in new issue