-
-
Notifications
You must be signed in to change notification settings - Fork 217
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Angular] Add account with authentication JWT #1091
Conversation
Codecov Report
@@ Coverage Diff @@
## main #1091 +/- ##
===========================================
Coverage 100.00% 100.00%
- Complexity 1503 1515 +12
===========================================
Files 283 283
Lines 4829 4901 +72
Branches 88 88
===========================================
+ Hits 4829 4901 +72
Continue to review full report at Codecov.
|
9102064
to
b809574
Compare
df2ac0b
to
44c88e3
Compare
@qmonmert : you need to add the new API in generator.sh, otherwise, it won't be tested in CI |
@pascalgrimaud where is this file? I don't see yet I rebase main branch |
@qmonmert : here is the file https://github.com/jhipster/jhipster-lite/blob/main/tests-ci/generate.sh#L183 You need to call your new API here |
@pascalgrimaud okay it's |
My bad, I'm sorry for this typo :-p |
91cae49
to
8f845d4
Compare
d64c9d9
to
fed1cb7
Compare
I started to review it. |
Here the repo I use for testing and reviewing: |
@pascalgrimaud ok I will do that! |
13dc2ca
to
c6684cf
Compare
@pascalgrimaud refacto done + fix angular styled jwt |
private static final String APP_MODULE = "app.module.ts"; | ||
private static final String APP_COMPONENT = "app.component.ts"; | ||
private static final String APP_COMPONENT_SPEC = "app.component.spec.ts"; | ||
private static final String APP_COMPONENT_HTML = "app.component.html"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can be moved to Angular.java
@@ -0,0 +1,6 @@ | |||
{ | |||
"/api": { | |||
"target": "http://localhost:8080", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
mhh I think it should be replaced by serverPort property
assertFileExist(project, getPath(pathAuth, "account.model.ts")); | ||
assertFileExist(project, getPath(pathAuth, "account.service.ts")); | ||
assertFileExist(project, getPath(pathAuth, "account.service.spec.ts")); | ||
assertFileExist(project, getPath(pathAuth, "auth-jwt.service.ts")); | ||
assertFileExist(project, getPath(pathAuth, "auth-jwt.service.spec.ts")); | ||
assertFileExist(project, getPath(pathAuth, "auth.interceptor.ts")); | ||
assertFileExist(project, getPath(pathLogin, "login.service.ts")); | ||
assertFileExist(project, getPath(pathLogin, "login.service.spec.ts")); | ||
assertFileExist(project, getPath(pathLogin, "login.model.ts")); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm pretty sure we can do better, by using Angular classes, with forEach
Fix #898