|
|
|
@ -2,19 +2,19 @@ import { Button, InputGroup, Intent } from '@blueprintjs/core';
|
|
|
|
|
import { observable } from 'mobx';
|
|
|
|
|
import { inject, observer } from 'mobx-react';
|
|
|
|
|
import * as React from 'react';
|
|
|
|
|
import { ResourcesCDN_HOST, SignUrl, CURRENT_HOST } from '../../../Common/HostUrl';
|
|
|
|
|
import { app } from '../../../ApplicationServices/Application';
|
|
|
|
|
import { appCache } from '../../../Common/AppCache';
|
|
|
|
|
import { CURRENT_HOST, ResourcesCDN_HOST, SignUrl } from '../../../Common/HostUrl';
|
|
|
|
|
import { KeyBoard } from '../../../Common/KeyEnum';
|
|
|
|
|
import { IResponseData, PostJson, RequestStatus } from '../../../Common/Request';
|
|
|
|
|
import { Sleep } from '../../../Common/Sleep';
|
|
|
|
|
import { StoreageKeys } from "../../../Common/StoreageKeys";
|
|
|
|
|
import { FileServer } from '../../../DatabaseServices/FileServer';
|
|
|
|
|
import { userConfig } from '../../../Editor/UserConfig';
|
|
|
|
|
import { TopPanelStore } from '../../Store/TopPanelStore';
|
|
|
|
|
import { PostJson, RequestStatus, IResponseData } from '../../../Common/Request';
|
|
|
|
|
import { userConfigStore } from '../../Store/UserConfigStore';
|
|
|
|
|
import { appCache } from '../../../Common/AppCache';
|
|
|
|
|
import { userConfig } from '../../../Editor/UserConfig';
|
|
|
|
|
import { app } from '../../../ApplicationServices/Application';
|
|
|
|
|
import { AppToaster } from '../Toaster';
|
|
|
|
|
import { AppConfirm } from '../Common/Confirm';
|
|
|
|
|
import { FileServer } from '../../../DatabaseServices/FileServer';
|
|
|
|
|
import { Sleep } from '../../../Common/Sleep';
|
|
|
|
|
import { AppToaster } from '../Toaster';
|
|
|
|
|
|
|
|
|
|
interface ILoginState
|
|
|
|
|
{
|
|
|
|
@ -35,6 +35,7 @@ export function saveLoginInfos(data: IResponseData)
|
|
|
|
|
userConfig.isAdmin = data.ext_info.if_admin === 1;
|
|
|
|
|
userConfig.isMaster = data.ext_info.if_master === 1;
|
|
|
|
|
userConfig.rights = data.ext_info.rights;
|
|
|
|
|
userConfig.showShareModule = data.ext_info.ssm === "1";
|
|
|
|
|
|
|
|
|
|
//剩余天数
|
|
|
|
|
let retDate = new Date(data.ext_info.exp_date).getTime() - Date.now();
|
|
|
|
|