-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
52 changed files
with
2,710 additions
and
131 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,16 @@ | ||
{ | ||
"name": "hephaestus", | ||
"workspaces": [ | ||
"webapp/*" | ||
], | ||
"scripts": { | ||
"generate:api:clean": "rimraf webapp/src/app/core/modules/openapi", | ||
"generate:api:application-server-specs": "cd server/application-server && mvn verify -DskipTests=true -Dapp.profiles=specs", | ||
"generate:api:application-server-client": "npx openapi-generator-cli generate -i server/application-server/openapi.yaml -g typescript-angular -o webapp/src/app/core/modules/openapi --additional-properties fileNaming=kebab-case,withInterfaces=true --generate-alias-as-model", | ||
"generate:api": "npm run generate:api:application-server-specs && npm run generate:api:clean && npm run generate:api:application-server-client" | ||
}, | ||
"devDependencies": { | ||
"@openapitools/openapi-generator-cli": "2.13.5", | ||
"rimraf": "6.0.1" | ||
} | ||
"name": "hephaestus", | ||
"workspaces": [ | ||
"webapp/*" | ||
], | ||
"scripts": { | ||
"generate:api:clean": "rimraf webapp/src/app/core/modules/openapi", | ||
"generate:api:application-server-specs": "cd server/application-server && mvn verify -DskipTests=true -Dapp.profiles=specs", | ||
"generate:api:application-server-client": "npx openapi-generator-cli generate -i server/application-server/openapi.yaml -g typescript-angular -o webapp/src/app/core/modules/openapi --additional-properties fileNaming=kebab-case,withInterfaces=true --generate-alias-as-model", | ||
"generate:api": "npm run generate:api:application-server-specs && npm run generate:api:clean && npm run generate:api:application-server-client" | ||
}, | ||
"devDependencies": { | ||
"@openapitools/openapi-generator-cli": "2.13.5", | ||
"rimraf": "6.0.1" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 11 additions & 0 deletions
11
server/application-server/src/main/java/de/tum/in/www1/hephaestus/admin/AdminConfigDTO.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
package de.tum.in.www1.hephaestus.admin; | ||
|
||
import java.util.Set; | ||
|
||
import org.springframework.lang.NonNull; | ||
|
||
public record AdminConfigDTO(@NonNull Set<String> repositoriesToMonitor) { | ||
public static AdminConfigDTO fromAdminConfig(AdminConfig adminConfig) { | ||
return new AdminConfigDTO(adminConfig.getRepositoriesToMonitor()); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 0 additions & 12 deletions
12
.../application-server/src/main/java/de/tum/in/www1/hephaestus/gitprovider/team/TeamDTO.java
This file was deleted.
Oops, something went wrong.
9 changes: 9 additions & 0 deletions
9
...lication-server/src/main/java/de/tum/in/www1/hephaestus/gitprovider/team/TeamInfoDTO.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
package de.tum.in.www1.hephaestus.gitprovider.team; | ||
|
||
import org.springframework.lang.NonNull; | ||
|
||
public record TeamInfoDTO(@NonNull Long id, @NonNull String name, @NonNull String color) { | ||
public static TeamInfoDTO fromTeam(Team team) { | ||
return new TeamInfoDTO(team.getId(), team.getName(), team.getColor()); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.