-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: vuejs ui to replace old ng frontend (#569)
* feat: agate-ui added wip * wip * maven resource plugin and admin.ftl * feat: removed static resources filter, made admin template dynamic * feat: routing to basic pages using stores * feat(ui): simplified main layout * feat(ui): signout and profile redirects * Test and fixed redirect * fix: merge issue * chore: updated agate-ui version --------- Co-authored-by: Ramin Haeri Azad <[email protected]>
- Loading branch information
Showing
217 changed files
with
11,801 additions
and
12,904 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
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
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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
25 changes: 25 additions & 0 deletions
25
agate-rest/src/main/java/org/obiba/agate/web/rest/security/CorsFilter.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,25 @@ | ||
package org.obiba.agate.web.rest.security; | ||
import jakarta.ws.rs.container.ContainerRequestContext; | ||
import jakarta.ws.rs.container.ContainerResponseContext; | ||
import jakarta.ws.rs.container.ContainerResponseFilter; | ||
import jakarta.ws.rs.ext.Provider; | ||
import java.io.IOException; | ||
|
||
@Provider | ||
public class CorsFilter implements ContainerResponseFilter { | ||
|
||
@Override | ||
public void filter(ContainerRequestContext requestContext, ContainerResponseContext responseContext) throws IOException { | ||
// Allow specific origin or use "*" for all origins | ||
responseContext.getHeaders().add("Access-Control-Allow-Origin", "http://localhost:9000"); | ||
|
||
// Allow specific HTTP methods | ||
responseContext.getHeaders().add("Access-Control-Allow-Methods", "GET, POST, PUT, DELETE, OPTIONS"); | ||
|
||
// Allow specific headers | ||
responseContext.getHeaders().add("Access-Control-Allow-Headers", "Authorization, Content-Type"); | ||
|
||
// Allow credentials (if needed) | ||
responseContext.getHeaders().add("Access-Control-Allow-Credentials", "true"); | ||
} | ||
} |
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 @@ | ||
root = true | ||
|
||
[*] | ||
charset = utf-8 | ||
indent_style = space | ||
indent_size = 2 | ||
end_of_line = lf | ||
insert_final_newline = true | ||
trim_trailing_whitespace = true |
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,8 @@ | ||
/dist | ||
/src-capacitor | ||
/src-cordova | ||
/.quasar | ||
/node_modules | ||
.eslintrc.js | ||
/src-ssr | ||
/quasar.config.*.temporary.compiled* |
Oops, something went wrong.