Compare commits

..

13 Commits

Author SHA1 Message Date
e8553ea12f Merge branch 'bukopin' into devops-staging 2023-01-18 13:37:12 +07:00
4a7dfe6d52 feat:
- Revamp Design
- Adjust anomaly in design
2023-01-18 12:30:00 +07:00
5840ec682f fix k8s staging 2023-01-18 12:29:43 +07:00
9e39000483 dockerfile 2023-01-18 12:15:42 +07:00
35ce9e2484 fix error on install && dockerfile 2023-01-18 12:13:08 +07:00
6e83553e86 fix dockerfile 2023-01-18 12:09:02 +07:00
7a4ea8c528 fix dockerfile 2023-01-18 12:07:32 +07:00
c154ccc0f6 Merge pull request 'bukopin' (#1) from bukopin into devops-staging
Reviewed-on: #1
2023-01-18 11:50:37 +07:00
“marselinowidis”
b2a0cc9cdc fix dockerfile 2023-01-17 23:59:19 +07:00
“marselinowidis”
0a482dd766 fix dockerfile 2023-01-17 23:41:42 +07:00
“marselinowidis”
8a8d7c0e74 fix dockerfile 2023-01-17 23:40:55 +07:00
“marselinowidis”
8c02184bd9 fix dockerfile 2023-01-17 23:33:25 +07:00
“marselinowidis”
07634ef503 fix dockerfile 2023-01-17 23:28:01 +07:00
10 changed files with 5951 additions and 12387 deletions

View File

@@ -1,7 +1,9 @@
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 /app COPY package.json package-lock.json /app/
RUN yarn RUN npm install
COPY . /app COPY . /app
CMD npm run watch CMD npm run watch
EXPOSE 8080 EXPOSE 7700

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: 8080 - containerPort: 7700
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: 8080 number: 7700
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: 8080 - port: 7700
protocol: TCP protocol: TCP
selector: selector:
app: bukopin-redemption-client-react app: bukopin-redemption-client-react

18920
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@@ -560,7 +560,7 @@ class App extends React.Component {
<WithdrawDialog /> <WithdrawDialog />
<div className={classes.root}> <div className={classes.root}>
<AppBar style={{ zIndex: 1 }} position="fixed"> <AppBar position="fixed">
<Toolbar className={classes.toolbar}> <Toolbar className={classes.toolbar}>
<div className={classes.sectionMobile}> <div className={classes.sectionMobile}>
<IconButton className={classes.menuButton} color="action" aria-label="Open drawer" onClick={this.toggleDrawerNew(true)}> <IconButton className={classes.menuButton} color="action" aria-label="Open drawer" onClick={this.toggleDrawerNew(true)}>

View File

@@ -11,11 +11,9 @@
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

@@ -49,24 +49,13 @@ export default class ModalTopupComponent extends React.Component {
} }
] ]
let rightCode = {}; var rightCode = {}
codeList.map((cl) => { codeList.map((cl) => {
if (cl.code === code){ if (cl.code === code){
rightCode = cl rightCode = cl
}} this.props.appstate.wallet.data.wallet = this.props.appstate.wallet.data.wallet + cl.amount
)
this.setState({
inputCode1: '',
inputCode2: '',
inputCode3: '',
inputCode4: ''
});
if (rightCode.code){
message.success("Voucher redeem success"); message.success("Voucher redeem success");
this.props.appstate.wallet.data.wallet = this.props.appstate.wallet.data.wallet + rightCode.amount
this.setState({ this.setState({
confirmLoading: false confirmLoading: false
}); });
@@ -77,6 +66,7 @@ export default class ModalTopupComponent extends React.Component {
}); });
message.warning("Voucher redeem failed") message.warning("Voucher redeem failed")
} }
})
} }
render() { render() {

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 = "/categories/11936220-31f7-4f5e-8555-9110dbec4a5d/items"; this.url = "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("categories/11936220-31f7-4f5e-8555-9110dbec4a5d/items") return this.http.get("items")
.then(res => { .then(res => {
this.list = res.data; this.list = res.data;
this.isLoading = false; this.isLoading = false;