Compare commits

..

2 Commits

Author SHA1 Message Date
0abfb5245a style: Adjust item card height 2023-01-18 15:55:08 +07:00
5467d91085 feat: Items based on category voucher 2023-01-18 15:40:08 +07:00
8 changed files with 12421 additions and 5995 deletions

View File

@@ -1,9 +1,7 @@
FROM node:8-alpine FROM node:8-alpine
RUN apk add --no-cache libc6-compat
RUN apk add --no-cache git
WORKDIR /app WORKDIR /app
COPY package.json package-lock.json /app/ COPY package.json /app
RUN npm install RUN yarn
COPY . /app COPY . /app
CMD npm run watch CMD npm run watch
EXPOSE 7700 EXPOSE 8080

View File

@@ -17,7 +17,7 @@ spec:
- name: bukopin-redemption-client-react - name: bukopin-redemption-client-react
image: registry-harbor.app.bangun-kreatif.com/bukopin/bukopin-redemption-client-react:<VERSION> image: registry-harbor.app.bangun-kreatif.com/bukopin/bukopin-redemption-client-react:<VERSION>
ports: ports:
- containerPort: 7700 - containerPort: 8080
imagePullSecrets: imagePullSecrets:
- name: regcred - name: regcred

View File

@@ -18,7 +18,7 @@ spec:
service: service:
name: bukopin-redemption-client-react name: bukopin-redemption-client-react
port: port:
number: 7700 number: 8080
tls: tls:
- hosts: - hosts:
- "bukopin-fe.k3s.bangun-kreatif.com" - "bukopin-fe.k3s.bangun-kreatif.com"

View File

@@ -7,7 +7,7 @@ metadata:
run: bukopin-redemption-client-react run: bukopin-redemption-client-react
spec: spec:
ports: ports:
- port: 7700 - port: 8080
protocol: TCP protocol: TCP
selector: selector:
app: bukopin-redemption-client-react app: bukopin-redemption-client-react

18396
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@@ -11,9 +11,11 @@
background-color: white; background-color: white;
border: #ccc 1px solid; border: #ccc 1px solid;
width: 100%; width: 100%;
height: 200px;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
justify-content: center; justify-content: center;
text-align: center;
align-items: center; align-items: center;
margin-bottom: 10px; margin-bottom: 10px;
cursor: pointer; cursor: pointer;

View File

@@ -5,7 +5,7 @@ export class ItemStore extends BaseStore {
@observable listImages = []; @observable listImages = [];
constructor(context) { constructor(context) {
super(context); super(context);
this.url = "items"; this.url = "/categories/11936220-31f7-4f5e-8555-9110dbec4a5d/items";
} }
@action @action

View File

@@ -26,7 +26,7 @@ export default class Vouchers {
getList(){ getList(){
console.log('res'); console.log('res');
this.isLoading = true; this.isLoading = true;
return this.http.get("items") return this.http.get("categories/11936220-31f7-4f5e-8555-9110dbec4a5d/items")
.then(res => { .then(res => {
this.list = res.data; this.list = res.data;
this.isLoading = false; this.isLoading = false;