Migrated depreciated imports
This commit is contained in:
1 parent
47428ee891
commit
381b76de9c
25 files changed
+1933
-1422
No files matched your search
Generated
+1733
-1293
File diff suppressed because it is too large.
Load diff
+13
-13
@@ -11,18 +11,18 @@
|
|||||||
},
|
},
|
||||||
"private": true,
|
"private": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@angular/animations": "^20.0.2",
|
"@angular/animations": "^21.0.6",
|
||||||
"@angular/cdk": "^20.0.2",
|
"@angular/cdk": "^20.0.2",
|
||||||
"@angular/common": "^20.0.2",
|
"@angular/common": "^21.0.6",
|
||||||
"@angular/compiler": "^20.0.2",
|
"@angular/compiler": "^21.0.6",
|
||||||
"@angular/core": "^20.0.2",
|
"@angular/core": "^21.0.6",
|
||||||
"@angular/forms": "^20.0.2",
|
"@angular/forms": "^21.0.6",
|
||||||
"@angular/material": "^20.0.2",
|
"@angular/material": "^20.0.2",
|
||||||
"@angular/platform-browser": "^20.0.2",
|
"@angular/platform-browser": "^21.0.6",
|
||||||
"@angular/platform-browser-dynamic": "^20.0.2",
|
"@angular/platform-browser-dynamic": "^21.0.6",
|
||||||
"@angular/platform-server": "^20.0.2",
|
"@angular/platform-server": "^21.0.6",
|
||||||
"@angular/router": "^20.0.2",
|
"@angular/router": "^21.0.6",
|
||||||
"@angular/ssr": "^20.0.1",
|
"@angular/ssr": "^21.0.4",
|
||||||
"@fortawesome/fontawesome-free": "^6.7.2",
|
"@fortawesome/fontawesome-free": "^6.7.2",
|
||||||
"@ngx-translate/core": "^16.0.4",
|
"@ngx-translate/core": "^16.0.4",
|
||||||
"@ngx-translate/http-loader": "^16.0.1",
|
"@ngx-translate/http-loader": "^16.0.1",
|
||||||
@@ -40,9 +40,9 @@
|
|||||||
"zone.js": "~0.15.0"
|
"zone.js": "~0.15.0"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@angular/build": "^20.0.1",
|
"@angular/build": "^21.0.4",
|
||||||
"@angular/cli": "^21.0.4",
|
"@angular/cli": "^21.0.4",
|
||||||
"@angular/compiler-cli": "^20.0.2",
|
"@angular/compiler-cli": "^21.0.6",
|
||||||
"@biesbjerg/ngx-translate-extract": "^7.0.4",
|
"@biesbjerg/ngx-translate-extract": "^7.0.4",
|
||||||
"@types/express": "^4.17.17",
|
"@types/express": "^4.17.17",
|
||||||
"@types/jasmine": "~5.1.0",
|
"@types/jasmine": "~5.1.0",
|
||||||
@@ -53,6 +53,6 @@
|
|||||||
"karma-coverage": "~2.2.0",
|
"karma-coverage": "~2.2.0",
|
||||||
"karma-jasmine": "~5.1.0",
|
"karma-jasmine": "~5.1.0",
|
||||||
"karma-jasmine-html-reporter": "~2.1.0",
|
"karma-jasmine-html-reporter": "~2.1.0",
|
||||||
"typescript": "~5.8.3"
|
"typescript": "~5.9.3"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -1,7 +1,7 @@
|
|||||||
<div id="admin-bg">
|
<div id="admin-bg">
|
||||||
<div class="height-container">
|
<div class="height-container">
|
||||||
<!-- Left Section: Edit/Delete Article -->
|
<!-- Left Section: Edit/Delete Article -->
|
||||||
<ng-container *ngIf="!isMobile">
|
@if (!isMobile) {
|
||||||
<div class="left-section">
|
<div class="left-section">
|
||||||
<div class="delete-article-tile">
|
<div class="delete-article-tile">
|
||||||
<h2>Delete Article</h2>
|
<h2>Delete Article</h2>
|
||||||
@@ -20,7 +20,7 @@
|
|||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</ng-container>
|
}
|
||||||
<!-- Center Section: Admin Dashboard and Create Article Tiles -->
|
<!-- Center Section: Admin Dashboard and Create Article Tiles -->
|
||||||
<div class="center-section" [ngStyle]="{'width': isMobile ? '100%' : '33.33%'}">
|
<div class="center-section" [ngStyle]="{'width': isMobile ? '100%' : '33.33%'}">
|
||||||
<div class="admin-dashboard-tile">
|
<div class="admin-dashboard-tile">
|
||||||
@@ -38,31 +38,29 @@
|
|||||||
[title]="modalTitle"
|
[title]="modalTitle"
|
||||||
(onClose)="closeModal()"
|
(onClose)="closeModal()"
|
||||||
>
|
>
|
||||||
<ng-container *ngIf="modalAction === 'create'">
|
@if (modalAction === 'create') {
|
||||||
<form (submit)="createUser(createUserForm)" #createUserForm="ngForm" id="createUserForm">
|
<form (submit)="createUser(createUserForm)" #createUserForm="ngForm" id="createUserForm">
|
||||||
<input id="createUsername" ngModel required name="createUsername" placeholder="Username"/>
|
<input id="createUsername" ngModel required name="createUsername" placeholder="Username"/>
|
||||||
<input id="createPassword" type="password" ngModel required name="createPassword" placeholder="Password"/>
|
<input id="createPassword" type="password" ngModel required name="createPassword" placeholder="Password"/>
|
||||||
|
|
||||||
<button type="submit" [disabled]="createUserForm.invalid">Create User</button>
|
<button type="submit" [disabled]="createUserForm.invalid">Create User</button>
|
||||||
</form>
|
</form>
|
||||||
</ng-container>
|
}
|
||||||
|
|
||||||
<ng-container *ngIf="modalAction === 'edit'">
|
@if (modalAction === 'edit') {
|
||||||
<form (submit)="editUser(editUserForm)" #editUserForm="ngForm" id="editUserForm">
|
<form (submit)="editUser(editUserForm)" #editUserForm="ngForm" id="editUserForm">
|
||||||
<input id="editUserId" type="number" min="1" ngModel required name="editUserId" placeholder="User ID"/>
|
<input id="editUserId" type="number" min="1" ngModel required name="editUserId" placeholder="User ID"/>
|
||||||
<input id="editUsername" ngModel name="editUsername" placeholder="New Username (Optional)"/>
|
<input id="editUsername" ngModel name="editUsername" placeholder="New Username (Optional)"/>
|
||||||
<input id="editPassword" ngModel type="password" name="editPassword" placeholder="New Password (Optional)"/>
|
<input id="editPassword" ngModel type="password" name="editPassword" placeholder="New Password (Optional)"/>
|
||||||
<button type="submit" [disabled]="editUserForm.invalid">Edit User</button>
|
<button type="submit" [disabled]="editUserForm.invalid">Edit User</button>
|
||||||
</form>
|
</form>
|
||||||
</ng-container>
|
}
|
||||||
|
|
||||||
<ng-container *ngIf="modalAction === 'delete'">
|
@if (modalAction === 'delete') {
|
||||||
<form (submit)="deleteUser(deleteUserForm)" #deleteUserForm="ngForm" id="deleteUserForm">
|
<form (submit)="deleteUser(deleteUserForm)" #deleteUserForm="ngForm" id="deleteUserForm">
|
||||||
<input id="deleteUserId" type="number" min="1" required name="deleteUserId" ngModel placeholder="User ID"/>
|
<input id="deleteUserId" type="number" min="1" required name="deleteUserId" ngModel placeholder="User ID"/>
|
||||||
|
|
||||||
<button type="submit" [disabled]="deleteUserForm.invalid">Delete User</button>
|
<button type="submit" [disabled]="deleteUserForm.invalid">Delete User</button>
|
||||||
</form>
|
</form>
|
||||||
</ng-container>
|
}
|
||||||
</app-modal>
|
</app-modal>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@@ -75,7 +73,7 @@
|
|||||||
<button type="submit" [disabled]="createForm.invalid">Create Article</button>
|
<button type="submit" [disabled]="createForm.invalid">Create Article</button>
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
<ng-container *ngIf="isMobile">
|
@if (isMobile) {
|
||||||
<div class="delete-article-tile">
|
<div class="delete-article-tile">
|
||||||
<h2>Delete Article</h2>
|
<h2>Delete Article</h2>
|
||||||
<form #deleteFormMobile="ngForm" id="deleteFormMobile" (ngSubmit)="deleteArticle(deleteFormMobile)">
|
<form #deleteFormMobile="ngForm" id="deleteFormMobile" (ngSubmit)="deleteArticle(deleteFormMobile)">
|
||||||
@@ -99,39 +97,53 @@
|
|||||||
<i class="material-icons">{{ isViewingArticles ? 'person' : 'article' }}</i>
|
<i class="material-icons">{{ isViewingArticles ? 'person' : 'article' }}</i>
|
||||||
</button>
|
</button>
|
||||||
</h2>
|
</h2>
|
||||||
|
@if (isViewingArticles) {
|
||||||
<div *ngIf="isViewingArticles">
|
<div>
|
||||||
<div *ngIf="noArticles">
|
@if (noArticles) {
|
||||||
|
<div>
|
||||||
<p>No articles available.</p>
|
<p>No articles available.</p>
|
||||||
</div>
|
</div>
|
||||||
<div *ngIf="!noArticles">
|
}
|
||||||
|
@if (!noArticles) {
|
||||||
|
<div>
|
||||||
<ul>
|
<ul>
|
||||||
<li *ngFor="let article of articles" (click)="navigateToArticle(article.slug)">
|
@for (article of articles; track article) {
|
||||||
|
<li (click)="navigateToArticle(article.slug)">
|
||||||
<strong>ID {{ article.id }}</strong> - {{ article.title }}
|
<strong>ID {{ article.id }}</strong> - {{ article.title }}
|
||||||
</li>
|
</li>
|
||||||
|
}
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
|
}
|
||||||
</div>
|
</div>
|
||||||
|
}
|
||||||
<!-- Display users list -->
|
<!-- Display users list -->
|
||||||
<div *ngIf="!isViewingArticles">
|
@if (!isViewingArticles) {
|
||||||
<div *ngIf="users.length === 0">
|
<div>
|
||||||
|
@if (users.length === 0) {
|
||||||
|
<div>
|
||||||
<p>No users available.</p>
|
<p>No users available.</p>
|
||||||
</div>
|
</div>
|
||||||
<div *ngIf="users.length > 0">
|
}
|
||||||
|
@if (users.length > 0) {
|
||||||
|
<div>
|
||||||
<ul>
|
<ul>
|
||||||
<li *ngFor="let user of users">
|
@for (user of users; track user) {
|
||||||
|
<li>
|
||||||
<strong>ID {{ user.id }}</strong> - {{ user.username }}
|
<strong>ID {{ user.id }}</strong> - {{ user.username }}
|
||||||
</li>
|
</li>
|
||||||
|
}
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
|
}
|
||||||
</div>
|
</div>
|
||||||
|
}
|
||||||
</div>
|
</div>
|
||||||
</ng-container>
|
}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- Right Section: Articles List Tile -->
|
<!-- Right Section: Articles List Tile -->
|
||||||
<ng-container *ngIf="!isMobile">
|
@if (!isMobile) {
|
||||||
<div class="right-section">
|
<div class="right-section">
|
||||||
<div class="articles-list-tile">
|
<div class="articles-list-tile">
|
||||||
<h2>
|
<h2>
|
||||||
@@ -140,35 +152,49 @@
|
|||||||
<i class="material-icons">{{ isViewingArticles ? 'person' : 'article' }}</i>
|
<i class="material-icons">{{ isViewingArticles ? 'person' : 'article' }}</i>
|
||||||
</button>
|
</button>
|
||||||
</h2>
|
</h2>
|
||||||
|
@if (isViewingArticles) {
|
||||||
<div *ngIf="isViewingArticles">
|
<div>
|
||||||
<div *ngIf="noArticles">
|
@if (noArticles) {
|
||||||
|
<div>
|
||||||
<p>No articles available.</p>
|
<p>No articles available.</p>
|
||||||
</div>
|
</div>
|
||||||
<div *ngIf="!noArticles">
|
}
|
||||||
|
@if (!noArticles) {
|
||||||
|
<div>
|
||||||
<ul>
|
<ul>
|
||||||
<li *ngFor="let article of articles" (click)="navigateToArticle(article.slug)">
|
@for (article of articles; track article) {
|
||||||
|
<li (click)="navigateToArticle(article.slug)">
|
||||||
<strong>ID {{ article.id }}</strong> - {{ article.title }}
|
<strong>ID {{ article.id }}</strong> - {{ article.title }}
|
||||||
</li>
|
</li>
|
||||||
|
}
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
|
}
|
||||||
</div>
|
</div>
|
||||||
|
}
|
||||||
<!-- Display users list -->
|
<!-- Display users list -->
|
||||||
<div *ngIf="!isViewingArticles">
|
@if (!isViewingArticles) {
|
||||||
<div *ngIf="users.length === 0">
|
<div>
|
||||||
|
@if (users.length === 0) {
|
||||||
|
<div>
|
||||||
<p>No users available.</p>
|
<p>No users available.</p>
|
||||||
</div>
|
</div>
|
||||||
<div *ngIf="users.length > 0">
|
}
|
||||||
|
@if (users.length > 0) {
|
||||||
|
<div>
|
||||||
<ul>
|
<ul>
|
||||||
<li *ngFor="let user of users">
|
@for (user of users; track user) {
|
||||||
|
<li>
|
||||||
<strong>ID {{ user.id }}</strong> - {{ user.username }}
|
<strong>ID {{ user.id }}</strong> - {{ user.username }}
|
||||||
</li>
|
</li>
|
||||||
|
}
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
|
}
|
||||||
|
</div>
|
||||||
|
}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
}
|
||||||
</ng-container>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -2,7 +2,7 @@ import {Component, OnDestroy, OnInit} from '@angular/core';
|
|||||||
import {Router} from '@angular/router';
|
import {Router} from '@angular/router';
|
||||||
import {ArticleService} from '../shared/services/article.service';
|
import {ArticleService} from '../shared/services/article.service';
|
||||||
import {UserService} from '../shared/services/user.service';
|
import {UserService} from '../shared/services/user.service';
|
||||||
import {NgFor, NgIf, NgStyle} from '@angular/common';
|
import { NgStyle } from '@angular/common';
|
||||||
import {Observer, Subscription, interval} from 'rxjs';
|
import {Observer, Subscription, interval} from 'rxjs';
|
||||||
import {FormsModule, NgForm} from '@angular/forms';
|
import {FormsModule, NgForm} from '@angular/forms';
|
||||||
import {DeviceDetectorService} from '../shared/services/device-detector.service';
|
import {DeviceDetectorService} from '../shared/services/device-detector.service';
|
||||||
@@ -15,8 +15,6 @@ import {AuthService} from '../shared/services/auth.service';
|
|||||||
templateUrl: './admin.component.html',
|
templateUrl: './admin.component.html',
|
||||||
styleUrls: ['./admin.component.css'],
|
styleUrls: ['./admin.component.css'],
|
||||||
imports: [
|
imports: [
|
||||||
NgIf,
|
|
||||||
NgFor,
|
|
||||||
FormsModule,
|
FormsModule,
|
||||||
NgStyle,
|
NgStyle,
|
||||||
ModalComponent
|
ModalComponent
|
||||||
|
|||||||
@@ -1,8 +1,13 @@
|
|||||||
<ng-container *ngIf="!isMobile; else mobileNavbar">
|
@if (!isMobile) {
|
||||||
<app-navbar *ngIf="showNavbar" ></app-navbar>
|
@if (showNavbar) {
|
||||||
</ng-container>
|
<app-navbar ></app-navbar>
|
||||||
<ng-template #mobileNavbar>
|
}
|
||||||
<app-mobile-navbar *ngIf="showNavbar"></app-mobile-navbar>
|
} @else {
|
||||||
</ng-template>
|
@if (showNavbar) {
|
||||||
|
<app-mobile-navbar></app-mobile-navbar>
|
||||||
|
}
|
||||||
|
}
|
||||||
<router-outlet />
|
<router-outlet />
|
||||||
<app-footer *ngIf="showFooter"></app-footer>
|
@if (showFooter) {
|
||||||
|
<app-footer></app-footer>
|
||||||
|
}
|
||||||
@@ -1,5 +1,5 @@
|
|||||||
import {Component, OnInit} from '@angular/core';
|
import {Component, OnInit} from '@angular/core';
|
||||||
import {CommonModule} from '@angular/common';
|
|
||||||
import {ActivatedRoute, Router, RouterOutlet} from '@angular/router';
|
import {ActivatedRoute, Router, RouterOutlet} from '@angular/router';
|
||||||
import {NavbarComponent} from './shared/navbar/navbar.component';
|
import {NavbarComponent} from './shared/navbar/navbar.component';
|
||||||
import {MobileNavbarComponent} from './shared/mobile-navbar/mobile-navbar.component';
|
import {MobileNavbarComponent} from './shared/mobile-navbar/mobile-navbar.component';
|
||||||
@@ -9,7 +9,7 @@ import {TranslateService} from '@ngx-translate/core';
|
|||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'app-root',
|
selector: 'app-root',
|
||||||
imports: [RouterOutlet, NavbarComponent, FooterComponent, MobileNavbarComponent, CommonModule],
|
imports: [RouterOutlet, NavbarComponent, FooterComponent, MobileNavbarComponent],
|
||||||
templateUrl: './app.component.html',
|
templateUrl: './app.component.html',
|
||||||
styleUrl: './app.component.css',
|
styleUrl: './app.component.css',
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -1,13 +1,13 @@
|
|||||||
<div id="vanta-article-bg"></div>
|
<div id="vanta-article-bg"></div>
|
||||||
<div class="height-container">
|
<div class="height-container">
|
||||||
<div class="article-container" *ngIf="!loading && article; else error">
|
@if (!loading && article) {
|
||||||
|
<div class="article-container">
|
||||||
<div>
|
<div>
|
||||||
<!-- Article Title -->
|
<!-- Article Title -->
|
||||||
<h1>{{ article.title }}</h1>
|
<h1>{{ article.title }}</h1>
|
||||||
<div class="content-container">
|
<div class="content-container">
|
||||||
<!-- Article Content -->
|
<!-- Article Content -->
|
||||||
<div #articleContent class="article-content" [innerHTML]="article.content"></div>
|
<div #articleContent class="article-content" [innerHTML]="article.content"></div>
|
||||||
|
|
||||||
<a href="/blog"><button>{{ 'ARTICLE_BACK' | translate }}</button></a>
|
<a href="/blog"><button>{{ 'ARTICLE_BACK' | translate }}</button></a>
|
||||||
<!-- Article Metadata -->
|
<!-- Article Metadata -->
|
||||||
<div class="article-meta">
|
<div class="article-meta">
|
||||||
@@ -18,20 +18,26 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<!-- Modal -->
|
<!-- Modal -->
|
||||||
<div class="modal" *ngIf="selectedImage" (click)="closePreview()">
|
@if (selectedImage) {
|
||||||
|
<div class="modal" (click)="closePreview()">
|
||||||
<img [src]="selectedImage" alt="Full Preview" />
|
<img [src]="selectedImage" alt="Full Preview" />
|
||||||
</div>
|
</div>
|
||||||
|
}
|
||||||
</div>
|
</div>
|
||||||
<!-- Loading State-->
|
} @else {
|
||||||
<div *ngIf="loading" class="loading-container">
|
@if (!loading && error) {
|
||||||
<div class="spinner"></div>
|
<div class="error-message">
|
||||||
</div>
|
|
||||||
<!-- Error Message -->
|
|
||||||
<ng-template #error>
|
|
||||||
<div class="error-message" *ngIf="!loading && error">
|
|
||||||
<h1>404</h1>
|
<h1>404</h1>
|
||||||
<p>{{ 'ARTICLE_NOTFOUND' | translate }}</p>
|
<p>{{ 'ARTICLE_NOTFOUND' | translate }}</p>
|
||||||
<a href="/blog"><button>{{ 'ARTICLE_BACK' | translate }}</button></a>
|
<a href="/blog"><button>{{ 'ARTICLE_BACK' | translate }}</button></a>
|
||||||
</div>
|
</div>
|
||||||
</ng-template>
|
}
|
||||||
|
}
|
||||||
|
<!-- Loading State-->
|
||||||
|
@if (loading) {
|
||||||
|
<div class="loading-container">
|
||||||
|
<div class="spinner"></div>
|
||||||
|
</div>
|
||||||
|
}
|
||||||
|
<!-- Error Message -->
|
||||||
</div>
|
</div>
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
import {AfterViewInit, Component, ElementRef, Inject, OnDestroy, OnInit, PLATFORM_ID, ViewChild} from '@angular/core';
|
import {AfterViewInit, Component, ElementRef, Inject, OnDestroy, OnInit, PLATFORM_ID, ViewChild} from '@angular/core';
|
||||||
import {DeviceDetectorService} from '../../shared/services/device-detector.service'
|
import {DeviceDetectorService} from '../../shared/services/device-detector.service'
|
||||||
import {DatePipe, isPlatformBrowser, NgIf, NgStyle} from '@angular/common';
|
import { DatePipe, isPlatformBrowser, NgStyle } from '@angular/common';
|
||||||
import {VantaBackgroundService} from '../../shared/services/vanta-background.service';
|
import {VantaBackgroundService} from '../../shared/services/vanta-background.service';
|
||||||
import {ArticleService} from '../../shared/services/article.service';
|
import {ArticleService} from '../../shared/services/article.service';
|
||||||
import {ActivatedRoute} from '@angular/router';
|
import {ActivatedRoute} from '@angular/router';
|
||||||
@@ -22,7 +22,6 @@ interface Article {
|
|||||||
@Component({
|
@Component({
|
||||||
selector: 'app-article-page',
|
selector: 'app-article-page',
|
||||||
imports: [
|
imports: [
|
||||||
NgIf,
|
|
||||||
DatePipe,
|
DatePipe,
|
||||||
NgStyle,
|
NgStyle,
|
||||||
TranslatePipe
|
TranslatePipe
|
||||||
|
|||||||
@@ -6,15 +6,18 @@
|
|||||||
</div>
|
</div>
|
||||||
<hr class="rounded">
|
<hr class="rounded">
|
||||||
<div class="blog-container">
|
<div class="blog-container">
|
||||||
<div *ngIf="articles$ | async as articles; else noArticles">
|
@if (articles$ | async; as articles) {
|
||||||
<div *ngFor="let article of articles.slice().reverse()" (click)="navigateToArticle(article.slug)" class="article-card">
|
<div>
|
||||||
|
@for (article of articles.slice().reverse(); track article) {
|
||||||
|
<div (click)="navigateToArticle(article.slug)" class="article-card">
|
||||||
<h2>{{ (article.title | slice:0:45) + (article.title.length > 40 ? '...' : '')}}</h2>
|
<h2>{{ (article.title | slice:0:45) + (article.title.length > 40 ? '...' : '')}}</h2>
|
||||||
<p>{{ truncateContent(article.content, 80) }}</p>
|
<p>{{ truncateContent(article.content, 80) }}</p>
|
||||||
<p><small>By {{ article.authorName }} | {{ article.createdAt | date: 'dd/MM/yy, HH:mm' }}</small></p>
|
<p><small>By {{ article.authorName }} | {{ article.createdAt | date: 'dd/MM/yy, HH:mm' }}</small></p>
|
||||||
</div>
|
</div>
|
||||||
|
}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
} @else {
|
||||||
<ng-template #noArticles>
|
|
||||||
<h2>{{ 'ARTICLES_NONE' | translate }}</h2>
|
<h2>{{ 'ARTICLES_NONE' | translate }}</h2>
|
||||||
</ng-template>
|
}
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
import {AfterViewInit, Component, Inject, OnDestroy, OnInit, PLATFORM_ID} from '@angular/core';
|
import {AfterViewInit, Component, Inject, OnDestroy, OnInit, PLATFORM_ID} from '@angular/core';
|
||||||
import {DeviceDetectorService} from '../shared/services/device-detector.service'
|
import {DeviceDetectorService} from '../shared/services/device-detector.service'
|
||||||
import {DatePipe, isPlatformBrowser, NgIf, NgFor, AsyncPipe, SlicePipe, NgStyle} from '@angular/common';
|
import { DatePipe, isPlatformBrowser, AsyncPipe, SlicePipe, NgStyle } from '@angular/common';
|
||||||
import {VantaBackgroundService} from '../shared/services/vanta-background.service';
|
import {VantaBackgroundService} from '../shared/services/vanta-background.service';
|
||||||
import { ArticleService } from '../shared/services/article.service';
|
import { ArticleService } from '../shared/services/article.service';
|
||||||
import { Router } from '@angular/router';
|
import { Router } from '@angular/router';
|
||||||
@@ -11,8 +11,6 @@ import {TranslatePipe} from '@ngx-translate/core';
|
|||||||
@Component({
|
@Component({
|
||||||
selector: 'app-blog',
|
selector: 'app-blog',
|
||||||
imports: [
|
imports: [
|
||||||
NgIf,
|
|
||||||
NgFor,
|
|
||||||
DatePipe,
|
DatePipe,
|
||||||
AsyncPipe,
|
AsyncPipe,
|
||||||
SlicePipe,
|
SlicePipe,
|
||||||
|
|||||||
@@ -14,7 +14,9 @@
|
|||||||
<li>
|
<li>
|
||||||
<span (click)="copyToClipboard('michael@itzminey.dev')"><i class="fa-solid fa-envelope"></i></span>
|
<span (click)="copyToClipboard('michael@itzminey.dev')"><i class="fa-solid fa-envelope"></i></span>
|
||||||
<a href="mailto:michael@itzminey.dev">michael@itzminey.dev</a>
|
<a href="mailto:michael@itzminey.dev">michael@itzminey.dev</a>
|
||||||
<span *ngIf="copiedSection === 'email'" class="copy-status">Copied!</span>
|
@if (copiedSection === 'email') {
|
||||||
|
<span class="copy-status">Copied!</span>
|
||||||
|
}
|
||||||
</li>
|
</li>
|
||||||
<!-- <li>
|
<!-- <li>
|
||||||
<span (click)="copyToClipboard('+436604349465')"><i class="fa-solid fa-phone"></i></span>
|
<span (click)="copyToClipboard('+436604349465')"><i class="fa-solid fa-phone"></i></span>
|
||||||
|
|||||||
@@ -1,13 +1,12 @@
|
|||||||
import {AfterViewInit, Component, Inject, OnDestroy, OnInit, PLATFORM_ID} from '@angular/core';
|
import {AfterViewInit, Component, Inject, OnDestroy, OnInit, PLATFORM_ID} from '@angular/core';
|
||||||
import {VantaBackgroundService} from '../shared/services/vanta-background.service';
|
import {VantaBackgroundService} from '../shared/services/vanta-background.service';
|
||||||
import {Title} from '@angular/platform-browser';
|
import {Title} from '@angular/platform-browser';
|
||||||
import {isPlatformBrowser, NgIf} from '@angular/common';
|
import { isPlatformBrowser } from '@angular/common';
|
||||||
import {TranslatePipe} from '@ngx-translate/core';
|
import {TranslatePipe} from '@ngx-translate/core';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'app-services',
|
selector: 'app-services',
|
||||||
imports: [
|
imports: [
|
||||||
NgIf,
|
|
||||||
TranslatePipe
|
TranslatePipe
|
||||||
],
|
],
|
||||||
templateUrl: './imprint.component.html',
|
templateUrl: './imprint.component.html',
|
||||||
|
|||||||
@@ -12,6 +12,8 @@
|
|||||||
|
|
||||||
<button type="submit" [disabled]="!loginForm.valid">Login</button>
|
<button type="submit" [disabled]="!loginForm.valid">Login</button>
|
||||||
</form>
|
</form>
|
||||||
<p *ngIf="errorMessage" class="error-message">{{ errorMessage }}</p>
|
@if (errorMessage) {
|
||||||
|
<p class="error-message">{{ errorMessage }}</p>
|
||||||
|
}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -2,7 +2,7 @@ import {AfterViewInit, Component, Inject, OnDestroy, OnInit, PLATFORM_ID} from '
|
|||||||
import {AuthService} from '../shared/services/auth.service';
|
import {AuthService} from '../shared/services/auth.service';
|
||||||
import {ActivatedRoute, Router} from '@angular/router';
|
import {ActivatedRoute, Router} from '@angular/router';
|
||||||
import {FormsModule} from '@angular/forms';
|
import {FormsModule} from '@angular/forms';
|
||||||
import {NgIf} from '@angular/common';
|
|
||||||
import {VantaBackgroundService} from '../shared/services/vanta-background.service';
|
import {VantaBackgroundService} from '../shared/services/vanta-background.service';
|
||||||
import {DeviceDetectorService} from '../shared/services/device-detector.service';
|
import {DeviceDetectorService} from '../shared/services/device-detector.service';
|
||||||
import {isPlatformBrowser} from '@angular/common';
|
import {isPlatformBrowser} from '@angular/common';
|
||||||
@@ -14,8 +14,7 @@ import { take } from 'rxjs/operators';
|
|||||||
templateUrl: './login.component.html',
|
templateUrl: './login.component.html',
|
||||||
styleUrls: ['./login.component.css'],
|
styleUrls: ['./login.component.css'],
|
||||||
imports: [
|
imports: [
|
||||||
FormsModule,
|
FormsModule
|
||||||
NgIf,
|
|
||||||
]
|
]
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|||||||
@@ -15,19 +15,23 @@
|
|||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
<div class="portfolio-gallery" [@staggerGallery]>
|
<div class="portfolio-gallery" [@staggerGallery]>
|
||||||
<div class="gallery-item" *ngFor="let item of galleryItems" (click)="openModal(item)">
|
@for (item of galleryItems; track item) {
|
||||||
|
<div class="gallery-item" (click)="openModal(item)">
|
||||||
<img [src]="item.src" [alt]="item.alt">
|
<img [src]="item.src" [alt]="item.alt">
|
||||||
<p>{{ item.label }}</p>
|
<p>{{ item.label }}</p>
|
||||||
</div>
|
</div>
|
||||||
|
}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<!-- Modal -->
|
<!-- Modal -->
|
||||||
<div class="modal-backdrop" *ngIf="showModal" (click)="closeModal()">
|
@if (showModal) {
|
||||||
|
<div class="modal-backdrop" (click)="closeModal()">
|
||||||
<div class="modal-content" (click)="$event.stopPropagation()">
|
<div class="modal-content" (click)="$event.stopPropagation()">
|
||||||
<img [src]="selectedItem?.src" [alt]="selectedItem?.alt">
|
<img [src]="selectedItem?.src" [alt]="selectedItem?.alt">
|
||||||
<h2>{{ selectedItem?.label }}</h2>
|
<h2>{{ selectedItem?.label }}</h2>
|
||||||
<button (click)="closeModal()">Close</button>
|
<button (click)="closeModal()">Close</button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
}
|
||||||
</div>
|
</div>
|
||||||
<app-audio-player></app-audio-player>
|
<app-audio-player></app-audio-player>
|
||||||
@@ -20,8 +20,12 @@
|
|||||||
<section id="controller">
|
<section id="controller">
|
||||||
<h2 (click)="copySectionLink('controller')" class="clickable-title">
|
<h2 (click)="copySectionLink('controller')" class="clickable-title">
|
||||||
{{ 'privacy.controller.title' | translate }}
|
{{ 'privacy.controller.title' | translate }}
|
||||||
<span class="link-icon" *ngIf="copiedSection !== 'controller'"><i class="fa-solid fa-link"></i></span>
|
@if (copiedSection !== 'controller') {
|
||||||
<span class="copied-text" *ngIf="copiedSection === 'controller'">Copied!</span>
|
<span class="link-icon"><i class="fa-solid fa-link"></i></span>
|
||||||
|
}
|
||||||
|
@if (copiedSection === 'controller') {
|
||||||
|
<span class="copied-text">Copied!</span>
|
||||||
|
}
|
||||||
</h2>
|
</h2>
|
||||||
<p [innerHTML]="'privacy.controller.content' | translate"></p>
|
<p [innerHTML]="'privacy.controller.content' | translate"></p>
|
||||||
</section>
|
</section>
|
||||||
@@ -29,8 +33,12 @@
|
|||||||
<section id="what-data">
|
<section id="what-data">
|
||||||
<h2 (click)="copySectionLink('what-data')" class="clickable-title">
|
<h2 (click)="copySectionLink('what-data')" class="clickable-title">
|
||||||
{{ 'privacy.whatData.title' | translate }}
|
{{ 'privacy.whatData.title' | translate }}
|
||||||
<span class="link-icon" *ngIf="copiedSection !== 'what-data'"><i class="fa-solid fa-link"></i></span>
|
@if (copiedSection !== 'what-data') {
|
||||||
<span class="copied-text" *ngIf="copiedSection === 'what-data'">Copied!</span>
|
<span class="link-icon"><i class="fa-solid fa-link"></i></span>
|
||||||
|
}
|
||||||
|
@if (copiedSection === 'what-data') {
|
||||||
|
<span class="copied-text">Copied!</span>
|
||||||
|
}
|
||||||
</h2>
|
</h2>
|
||||||
<p><b>{{ 'privacy.whatData.websiteUsageTitle' | translate }}</b></p>
|
<p><b>{{ 'privacy.whatData.websiteUsageTitle' | translate }}</b></p>
|
||||||
<div class="indent"><p>{{ 'privacy.whatData.websiteUsage' | translate }}</p></div>
|
<div class="indent"><p>{{ 'privacy.whatData.websiteUsage' | translate }}</p></div>
|
||||||
@@ -44,20 +52,30 @@
|
|||||||
<section id="purpose">
|
<section id="purpose">
|
||||||
<h2 (click)="copySectionLink('purpose')" class="clickable-title">
|
<h2 (click)="copySectionLink('purpose')" class="clickable-title">
|
||||||
{{ 'privacy.purpose.title' | translate }}
|
{{ 'privacy.purpose.title' | translate }}
|
||||||
<span class="link-icon" *ngIf="copiedSection !== 'purpose'"><i class="fa-solid fa-link"></i></span>
|
@if (copiedSection !== 'purpose') {
|
||||||
<span class="copied-text" *ngIf="copiedSection === 'purpose'">Copied!</span>
|
<span class="link-icon"><i class="fa-solid fa-link"></i></span>
|
||||||
|
}
|
||||||
|
@if (copiedSection === 'purpose') {
|
||||||
|
<span class="copied-text">Copied!</span>
|
||||||
|
}
|
||||||
</h2>
|
</h2>
|
||||||
<p>{{ 'privacy.purpose.intro' | translate }}</p>
|
<p>{{ 'privacy.purpose.intro' | translate }}</p>
|
||||||
<ul>
|
<ul>
|
||||||
<li *ngFor="let point of ['privacy.purpose.points' | translate]">{{ point }}</li>
|
@for (point of ['privacy.purpose.points' | translate]; track point) {
|
||||||
|
<li>{{ point }}</li>
|
||||||
|
}
|
||||||
</ul>
|
</ul>
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
<section id="data-retention">
|
<section id="data-retention">
|
||||||
<h2 (click)="copySectionLink('data-retention')" class="clickable-title">
|
<h2 (click)="copySectionLink('data-retention')" class="clickable-title">
|
||||||
{{ 'privacy.dataRetention.title' | translate }}
|
{{ 'privacy.dataRetention.title' | translate }}
|
||||||
<span class="link-icon" *ngIf="copiedSection !== 'data-retention'"><i class="fa-solid fa-link"></i></span>
|
@if (copiedSection !== 'data-retention') {
|
||||||
<span class="copied-text" *ngIf="copiedSection === 'data-retention'">Copied!</span>
|
<span class="link-icon"><i class="fa-solid fa-link"></i></span>
|
||||||
|
}
|
||||||
|
@if (copiedSection === 'data-retention') {
|
||||||
|
<span class="copied-text">Copied!</span>
|
||||||
|
}
|
||||||
</h2>
|
</h2>
|
||||||
<p>{{ 'privacy.dataRetention.content' | translate }}</p>
|
<p>{{ 'privacy.dataRetention.content' | translate }}</p>
|
||||||
</section>
|
</section>
|
||||||
@@ -65,8 +83,12 @@
|
|||||||
<section id="your-rights">
|
<section id="your-rights">
|
||||||
<h2 (click)="copySectionLink('your-rights')" class="clickable-title">
|
<h2 (click)="copySectionLink('your-rights')" class="clickable-title">
|
||||||
{{ 'privacy.yourRights.title' | translate }}
|
{{ 'privacy.yourRights.title' | translate }}
|
||||||
<span class="link-icon" *ngIf="copiedSection !== 'your-rights'"><i class="fa-solid fa-link"></i></span>
|
@if (copiedSection !== 'your-rights') {
|
||||||
<span class="copied-text" *ngIf="copiedSection === 'your-rights'">Copied!</span>
|
<span class="link-icon"><i class="fa-solid fa-link"></i></span>
|
||||||
|
}
|
||||||
|
@if (copiedSection === 'your-rights') {
|
||||||
|
<span class="copied-text">Copied!</span>
|
||||||
|
}
|
||||||
</h2>
|
</h2>
|
||||||
<p>{{ 'privacy.yourRights.intro' | translate }}</p>
|
<p>{{ 'privacy.yourRights.intro' | translate }}</p>
|
||||||
<ul>
|
<ul>
|
||||||
@@ -81,8 +103,12 @@
|
|||||||
<section id="security">
|
<section id="security">
|
||||||
<h2 (click)="copySectionLink('security')" class="clickable-title">
|
<h2 (click)="copySectionLink('security')" class="clickable-title">
|
||||||
{{ 'privacy.security.title' | translate }}
|
{{ 'privacy.security.title' | translate }}
|
||||||
<span class="link-icon" *ngIf="copiedSection !== 'security'"><i class="fa-solid fa-link"></i></span>
|
@if (copiedSection !== 'security') {
|
||||||
<span class="copied-text" *ngIf="copiedSection === 'security'">Copied!</span>
|
<span class="link-icon"><i class="fa-solid fa-link"></i></span>
|
||||||
|
}
|
||||||
|
@if (copiedSection === 'security') {
|
||||||
|
<span class="copied-text">Copied!</span>
|
||||||
|
}
|
||||||
</h2>
|
</h2>
|
||||||
<p>{{ 'privacy.security.content' | translate }}</p>
|
<p>{{ 'privacy.security.content' | translate }}</p>
|
||||||
</section>
|
</section>
|
||||||
@@ -90,8 +116,12 @@
|
|||||||
<section id="changes">
|
<section id="changes">
|
||||||
<h2 (click)="copySectionLink('changes')" class="clickable-title">
|
<h2 (click)="copySectionLink('changes')" class="clickable-title">
|
||||||
{{ 'privacy.changes.title' | translate }}
|
{{ 'privacy.changes.title' | translate }}
|
||||||
<span class="link-icon" *ngIf="copiedSection !== 'changes'"><i class="fa-solid fa-link"></i></span>
|
@if (copiedSection !== 'changes') {
|
||||||
<span class="copied-text" *ngIf="copiedSection === 'changes'">Copied!</span>
|
<span class="link-icon"><i class="fa-solid fa-link"></i></span>
|
||||||
|
}
|
||||||
|
@if (copiedSection === 'changes') {
|
||||||
|
<span class="copied-text">Copied!</span>
|
||||||
|
}
|
||||||
</h2>
|
</h2>
|
||||||
<p>{{ 'privacy.changes.content' | translate }}</p>
|
<p>{{ 'privacy.changes.content' | translate }}</p>
|
||||||
</section>
|
</section>
|
||||||
|
|||||||
@@ -2,14 +2,12 @@ import {AfterViewInit, Component, Inject, OnDestroy, OnInit, PLATFORM_ID} from '
|
|||||||
import {VantaBackgroundService} from '../shared/services/vanta-background.service';
|
import {VantaBackgroundService} from '../shared/services/vanta-background.service';
|
||||||
import {DeviceDetectorService} from '../shared/services/device-detector.service';
|
import {DeviceDetectorService} from '../shared/services/device-detector.service';
|
||||||
import {Title} from '@angular/platform-browser';
|
import {Title} from '@angular/platform-browser';
|
||||||
import {isPlatformBrowser, NgFor, NgIf} from '@angular/common';
|
import { isPlatformBrowser } from '@angular/common';
|
||||||
import {TranslatePipe} from '@ngx-translate/core';
|
import {TranslatePipe} from '@ngx-translate/core';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'app-services',
|
selector: 'app-services',
|
||||||
imports: [
|
imports: [
|
||||||
NgIf,
|
|
||||||
NgFor,
|
|
||||||
TranslatePipe
|
TranslatePipe
|
||||||
],
|
],
|
||||||
templateUrl: './privacy.component.html',
|
templateUrl: './privacy.component.html',
|
||||||
|
|||||||
@@ -7,7 +7,8 @@
|
|||||||
<i class="{{ isPlaying() ? 'fa-solid fa-pause' : 'fa-solid fa-play'}}"></i>
|
<i class="{{ isPlaying() ? 'fa-solid fa-pause' : 'fa-solid fa-play'}}"></i>
|
||||||
</button>
|
</button>
|
||||||
<button (click)="nextVideo()" [disabled]="!isPlayerReady"><i class="fa-solid fa-forward"></i></button>
|
<button (click)="nextVideo()" [disabled]="!isPlayerReady"><i class="fa-solid fa-forward"></i></button>
|
||||||
<div class="volume-control" *ngIf="isPlayerReady()">
|
@if (isPlayerReady()) {
|
||||||
|
<div class="volume-control">
|
||||||
<input
|
<input
|
||||||
id="volume"
|
id="volume"
|
||||||
type="range"
|
type="range"
|
||||||
@@ -17,5 +18,6 @@
|
|||||||
(input)="onVolumeChange($event)"
|
(input)="onVolumeChange($event)"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -1,5 +1,5 @@
|
|||||||
import {Component, AfterViewInit, signal} from '@angular/core';
|
import {Component, AfterViewInit, signal} from '@angular/core';
|
||||||
import {NgIf} from '@angular/common';
|
|
||||||
|
|
||||||
declare global {
|
declare global {
|
||||||
interface Window {
|
interface Window {
|
||||||
@@ -10,9 +10,7 @@ declare global {
|
|||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'app-audio-player',
|
selector: 'app-audio-player',
|
||||||
imports: [
|
imports: [],
|
||||||
NgIf
|
|
||||||
],
|
|
||||||
templateUrl: './audio-player.component.html',
|
templateUrl: './audio-player.component.html',
|
||||||
styleUrl: './audio-player.component.css'
|
styleUrl: './audio-player.component.css'
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -6,7 +6,8 @@
|
|||||||
<div class="navbar-title"><a [routerLink]="'/'" [class.active]="activeLink === '/'">itzMiney.dev</a></div>
|
<div class="navbar-title"><a [routerLink]="'/'" [class.active]="activeLink === '/'">itzMiney.dev</a></div>
|
||||||
|
|
||||||
<!-- Full-Screen Menu -->
|
<!-- Full-Screen Menu -->
|
||||||
<div class="full-screen-menu" *ngIf="menuOpen">
|
@if (menuOpen) {
|
||||||
|
<div class="full-screen-menu">
|
||||||
<button class="close-icon" (click)="toggleMenu()">✖</button>
|
<button class="close-icon" (click)="toggleMenu()">✖</button>
|
||||||
<ul>
|
<ul>
|
||||||
<li><a [routerLink]="'/'" [class.active]="activeLink === '/'"><i class="fa-solid fa-address-card"></i> {{ 'NAV_ABOUT' | translate }}</a></li>
|
<li><a [routerLink]="'/'" [class.active]="activeLink === '/'"><i class="fa-solid fa-address-card"></i> {{ 'NAV_ABOUT' | translate }}</a></li>
|
||||||
@@ -20,4 +21,5 @@
|
|||||||
<button (click)="switchLang('de')" [class.active]="currentLang === 'de'" class="de">DE</button>
|
<button (click)="switchLang('de')" [class.active]="currentLang === 'de'" class="de">DE</button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
}
|
||||||
</div>
|
</div>
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
import {Component, OnInit} from '@angular/core';
|
import {Component, OnInit} from '@angular/core';
|
||||||
import {DeviceDetectorService} from 'ngx-device-detector';
|
import {DeviceDetectorService} from 'ngx-device-detector';
|
||||||
import {NgIf} from '@angular/common';
|
|
||||||
import {NavigationEnd, Router, RouterLink} from '@angular/router';
|
import {NavigationEnd, Router, RouterLink} from '@angular/router';
|
||||||
import {TranslatePipe, TranslateService} from '@ngx-translate/core';
|
import {TranslatePipe, TranslateService} from '@ngx-translate/core';
|
||||||
|
|
||||||
@@ -8,7 +8,6 @@ import {TranslatePipe, TranslateService} from '@ngx-translate/core';
|
|||||||
selector: 'app-mobile-navbar',
|
selector: 'app-mobile-navbar',
|
||||||
imports: [
|
imports: [
|
||||||
RouterLink,
|
RouterLink,
|
||||||
NgIf,
|
|
||||||
TranslatePipe
|
TranslatePipe
|
||||||
],
|
],
|
||||||
templateUrl: './mobile-navbar.component.html',
|
templateUrl: './mobile-navbar.component.html',
|
||||||
|
|||||||
@@ -1,7 +1,9 @@
|
|||||||
<div class="modal-backdrop" *ngIf="isOpen">
|
@if (isOpen) {
|
||||||
|
<div class="modal-backdrop">
|
||||||
<div class="modal">
|
<div class="modal">
|
||||||
<button class="close-btn" (click)="closeModal()">✖</button>
|
<button class="close-btn" (click)="closeModal()">✖</button>
|
||||||
<h2>{{ title }}</h2>
|
<h2>{{ title }}</h2>
|
||||||
<ng-content></ng-content>
|
<ng-content></ng-content>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
}
|
||||||
@@ -1,13 +1,11 @@
|
|||||||
import { Component, Input, Output, EventEmitter } from '@angular/core';
|
import { Component, Input, Output, EventEmitter } from '@angular/core';
|
||||||
import {NgIf} from '@angular/common';
|
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'app-modal',
|
selector: 'app-modal',
|
||||||
templateUrl: './modal.component.html',
|
templateUrl: './modal.component.html',
|
||||||
styleUrls: ['./modal.component.css'],
|
styleUrls: ['./modal.component.css'],
|
||||||
imports: [
|
imports: []
|
||||||
NgIf
|
|
||||||
]
|
|
||||||
})
|
})
|
||||||
export class ModalComponent {
|
export class ModalComponent {
|
||||||
@Input() isOpen: boolean = false;
|
@Input() isOpen: boolean = false;
|
||||||
|
|||||||
@@ -57,13 +57,14 @@
|
|||||||
|
|
||||||
<!-- Scrollable URL list -->
|
<!-- Scrollable URL list -->
|
||||||
<div class="url-list-wrapper">
|
<div class="url-list-wrapper">
|
||||||
<div *ngIf="noURLs; else urlList">
|
@if (noURLs) {
|
||||||
|
<div>
|
||||||
<p>No short URLs available.</p>
|
<p>No short URLs available.</p>
|
||||||
</div>
|
</div>
|
||||||
|
} @else {
|
||||||
<ng-template #urlList>
|
|
||||||
<ul class="url-list-items">
|
<ul class="url-list-items">
|
||||||
<li *ngFor="let url of urls">
|
@for (url of urls; track url) {
|
||||||
|
<li>
|
||||||
<strong>ID {{url.id}}</strong> // <strong>URL: </strong>
|
<strong>ID {{url.id}}</strong> // <strong>URL: </strong>
|
||||||
<a [href]="'https://itz.sh/' + url.short_url" target="_blank">{{ 'https://itz.sh/' + url.short_url }}</a><br>
|
<a [href]="'https://itz.sh/' + url.short_url" target="_blank">{{ 'https://itz.sh/' + url.short_url }}</a><br>
|
||||||
<strong>Original: </strong>
|
<strong>Original: </strong>
|
||||||
@@ -71,8 +72,10 @@
|
|||||||
{{ (url.og_url | slice:0:45) + (url.og_url.length > 40 ? '...' : '')}}
|
{{ (url.og_url | slice:0:45) + (url.og_url.length > 40 ? '...' : '')}}
|
||||||
</a><br>
|
</a><br>
|
||||||
</li>
|
</li>
|
||||||
|
}
|
||||||
</ul>
|
</ul>
|
||||||
</ng-template>
|
}
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ import {Title} from '@angular/platform-browser';
|
|||||||
import {ShortenerService} from '../shared/services/shortener.service';
|
import {ShortenerService} from '../shared/services/shortener.service';
|
||||||
import {interval, Subscription, switchMap} from 'rxjs';
|
import {interval, Subscription, switchMap} from 'rxjs';
|
||||||
import {FormsModule} from '@angular/forms';
|
import {FormsModule} from '@angular/forms';
|
||||||
import {NgFor, NgIf, SlicePipe} from '@angular/common';
|
import { SlicePipe } from '@angular/common';
|
||||||
import {AuthService} from '../shared/services/auth.service';
|
import {AuthService} from '../shared/services/auth.service';
|
||||||
import {filter} from 'rxjs/operators';
|
import {filter} from 'rxjs/operators';
|
||||||
|
|
||||||
@@ -11,8 +11,6 @@ import {filter} from 'rxjs/operators';
|
|||||||
selector: 'app-shortener',
|
selector: 'app-shortener',
|
||||||
imports: [
|
imports: [
|
||||||
FormsModule,
|
FormsModule,
|
||||||
NgFor,
|
|
||||||
NgIf,
|
|
||||||
SlicePipe
|
SlicePipe
|
||||||
],
|
],
|
||||||
templateUrl: './shortener.component.html',
|
templateUrl: './shortener.component.html',
|
||||||
|
|||||||
Reference in new issue
Block a user