Skip to content
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 Angular Material #1556

Merged
merged 1 commit into from May 7, 2022

Conversation

qmonmert
Copy link
Contributor

@qmonmert qmonmert commented May 1, 2022

Fix #1464

  • add a css framework, so it will help to code the other page ✅

@codecov
Copy link

codecov bot commented May 1, 2022

Codecov Report

Merging #1556 (ca931fd) into main (5e4d9aa) will not change coverage.
The diff coverage is 100.00%.

@@             Coverage Diff              @@
##                main     #1556    +/-   ##
============================================
  Coverage     100.00%   100.00%            
- Complexity      1609      1646    +37     
============================================
  Files            331       350    +19     
  Lines           5467      5814   +347     
  Branches         110       141    +31     
============================================
+ Hits            5467      5814   +347     
Impacted Files Coverage Δ
.../generator/client/angular/core/domain/Angular.java 100.00% <ø> (ø)
...ient/angular/core/domain/AngularDomainService.java 100.00% <100.00%> (ø)
src/main/webapp/app/common/domain/Service.ts 100.00% <0.00%> (ø)
...rc/main/webapp/app/common/secondary/RestHistory.ts 100.00% <0.00%> (ø)
.../main/webapp/app/common/secondary/RestServiceId.ts 100.00% <0.00%> (ø)
...n/java/tech/jhipster/lite/error/domain/Assert.java 100.00% <0.00%> (ø)
...va/tech/jhipster/lite/common/domain/JsonUtils.java 100.00% <0.00%> (ø)
...va/tech/jhipster/lite/common/domain/WordUtils.java 100.00% <0.00%> (ø)
...bapp/app/springboot/primary/Generator.component.ts 100.00% <0.00%> (ø)
...p/app/springboot/secondary/SpringBootRepository.ts 100.00% <0.00%> (ø)
... and 36 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 5e4d9aa...ca931fd. Read the comment docs.

@@ -81,31 +81,32 @@ public void addJwtDependencies(Project project) {
}

public void updateAngularFilesForJwt(Project project) {
String oldHtml = "<router-outlet></router-outlet>";
String oldHtml = "<div id=\"footer\">";
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi,
Little question about the old/new html replacement.
Why don't you had a specific comment to replace when you want to add some template code instead ?
I'm asking because the footer is also added at the end of new html ?
Thanks :)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hi, indeed it will be a good idea to have a specific comment but this comment will be strange when we don't replace it!

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it depends of comment meaning.
If you have something as -- jhipster-needle-extra-template which explains it used by generator to add extra info it could be understood. For sure once the project is done the user can delete it.
However, if for now you can add/replace only once from generator indeed it's not maybe necessary.
As you prefer :)

@pascalgrimaud
Copy link
Member

I'm starting to review this PR @qmonmert
as usual, thanks for your patience

@qmonmert
Copy link
Contributor Author

qmonmert commented May 7, 2022

@pascalgrimaud ok good, I think the idea of @seraphinandrieux was good, I updated the PR

pascalgrimaud
pascalgrimaud previously approved these changes May 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Angular: improve initial generation
3 participants