ok
This commit is contained in:
@@ -17,8 +17,6 @@ export const getConnectNode = (node_id: string) => {
|
|||||||
return `https://${node_id}.chatngay.com:8080/chat`
|
return `https://${node_id}.chatngay.com:8080/chat`
|
||||||
};
|
};
|
||||||
|
|
||||||
export const SOCKET_OPTIONS = {
|
export const SOCKET_OPTIONS = {}
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
export const CREDENTIAL_SAVE_KEY = 'chatngay-u';
|
export const CREDENTIAL_SAVE_KEY = 'chatngay-u';
|
||||||
|
|||||||
@@ -4,12 +4,13 @@ import { Provider} from 'react-redux';
|
|||||||
import App from './App';
|
import App from './App';
|
||||||
import reportWebVitals from './reportWebVitals';
|
import reportWebVitals from './reportWebVitals';
|
||||||
import store from "./store";
|
import store from "./store";
|
||||||
import {runTest} from "./test";
|
//import {runTest} from "./test";
|
||||||
|
|
||||||
// local
|
// local
|
||||||
import {getSettings, setUp} from "@/setup";
|
import {getSettings, setUp} from "@/setup";
|
||||||
import Error from '@/components/Error';
|
import Error from '@/components/Error';
|
||||||
import {isBrowserSupport} from "@/lib/utils";
|
import {isBrowserSupport} from "@/lib/utils";
|
||||||
|
import {ClientSettings} from "@/typings";
|
||||||
|
|
||||||
// style
|
// style
|
||||||
//import './index.css';
|
//import './index.css';
|
||||||
@@ -26,11 +27,13 @@ import {isBrowserSupport} from "@/lib/utils";
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
const client_setting = await getSettings();
|
/*const client_setting = await getSettings();
|
||||||
if (! client_setting ) {
|
if (! client_setting ) {
|
||||||
ReactDOM.render(<Error message={'Can not get setting'}/>, render_root);
|
ReactDOM.render(<Error message={'Can not get setting'}/>, render_root);
|
||||||
return;
|
return;
|
||||||
}
|
}*/
|
||||||
|
|
||||||
|
const client_setting: ClientSettings = {staff: []}
|
||||||
|
|
||||||
await setUp();
|
await setUp();
|
||||||
|
|
||||||
@@ -42,7 +45,7 @@ import {isBrowserSupport} from "@/lib/utils";
|
|||||||
|
|
||||||
ReactDOM.render(<Root />, render_root);
|
ReactDOM.render(<Root />, render_root);
|
||||||
|
|
||||||
runTest();
|
//runTest();
|
||||||
})();
|
})();
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -5,8 +5,8 @@ const createProxyMiddleware = require('http-proxy-middleware');
|
|||||||
// proxy middleware options
|
// proxy middleware options
|
||||||
// see: https://www.npmjs.com/package/http-proxy-middleware#http-proxy-options
|
// see: https://www.npmjs.com/package/http-proxy-middleware#http-proxy-options
|
||||||
const options = {
|
const options = {
|
||||||
// target: 'https://api195.chatngay.com/admin/', // target host
|
target: 'https://api2.chatngay.com/admin/', // target host
|
||||||
target: 'http://local.chatngay.api/admin/', //https://api195.chatngay.com/admin/', // target host
|
//target: 'http://local.chatngay.api/admin/', //https://api2.chatngay.com/admin/', // target host
|
||||||
changeOrigin: true, // needed for virtual hosted sites
|
changeOrigin: true, // needed for virtual hosted sites
|
||||||
//ws: true, // proxy websockets
|
//ws: true, // proxy websockets
|
||||||
pathRewrite: {
|
pathRewrite: {
|
||||||
|
|||||||
Reference in New Issue
Block a user