update api port
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -1,3 +1,4 @@
|
|||||||
/.idea/
|
/.idea/
|
||||||
node_modules/
|
node_modules/
|
||||||
/build/
|
/build/
|
||||||
|
build.*
|
||||||
@@ -1,3 +1,3 @@
|
|||||||
/api_proxy/* http://www.pkuhelper.com/services/pkuhole/:splat 200
|
/api_proxy/* http://www.pkuhelper.com:10301/services/pkuhole/:splat 200
|
||||||
/audio_proxy/* http://www.pkuhelper.com/services/pkuhole/audios/:splat 200
|
/audio_proxy/* http://www.pkuhelper.com:10301/services/pkuhole/audios/:splat 200
|
||||||
/login_proxy/* http://www.pkuhelper.com/services/login/:splat 200
|
/login_proxy/* http://www.pkuhelper.com:10301/services/login/:splat 200
|
||||||
@@ -9,7 +9,7 @@ import './Common.css';
|
|||||||
|
|
||||||
const chinese_format=buildFormatter(chineseStrings);
|
const chinese_format=buildFormatter(chineseStrings);
|
||||||
|
|
||||||
export const API_BASE=window.location.protocol==='https:' ? '/api_proxy' : 'http://www.pkuhelper.com/services/pkuhole';
|
export const API_BASE=window.location.protocol==='https:' ? '/api_proxy' : 'http://www.pkuhelper.com:10301/services/pkuhole';
|
||||||
|
|
||||||
const PID_RE=/(^|[^\d])([1-9]\d{4,5})(?!\d)/g;
|
const PID_RE=/(^|[^\d])([1-9]\d{4,5})(?!\d)/g;
|
||||||
const NICKNAME_RE=/(^|[^A-Za-z])((?:(?:Angry|Baby|Crazy|Diligent|Excited|Fat|Greedy|Hungry|Interesting|Japanese|Kind|Little|Magic|Naïve|Old|Powerful|Quiet|Rich|Superman|THU|Undefined|Valuable|Wifeless|Xiangbuchulai|Young|Zombie)\s)?(?:Alice|Bob|Carol|Dave|Eve|Francis|Grace|Hans|Isabella|Jason|Kate|Louis|Margaret|Nathan|Olivia|Paul|Queen|Richard|Susan|Thomas|Uma|Vivian|Winnie|Xander|Yasmine|Zach)|You Win(?: \d+)?|洞主)(?![A-Za-z])/gi;
|
const NICKNAME_RE=/(^|[^A-Za-z])((?:(?:Angry|Baby|Crazy|Diligent|Excited|Fat|Greedy|Hungry|Interesting|Japanese|Kind|Little|Magic|Naïve|Old|Powerful|Quiet|Rich|Superman|THU|Undefined|Valuable|Wifeless|Xiangbuchulai|Young|Zombie)\s)?(?:Alice|Bob|Carol|Dave|Eve|Francis|Grace|Hans|Isabella|Jason|Kate|Louis|Margaret|Nathan|Olivia|Paul|Queen|Richard|Susan|Thomas|Uma|Vivian|Winnie|Xander|Yasmine|Zach)|You Win(?: \d+)?|洞主)(?![A-Za-z])/gi;
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ import {TokenCtx, ReplyForm} from './UserAction';
|
|||||||
|
|
||||||
import {API} from './flows_api';
|
import {API} from './flows_api';
|
||||||
|
|
||||||
const IMAGE_BASE='http://www.pkuhelper.com/services/pkuhole/images/';
|
const IMAGE_BASE='http://www.pkuhelper.com:10301/services/pkuhole/images/';
|
||||||
const AUDIO_BASE='/audio_proxy/';
|
const AUDIO_BASE='/audio_proxy/';
|
||||||
|
|
||||||
const SEARCH_PAGESIZE=50;
|
const SEARCH_PAGESIZE=50;
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ import md5 from 'md5';
|
|||||||
import './UserAction.css';
|
import './UserAction.css';
|
||||||
|
|
||||||
import {API_BASE} from './Common';
|
import {API_BASE} from './Common';
|
||||||
const LOGIN_BASE=window.location.protocol==='https:' ? '/login_proxy' : 'http://www.pkuhelper.com/services/login';
|
const LOGIN_BASE=window.location.protocol==='https:' ? '/login_proxy' : 'http://www.pkuhelper.com:10301/services/login';
|
||||||
const MAX_IMG_PX=2000;
|
const MAX_IMG_PX=2000;
|
||||||
const MAX_IMG_FILESIZE=256000;
|
const MAX_IMG_FILESIZE=256000;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user