import React, {Component, PureComponent} from 'react';
import ReactDOM from 'react-dom';
import TimeAgo from 'react-timeago';
import chineseStrings from 'react-timeago/lib/language-strings/zh-CN';
import buildFormatter from 'react-timeago/lib/formatters/buildFormatter';
import './global.css';
import './widgets.css';
import {get_json, API_VERSION_PARAM} from './functions';
function pad2(x) {
return x<10 ? '0'+x : ''+x;
}
export function format_time(time) {
return `${time.getMonth()+1}-${pad2(time.getDate())} ${time.getHours()}:${pad2(time.getMinutes())}:${pad2(time.getSeconds())}`;
}
const chinese_format=buildFormatter(chineseStrings);
export function Time(props) {
const time=new Date(props.stamp*1000);
return (
{props.text}
) } export function GlobalTitle(props) { return ({props.text}
通过第三方验证登陆新T树洞
{this.setThuhole(e.target, this.input_token_ref)}}
>
T大树洞
提醒: