Remove particle component and its associated routes and security controls.

This commit is contained in:
akastijn 2025-07-03 20:08:56 +02:00
parent 48cac607de
commit 213f9987d9
3 changed files with 1 additions and 6 deletions

View File

@ -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()
)

View File

@ -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)
},
];

View File

@ -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})