mirror of https://github.com/ghostfolio/ghostfolio
				
				
			
							committed by
							
								 GitHub
								GitHub
							
						
					
				
				 14 changed files with 146 additions and 47 deletions
			
			
		| @ -1,23 +1,10 @@ | |||
| <div class="container"> | |||
|   <div class="mb-5 row"> | |||
|     <div class="col"> | |||
|       <h3 class="mb-3 text-center" i18n>Changelog</h3> | |||
|       <mat-card appearance="outlined" class="changelog"> | |||
|         <mat-card-content> | |||
|           <markdown [src]="'../assets/CHANGELOG.md'"></markdown> | |||
|         </mat-card-content> | |||
|       </mat-card> | |||
|     </div> | |||
|   </div> | |||
| 
 | |||
|   <div class="row"> | |||
|     <div class="col"> | |||
|       <h3 class="mb-3 text-center" i18n>License</h3> | |||
|       <mat-card appearance="outlined"> | |||
|         <mat-card-content> | |||
|           <markdown [src]="'../assets/LICENSE'"></markdown> | |||
|         </mat-card-content> | |||
|       </mat-card> | |||
|       <h1 class="d-none d-sm-block h3 mb-3 text-center" i18n>Changelog</h1> | |||
|       <div class="changelog"> | |||
|         <markdown [src]="'../assets/CHANGELOG.md'"></markdown> | |||
|       </div> | |||
|     </div> | |||
|   </div> | |||
| </div> | |||
|  | |||
| @ -0,0 +1,20 @@ | |||
| import { NgModule } from '@angular/core'; | |||
| import { RouterModule, Routes } from '@angular/router'; | |||
| import { AuthGuard } from '@ghostfolio/client/core/auth.guard'; | |||
| 
 | |||
| import { LicensePageComponent } from './license-page.component'; | |||
| 
 | |||
| const routes: Routes = [ | |||
|   { | |||
|     canActivate: [AuthGuard], | |||
|     component: LicensePageComponent, | |||
|     path: '', | |||
|     title: $localize`License` | |||
|   } | |||
| ]; | |||
| 
 | |||
| @NgModule({ | |||
|   imports: [RouterModule.forChild(routes)], | |||
|   exports: [RouterModule] | |||
| }) | |||
| export class LicensePageRoutingModule {} | |||
| @ -0,0 +1,19 @@ | |||
| import { Component, OnDestroy } from '@angular/core'; | |||
| import { Subject } from 'rxjs'; | |||
| 
 | |||
| @Component({ | |||
|   host: { class: 'page' }, | |||
|   selector: 'gf-license-page', | |||
|   styleUrls: ['./license-page.scss'], | |||
|   templateUrl: './license-page.html' | |||
| }) | |||
| export class LicensePageComponent implements OnDestroy { | |||
|   private unsubscribeSubject = new Subject<void>(); | |||
| 
 | |||
|   public constructor() {} | |||
| 
 | |||
|   public ngOnDestroy() { | |||
|     this.unsubscribeSubject.next(); | |||
|     this.unsubscribeSubject.complete(); | |||
|   } | |||
| } | |||
| @ -0,0 +1,10 @@ | |||
| <div class="container"> | |||
|   <div class="mb-5 row"> | |||
|     <div class="col"> | |||
|       <h1 class="d-none d-sm-block h3 mb-3 text-center" i18n>License</h1> | |||
|       <div> | |||
|         <markdown [src]="'../assets/LICENSE'"></markdown> | |||
|       </div> | |||
|     </div> | |||
|   </div> | |||
| </div> | |||
| @ -0,0 +1,13 @@ | |||
| import { CommonModule } from '@angular/common'; | |||
| import { CUSTOM_ELEMENTS_SCHEMA, NgModule } from '@angular/core'; | |||
| import { MarkdownModule } from 'ngx-markdown'; | |||
| 
 | |||
| import { LicensePageRoutingModule } from './license-page-routing.module'; | |||
| import { LicensePageComponent } from './license-page.component'; | |||
| 
 | |||
| @NgModule({ | |||
|   declarations: [LicensePageComponent], | |||
|   imports: [LicensePageRoutingModule, CommonModule, MarkdownModule.forChild()], | |||
|   schemas: [CUSTOM_ELEMENTS_SCHEMA] | |||
| }) | |||
| export class LicensePageModule {} | |||
| @ -0,0 +1,8 @@ | |||
| :host { | |||
|   color: rgb(var(--dark-primary-text)); | |||
|   display: block; | |||
| } | |||
| 
 | |||
| :host-context(.is-dark-theme) { | |||
|   color: rgb(var(--light-primary-text)); | |||
| } | |||
					Loading…
					
					
				
		Reference in new issue