Compare commits
15 Commits
f40c3eca9f
...
dev
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
9664de7556 | ||
|
|
0bb41bef76 | ||
| b3bdabe398 | |||
|
|
402a5fdf6c | ||
|
|
054d1aaee0 | ||
|
|
57193a598c | ||
|
|
448757495f | ||
|
|
d7f1882cf3 | ||
|
|
cf41426c51 | ||
|
|
83d9259b52 | ||
|
|
6fbe47f5ee | ||
|
|
39e09df490 | ||
|
|
162882a202 | ||
|
|
b9cef59b20 | ||
|
|
fa795c7a4c |
1
app/.env
1
app/.env
@@ -1,3 +1,2 @@
|
|||||||
REACT_APP_HOST='http://api.face-classify.beetai.com'
|
REACT_APP_HOST='http://api.face-classify.beetai.com'
|
||||||
REACT_APP_SOURCE_IMG=1
|
REACT_APP_SOURCE_IMG=1
|
||||||
WDS_SOCKET_PORT=0
|
|
||||||
|
|||||||
@@ -16,7 +16,7 @@ import { Provider } from 'react-redux';
|
|||||||
import store from './store';
|
import store from './store';
|
||||||
import ReactRouter from './router/ReactRouter';
|
import ReactRouter from './router/ReactRouter';
|
||||||
import { BrowserRouter as Router, Link, Route, Switch } from 'react-router-dom';
|
import { BrowserRouter as Router, Link, Route, Switch } from 'react-router-dom';
|
||||||
import AutoLogin from 'components/AutoLogin/AutoLogin';
|
import AutoLogin from './components/AutoLogin/AutoLogin';
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -19,7 +19,11 @@ const ModalPassword = (props) => {
|
|||||||
'Content-Type': 'application/json',
|
'Content-Type': 'application/json',
|
||||||
'Authorization': Store.getState().isLogin.access_token,
|
'Authorization': Store.getState().isLogin.access_token,
|
||||||
}
|
}
|
||||||
const result = await axios.patch(`${HOST}/api/users/${obj_id}/password`,{headers} ,{ password: form.getFieldValue('password') })
|
const result = await axios.patch(
|
||||||
|
`${HOST}/api/users/${obj_id}/password`,
|
||||||
|
{password: form.getFieldValue("password")},
|
||||||
|
{headers},
|
||||||
|
);
|
||||||
if (result.data.status === 10000) {
|
if (result.data.status === 10000) {
|
||||||
swal({
|
swal({
|
||||||
icon: 'success',
|
icon: 'success',
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
import { Card, Image as ImageAntd } from 'antd';
|
import { Card, Image as ImageAntd } from 'antd';
|
||||||
import Header from 'components/layouts/Header';
|
|
||||||
import Parser from 'html-react-parser';
|
import Parser from 'html-react-parser';
|
||||||
import $ from 'jquery';
|
import $ from 'jquery';
|
||||||
import React, { Component } from 'react';
|
import React, { Component } from 'react';
|
||||||
|
|||||||
@@ -1,9 +1,13 @@
|
|||||||
version: "2"
|
version: "2"
|
||||||
services:
|
services:
|
||||||
app:
|
app:
|
||||||
|
container_name: fsi_view
|
||||||
|
restart: always
|
||||||
build:
|
build:
|
||||||
context: .
|
context: .
|
||||||
args:
|
args:
|
||||||
- REACT_APP_HOST=http://api.face-classify.beetai.com
|
- REACT_APP_HOST=http://api.face-classify.beetai.com
|
||||||
dockerfile: prod.dockerfile
|
dockerfile: prod.dockerfile
|
||||||
image: registry.beetai.com:5000/fsi_web:1.0
|
image: registry.beetai.com:5000/fsi_web:1.0
|
||||||
|
ports:
|
||||||
|
- "5201:3000"
|
||||||
|
|||||||
Reference in New Issue
Block a user