/**
 * Created by rockyl on 2019-09-19.
 */

export let API_HOST;
if (process.env.NODE_ENV === 'development') {
	//API_HOST = '//10.10.95.74:7777';
	//API_HOST = '//192.168.1.16:7777';
	API_HOST = '//0.0.0.0:3000';
	//API_HOST = '//0.0.0.0:8080';
	//API_HOST = window.__data.apiHost;
	//API_HOST = 'http://beacon.duiba.com.cn';
	//API_HOST = 'http://beacon.duibadev.com.cn';
} else {
	API_HOST = window.__data.apiHost;
}

if (API_HOST[API_HOST.length - 1] === '/') {
	API_HOST = API_HOST.substr(0, API_HOST.length - 1);
}

export const SSO_VERIFY_PAGE_URL = '/sso/login';

export const DOCK_POINT_OFFSET = 4;

export const PROJECT_PAGE_SIZE = 20;
export const HISTORY_PAGE_SIZE = 20;

//文件类型图标  t表示展示缩略图
export const fileTypeIcon = {
	'': 'file-empty',
	'.txt': 'file-text',
	'.json': 'file-text',
	'.zip': 'file-zip',
	'.fnt': 'file-font',
	'.mp3': 'file-music',

	'.jpg': 't',
	'.jpeg': 't',
	'.png': 't',
	'.gif': 't',
	'.svg': 't',
};
