Skip to content

Commit

Permalink
feat: vuejs ui to replace old ng frontend (#569)
Browse files Browse the repository at this point in the history
* 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
ymarcon and Ramin Haeri Azad authored Dec 15, 2024
1 parent ca5fec3 commit c847a1b
Show file tree
Hide file tree
Showing 217 changed files with 11,801 additions and 12,904 deletions.
3 changes: 0 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,6 @@ node_modules
.merge_file*
.sass-cache
.DS_Store
agate-webapp/src/main/webapp/dist
agate-webapp/src/main/webapp/bower_components
agate-webapp/src/main/webapp/styles/agate.css.map
spring_loaded
*.log
.vagrant
Expand Down
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ before_install:
- sudo apt-get install -y nodejs devscripts
- nvm install lts/gallium
- node --version
- npm install -g grunt-cli bower
- npm install -g grunt-cli
addons:
apt:
packages:
Expand Down
4 changes: 4 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,10 @@ core:
rest:
cd agate-rest && ${mvn_exec} clean install

ui:
cd agate-ui && ${mvn_exec} clean install
cd agate-webapp && ${mvn_exec} clean

model: proto

proto:
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,12 @@ Central authentication server for OBiBa applications.

## For developers

Install NodeJS, Grunt and Bower
Install NodeJS, Grunt

```
sudo add-apt-repository -y ppa:chris-lea/node.js
sudo apt-get install -y nodejs
sudo npm install -g grunt-cli bower
sudo npm install -g grunt-cli
```

If you run agate for the first time, run `make npm-install`.
Expand Down
8 changes: 8 additions & 0 deletions agate-dist/src/main/assembly/agate.xml
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,14 @@
</excludes>
</fileSet>

<!--<fileSet>
<directory>../agate-ui/dist/spa</directory>
<outputDirectory>webapp/admin</outputDirectory>
<includes>
<include>**/*.*</include>
</includes>
</fileSet>-->

</fileSets>
<dependencySets>

Expand Down
68 changes: 0 additions & 68 deletions agate-dist/src/test/javascript/karma.conf.js

This file was deleted.

92 changes: 0 additions & 92 deletions agate-dist/src/test/javascript/spec/controllersSpec.js

This file was deleted.

58 changes: 0 additions & 58 deletions agate-dist/src/test/javascript/spec/servicesSpec.js

This file was deleted.

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");
}
}
9 changes: 9 additions & 0 deletions agate-ui/.editorconfig
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
8 changes: 8 additions & 0 deletions agate-ui/.eslintignore
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*
Loading

0 comments on commit c847a1b

Please sign in to comment.