From 95d36942a2d97de2b68110f61ec5f15b3bc777d2 Mon Sep 17 00:00:00 2001 From: "Xc@centOs" Date: Wed, 2 Nov 2022 18:17:05 +0800 Subject: [PATCH] build --- lib/components/common/empty/empty.d.ts | 1 + lib/components/common/empty/simple.d.ts | 1 + lib/components/common/weChatLoginQrCode/index.d.ts | 1 + lib/components/config/upsert/account/index.d.ts | 1 + lib/components/config/upsert/web.pc.d.ts | 1 + lib/components/extraFile/display/web.d.ts | 1 + lib/components/extraFile/gallery/web.d.ts | 1 + lib/components/func/debugPanel/web.d.ts | 1 + lib/features/token.js | 2 +- lib/pages/address/list/web.d.ts | 1 + lib/pages/address/upsert/web.d.ts | 1 + lib/pages/article/detail/web.d.ts | 1 + lib/pages/article/list/web.d.ts | 1 + lib/pages/article/preview/web.d.ts | 1 + lib/pages/article/upsert/web.d.ts | 1 + lib/pages/login/web.d.ts | 1 + lib/pages/mobile/login/web.d.ts | 1 + lib/pages/mobile/me/web.d.ts | 1 + lib/pages/pickers/area/web.d.ts | 1 + lib/pages/platform/config/upsert/web.pc.d.ts | 1 + lib/pages/platform/list/web.pc.d.ts | 1 + lib/pages/platform/upsert/web.pc.d.ts | 1 + lib/pages/token/me/web.d.ts | 1 + lib/pages/user/manage/detail/web.d.ts | 1 + lib/pages/user/manage/upsert/web.d.ts | 1 + lib/pages/user/manage/web.d.ts | 1 + lib/pages/user/manage/web.pc.d.ts | 1 + lib/pages/user/search/web.d.ts | 1 + lib/pages/userEntityGrant/confirm/web.d.ts | 1 + lib/pages/userEntityGrant/detail/web.d.ts | 1 + lib/pages/userEntityGrant/grant/web.d.ts | 1 + lib/pages/userRelation/list/web.d.ts | 1 + lib/pages/userRelation/list/web.pc.d.ts | 1 + lib/pages/userRelation/manage/web.d.ts | 1 + lib/pages/userRelation/onEntity/web.d.ts | 1 + lib/pages/userRelation/onUser/web.d.ts | 1 + lib/pages/userRelation/upsert/byMobile/web.pc.d.ts | 1 + lib/pages/userRelation/upsert/byUser/web.pc.d.ts | 1 + lib/pages/userRelation/upsert/byUserEntityGrant/web.d.ts | 1 + lib/pages/userRelation/upsert/byUserEntityGrant/web.pc.d.ts | 1 + lib/pages/userRelation/upsert/onUser/web.d.ts | 1 + lib/pages/userRelation/upsert/onUser/web.pc.d.ts | 1 + lib/pages/userRelation/upsert/web.d.ts | 1 + lib/pages/userRelation/upsert/web.pc.d.ts | 1 + lib/pages/wechatQrCode/scan/web.d.ts | 1 + lib/pages/wechatUser/login/web.d.ts | 1 + src/features/token.ts | 2 +- 47 files changed, 47 insertions(+), 2 deletions(-) diff --git a/lib/components/common/empty/empty.d.ts b/lib/components/common/empty/empty.d.ts index 5ad33b8bc..a67bcf109 100644 --- a/lib/components/common/empty/empty.d.ts +++ b/lib/components/common/empty/empty.d.ts @@ -1,3 +1,4 @@ +/// import './index.less'; declare const Empty: () => JSX.Element; export default Empty; diff --git a/lib/components/common/empty/simple.d.ts b/lib/components/common/empty/simple.d.ts index 5ad33b8bc..a67bcf109 100644 --- a/lib/components/common/empty/simple.d.ts +++ b/lib/components/common/empty/simple.d.ts @@ -1,3 +1,4 @@ +/// import './index.less'; declare const Empty: () => JSX.Element; export default Empty; diff --git a/lib/components/common/weChatLoginQrCode/index.d.ts b/lib/components/common/weChatLoginQrCode/index.d.ts index 9a67a68fd..7f7374737 100644 --- a/lib/components/common/weChatLoginQrCode/index.d.ts +++ b/lib/components/common/weChatLoginQrCode/index.d.ts @@ -1,3 +1,4 @@ +/// import './index.less'; interface QrCodeProps { id?: string; diff --git a/lib/components/config/upsert/account/index.d.ts b/lib/components/config/upsert/account/index.d.ts index d12966ca5..ed8ae19c5 100644 --- a/lib/components/config/upsert/account/index.d.ts +++ b/lib/components/config/upsert/account/index.d.ts @@ -1,3 +1,4 @@ +/// import { Config } from '../../../../types/Config'; export default function Account(props: { account: Required['Account']; diff --git a/lib/components/config/upsert/web.pc.d.ts b/lib/components/config/upsert/web.pc.d.ts index 11df1296a..ad0b8f2aa 100644 --- a/lib/components/config/upsert/web.pc.d.ts +++ b/lib/components/config/upsert/web.pc.d.ts @@ -1 +1,2 @@ +/// export default function render(this: any): JSX.Element; diff --git a/lib/components/extraFile/display/web.d.ts b/lib/components/extraFile/display/web.d.ts index cfaabf286..5eaeadcc2 100644 --- a/lib/components/extraFile/display/web.d.ts +++ b/lib/components/extraFile/display/web.d.ts @@ -1 +1,2 @@ +/// export default function render(): JSX.Element; diff --git a/lib/components/extraFile/gallery/web.d.ts b/lib/components/extraFile/gallery/web.d.ts index 11df1296a..ad0b8f2aa 100644 --- a/lib/components/extraFile/gallery/web.d.ts +++ b/lib/components/extraFile/gallery/web.d.ts @@ -1 +1,2 @@ +/// export default function render(this: any): JSX.Element; diff --git a/lib/components/func/debugPanel/web.d.ts b/lib/components/func/debugPanel/web.d.ts index 11df1296a..ad0b8f2aa 100644 --- a/lib/components/func/debugPanel/web.d.ts +++ b/lib/components/func/debugPanel/web.d.ts @@ -1 +1,2 @@ +/// export default function render(this: any): JSX.Element; diff --git a/lib/features/token.js b/lib/features/token.js index dd0140809..7ce37c1c5 100644 --- a/lib/features/token.js +++ b/lib/features/token.js @@ -334,7 +334,7 @@ var Token = /** @class */ (function (_super) { var token, userRole$user; return tslib_1.__generator(this, function (_b) { switch (_b.label) { - case 0: return [4 /*yield*/, this.getToken()]; + case 0: return [4 /*yield*/, this.getToken(true)]; case 1: token = _b.sent(); userRole$user = (_a = token === null || token === void 0 ? void 0 : token.player) === null || _a === void 0 ? void 0 : _a.userRole$user; diff --git a/lib/pages/address/list/web.d.ts b/lib/pages/address/list/web.d.ts index 11df1296a..ad0b8f2aa 100644 --- a/lib/pages/address/list/web.d.ts +++ b/lib/pages/address/list/web.d.ts @@ -1 +1,2 @@ +/// export default function render(this: any): JSX.Element; diff --git a/lib/pages/address/upsert/web.d.ts b/lib/pages/address/upsert/web.d.ts index 11df1296a..ad0b8f2aa 100644 --- a/lib/pages/address/upsert/web.d.ts +++ b/lib/pages/address/upsert/web.d.ts @@ -1 +1,2 @@ +/// export default function render(this: any): JSX.Element; diff --git a/lib/pages/article/detail/web.d.ts b/lib/pages/article/detail/web.d.ts index 11df1296a..ad0b8f2aa 100644 --- a/lib/pages/article/detail/web.d.ts +++ b/lib/pages/article/detail/web.d.ts @@ -1 +1,2 @@ +/// export default function render(this: any): JSX.Element; diff --git a/lib/pages/article/list/web.d.ts b/lib/pages/article/list/web.d.ts index 11df1296a..ad0b8f2aa 100644 --- a/lib/pages/article/list/web.d.ts +++ b/lib/pages/article/list/web.d.ts @@ -1 +1,2 @@ +/// export default function render(this: any): JSX.Element; diff --git a/lib/pages/article/preview/web.d.ts b/lib/pages/article/preview/web.d.ts index 11df1296a..ad0b8f2aa 100644 --- a/lib/pages/article/preview/web.d.ts +++ b/lib/pages/article/preview/web.d.ts @@ -1 +1,2 @@ +/// export default function render(this: any): JSX.Element; diff --git a/lib/pages/article/upsert/web.d.ts b/lib/pages/article/upsert/web.d.ts index 5a31aa4b8..6b79ea6c3 100644 --- a/lib/pages/article/upsert/web.d.ts +++ b/lib/pages/article/upsert/web.d.ts @@ -1,2 +1,3 @@ +/// import '@wangeditor/editor/dist/css/style.css'; export default function render(this: any): JSX.Element; diff --git a/lib/pages/login/web.d.ts b/lib/pages/login/web.d.ts index 11df1296a..ad0b8f2aa 100644 --- a/lib/pages/login/web.d.ts +++ b/lib/pages/login/web.d.ts @@ -1 +1,2 @@ +/// export default function render(this: any): JSX.Element; diff --git a/lib/pages/mobile/login/web.d.ts b/lib/pages/mobile/login/web.d.ts index 11df1296a..ad0b8f2aa 100644 --- a/lib/pages/mobile/login/web.d.ts +++ b/lib/pages/mobile/login/web.d.ts @@ -1 +1,2 @@ +/// export default function render(this: any): JSX.Element; diff --git a/lib/pages/mobile/me/web.d.ts b/lib/pages/mobile/me/web.d.ts index 11df1296a..ad0b8f2aa 100644 --- a/lib/pages/mobile/me/web.d.ts +++ b/lib/pages/mobile/me/web.d.ts @@ -1 +1,2 @@ +/// export default function render(this: any): JSX.Element; diff --git a/lib/pages/pickers/area/web.d.ts b/lib/pages/pickers/area/web.d.ts index 11df1296a..ad0b8f2aa 100644 --- a/lib/pages/pickers/area/web.d.ts +++ b/lib/pages/pickers/area/web.d.ts @@ -1 +1,2 @@ +/// export default function render(this: any): JSX.Element; diff --git a/lib/pages/platform/config/upsert/web.pc.d.ts b/lib/pages/platform/config/upsert/web.pc.d.ts index 11df1296a..ad0b8f2aa 100644 --- a/lib/pages/platform/config/upsert/web.pc.d.ts +++ b/lib/pages/platform/config/upsert/web.pc.d.ts @@ -1 +1,2 @@ +/// export default function render(this: any): JSX.Element; diff --git a/lib/pages/platform/list/web.pc.d.ts b/lib/pages/platform/list/web.pc.d.ts index 11df1296a..ad0b8f2aa 100644 --- a/lib/pages/platform/list/web.pc.d.ts +++ b/lib/pages/platform/list/web.pc.d.ts @@ -1 +1,2 @@ +/// export default function render(this: any): JSX.Element; diff --git a/lib/pages/platform/upsert/web.pc.d.ts b/lib/pages/platform/upsert/web.pc.d.ts index 11df1296a..ad0b8f2aa 100644 --- a/lib/pages/platform/upsert/web.pc.d.ts +++ b/lib/pages/platform/upsert/web.pc.d.ts @@ -1 +1,2 @@ +/// export default function render(this: any): JSX.Element; diff --git a/lib/pages/token/me/web.d.ts b/lib/pages/token/me/web.d.ts index 11df1296a..ad0b8f2aa 100644 --- a/lib/pages/token/me/web.d.ts +++ b/lib/pages/token/me/web.d.ts @@ -1 +1,2 @@ +/// export default function render(this: any): JSX.Element; diff --git a/lib/pages/user/manage/detail/web.d.ts b/lib/pages/user/manage/detail/web.d.ts index 11df1296a..ad0b8f2aa 100644 --- a/lib/pages/user/manage/detail/web.d.ts +++ b/lib/pages/user/manage/detail/web.d.ts @@ -1 +1,2 @@ +/// export default function render(this: any): JSX.Element; diff --git a/lib/pages/user/manage/upsert/web.d.ts b/lib/pages/user/manage/upsert/web.d.ts index 11df1296a..ad0b8f2aa 100644 --- a/lib/pages/user/manage/upsert/web.d.ts +++ b/lib/pages/user/manage/upsert/web.d.ts @@ -1 +1,2 @@ +/// export default function render(this: any): JSX.Element; diff --git a/lib/pages/user/manage/web.d.ts b/lib/pages/user/manage/web.d.ts index 11df1296a..ad0b8f2aa 100644 --- a/lib/pages/user/manage/web.d.ts +++ b/lib/pages/user/manage/web.d.ts @@ -1 +1,2 @@ +/// export default function render(this: any): JSX.Element; diff --git a/lib/pages/user/manage/web.pc.d.ts b/lib/pages/user/manage/web.pc.d.ts index 11df1296a..ad0b8f2aa 100644 --- a/lib/pages/user/manage/web.pc.d.ts +++ b/lib/pages/user/manage/web.pc.d.ts @@ -1 +1,2 @@ +/// export default function render(this: any): JSX.Element; diff --git a/lib/pages/user/search/web.d.ts b/lib/pages/user/search/web.d.ts index cfaabf286..5eaeadcc2 100644 --- a/lib/pages/user/search/web.d.ts +++ b/lib/pages/user/search/web.d.ts @@ -1 +1,2 @@ +/// export default function render(): JSX.Element; diff --git a/lib/pages/userEntityGrant/confirm/web.d.ts b/lib/pages/userEntityGrant/confirm/web.d.ts index cfaabf286..5eaeadcc2 100644 --- a/lib/pages/userEntityGrant/confirm/web.d.ts +++ b/lib/pages/userEntityGrant/confirm/web.d.ts @@ -1 +1,2 @@ +/// export default function render(): JSX.Element; diff --git a/lib/pages/userEntityGrant/detail/web.d.ts b/lib/pages/userEntityGrant/detail/web.d.ts index cfaabf286..5eaeadcc2 100644 --- a/lib/pages/userEntityGrant/detail/web.d.ts +++ b/lib/pages/userEntityGrant/detail/web.d.ts @@ -1 +1,2 @@ +/// export default function render(): JSX.Element; diff --git a/lib/pages/userEntityGrant/grant/web.d.ts b/lib/pages/userEntityGrant/grant/web.d.ts index 11df1296a..ad0b8f2aa 100644 --- a/lib/pages/userEntityGrant/grant/web.d.ts +++ b/lib/pages/userEntityGrant/grant/web.d.ts @@ -1 +1,2 @@ +/// export default function render(this: any): JSX.Element; diff --git a/lib/pages/userRelation/list/web.d.ts b/lib/pages/userRelation/list/web.d.ts index 11df1296a..ad0b8f2aa 100644 --- a/lib/pages/userRelation/list/web.d.ts +++ b/lib/pages/userRelation/list/web.d.ts @@ -1 +1,2 @@ +/// export default function render(this: any): JSX.Element; diff --git a/lib/pages/userRelation/list/web.pc.d.ts b/lib/pages/userRelation/list/web.pc.d.ts index 11df1296a..ad0b8f2aa 100644 --- a/lib/pages/userRelation/list/web.pc.d.ts +++ b/lib/pages/userRelation/list/web.pc.d.ts @@ -1 +1,2 @@ +/// export default function render(this: any): JSX.Element; diff --git a/lib/pages/userRelation/manage/web.d.ts b/lib/pages/userRelation/manage/web.d.ts index 11df1296a..ad0b8f2aa 100644 --- a/lib/pages/userRelation/manage/web.d.ts +++ b/lib/pages/userRelation/manage/web.d.ts @@ -1 +1,2 @@ +/// export default function render(this: any): JSX.Element; diff --git a/lib/pages/userRelation/onEntity/web.d.ts b/lib/pages/userRelation/onEntity/web.d.ts index 11df1296a..ad0b8f2aa 100644 --- a/lib/pages/userRelation/onEntity/web.d.ts +++ b/lib/pages/userRelation/onEntity/web.d.ts @@ -1 +1,2 @@ +/// export default function render(this: any): JSX.Element; diff --git a/lib/pages/userRelation/onUser/web.d.ts b/lib/pages/userRelation/onUser/web.d.ts index 11df1296a..ad0b8f2aa 100644 --- a/lib/pages/userRelation/onUser/web.d.ts +++ b/lib/pages/userRelation/onUser/web.d.ts @@ -1 +1,2 @@ +/// export default function render(this: any): JSX.Element; diff --git a/lib/pages/userRelation/upsert/byMobile/web.pc.d.ts b/lib/pages/userRelation/upsert/byMobile/web.pc.d.ts index 11df1296a..ad0b8f2aa 100644 --- a/lib/pages/userRelation/upsert/byMobile/web.pc.d.ts +++ b/lib/pages/userRelation/upsert/byMobile/web.pc.d.ts @@ -1 +1,2 @@ +/// export default function render(this: any): JSX.Element; diff --git a/lib/pages/userRelation/upsert/byUser/web.pc.d.ts b/lib/pages/userRelation/upsert/byUser/web.pc.d.ts index 11df1296a..ad0b8f2aa 100644 --- a/lib/pages/userRelation/upsert/byUser/web.pc.d.ts +++ b/lib/pages/userRelation/upsert/byUser/web.pc.d.ts @@ -1 +1,2 @@ +/// export default function render(this: any): JSX.Element; diff --git a/lib/pages/userRelation/upsert/byUserEntityGrant/web.d.ts b/lib/pages/userRelation/upsert/byUserEntityGrant/web.d.ts index 11df1296a..ad0b8f2aa 100644 --- a/lib/pages/userRelation/upsert/byUserEntityGrant/web.d.ts +++ b/lib/pages/userRelation/upsert/byUserEntityGrant/web.d.ts @@ -1 +1,2 @@ +/// export default function render(this: any): JSX.Element; diff --git a/lib/pages/userRelation/upsert/byUserEntityGrant/web.pc.d.ts b/lib/pages/userRelation/upsert/byUserEntityGrant/web.pc.d.ts index 11df1296a..ad0b8f2aa 100644 --- a/lib/pages/userRelation/upsert/byUserEntityGrant/web.pc.d.ts +++ b/lib/pages/userRelation/upsert/byUserEntityGrant/web.pc.d.ts @@ -1 +1,2 @@ +/// export default function render(this: any): JSX.Element; diff --git a/lib/pages/userRelation/upsert/onUser/web.d.ts b/lib/pages/userRelation/upsert/onUser/web.d.ts index 11df1296a..ad0b8f2aa 100644 --- a/lib/pages/userRelation/upsert/onUser/web.d.ts +++ b/lib/pages/userRelation/upsert/onUser/web.d.ts @@ -1 +1,2 @@ +/// export default function render(this: any): JSX.Element; diff --git a/lib/pages/userRelation/upsert/onUser/web.pc.d.ts b/lib/pages/userRelation/upsert/onUser/web.pc.d.ts index 11df1296a..ad0b8f2aa 100644 --- a/lib/pages/userRelation/upsert/onUser/web.pc.d.ts +++ b/lib/pages/userRelation/upsert/onUser/web.pc.d.ts @@ -1 +1,2 @@ +/// export default function render(this: any): JSX.Element; diff --git a/lib/pages/userRelation/upsert/web.d.ts b/lib/pages/userRelation/upsert/web.d.ts index 11df1296a..ad0b8f2aa 100644 --- a/lib/pages/userRelation/upsert/web.d.ts +++ b/lib/pages/userRelation/upsert/web.d.ts @@ -1 +1,2 @@ +/// export default function render(this: any): JSX.Element; diff --git a/lib/pages/userRelation/upsert/web.pc.d.ts b/lib/pages/userRelation/upsert/web.pc.d.ts index 11df1296a..ad0b8f2aa 100644 --- a/lib/pages/userRelation/upsert/web.pc.d.ts +++ b/lib/pages/userRelation/upsert/web.pc.d.ts @@ -1 +1,2 @@ +/// export default function render(this: any): JSX.Element; diff --git a/lib/pages/wechatQrCode/scan/web.d.ts b/lib/pages/wechatQrCode/scan/web.d.ts index 11df1296a..ad0b8f2aa 100644 --- a/lib/pages/wechatQrCode/scan/web.d.ts +++ b/lib/pages/wechatQrCode/scan/web.d.ts @@ -1 +1,2 @@ +/// export default function render(this: any): JSX.Element; diff --git a/lib/pages/wechatUser/login/web.d.ts b/lib/pages/wechatUser/login/web.d.ts index 11df1296a..ad0b8f2aa 100644 --- a/lib/pages/wechatUser/login/web.d.ts +++ b/lib/pages/wechatUser/login/web.d.ts @@ -1 +1,2 @@ +/// export default function render(this: any): JSX.Element; diff --git a/src/features/token.ts b/src/features/token.ts index 6f8a21c0b..34b394b4d 100644 --- a/src/features/token.ts +++ b/src/features/token.ts @@ -321,7 +321,7 @@ export class Token< } async isRoot(): Promise { - const token = await this.getToken(); + const token = await this.getToken(true); const userRole$user = token?.player?.userRole$user; return ( (userRole$user as any)?.length > 0 &&