Skip to content

Commit

Permalink
[Angular] refactoring Jwt
Browse files Browse the repository at this point in the history
  • Loading branch information
qmonmert committed May 7, 2022
1 parent c5c3c25 commit 205d002
Show file tree
Hide file tree
Showing 22 changed files with 695 additions and 465 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,4 @@ public AngularApplicationService(AngularService angularService) {
public void addAngular(Project project) {
angularService.addAngular(project);
}

public void addJwtAngular(Project project) {
angularService.addJwtAngular(project);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,6 @@ public static List<String> dependencies() {
);
}

public static List<String> jwtDependencies() {
return List.of("ngx-webstorage");
}

public static Map<String, String> scripts() {
// @formatter:off
return Map.of(
Expand All @@ -67,10 +63,6 @@ public static List<String> files() {
return List.of("angular.json", "jest.conf.js", "tsconfig.app.json", "tsconfig.json", "tsconfig.spec.json");
}

public static Map<String, String> jwtFiles() {
return Map.ofEntries(Map.entry("proxy.conf.json", ""));
}

public static Map<String, String> angularFiles() {
String primaryApp = "app/common/primary/app";
String environments = "environments";
Expand All @@ -92,20 +84,4 @@ public static Map<String, String> angularFiles() {
Map.entry("environment.spec.ts", environments)
);
}

public static Map<String, String> angularJwtFiles() {
String primaryAppAuth = "app/auth";
String primaryAppLogin = "app/login";
return Map.ofEntries(
Map.entry("account.model.ts", primaryAppAuth),
Map.entry("account.service.ts", primaryAppAuth),
Map.entry("account.service.spec.ts", primaryAppAuth),
Map.entry("auth.interceptor.ts", primaryAppAuth),
Map.entry("auth-jwt.service.ts", primaryAppAuth),
Map.entry("auth-jwt.service.spec.ts", primaryAppAuth),
Map.entry("login.service.ts", primaryAppLogin),
Map.entry("login.service.spec.ts", primaryAppLogin),
Map.entry("login.model.ts", primaryAppLogin)
);
}
}
Loading

0 comments on commit 205d002

Please sign in to comment.