refactor(privacy-policy.component): Aktualisiert, um iframe zu verwenden.
- Mit dem Pfad privacy-policy verknüpfen
This commit is contained in:
@@ -6,6 +6,7 @@ import { GroupComponent } from './pages/group/group.component';
|
||||
import { ModuleComponent } from './pages/module/module.component';
|
||||
import { UserAssignmentComponent } from './pages/user-assignment/user-assignment.component';
|
||||
import { UserRepresentationComponent } from './pages/user-representation/user-representation.component';
|
||||
import { PrivacyPolicyComponent } from './pages/privacy-policy/privacy-policy.component';
|
||||
|
||||
export const routes: Routes = [
|
||||
{ path: '', component: HomeComponent },
|
||||
@@ -13,5 +14,6 @@ export const routes: Routes = [
|
||||
{ path: 'group-table', component: GroupComponent, canActivate: [AuthGuard] },
|
||||
{ path: 'module-table', component: ModuleComponent, canActivate: [AuthGuard] },
|
||||
{ path: 'user-assignment', component: UserAssignmentComponent, canActivate: [AuthGuard] },
|
||||
{ path: 'user-representation', component: UserRepresentationComponent, canActivate: [AuthGuard] }
|
||||
{ path: 'user-representation', component: UserRepresentationComponent, canActivate: [AuthGuard] },
|
||||
{ path: 'privacy-policy', component: PrivacyPolicyComponent }
|
||||
];
|
||||
@@ -1,4 +1 @@
|
||||
<pdf-viewer [src]="pdfSrc"
|
||||
[render-text]="true"
|
||||
[original-size]="true"
|
||||
></pdf-viewer>
|
||||
<iframe src="docs/privacy-policy.pdf#toolbar=0&navpanes=0&scrollbar=0" ></iframe>
|
||||
@@ -0,0 +1,9 @@
|
||||
iframe {
|
||||
overflow: hidden;
|
||||
border: none;
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
position: fixed;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
@@ -1,13 +1,12 @@
|
||||
import { Component, Input } from '@angular/core';
|
||||
import { PdfViewerModule } from 'ng2-pdf-viewer';
|
||||
import { ChangeDetectionStrategy, Component, Input } from '@angular/core';
|
||||
|
||||
@Component({
|
||||
selector: 'app-privacy-policy',
|
||||
standalone: true,
|
||||
imports: [PdfViewerModule],
|
||||
imports: [],
|
||||
templateUrl: './privacy-policy.component.html',
|
||||
styleUrl: './privacy-policy.component.scss'
|
||||
styleUrl: './privacy-policy.component.scss',
|
||||
changeDetection: ChangeDetectionStrategy.OnPush
|
||||
})
|
||||
export class PrivacyPolicyComponent {
|
||||
@Input('pdfSrc') pdfSrc: string = 'privacy-policy.pdf';
|
||||
}
|
||||
Binary file not shown.
Reference in New Issue
Block a user