Skip to content

Commit

Permalink
Merge branch 'development' of https://github.com/TrandPick/TrendPick_Pro
Browse files Browse the repository at this point in the history
 into development
  • Loading branch information
hye-0000 committed Jun 13, 2023
2 parents a80caae + fbda1bb commit 4641a15
Show file tree
Hide file tree
Showing 11 changed files with 18 additions and 173 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/work-2.yml
Original file line number Diff line number Diff line change
Expand Up @@ -101,4 +101,5 @@ jobs:
method: kubeconfig
kubeconfig: ${{ secrets.KUBE_CONFIG }}
- run: |
kubectl set image deployment.apps/trendpick-1 trendpick-1=ghcr.io/angelsooho/trendpick-1:${{ needs.tag.outputs.tag_name }}
kubectl set image deployment.apps/trendpick-1 trendpick-1=ghcr.io/trandpick/trendpick-1:${{ needs.tag.outputs.tag_name }}
5 changes: 2 additions & 3 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ dependencies {
implementation 'org.springframework.boot:spring-boot-starter-web'
implementation 'org.jetbrains:annotations:24.0.0'
developmentOnly 'org.springframework.boot:spring-boot-devtools'
implementation 'org.springframework.boot:spring-boot-starter-actuator'

// log
implementation 'com.github.gavlyukovskiy:p6spy-spring-boot-starter:1.5.8'
Expand Down Expand Up @@ -61,12 +62,10 @@ dependencies {
annotationProcessor "jakarta.annotation:jakarta.annotation-api"
annotationProcessor "jakarta.persistence:jakarta.persistence-api"

// cache
implementation 'org.springframework.boot:spring-boot-starter-cache'

// swagger
implementation 'org.springdoc:springdoc-openapi-starter-webmvc-ui:2.0.2'

// cache
implementation 'org.springframework.boot:spring-boot-starter-cache'
implementation 'org.springframework.boot:spring-boot-starter-data-redis'
implementation 'org.springframework.session:spring-session-core'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ public String showCart( Model model) {

@PreAuthorize("hasAuthority({'MEMBER'})")
@GetMapping("/add")
@ResponseBody
public String addItemToCart(CartItemRequest cartItemRequests, Model model) {
model.addAttribute("cartItemRequest", cartItemRequests);
return "trendpick/usr/cart/add";
Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

12 changes: 11 additions & 1 deletion src/main/resources/application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,14 @@ spring:
enabled: true
data:
redis:
host: 172.17.0.1
host: 172.17.0.1
management:
endpoint:
health:
probes:
enabled: true
health:
livenessstate:
enabled: true
readinessstate:
enabled: true
5 changes: 2 additions & 3 deletions src/main/resources/templates/trendpick/orders/order-form.html
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,6 @@ <h1>주문상품 정보</h1>
<table class="table w-full table-compact mb-8">
<thead>
<tr>
<th scope="col"></th>
<th class="text-center" scope="col">번호</th>
<th class="text-center" scope="col">상품명</th>
<th class="text-center" scope="col">주문수량</th>
Expand All @@ -69,8 +68,8 @@ <h1>주문상품 정보</h1>
</thead>
<tbody>
<tr th:each="orderItem, itemStat : ${orderForm.orderItems}" class="bg-blue-50">
<td class="text-center"><input type="hidden" th:field="*{orderItems[__${itemStat.index}__].cartItemId}" th:value="${orderItem.cartItemId}" /></td>
<td class="text-center"><input type="hidden" th:field="*{orderItems[__${itemStat.index}__].productId}" th:value="${orderItem.productId}" /></td>
<input type="hidden" th:field="*{orderItems[__${itemStat.index}__].cartItemId}" th:value="${orderItem.cartItemId}" />
<input type="hidden" th:field="*{orderItems[__${itemStat.index}__].productId}" th:value="${orderItem.productId}" />
<td class="text-center" th:text="${itemStat.count}">1</td>
<td class="text-center"><input class="text-center" type="text" id="Product" th:data-total-product="${orderItem.productName}" th:field="*{orderItems[__${itemStat.index}__].productName}" th:value="${orderItem.productName}" readonly="readonly" /></td>
<td class="text-center"><input class="text-center" type="number" th:field="*{orderItems[__${itemStat.index}__].count}" th:value="${orderItem.count}" readonly="readonly" /></td>
Expand Down

0 comments on commit 4641a15

Please sign in to comment.