Skip to content

Commit

Permalink
fix(deps): update dependency org.webjars.npm:alpinejs to v3.14.0 (#760)
Browse files Browse the repository at this point in the history
* fix(deps): update dependency org.webjars.npm:alpinejs to v3.14.0

* adds webjars locator

* Update ReadMe.md

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Raja Kolli <[email protected]>
  • Loading branch information
renovate[bot] and rajadilipkolli authored Jun 15, 2024
1 parent c4ce426 commit b2a466d
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 8 deletions.
4 changes: 2 additions & 2 deletions retail-store-webapp/ReadMe.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ username: admin
password : admin1234
```

## UI
## UI

http://localhost:8080
[Local UI](http://localhost:8080)

## Export realm

Expand Down
6 changes: 5 additions & 1 deletion retail-store-webapp/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,10 @@
<groupId>io.opentelemetry</groupId>
<artifactId>opentelemetry-exporter-zipkin</artifactId>
</dependency>
<dependency>
<groupId>org.webjars</groupId>
<artifactId>webjars-locator-core</artifactId>
</dependency>
<dependency>
<groupId>org.webjars</groupId>
<artifactId>bootstrap</artifactId>
Expand All @@ -88,7 +92,7 @@
<dependency>
<groupId>org.webjars.npm</groupId>
<artifactId>alpinejs</artifactId>
<version>3.13.10</version>
<version>3.14.0</version>
</dependency>

<dependency>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ String showProductsPage(@RequestParam(name = "page", defaultValue = "1") int pag

@GetMapping("/api/products")
@ResponseBody
PagedResult<ProductResponse> products(@RequestParam(name = "page", defaultValue = "0") int page, Model model) {
log.info("Fetching products for page: {}", page);
return catalogService.getProducts(page);
PagedResult<ProductResponse> products(@RequestParam(name = "page", defaultValue = "1") int page, Model model) {
log.info("Fetching products for page: {}", page - 1);
return catalogService.getProducts(page - 1);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@

<script src="/webjars/jquery/3.7.1/jquery.js"></script>
<script src="/webjars/bootstrap/5.3.3/js/bootstrap.bundle.js"></script>
<script defer src="/webjars/alpinejs/3.13.10/dist/cdn.min.js"></script>
<script defer src="/webjars/alpinejs/dist/cdn.min.js"></script>
<script src="/js/cartStore.js"></script>
<script th:inline="javascript">
/*<![CDATA[*/
Expand Down
2 changes: 1 addition & 1 deletion test-em-all.sh
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ function setupTestData() {

body="{\"code\":\"$PROD_CODE_1"
body+=\
'","productName":"product name B","price":9.99, "description": "Nice Product"}'
'","productName":"product name B","price":9.99, "imageUrl":"https://cdn.igp.com/f_auto,q_auto,t_pnopt12prodlp/products/p-you-are-my-penguin-personalized-magic-mug-265224-m.jpg","description": "Nice Product"}'

# Creating Product
echo "creating product with code - " $PROD_CODE_1
Expand Down

0 comments on commit b2a466d

Please sign in to comment.