From b0744f94ad4453c0b6eb258e0e82389cf8651f8e Mon Sep 17 00:00:00 2001 From: Jan Klattenhoff Date: Sat, 25 Jan 2025 13:26:50 +0100 Subject: [PATCH 01/24] refactor(dashboard): disable autoFocus in dialog configurations --- src/app/dashboard/dashboard.component.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/app/dashboard/dashboard.component.ts b/src/app/dashboard/dashboard.component.ts index ef72234..6b8fee8 100644 --- a/src/app/dashboard/dashboard.component.ts +++ b/src/app/dashboard/dashboard.component.ts @@ -54,6 +54,7 @@ export class DashboardComponent { description: 'Are you sure that you want to open ' + link.link + ' now?', }, + autoFocus: false, }) .afterClosed() .subscribe((accepted: Boolean) => { @@ -83,6 +84,7 @@ export class DashboardComponent { description: 'Are you sure that you want to delete ' + link.name + '?', }, + autoFocus: false, }) .afterClosed() .subscribe((accepted: boolean) => { From ab5dbc047cd7b151a55bc7047433e75958bb9a51 Mon Sep 17 00:00:00 2001 From: Jan Klattenhoff Date: Sat, 25 Jan 2025 15:58:43 +0100 Subject: [PATCH 02/24] style(login): adjust container width in login component --- src/app/login/login.component.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/login/login.component.html b/src/app/login/login.component.html index 701eebe..e2dd4c0 100644 --- a/src/app/login/login.component.html +++ b/src/app/login/login.component.html @@ -1,4 +1,4 @@ -
+

Login

From 8e1832416ba4f98543fcd1240ea0c0cc1425af21 Mon Sep 17 00:00:00 2001 From: Jan Klattenhoff Date: Sat, 25 Jan 2025 17:32:13 +0100 Subject: [PATCH 03/24] feat: Add custom slug support for links --- src/app/app.component.spec.ts | 2 +- src/app/app.routes.ts | 2 +- .../confirmation-modal.component.html | 10 +++++++++- src/app/create-link/create-link.component.html | 14 +++++++++++++- src/app/create-link/create-link.component.ts | 11 +++++------ src/app/dashboard/dashboard.component.html | 12 ++++-------- src/app/dashboard/dashboard.component.ts | 14 +++++++------- src/app/login/login.component.ts | 9 +++------ src/app/models/link.ts | 1 + src/app/service/auth.service.ts | 2 +- src/app/service/link.service.ts | 5 +++-- src/app/service/user.service.ts | 4 ++-- src/app/view-link/view-link.component.ts | 4 ++-- src/index.html | 2 +- src/main.ts | 2 +- 15 files changed, 54 insertions(+), 40 deletions(-) diff --git a/src/app/app.component.spec.ts b/src/app/app.component.spec.ts index 3fb9e53..467203d 100644 --- a/src/app/app.component.spec.ts +++ b/src/app/app.component.spec.ts @@ -25,7 +25,7 @@ describe('AppComponent', () => { fixture.detectChanges(); const compiled = fixture.nativeElement as HTMLElement; expect(compiled.querySelector('h1')?.textContent).toContain( - 'Hello, jklink', + 'Hello, jklink' ); }); }); diff --git a/src/app/app.routes.ts b/src/app/app.routes.ts index c9976fa..9168254 100644 --- a/src/app/app.routes.ts +++ b/src/app/app.routes.ts @@ -21,7 +21,7 @@ export const routes: Routes = [ canActivate: [AuthGuard], }, { - path: ':link', + path: ':slug', component: ViewLinkComponent, }, { diff --git a/src/app/confirmation-modal/confirmation-modal.component.html b/src/app/confirmation-modal/confirmation-modal.component.html index 13635d0..ed62bbc 100644 --- a/src/app/confirmation-modal/confirmation-modal.component.html +++ b/src/app/confirmation-modal/confirmation-modal.component.html @@ -1,6 +1,14 @@

{{ data.title }}

{{ data.description }} - + diff --git a/src/app/create-link/create-link.component.html b/src/app/create-link/create-link.component.html index 304eb92..5fc49cc 100644 --- a/src/app/create-link/create-link.component.html +++ b/src/app/create-link/create-link.component.html @@ -1,6 +1,13 @@
- @@ -20,6 +27,11 @@ placeholder="https://kjan.de" /> + + {{ errorMessages["slug"] }} + Custom slug (optional) + + diff --git a/src/app/create-link/create-link.component.ts b/src/app/create-link/create-link.component.ts index ebf9788..9ca3530 100644 --- a/src/app/create-link/create-link.component.ts +++ b/src/app/create-link/create-link.component.ts @@ -32,10 +32,7 @@ export class CreateLinkComponent { public requestFailed: boolean = false; public errorMessages: Record = {}; - constructor( - private linkService: LinkService, - private router: Router, - ) {} + constructor(private linkService: LinkService, private router: Router) {} private validationErrorMessages: Record = { required: 'This field is required', @@ -53,7 +50,7 @@ export class CreateLinkComponent { .map( (errorKey) => this.validationErrorMessages[errorKey] || - `Unknown error: ${errorKey}`, + `Unknown error: ${errorKey}` ) .join(' '); } @@ -70,9 +67,10 @@ export class CreateLinkComponent { link: new FormControl('', [ Validators.required, Validators.pattern( - /((([A-Za-z]{3,9}:(?:\/\/)?)(?:[-;:&=\+\$,\w]+@)?[A-Za-z0-9.-]+|(?:www.|[-;:&=\+\$,\w]+@)[A-Za-z0-9.-]+)((?:\/[\+~%\/.\w-_]*)?\??(?:[-\+=&;%@.\w_]*)#?(?:[\w]*))?)/, + /((([A-Za-z]{3,9}:(?:\/\/)?)(?:[-;:&=\+\$,\w]+@)?[A-Za-z0-9.-]+|(?:www.|[-;:&=\+\$,\w]+@)[A-Za-z0-9.-]+)((?:\/[\+~%\/.\w-_]*)?\??(?:[-\+=&;%@.\w_]*)#?(?:[\w]*))?)/ ), ]), + slug: new FormControl(''), }); this.createLinkForm.valueChanges.subscribe(() => { this.updateErrorMessages(); @@ -89,6 +87,7 @@ export class CreateLinkComponent { .createLink({ name: this.createLinkForm.get('name')?.value, link: this.createLinkForm.get('link')?.value, + slug: this.createLinkForm.get('slug')?.value, }) .catch(() => (this.requestFailed = true)) .finally(() => { diff --git a/src/app/dashboard/dashboard.component.html b/src/app/dashboard/dashboard.component.html index 21581f1..ca085e2 100644 --- a/src/app/dashboard/dashboard.component.html +++ b/src/app/dashboard/dashboard.component.html @@ -24,11 +24,11 @@ The actual rendered columns are set as a property on the row definition" --> - - ID + + Slug - {{ element.id }} + {{ element.slug }} @@ -49,11 +49,7 @@ Short link - diff --git a/src/app/dashboard/dashboard.component.ts b/src/app/dashboard/dashboard.component.ts index 6b8fee8..1acced3 100644 --- a/src/app/dashboard/dashboard.component.ts +++ b/src/app/dashboard/dashboard.component.ts @@ -27,7 +27,7 @@ import { AuthRecord } from 'pocketbase'; }) export class DashboardComponent { public links: Link[] = []; - displayedColumns: string[] = ['id', 'name', 'link', 'shortLink', 'actions']; + displayedColumns: string[] = ['slug', 'name', 'link', 'shortLink', 'actions']; public user!: AuthRecord; constructor( @@ -35,15 +35,15 @@ export class DashboardComponent { private router: Router, private dialog: MatDialog, private snackBar: MatSnackBar, - private userService: UserService, + private userService: UserService ) {} - copyLink(id: string) { - navigator.clipboard.writeText(this.getShortLink(id)); + copyLink(link: Link) { + navigator.clipboard.writeText(this.getShortLink(link)); } - getShortLink(id: string): string { - return 'https://' + window.location.hostname + '/' + id; + getShortLink(link: Link): string { + return 'https://' + window.location.hostname + '/' + link.slug; } goToLink(link: Link) { @@ -91,7 +91,7 @@ export class DashboardComponent { if (accepted) { this.linkService.deleteLink(link.id).catch(() => { const errorNotification = this.snackBar.open( - 'Something went wrong.', + 'Something went wrong.' ); setTimeout(() => { errorNotification.dismiss(); diff --git a/src/app/login/login.component.ts b/src/app/login/login.component.ts index 8d2b906..d05fa7a 100644 --- a/src/app/login/login.component.ts +++ b/src/app/login/login.component.ts @@ -35,10 +35,7 @@ export class LoginComponent { private pb = new PocketBase(environment.POCKETBASE); public errorMessages: Record = {}; - constructor( - private router: Router, - private snackBar: MatSnackBar, - ) {} + constructor(private router: Router, private snackBar: MatSnackBar) {} private validationErrorMessages: Record = { required: 'This field is required', @@ -55,7 +52,7 @@ export class LoginComponent { .map( (errorKey) => this.validationErrorMessages[errorKey] || - `Unknown error: ${errorKey}`, + `Unknown error: ${errorKey}` ) .join(' '); } @@ -105,7 +102,7 @@ export class LoginComponent { .collection('users') .authWithPassword( this.loginForm.get('email')?.value, - this.loginForm.get('password')?.value, + this.loginForm.get('password')?.value ) .then(() => { this.router.navigate(['dashboard']); diff --git a/src/app/models/link.ts b/src/app/models/link.ts index 0f961c3..86ce99a 100644 --- a/src/app/models/link.ts +++ b/src/app/models/link.ts @@ -3,4 +3,5 @@ export interface Link { link: string; name: string; owner: string; + slug: string; } diff --git a/src/app/service/auth.service.ts b/src/app/service/auth.service.ts index 4290efa..387a6c3 100644 --- a/src/app/service/auth.service.ts +++ b/src/app/service/auth.service.ts @@ -18,7 +18,7 @@ export class AuthGuard implements CanActivate { async canActivate( route: ActivatedRouteSnapshot, - state: RouterStateSnapshot, + state: RouterStateSnapshot ): Promise { const pb = new PocketBase(environment.POCKETBASE); await pb diff --git a/src/app/service/link.service.ts b/src/app/service/link.service.ts index 77c01ee..a4a3f91 100644 --- a/src/app/service/link.service.ts +++ b/src/app/service/link.service.ts @@ -13,8 +13,8 @@ export class LinkService { return this.pb.collection('links').getFullList(); } - getLink(id: string): Promise { - return this.pb.collection('links').getOne(id); + getLink(slug: string): Promise { + return this.pb.collection('links').getFirstListItem(`slug="${slug}"`); } deleteLink(id: string): Promise { @@ -26,6 +26,7 @@ export class LinkService { name: link.name, link: link.link, owner: this.pb.authStore.record?.id, + slug: link.slug, }); } } diff --git a/src/app/service/user.service.ts b/src/app/service/user.service.ts index ad6a555..6893b96 100644 --- a/src/app/service/user.service.ts +++ b/src/app/service/user.service.ts @@ -1,6 +1,6 @@ -import { Injectable } from "@angular/core"; +import { Injectable } from '@angular/core'; import PocketBase, { AuthRecord } from 'pocketbase'; -import { environment } from "../../environments/environment"; +import { environment } from '../../environments/environment'; @Injectable({ providedIn: 'root', diff --git a/src/app/view-link/view-link.component.ts b/src/app/view-link/view-link.component.ts index 635e560..c8fa572 100644 --- a/src/app/view-link/view-link.component.ts +++ b/src/app/view-link/view-link.component.ts @@ -12,12 +12,12 @@ export class ViewLinkComponent { constructor( private linkService: LinkService, private route: ActivatedRoute, - private router: Router, + private router: Router ) {} ngOnInit(): void { this.linkService - .getLink(this.route.snapshot.params['link']) + .getLink(this.route.snapshot.params['slug']) .then((link) => { window.location.href = link.link; }); diff --git a/src/index.html b/src/index.html index 9d15f1b..b554755 100644 --- a/src/index.html +++ b/src/index.html @@ -1,4 +1,4 @@ - + diff --git a/src/main.ts b/src/main.ts index 8882c45..514c89a 100644 --- a/src/main.ts +++ b/src/main.ts @@ -3,5 +3,5 @@ import { appConfig } from './app/app.config'; import { AppComponent } from './app/app.component'; bootstrapApplication(AppComponent, appConfig).catch((err) => - console.error(err), + console.error(err) ); From 0dba945ac2c93dd4b1eeefaac060050999db88f9 Mon Sep 17 00:00:00 2001 From: Jan Klattenhoff Date: Sat, 25 Jan 2025 18:03:52 +0100 Subject: [PATCH 04/24] feat(create-link): Add snackbar notification for slug conflict --- src/app/create-link/create-link.component.ts | 22 ++++++++++++++++---- 1 file changed, 18 insertions(+), 4 deletions(-) diff --git a/src/app/create-link/create-link.component.ts b/src/app/create-link/create-link.component.ts index 9ca3530..8d3eb08 100644 --- a/src/app/create-link/create-link.component.ts +++ b/src/app/create-link/create-link.component.ts @@ -13,6 +13,8 @@ import { MatInputModule, MatLabel } from '@angular/material/input'; import { MatFormFieldModule } from '@angular/material/form-field'; import { MatButtonModule } from '@angular/material/button'; import { debounceTime } from 'rxjs'; +import { AsyncPipe } from '@angular/common'; +import { MatSnackBar } from '@angular/material/snack-bar'; @Component({ selector: 'app-create-link', @@ -32,7 +34,11 @@ export class CreateLinkComponent { public requestFailed: boolean = false; public errorMessages: Record = {}; - constructor(private linkService: LinkService, private router: Router) {} + constructor( + private linkService: LinkService, + private router: Router, + private snackBar: MatSnackBar, + ) {} private validationErrorMessages: Record = { required: 'This field is required', @@ -50,7 +56,7 @@ export class CreateLinkComponent { .map( (errorKey) => this.validationErrorMessages[errorKey] || - `Unknown error: ${errorKey}` + `Unknown error: ${errorKey}`, ) .join(' '); } @@ -67,7 +73,7 @@ export class CreateLinkComponent { link: new FormControl('', [ Validators.required, Validators.pattern( - /((([A-Za-z]{3,9}:(?:\/\/)?)(?:[-;:&=\+\$,\w]+@)?[A-Za-z0-9.-]+|(?:www.|[-;:&=\+\$,\w]+@)[A-Za-z0-9.-]+)((?:\/[\+~%\/.\w-_]*)?\??(?:[-\+=&;%@.\w_]*)#?(?:[\w]*))?)/ + /((([A-Za-z]{3,9}:(?:\/\/)?)(?:[-;:&=\+\$,\w]+@)?[A-Za-z0-9.-]+|(?:www.|[-;:&=\+\$,\w]+@)[A-Za-z0-9.-]+)((?:\/[\+~%\/.\w-_]*)?\??(?:[-\+=&;%@.\w_]*)#?(?:[\w]*))?)/, ), ]), slug: new FormControl(''), @@ -89,7 +95,15 @@ export class CreateLinkComponent { link: this.createLinkForm.get('link')?.value, slug: this.createLinkForm.get('slug')?.value, }) - .catch(() => (this.requestFailed = true)) + .catch(() => { + this.requestFailed = true; + const notification = this.snackBar.open( + 'The slug is already used please use another slug.', + ); + setTimeout(() => { + notification.dismiss(); + }, 5000); + }) .finally(() => { if (!this.requestFailed) { this.router.navigate(['dashboard']); From 60789a01de4c9ddd4f66ac446d7920d16c370c67 Mon Sep 17 00:00:00 2001 From: Jan Klattenhoff Date: Sat, 25 Jan 2025 20:05:14 +0100 Subject: [PATCH 05/24] style(login): Adjust layout and spacing in login component --- src/app/login/login.component.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/app/login/login.component.html b/src/app/login/login.component.html index e2dd4c0..f6a3b67 100644 --- a/src/app/login/login.component.html +++ b/src/app/login/login.component.html @@ -1,5 +1,5 @@ -
- +
+

Login

From f75b720d3fde82f7f661619211bd07ec9f4cd57d Mon Sep 17 00:00:00 2001 From: Jan Gleytenhoover Date: Sun, 26 Jan 2025 17:31:43 +0000 Subject: [PATCH 06/24] Add .gitea/workflows/release-new.yml --- .gitea/workflows/release-new.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .gitea/workflows/release-new.yml diff --git a/.gitea/workflows/release-new.yml b/.gitea/workflows/release-new.yml new file mode 100644 index 0000000..c5ed8dd --- /dev/null +++ b/.gitea/workflows/release-new.yml @@ -0,0 +1,24 @@ +on: + push: + branches: + - main + +permissions: + contents: write + pull-requests: write + +name: release-please + +jobs: + release-please: + runs-on: ubuntu-latest + steps: + - uses: joaquinjsb/gitea-release-please-action@v4 + with: + # this assumes that you have created a personal access token + # (PAT) and configured it as a GitHub action secret named + # `MY_RELEASE_PLEASE_TOKEN` (this secret name is not important). + token: ${{ secrets.MY_RELEASE_PLEASE_TOKEN }} + # this is a built-in strategy in release-please, see "Action Inputs" + # for more options + release-type: node \ No newline at end of file From c300036c8aa1d9bff8a780e16f6c0491452820de Mon Sep 17 00:00:00 2001 From: Jan Gleytenhoover Date: Sun, 26 Jan 2025 17:38:19 +0000 Subject: [PATCH 07/24] Update .gitea/workflows/release-new.yml --- .gitea/workflows/release-new.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.gitea/workflows/release-new.yml b/.gitea/workflows/release-new.yml index c5ed8dd..288db39 100644 --- a/.gitea/workflows/release-new.yml +++ b/.gitea/workflows/release-new.yml @@ -21,4 +21,5 @@ jobs: token: ${{ secrets.MY_RELEASE_PLEASE_TOKEN }} # this is a built-in strategy in release-please, see "Action Inputs" # for more options - release-type: node \ No newline at end of file + release-type: node + target-branch: prod \ No newline at end of file From 4e93120439b142705a7c6d9395e5dd956026faae Mon Sep 17 00:00:00 2001 From: Jan Gleytenhoover Date: Sun, 26 Jan 2025 17:48:05 +0000 Subject: [PATCH 08/24] Update .gitea/workflows/release-new.yml --- .gitea/workflows/release-new.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitea/workflows/release-new.yml b/.gitea/workflows/release-new.yml index 288db39..165e5be 100644 --- a/.gitea/workflows/release-new.yml +++ b/.gitea/workflows/release-new.yml @@ -18,7 +18,7 @@ jobs: # this assumes that you have created a personal access token # (PAT) and configured it as a GitHub action secret named # `MY_RELEASE_PLEASE_TOKEN` (this secret name is not important). - token: ${{ secrets.MY_RELEASE_PLEASE_TOKEN }} + token: ${{ secrets.GITHUB_TOKEN }} # this is a built-in strategy in release-please, see "Action Inputs" # for more options release-type: node From d98435b21e317ba332e047aa4ca1ab59583d8cca Mon Sep 17 00:00:00 2001 From: Jan Gleytenhoover Date: Sun, 26 Jan 2025 17:50:56 +0000 Subject: [PATCH 09/24] Update .gitea/workflows/release-new.yml --- .gitea/workflows/release-new.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitea/workflows/release-new.yml b/.gitea/workflows/release-new.yml index 165e5be..d97ac6e 100644 --- a/.gitea/workflows/release-new.yml +++ b/.gitea/workflows/release-new.yml @@ -21,5 +21,5 @@ jobs: token: ${{ secrets.GITHUB_TOKEN }} # this is a built-in strategy in release-please, see "Action Inputs" # for more options - release-type: node + release-type: simple target-branch: prod \ No newline at end of file From 77037601a24d295ff84ec28ebbf034c5038324be Mon Sep 17 00:00:00 2001 From: Jan Gleytenhoover Date: Sun, 26 Jan 2025 18:00:07 +0000 Subject: [PATCH 10/24] Update .gitea/workflows/release-new.yml --- .gitea/workflows/release-new.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitea/workflows/release-new.yml b/.gitea/workflows/release-new.yml index d97ac6e..74ebb4b 100644 --- a/.gitea/workflows/release-new.yml +++ b/.gitea/workflows/release-new.yml @@ -18,7 +18,7 @@ jobs: # this assumes that you have created a personal access token # (PAT) and configured it as a GitHub action secret named # `MY_RELEASE_PLEASE_TOKEN` (this secret name is not important). - token: ${{ secrets.GITHUB_TOKEN }} + token: ${{ secrets.MY_RELEASE_PLEASE_TOKEN }} # this is a built-in strategy in release-please, see "Action Inputs" # for more options release-type: simple From 469d6bbf6d5af12617ebd5ca3d7423588e8b4046 Mon Sep 17 00:00:00 2001 From: Jan Gleytenhoover Date: Sun, 26 Jan 2025 18:19:10 +0000 Subject: [PATCH 11/24] Update .gitea/workflows/release-new.yml --- .gitea/workflows/release-new.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.gitea/workflows/release-new.yml b/.gitea/workflows/release-new.yml index 74ebb4b..65f5ba1 100644 --- a/.gitea/workflows/release-new.yml +++ b/.gitea/workflows/release-new.yml @@ -19,6 +19,8 @@ jobs: # (PAT) and configured it as a GitHub action secret named # `MY_RELEASE_PLEASE_TOKEN` (this secret name is not important). token: ${{ secrets.MY_RELEASE_PLEASE_TOKEN }} + git-username: ${{ secrets.RL_USER }} + git-password: ${{ secrets.RL_PASSWD }} # this is a built-in strategy in release-please, see "Action Inputs" # for more options release-type: simple From 0ccfbf5e695e0dd5bd0815f45d3b697ec56720d1 Mon Sep 17 00:00:00 2001 From: "Gitea Actions [Bot]" Date: Sun, 26 Jan 2025 18:24:08 +0000 Subject: [PATCH 12/24] chore(prod): release 1.6.0 --- CHANGELOG.md | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 CHANGELOG.md diff --git a/CHANGELOG.md b/CHANGELOG.md new file mode 100644 index 0000000..46ed354 --- /dev/null +++ b/CHANGELOG.md @@ -0,0 +1,24 @@ +# Changelog + +## [1.6.0](https://git.kjan.de/jank/jklink/compare/v1.5.0...v1.6.0) (2025-01-26) + + +### Features + +* add Angular Material and refactor UI components ([6317c97](https://git.kjan.de/jank/jklink/commit/6317c97d96ae28bd8f3cb9e63abffd6e2747532e)) +* Add custom slug support for links ([8e18324](https://git.kjan.de/jank/jklink/commit/8e1832416ba4f98543fcd1240ea0c0cc1425af21)) +* **auth:** use async in canActivate for auth refresh ([eadd831](https://git.kjan.de/jank/jklink/commit/eadd831e3f1e0c2082d0a7ee3acfedf7f40fea74)) +* **create-link:** add create link component and routing ([00a7688](https://git.kjan.de/jank/jklink/commit/00a7688ef9bc86f0cc707343123a62d8c7db1181)) +* **create-link:** Add snackbar notification for slug conflict ([0dba945](https://git.kjan.de/jank/jklink/commit/0dba945ac2c93dd4b1eeefaac060050999db88f9)) +* **dashboard:** add copy link button to dashboard table ([50cb62e](https://git.kjan.de/jank/jklink/commit/50cb62e56d0f68320f2aea93cb0571398c314e05)) +* **dashboard:** add link confirmation dialog before navigation ([4c77b4f](https://git.kjan.de/jank/jklink/commit/4c77b4f139fd6c88a1eedcbc450b3e489a46e20d)) +* **dashboard:** add links to element IDs in dashboard table ([8302387](https://git.kjan.de/jank/jklink/commit/8302387aa73dfa0411f81c26dcc1fd0467209f87)) +* **dashboard:** add options menu and improve layout ([ba520ee](https://git.kjan.de/jank/jklink/commit/ba520eea10ab32e8d76a09454033080843b87f47)) +* **dashboard:** add snack bar notifications for link actions ([3e0b17e](https://git.kjan.de/jank/jklink/commit/3e0b17ebe61edf69f3f9f3d22189338e23170240)) +* **dashboard:** add user greeting to dashboard component ([311fd89](https://git.kjan.de/jank/jklink/commit/311fd89c7b1ffcafb7491c4c884a12ac1f2ea490)) +* **dashboard:** update getShortLink to use HTTPS ([8b08c66](https://git.kjan.de/jank/jklink/commit/8b08c6616c9e4856c3f0a305bbfbc8803842dd46)) +* **login:** add Authentik login button and functionality ([cb658a7](https://git.kjan.de/jank/jklink/commit/cb658a77210499a2d731d4448f4030f01c5fc160)) +* **login:** update login form with material design elements ([b218697](https://git.kjan.de/jank/jklink/commit/b2186978673e5223e5d10c7b1dfdc0326acf00a3)) +* **options-menu:** add xPosition to mat-menu component ([fdfe92a](https://git.kjan.de/jank/jklink/commit/fdfe92a23242532d2e1a56494b1fa4a97a38937e)) +* update deleteLink to use link object directly ([e0d9b82](https://git.kjan.de/jank/jklink/commit/e0d9b8295eb876a4b7629ae055b51cf98bd58a90)) +* **view-link:** add ViewLink component and routing logic ([79fc66e](https://git.kjan.de/jank/jklink/commit/79fc66ef6b4bb0edf62531d46d325c33b05dbcdd)) From 3558a0f1b8be5ae0c73f50c72ddd9c7f196b9775 Mon Sep 17 00:00:00 2001 From: Jan Klattenhoff Date: Sun, 26 Jan 2025 19:28:13 +0100 Subject: [PATCH 13/24] style(login): Update login page title text --- src/app/login/login.component.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/login/login.component.html b/src/app/login/login.component.html index f6a3b67..d559138 100644 --- a/src/app/login/login.component.html +++ b/src/app/login/login.component.html @@ -1,7 +1,7 @@
-

Login

+

Login to jklink

From 7d5e98567883eb297e2df96a71ac6091314b7344 Mon Sep 17 00:00:00 2001 From: "Gitea Actions [Bot]" Date: Sun, 26 Jan 2025 18:43:07 +0000 Subject: [PATCH 14/24] chore(prod): release 1.0.0 --- CHANGELOG.md | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 46ed354..68a1939 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,27 @@ # Changelog +## 1.0.0 (2025-01-26) + + +### Features + +* add Angular Material and refactor UI components ([6317c97](https://git.kjan.de/jank/jklink/commit/6317c97d96ae28bd8f3cb9e63abffd6e2747532e)) +* Add custom slug support for links ([8e18324](https://git.kjan.de/jank/jklink/commit/8e1832416ba4f98543fcd1240ea0c0cc1425af21)) +* **create-link:** add create link component and routing ([00a7688](https://git.kjan.de/jank/jklink/commit/00a7688ef9bc86f0cc707343123a62d8c7db1181)) +* **create-link:** Add snackbar notification for slug conflict ([0dba945](https://git.kjan.de/jank/jklink/commit/0dba945ac2c93dd4b1eeefaac060050999db88f9)) +* **dashboard:** add copy link button to dashboard table ([50cb62e](https://git.kjan.de/jank/jklink/commit/50cb62e56d0f68320f2aea93cb0571398c314e05)) +* **dashboard:** add link confirmation dialog before navigation ([4c77b4f](https://git.kjan.de/jank/jklink/commit/4c77b4f139fd6c88a1eedcbc450b3e489a46e20d)) +* **dashboard:** add links to element IDs in dashboard table ([8302387](https://git.kjan.de/jank/jklink/commit/8302387aa73dfa0411f81c26dcc1fd0467209f87)) +* **dashboard:** add options menu and improve layout ([ba520ee](https://git.kjan.de/jank/jklink/commit/ba520eea10ab32e8d76a09454033080843b87f47)) +* **dashboard:** add snack bar notifications for link actions ([3e0b17e](https://git.kjan.de/jank/jklink/commit/3e0b17ebe61edf69f3f9f3d22189338e23170240)) +* **dashboard:** add user greeting to dashboard component ([311fd89](https://git.kjan.de/jank/jklink/commit/311fd89c7b1ffcafb7491c4c884a12ac1f2ea490)) +* **dashboard:** update getShortLink to use HTTPS ([8b08c66](https://git.kjan.de/jank/jklink/commit/8b08c6616c9e4856c3f0a305bbfbc8803842dd46)) +* **login:** add Authentik login button and functionality ([cb658a7](https://git.kjan.de/jank/jklink/commit/cb658a77210499a2d731d4448f4030f01c5fc160)) +* **login:** update login form with material design elements ([b218697](https://git.kjan.de/jank/jklink/commit/b2186978673e5223e5d10c7b1dfdc0326acf00a3)) +* **options-menu:** add xPosition to mat-menu component ([fdfe92a](https://git.kjan.de/jank/jklink/commit/fdfe92a23242532d2e1a56494b1fa4a97a38937e)) +* update deleteLink to use link object directly ([e0d9b82](https://git.kjan.de/jank/jklink/commit/e0d9b8295eb876a4b7629ae055b51cf98bd58a90)) +* **view-link:** add ViewLink component and routing logic ([79fc66e](https://git.kjan.de/jank/jklink/commit/79fc66ef6b4bb0edf62531d46d325c33b05dbcdd)) + ## [1.6.0](https://git.kjan.de/jank/jklink/compare/v1.5.0...v1.6.0) (2025-01-26) From 145206224efe59fc4009d7b4bdeaacbffa672c93 Mon Sep 17 00:00:00 2001 From: Jan Klattenhoff Date: Sun, 26 Jan 2025 19:45:18 +0100 Subject: [PATCH 15/24] ci: update target branch in release workflow to main --- .gitea/workflows/release-new.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitea/workflows/release-new.yml b/.gitea/workflows/release-new.yml index 65f5ba1..db67b85 100644 --- a/.gitea/workflows/release-new.yml +++ b/.gitea/workflows/release-new.yml @@ -24,4 +24,4 @@ jobs: # this is a built-in strategy in release-please, see "Action Inputs" # for more options release-type: simple - target-branch: prod \ No newline at end of file + target-branch: main \ No newline at end of file From 60cb0349ce2dc1b516ef05c87a6ffe30781ded52 Mon Sep 17 00:00:00 2001 From: "Gitea Actions [Bot]" Date: Sun, 26 Jan 2025 18:46:54 +0000 Subject: [PATCH 16/24] chore(main): release 1.0.0 --- CHANGELOG.md | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 CHANGELOG.md diff --git a/CHANGELOG.md b/CHANGELOG.md new file mode 100644 index 0000000..6b38b99 --- /dev/null +++ b/CHANGELOG.md @@ -0,0 +1,23 @@ +# Changelog + +## 1.0.0 (2025-01-26) + + +### Features + +* add Angular Material and refactor UI components ([6317c97](https://git.kjan.de/jank/jklink/commit/6317c97d96ae28bd8f3cb9e63abffd6e2747532e)) +* Add custom slug support for links ([8e18324](https://git.kjan.de/jank/jklink/commit/8e1832416ba4f98543fcd1240ea0c0cc1425af21)) +* **create-link:** add create link component and routing ([00a7688](https://git.kjan.de/jank/jklink/commit/00a7688ef9bc86f0cc707343123a62d8c7db1181)) +* **create-link:** Add snackbar notification for slug conflict ([0dba945](https://git.kjan.de/jank/jklink/commit/0dba945ac2c93dd4b1eeefaac060050999db88f9)) +* **dashboard:** add copy link button to dashboard table ([50cb62e](https://git.kjan.de/jank/jklink/commit/50cb62e56d0f68320f2aea93cb0571398c314e05)) +* **dashboard:** add link confirmation dialog before navigation ([4c77b4f](https://git.kjan.de/jank/jklink/commit/4c77b4f139fd6c88a1eedcbc450b3e489a46e20d)) +* **dashboard:** add links to element IDs in dashboard table ([8302387](https://git.kjan.de/jank/jklink/commit/8302387aa73dfa0411f81c26dcc1fd0467209f87)) +* **dashboard:** add options menu and improve layout ([ba520ee](https://git.kjan.de/jank/jklink/commit/ba520eea10ab32e8d76a09454033080843b87f47)) +* **dashboard:** add snack bar notifications for link actions ([3e0b17e](https://git.kjan.de/jank/jklink/commit/3e0b17ebe61edf69f3f9f3d22189338e23170240)) +* **dashboard:** add user greeting to dashboard component ([311fd89](https://git.kjan.de/jank/jklink/commit/311fd89c7b1ffcafb7491c4c884a12ac1f2ea490)) +* **dashboard:** update getShortLink to use HTTPS ([8b08c66](https://git.kjan.de/jank/jklink/commit/8b08c6616c9e4856c3f0a305bbfbc8803842dd46)) +* **login:** add Authentik login button and functionality ([cb658a7](https://git.kjan.de/jank/jklink/commit/cb658a77210499a2d731d4448f4030f01c5fc160)) +* **login:** update login form with material design elements ([b218697](https://git.kjan.de/jank/jklink/commit/b2186978673e5223e5d10c7b1dfdc0326acf00a3)) +* **options-menu:** add xPosition to mat-menu component ([fdfe92a](https://git.kjan.de/jank/jklink/commit/fdfe92a23242532d2e1a56494b1fa4a97a38937e)) +* update deleteLink to use link object directly ([e0d9b82](https://git.kjan.de/jank/jklink/commit/e0d9b8295eb876a4b7629ae055b51cf98bd58a90)) +* **view-link:** add ViewLink component and routing logic ([79fc66e](https://git.kjan.de/jank/jklink/commit/79fc66ef6b4bb0edf62531d46d325c33b05dbcdd)) From 028344d02ccd855d53bdd31d58a6ca50f0915f6e Mon Sep 17 00:00:00 2001 From: Jan Klattenhoff Date: Sun, 26 Jan 2025 19:53:27 +0100 Subject: [PATCH 17/24] ci: Add major and minor version tagging to release workflow --- .gitea/workflows/release-new.yml | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/.gitea/workflows/release-new.yml b/.gitea/workflows/release-new.yml index db67b85..26ec1b0 100644 --- a/.gitea/workflows/release-new.yml +++ b/.gitea/workflows/release-new.yml @@ -24,4 +24,19 @@ jobs: # this is a built-in strategy in release-please, see "Action Inputs" # for more options release-type: simple - target-branch: main \ No newline at end of file + target-branch: main + - uses: actions/checkout@v4 + - name: tag major and minor versions + if: ${{ steps.release.outputs.release_created }} + run: | + git config user.name github-actions[bot] + git config user.email 41898282+github-actions[bot]@users.noreply.github.com + git remote add gh-token "https://${{ secrets.GITHUB_TOKEN }}@github.com/joaquinjsb/gitea-release-please-action.git" + git tag -d v${{ steps.release.outputs.major }} || true + git tag -d v${{ steps.release.outputs.major }}.${{ steps.release.outputs.minor }} || true + git push origin :v${{ steps.release.outputs.major }} || true + git push origin :v${{ steps.release.outputs.major }}.${{ steps.release.outputs.minor }} || true + git tag -a v${{ steps.release.outputs.major }} -m "Release v${{ steps.release.outputs.major }}" + git tag -a v${{ steps.release.outputs.major }}.${{ steps.release.outputs.minor }} -m "Release v${{ steps.release.outputs.major }}.${{ steps.release.outputs.minor }}" + git push origin v${{ steps.release.outputs.major }} + git push origin v${{ steps.release.outputs.major }}.${{ steps.release.outputs.minor }} \ No newline at end of file From 0e35431819d514cbc1ef80de2be19d6124c320a5 Mon Sep 17 00:00:00 2001 From: "Gitea Actions [Bot]" Date: Sun, 26 Jan 2025 18:55:26 +0000 Subject: [PATCH 18/24] chore(main): release 1.1.0 --- CHANGELOG.md | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 6b38b99..2f5e55b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,25 @@ # Changelog +## [1.1.0](https://git.kjan.de/jank/jklink/compare/v1.0.0...v1.1.0) (2025-01-26) + + +### Features + +* Add custom slug support for links ([8e18324](https://git.kjan.de/jank/jklink/commit/8e1832416ba4f98543fcd1240ea0c0cc1425af21)) +* **create-link:** Add snackbar notification for slug conflict ([0dba945](https://git.kjan.de/jank/jklink/commit/0dba945ac2c93dd4b1eeefaac060050999db88f9)) +* **dashboard:** add copy link button to dashboard table ([50cb62e](https://git.kjan.de/jank/jklink/commit/50cb62e56d0f68320f2aea93cb0571398c314e05)) +* **dashboard:** add link confirmation dialog before navigation ([4c77b4f](https://git.kjan.de/jank/jklink/commit/4c77b4f139fd6c88a1eedcbc450b3e489a46e20d)) +* **dashboard:** add links to element IDs in dashboard table ([8302387](https://git.kjan.de/jank/jklink/commit/8302387aa73dfa0411f81c26dcc1fd0467209f87)) +* **dashboard:** add options menu and improve layout ([ba520ee](https://git.kjan.de/jank/jklink/commit/ba520eea10ab32e8d76a09454033080843b87f47)) +* **dashboard:** add snack bar notifications for link actions ([3e0b17e](https://git.kjan.de/jank/jklink/commit/3e0b17ebe61edf69f3f9f3d22189338e23170240)) +* **dashboard:** add user greeting to dashboard component ([311fd89](https://git.kjan.de/jank/jklink/commit/311fd89c7b1ffcafb7491c4c884a12ac1f2ea490)) +* **dashboard:** update getShortLink to use HTTPS ([8b08c66](https://git.kjan.de/jank/jklink/commit/8b08c6616c9e4856c3f0a305bbfbc8803842dd46)) +* **login:** add Authentik login button and functionality ([cb658a7](https://git.kjan.de/jank/jklink/commit/cb658a77210499a2d731d4448f4030f01c5fc160)) +* **login:** update login form with material design elements ([b218697](https://git.kjan.de/jank/jklink/commit/b2186978673e5223e5d10c7b1dfdc0326acf00a3)) +* **options-menu:** add xPosition to mat-menu component ([fdfe92a](https://git.kjan.de/jank/jklink/commit/fdfe92a23242532d2e1a56494b1fa4a97a38937e)) +* update deleteLink to use link object directly ([e0d9b82](https://git.kjan.de/jank/jklink/commit/e0d9b8295eb876a4b7629ae055b51cf98bd58a90)) +* **view-link:** add ViewLink component and routing logic ([79fc66e](https://git.kjan.de/jank/jklink/commit/79fc66ef6b4bb0edf62531d46d325c33b05dbcdd)) + ## 1.0.0 (2025-01-26) From 542994205fc2e0ed53e030adfc2a992b1d078d40 Mon Sep 17 00:00:00 2001 From: Jan Klattenhoff Date: Sun, 26 Jan 2025 20:09:18 +0100 Subject: [PATCH 19/24] ci: Add release step to workflow --- .gitea/workflows/release-new.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.gitea/workflows/release-new.yml b/.gitea/workflows/release-new.yml index 26ec1b0..ca27b6e 100644 --- a/.gitea/workflows/release-new.yml +++ b/.gitea/workflows/release-new.yml @@ -13,6 +13,7 @@ jobs: release-please: runs-on: ubuntu-latest steps: + - name: release - uses: joaquinjsb/gitea-release-please-action@v4 with: # this assumes that you have created a personal access token From 4a0ece5e6b73a2a67847876d1bb79d9fb42da2e2 Mon Sep 17 00:00:00 2001 From: Jan Klattenhoff Date: Sun, 26 Jan 2025 20:10:16 +0100 Subject: [PATCH 20/24] ci: fix indentation in release workflow --- .gitea/workflows/release-new.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitea/workflows/release-new.yml b/.gitea/workflows/release-new.yml index ca27b6e..9ab967d 100644 --- a/.gitea/workflows/release-new.yml +++ b/.gitea/workflows/release-new.yml @@ -14,7 +14,7 @@ jobs: runs-on: ubuntu-latest steps: - name: release - - uses: joaquinjsb/gitea-release-please-action@v4 + uses: joaquinjsb/gitea-release-please-action@v4 with: # this assumes that you have created a personal access token # (PAT) and configured it as a GitHub action secret named From 46885e7ca6f139b10e61fa56663553b4a76f28be Mon Sep 17 00:00:00 2001 From: "Gitea Actions [Bot]" Date: Sun, 26 Jan 2025 19:11:58 +0000 Subject: [PATCH 21/24] chore(main): release 1.2.0 --- CHANGELOG.md | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 2f5e55b..f71b717 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,23 @@ # Changelog +## [1.2.0](https://git.kjan.de/jank/jklink/compare/v1.1.0...v1.2.0) (2025-01-26) + + +### Features + +* Add custom slug support for links ([8e18324](https://git.kjan.de/jank/jklink/commit/8e1832416ba4f98543fcd1240ea0c0cc1425af21)) +* **create-link:** Add snackbar notification for slug conflict ([0dba945](https://git.kjan.de/jank/jklink/commit/0dba945ac2c93dd4b1eeefaac060050999db88f9)) +* **dashboard:** add link confirmation dialog before navigation ([4c77b4f](https://git.kjan.de/jank/jklink/commit/4c77b4f139fd6c88a1eedcbc450b3e489a46e20d)) +* **dashboard:** add links to element IDs in dashboard table ([8302387](https://git.kjan.de/jank/jklink/commit/8302387aa73dfa0411f81c26dcc1fd0467209f87)) +* **dashboard:** add options menu and improve layout ([ba520ee](https://git.kjan.de/jank/jklink/commit/ba520eea10ab32e8d76a09454033080843b87f47)) +* **dashboard:** add snack bar notifications for link actions ([3e0b17e](https://git.kjan.de/jank/jklink/commit/3e0b17ebe61edf69f3f9f3d22189338e23170240)) +* **dashboard:** add user greeting to dashboard component ([311fd89](https://git.kjan.de/jank/jklink/commit/311fd89c7b1ffcafb7491c4c884a12ac1f2ea490)) +* **dashboard:** update getShortLink to use HTTPS ([8b08c66](https://git.kjan.de/jank/jklink/commit/8b08c6616c9e4856c3f0a305bbfbc8803842dd46)) +* **login:** add Authentik login button and functionality ([cb658a7](https://git.kjan.de/jank/jklink/commit/cb658a77210499a2d731d4448f4030f01c5fc160)) +* **login:** update login form with material design elements ([b218697](https://git.kjan.de/jank/jklink/commit/b2186978673e5223e5d10c7b1dfdc0326acf00a3)) +* **options-menu:** add xPosition to mat-menu component ([fdfe92a](https://git.kjan.de/jank/jklink/commit/fdfe92a23242532d2e1a56494b1fa4a97a38937e)) +* update deleteLink to use link object directly ([e0d9b82](https://git.kjan.de/jank/jklink/commit/e0d9b8295eb876a4b7629ae055b51cf98bd58a90)) + ## [1.1.0](https://git.kjan.de/jank/jklink/compare/v1.0.0...v1.1.0) (2025-01-26) From f69b3bb7596e477b2d8eb01f9b3fa12c9ccfebc6 Mon Sep 17 00:00:00 2001 From: Jan Klattenhoff Date: Sat, 15 Mar 2025 19:01:38 +0100 Subject: [PATCH 22/24] feat: add chat support to index.html --- src/index.html | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/index.html b/src/index.html index b554755..44defb9 100644 --- a/src/index.html +++ b/src/index.html @@ -17,5 +17,14 @@ + + From f69a3a90281590f3c48ec4e6f5edae70534d6f8e Mon Sep 17 00:00:00 2001 From: jank Date: Sat, 15 Mar 2025 18:06:16 +0000 Subject: [PATCH 23/24] Delete CHANGELOG.md --- CHANGELOG.md | 61 ---------------------------------------------------- 1 file changed, 61 deletions(-) delete mode 100644 CHANGELOG.md diff --git a/CHANGELOG.md b/CHANGELOG.md deleted file mode 100644 index f71b717..0000000 --- a/CHANGELOG.md +++ /dev/null @@ -1,61 +0,0 @@ -# Changelog - -## [1.2.0](https://git.kjan.de/jank/jklink/compare/v1.1.0...v1.2.0) (2025-01-26) - - -### Features - -* Add custom slug support for links ([8e18324](https://git.kjan.de/jank/jklink/commit/8e1832416ba4f98543fcd1240ea0c0cc1425af21)) -* **create-link:** Add snackbar notification for slug conflict ([0dba945](https://git.kjan.de/jank/jklink/commit/0dba945ac2c93dd4b1eeefaac060050999db88f9)) -* **dashboard:** add link confirmation dialog before navigation ([4c77b4f](https://git.kjan.de/jank/jklink/commit/4c77b4f139fd6c88a1eedcbc450b3e489a46e20d)) -* **dashboard:** add links to element IDs in dashboard table ([8302387](https://git.kjan.de/jank/jklink/commit/8302387aa73dfa0411f81c26dcc1fd0467209f87)) -* **dashboard:** add options menu and improve layout ([ba520ee](https://git.kjan.de/jank/jklink/commit/ba520eea10ab32e8d76a09454033080843b87f47)) -* **dashboard:** add snack bar notifications for link actions ([3e0b17e](https://git.kjan.de/jank/jklink/commit/3e0b17ebe61edf69f3f9f3d22189338e23170240)) -* **dashboard:** add user greeting to dashboard component ([311fd89](https://git.kjan.de/jank/jklink/commit/311fd89c7b1ffcafb7491c4c884a12ac1f2ea490)) -* **dashboard:** update getShortLink to use HTTPS ([8b08c66](https://git.kjan.de/jank/jklink/commit/8b08c6616c9e4856c3f0a305bbfbc8803842dd46)) -* **login:** add Authentik login button and functionality ([cb658a7](https://git.kjan.de/jank/jklink/commit/cb658a77210499a2d731d4448f4030f01c5fc160)) -* **login:** update login form with material design elements ([b218697](https://git.kjan.de/jank/jklink/commit/b2186978673e5223e5d10c7b1dfdc0326acf00a3)) -* **options-menu:** add xPosition to mat-menu component ([fdfe92a](https://git.kjan.de/jank/jklink/commit/fdfe92a23242532d2e1a56494b1fa4a97a38937e)) -* update deleteLink to use link object directly ([e0d9b82](https://git.kjan.de/jank/jklink/commit/e0d9b8295eb876a4b7629ae055b51cf98bd58a90)) - -## [1.1.0](https://git.kjan.de/jank/jklink/compare/v1.0.0...v1.1.0) (2025-01-26) - - -### Features - -* Add custom slug support for links ([8e18324](https://git.kjan.de/jank/jklink/commit/8e1832416ba4f98543fcd1240ea0c0cc1425af21)) -* **create-link:** Add snackbar notification for slug conflict ([0dba945](https://git.kjan.de/jank/jklink/commit/0dba945ac2c93dd4b1eeefaac060050999db88f9)) -* **dashboard:** add copy link button to dashboard table ([50cb62e](https://git.kjan.de/jank/jklink/commit/50cb62e56d0f68320f2aea93cb0571398c314e05)) -* **dashboard:** add link confirmation dialog before navigation ([4c77b4f](https://git.kjan.de/jank/jklink/commit/4c77b4f139fd6c88a1eedcbc450b3e489a46e20d)) -* **dashboard:** add links to element IDs in dashboard table ([8302387](https://git.kjan.de/jank/jklink/commit/8302387aa73dfa0411f81c26dcc1fd0467209f87)) -* **dashboard:** add options menu and improve layout ([ba520ee](https://git.kjan.de/jank/jklink/commit/ba520eea10ab32e8d76a09454033080843b87f47)) -* **dashboard:** add snack bar notifications for link actions ([3e0b17e](https://git.kjan.de/jank/jklink/commit/3e0b17ebe61edf69f3f9f3d22189338e23170240)) -* **dashboard:** add user greeting to dashboard component ([311fd89](https://git.kjan.de/jank/jklink/commit/311fd89c7b1ffcafb7491c4c884a12ac1f2ea490)) -* **dashboard:** update getShortLink to use HTTPS ([8b08c66](https://git.kjan.de/jank/jklink/commit/8b08c6616c9e4856c3f0a305bbfbc8803842dd46)) -* **login:** add Authentik login button and functionality ([cb658a7](https://git.kjan.de/jank/jklink/commit/cb658a77210499a2d731d4448f4030f01c5fc160)) -* **login:** update login form with material design elements ([b218697](https://git.kjan.de/jank/jklink/commit/b2186978673e5223e5d10c7b1dfdc0326acf00a3)) -* **options-menu:** add xPosition to mat-menu component ([fdfe92a](https://git.kjan.de/jank/jklink/commit/fdfe92a23242532d2e1a56494b1fa4a97a38937e)) -* update deleteLink to use link object directly ([e0d9b82](https://git.kjan.de/jank/jklink/commit/e0d9b8295eb876a4b7629ae055b51cf98bd58a90)) -* **view-link:** add ViewLink component and routing logic ([79fc66e](https://git.kjan.de/jank/jklink/commit/79fc66ef6b4bb0edf62531d46d325c33b05dbcdd)) - -## 1.0.0 (2025-01-26) - - -### Features - -* add Angular Material and refactor UI components ([6317c97](https://git.kjan.de/jank/jklink/commit/6317c97d96ae28bd8f3cb9e63abffd6e2747532e)) -* Add custom slug support for links ([8e18324](https://git.kjan.de/jank/jklink/commit/8e1832416ba4f98543fcd1240ea0c0cc1425af21)) -* **create-link:** add create link component and routing ([00a7688](https://git.kjan.de/jank/jklink/commit/00a7688ef9bc86f0cc707343123a62d8c7db1181)) -* **create-link:** Add snackbar notification for slug conflict ([0dba945](https://git.kjan.de/jank/jklink/commit/0dba945ac2c93dd4b1eeefaac060050999db88f9)) -* **dashboard:** add copy link button to dashboard table ([50cb62e](https://git.kjan.de/jank/jklink/commit/50cb62e56d0f68320f2aea93cb0571398c314e05)) -* **dashboard:** add link confirmation dialog before navigation ([4c77b4f](https://git.kjan.de/jank/jklink/commit/4c77b4f139fd6c88a1eedcbc450b3e489a46e20d)) -* **dashboard:** add links to element IDs in dashboard table ([8302387](https://git.kjan.de/jank/jklink/commit/8302387aa73dfa0411f81c26dcc1fd0467209f87)) -* **dashboard:** add options menu and improve layout ([ba520ee](https://git.kjan.de/jank/jklink/commit/ba520eea10ab32e8d76a09454033080843b87f47)) -* **dashboard:** add snack bar notifications for link actions ([3e0b17e](https://git.kjan.de/jank/jklink/commit/3e0b17ebe61edf69f3f9f3d22189338e23170240)) -* **dashboard:** add user greeting to dashboard component ([311fd89](https://git.kjan.de/jank/jklink/commit/311fd89c7b1ffcafb7491c4c884a12ac1f2ea490)) -* **dashboard:** update getShortLink to use HTTPS ([8b08c66](https://git.kjan.de/jank/jklink/commit/8b08c6616c9e4856c3f0a305bbfbc8803842dd46)) -* **login:** add Authentik login button and functionality ([cb658a7](https://git.kjan.de/jank/jklink/commit/cb658a77210499a2d731d4448f4030f01c5fc160)) -* **login:** update login form with material design elements ([b218697](https://git.kjan.de/jank/jklink/commit/b2186978673e5223e5d10c7b1dfdc0326acf00a3)) -* **options-menu:** add xPosition to mat-menu component ([fdfe92a](https://git.kjan.de/jank/jklink/commit/fdfe92a23242532d2e1a56494b1fa4a97a38937e)) -* update deleteLink to use link object directly ([e0d9b82](https://git.kjan.de/jank/jklink/commit/e0d9b8295eb876a4b7629ae055b51cf98bd58a90)) -* **view-link:** add ViewLink component and routing logic ([79fc66e](https://git.kjan.de/jank/jklink/commit/79fc66ef6b4bb0edf62531d46d325c33b05dbcdd)) From 1227a008de047dabd75908ea9cbe1a3d4808944f Mon Sep 17 00:00:00 2001 From: jank Date: Tue, 18 Mar 2025 11:18:52 +0000 Subject: [PATCH 24/24] Update src/app/dashboard/dashboard.component.ts --- src/app/dashboard/dashboard.component.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/dashboard/dashboard.component.ts b/src/app/dashboard/dashboard.component.ts index 1acced3..e37aa3c 100644 --- a/src/app/dashboard/dashboard.component.ts +++ b/src/app/dashboard/dashboard.component.ts @@ -59,7 +59,7 @@ export class DashboardComponent { .afterClosed() .subscribe((accepted: Boolean) => { if (accepted) { - this.router.navigate([link.id]); + this.router.navigate([link.slug]); } }); }