From 213f9987d9e876ad92bcb866e36b9152c69c163a Mon Sep 17 00:00:00 2001 From: akastijn Date: Thu, 3 Jul 2025 20:08:56 +0200 Subject: [PATCH] Remove particle component and its associated routes and security controls. --- .../java/com/alttd/altitudeweb/config/SecurityConfig.java | 2 +- frontend/src/app/app.routes.ts | 4 ---- frontend/src/app/particles/particles.component.ts | 1 - 3 files changed, 1 insertion(+), 6 deletions(-) diff --git a/backend/src/main/java/com/alttd/altitudeweb/config/SecurityConfig.java b/backend/src/main/java/com/alttd/altitudeweb/config/SecurityConfig.java index 20e5f70..d48f4e5 100644 --- a/backend/src/main/java/com/alttd/altitudeweb/config/SecurityConfig.java +++ b/backend/src/main/java/com/alttd/altitudeweb/config/SecurityConfig.java @@ -38,7 +38,7 @@ public class SecurityConfig { .authorizeHttpRequests(auth -> auth .requestMatchers("/form/**").hasAuthority(PermissionClaimDto.USER.getValue()) .requestMatchers("/head_mod/**").hasAuthority(PermissionClaimDto.HEAD_MOD.getValue()) - .requestMatchers("/particles/**").hasAuthority(PermissionClaimDto.HEAD_MOD.getValue()) +// .requestMatchers("/particles/**").hasAuthority(PermissionClaimDto.HEAD_MOD.getValue()) .requestMatchers("/files/save/**").hasAuthority(PermissionClaimDto.HEAD_MOD.getValue()) .anyRequest().permitAll() ) diff --git a/frontend/src/app/app.routes.ts b/frontend/src/app/app.routes.ts index 226283f..03a8d52 100644 --- a/frontend/src/app/app.routes.ts +++ b/frontend/src/app/app.routes.ts @@ -113,8 +113,4 @@ export const routes: Routes = [ path: 'login', loadComponent: () => import('./login/login.component').then(m => m.LoginDialogComponent) }, - { - path: 'particles', - loadComponent: () => import('./particles/particles.component').then(m => m.ParticlesComponent) - }, ]; diff --git a/frontend/src/app/particles/particles.component.ts b/frontend/src/app/particles/particles.component.ts index 5ce1018..ad98194 100644 --- a/frontend/src/app/particles/particles.component.ts +++ b/frontend/src/app/particles/particles.component.ts @@ -121,7 +121,6 @@ export class ParticlesComponent { this.matSnackBar.open('JSON file downloaded', '', {duration: 2000}); } - public copyJson() { navigator.clipboard.writeText(this.generateJson()).then(() => { this.matSnackBar.open('Copied to clipboard', '', {duration: 2000})