lib
This commit is contained in:
parent
52de9bbbbb
commit
ebf12a4b6e
|
|
@ -10,6 +10,6 @@ export * from './types/RuntimeCxt';
|
||||||
export { composeFileUrl, decomposeFileUrl } from './utils/extraFile';
|
export { composeFileUrl, decomposeFileUrl } from './utils/extraFile';
|
||||||
export { getLivestream, getPlayBackUrl, getStreamObj } from './utils/livestream';
|
export { getLivestream, getPlayBackUrl, getStreamObj } from './utils/livestream';
|
||||||
export { BackendRuntimeContext } from './context/BackendRuntimeContext';
|
export { BackendRuntimeContext } from './context/BackendRuntimeContext';
|
||||||
export { FrontendRuntimeContext } from './context/FrontendRuntimeContext';
|
export { FrontendRuntimeContext, SerializedData, } from './context/FrontendRuntimeContext';
|
||||||
export { RuntimeContext } from './context/RuntimeContext';
|
export { RuntimeContext } from './context/RuntimeContext';
|
||||||
export { registerWechatPublicTags } from './config/constants';
|
export { registerWechatPublicTags } from './config/constants';
|
||||||
|
|
|
||||||
|
|
@ -9,5 +9,5 @@ export * from './types/RuntimeCxt';
|
||||||
export { composeFileUrl, decomposeFileUrl } from './utils/extraFile';
|
export { composeFileUrl, decomposeFileUrl } from './utils/extraFile';
|
||||||
export { getLivestream, getPlayBackUrl, getStreamObj } from './utils/livestream';
|
export { getLivestream, getPlayBackUrl, getStreamObj } from './utils/livestream';
|
||||||
export { BackendRuntimeContext } from './context/BackendRuntimeContext';
|
export { BackendRuntimeContext } from './context/BackendRuntimeContext';
|
||||||
export { FrontendRuntimeContext } from './context/FrontendRuntimeContext';
|
export { FrontendRuntimeContext, } from './context/FrontendRuntimeContext';
|
||||||
export { registerWechatPublicTags } from './config/constants';
|
export { registerWechatPublicTags } from './config/constants';
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
import { WebEnv, WechatMpEnv } from 'oak-domain/lib/types/Environment';
|
import { WebEnv, WechatMpEnv } from 'oak-domain/lib/types/Environment';
|
||||||
import { AppType } from '../oak-app-domain/Application/Schema';
|
import { AppType } from '../oak-app-domain/Application/Schema';
|
||||||
import { EntityDict } from '../oak-app-domain';
|
import { EntityDict } from '../oak-app-domain';
|
||||||
import { QiniuUploadInfo } from 'oak-frontend-base/lib/types/Upload';
|
import { QiniuUploadInfo } from 'oak-frontend-base';
|
||||||
import { Config, Origin } from '../types/Config';
|
import { Config, Origin } from '../types/Config';
|
||||||
import { BackendRuntimeContext } from '../context/BackendRuntimeContext';
|
import { BackendRuntimeContext } from '../context/BackendRuntimeContext';
|
||||||
export declare type GeneralAspectDict<ED extends EntityDict, Cxt extends BackendRuntimeContext<ED>> = {
|
export declare type GeneralAspectDict<ED extends EntityDict, Cxt extends BackendRuntimeContext<ED>> = {
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
import { EntityDict } from '../oak-app-domain';
|
import { EntityDict } from '../oak-app-domain';
|
||||||
import { Origin } from '../types/Config';
|
import { Origin } from '../types/Config';
|
||||||
import { QiniuUploadInfo } from 'oak-frontend-base/lib/types/Upload';
|
import { QiniuUploadInfo } from 'oak-frontend-base';
|
||||||
import { BackendRuntimeContext } from '../context/BackendRuntimeContext';
|
import { BackendRuntimeContext } from '../context/BackendRuntimeContext';
|
||||||
export declare function getUploadInfo<ED extends EntityDict, Cxt extends BackendRuntimeContext<ED>>(params: {
|
export declare function getUploadInfo<ED extends EntityDict, Cxt extends BackendRuntimeContext<ED>>(params: {
|
||||||
origin: Origin;
|
origin: Origin;
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,7 @@ var tslib_1 = require("tslib");
|
||||||
var types_1 = require("oak-domain/lib/types");
|
var types_1 = require("oak-domain/lib/types");
|
||||||
var uuid_1 = require("oak-domain/lib/utils/uuid");
|
var uuid_1 = require("oak-domain/lib/utils/uuid");
|
||||||
var password_1 = require("../utils/password");
|
var password_1 = require("../utils/password");
|
||||||
var assert_1 = tslib_1.__importDefault(require("assert"));
|
var assert_1 = require("oak-domain/lib/utils/assert");
|
||||||
var dayjs_1 = tslib_1.__importDefault(require("dayjs"));
|
var dayjs_1 = tslib_1.__importDefault(require("dayjs"));
|
||||||
function mergeUser(params, context, innerLogic) {
|
function mergeUser(params, context, innerLogic) {
|
||||||
return tslib_1.__awaiter(this, void 0, void 0, function () {
|
return tslib_1.__awaiter(this, void 0, void 0, function () {
|
||||||
|
|
@ -18,9 +18,9 @@ function mergeUser(params, context, innerLogic) {
|
||||||
throw new types_1.OakUserUnpermittedException('不允许执行mergeUser操作');
|
throw new types_1.OakUserUnpermittedException('不允许执行mergeUser操作');
|
||||||
}
|
}
|
||||||
from = params.from, to = params.to;
|
from = params.from, to = params.to;
|
||||||
(0, assert_1.default)(from);
|
(0, assert_1.assert)(from);
|
||||||
(0, assert_1.default)(to);
|
(0, assert_1.assert)(to);
|
||||||
(0, assert_1.default)(from !== to, '不能merge到相同user');
|
(0, assert_1.assert)(from !== to, '不能merge到相同user');
|
||||||
schema = context.getSchema();
|
schema = context.getSchema();
|
||||||
_b = (_a = context).operate;
|
_b = (_a = context).operate;
|
||||||
_c = ['token'];
|
_c = ['token'];
|
||||||
|
|
|
||||||
|
|
@ -1,2 +1,2 @@
|
||||||
declare const checkers: (import("oak-domain/lib/types").Checker<import("../oak-app-domain").EntityDict, "address", import("../types/RuntimeCxt").RuntimeCxt> | import("oak-domain/lib/types").Checker<import("../oak-app-domain").EntityDict, "token", import("../types/RuntimeCxt").RuntimeCxt> | import("oak-domain/lib/types").Checker<import("../oak-app-domain").EntityDict, "user", import("../types/RuntimeCxt").RuntimeCxt> | import("oak-domain/lib/types").Checker<import("../oak-app-domain").EntityDict, "userEntityGrant", import("../types/RuntimeCxt").RuntimeCxt> | import("oak-domain/lib/types").Checker<import("../oak-app-domain").EntityDict, "wechatQrCode", import("../types/RuntimeCxt").RuntimeCxt> | import("oak-domain/lib/types").Checker<import("../oak-app-domain").EntityDict, "application", import("../types/RuntimeCxt").RuntimeCxt> | import("oak-domain/lib/types").Checker<import("../oak-app-domain").EntityDict, "mobile", import("../types/RuntimeCxt").RuntimeCxt> | import("oak-domain/lib/types").Checker<import("../oak-app-domain").EntityDict, "wechatPublicTag", import("../types/RuntimeCxt").RuntimeCxt> | import("oak-domain/lib/types").Checker<import("../oak-app-domain").EntityDict, "message", import("../types/RuntimeCxt").RuntimeCxt> | import("oak-domain/lib/types").Checker<import("../oak-app-domain").EntityDict, "messageTypeTemplateId", import("../types/RuntimeCxt").RuntimeCxt> | import("oak-domain/lib/types").Checker<import("../oak-app-domain").EntityDict, "parasite", import("../types/RuntimeCxt").RuntimeCxt>)[];
|
declare const checkers: (import("oak-domain").Checker<import("../oak-app-domain").EntityDict, "address", import("..").RuntimeCxt> | import("oak-domain").Checker<import("../oak-app-domain").EntityDict, "token", import("..").RuntimeCxt> | import("oak-domain").Checker<import("../oak-app-domain").EntityDict, "user", import("..").RuntimeCxt> | import("oak-domain").Checker<import("../oak-app-domain").EntityDict, "userEntityGrant", import("..").RuntimeCxt> | import("oak-domain").Checker<import("../oak-app-domain").EntityDict, "wechatQrCode", import("..").RuntimeCxt> | import("oak-domain").Checker<import("../oak-app-domain").EntityDict, "application", import("..").RuntimeCxt> | import("oak-domain").Checker<import("../oak-app-domain").EntityDict, "mobile", import("..").RuntimeCxt> | import("oak-domain").Checker<import("../oak-app-domain").EntityDict, "wechatPublicTag", import("..").RuntimeCxt> | import("oak-domain").Checker<import("../oak-app-domain").EntityDict, "message", import("..").RuntimeCxt> | import("oak-domain").Checker<import("../oak-app-domain").EntityDict, "messageTypeTemplateId", import("..").RuntimeCxt> | import("oak-domain").Checker<import("../oak-app-domain").EntityDict, "parasite", import("..").RuntimeCxt>)[];
|
||||||
export default checkers;
|
export default checkers;
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
import { Checker } from "oak-domain/lib/types";
|
import { Checker } from 'oak-domain/lib/types';
|
||||||
import { EntityDict } from '../oak-app-domain';
|
import { EntityDict } from '../oak-app-domain';
|
||||||
import { RuntimeCxt } from '../types/RuntimeCxt';
|
import { RuntimeCxt } from '../types/RuntimeCxt';
|
||||||
declare const checkers: Checker<EntityDict, 'mobile', RuntimeCxt>[];
|
declare const checkers: Checker<EntityDict, 'mobile', RuntimeCxt>[];
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,6 @@
|
||||||
"use strict";
|
"use strict";
|
||||||
Object.defineProperty(exports, "__esModule", { value: true });
|
Object.defineProperty(exports, "__esModule", { value: true });
|
||||||
var tslib_1 = require("tslib");
|
var assert_1 = require("oak-domain/lib/utils/assert");
|
||||||
var assert_1 = tslib_1.__importDefault(require("assert"));
|
|
||||||
var validator_1 = require("oak-domain/lib/utils/validator");
|
var validator_1 = require("oak-domain/lib/utils/validator");
|
||||||
var types_1 = require("oak-domain/lib/types");
|
var types_1 = require("oak-domain/lib/types");
|
||||||
var validator_2 = require("oak-domain/lib/utils/validator");
|
var validator_2 = require("oak-domain/lib/utils/validator");
|
||||||
|
|
@ -11,7 +10,7 @@ var checkers = [
|
||||||
action: 'create',
|
action: 'create',
|
||||||
entity: 'mobile',
|
entity: 'mobile',
|
||||||
checker: function (data) {
|
checker: function (data) {
|
||||||
(0, assert_1.default)(!(data instanceof Array));
|
(0, assert_1.assert)(!(data instanceof Array));
|
||||||
(0, validator_2.checkAttributesNotNull)('mobile', data, ['mobile']);
|
(0, validator_2.checkAttributesNotNull)('mobile', data, ['mobile']);
|
||||||
if (!(0, validator_1.isMobile)(data.mobile)) {
|
if (!(0, validator_1.isMobile)(data.mobile)) {
|
||||||
throw new types_1.OakInputIllegalException('mobile', ['mobile'], '手机号非法');
|
throw new types_1.OakInputIllegalException('mobile', ['mobile'], '手机号非法');
|
||||||
|
|
@ -23,7 +22,7 @@ var checkers = [
|
||||||
action: 'update',
|
action: 'update',
|
||||||
entity: 'mobile',
|
entity: 'mobile',
|
||||||
checker: function (data) {
|
checker: function (data) {
|
||||||
(0, assert_1.default)(!(data instanceof Array));
|
(0, assert_1.assert)(!(data instanceof Array));
|
||||||
if (data.hasOwnProperty('mobile')) {
|
if (data.hasOwnProperty('mobile')) {
|
||||||
(0, validator_2.checkAttributesNotNull)('mobile', data, ['mobile']);
|
(0, validator_2.checkAttributesNotNull)('mobile', data, ['mobile']);
|
||||||
if (!(0, validator_1.isMobile)(data.mobile)) {
|
if (!(0, validator_1.isMobile)(data.mobile)) {
|
||||||
|
|
@ -31,6 +30,6 @@ var checkers = [
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
}
|
},
|
||||||
];
|
];
|
||||||
exports.default = checkers;
|
exports.default = checkers;
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,7 @@
|
||||||
Object.defineProperty(exports, "__esModule", { value: true });
|
Object.defineProperty(exports, "__esModule", { value: true });
|
||||||
var tslib_1 = require("tslib");
|
var tslib_1 = require("tslib");
|
||||||
var types_1 = require("oak-domain/lib/types");
|
var types_1 = require("oak-domain/lib/types");
|
||||||
var assert_1 = tslib_1.__importDefault(require("assert"));
|
var assert_1 = require("oak-domain/lib/utils/assert");
|
||||||
var validator_1 = require("oak-domain/lib/utils/validator");
|
var validator_1 = require("oak-domain/lib/utils/validator");
|
||||||
var checkers = [
|
var checkers = [
|
||||||
{
|
{
|
||||||
|
|
@ -11,7 +11,7 @@ var checkers = [
|
||||||
entity: 'parasite',
|
entity: 'parasite',
|
||||||
checker: function (data, context) {
|
checker: function (data, context) {
|
||||||
// const { data } = operation as EntityDict['parasite']['Create'];
|
// const { data } = operation as EntityDict['parasite']['Create'];
|
||||||
(0, assert_1.default)(!(data instanceof Array));
|
(0, assert_1.assert)(!(data instanceof Array));
|
||||||
(0, validator_1.checkAttributesNotNull)('parasite', data, ['expiresAt', 'tokenLifeLength']);
|
(0, validator_1.checkAttributesNotNull)('parasite', data, ['expiresAt', 'tokenLifeLength']);
|
||||||
if (data.userId) {
|
if (data.userId) {
|
||||||
var users2 = context.select('user', {
|
var users2 = context.select('user', {
|
||||||
|
|
@ -42,7 +42,7 @@ var checkers = [
|
||||||
}
|
}
|
||||||
return checkUser_1(users2);
|
return checkUser_1(users2);
|
||||||
}
|
}
|
||||||
(0, assert_1.default)(data.user && data.user.action === 'create');
|
(0, assert_1.assert)(data.user && data.user.action === 'create');
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,6 @@
|
||||||
"use strict";
|
"use strict";
|
||||||
Object.defineProperty(exports, "__esModule", { value: true });
|
Object.defineProperty(exports, "__esModule", { value: true });
|
||||||
var tslib_1 = require("tslib");
|
var assert_1 = require("oak-domain/lib/utils/assert");
|
||||||
var assert_1 = tslib_1.__importDefault(require("assert"));
|
|
||||||
var validator_1 = require("oak-domain/lib/utils/validator");
|
var validator_1 = require("oak-domain/lib/utils/validator");
|
||||||
var checkers = [
|
var checkers = [
|
||||||
{
|
{
|
||||||
|
|
@ -9,9 +8,16 @@ var checkers = [
|
||||||
action: 'create',
|
action: 'create',
|
||||||
entity: 'wechatPublicTag',
|
entity: 'wechatPublicTag',
|
||||||
checker: function (data) {
|
checker: function (data) {
|
||||||
(0, assert_1.default)(!(data instanceof Array));
|
(0, assert_1.assert)(!(data instanceof Array));
|
||||||
(0, validator_1.checkAttributesNotNull)('wechatPublicTag', data, ['applicationId', 'text']);
|
(0, validator_1.checkAttributesNotNull)('wechatPublicTag', data, [
|
||||||
(0, validator_1.checkAttributesScope)('wechatPublicTag', data, ['applicationId', 'id', 'text']);
|
'applicationId',
|
||||||
|
'text',
|
||||||
|
]);
|
||||||
|
(0, validator_1.checkAttributesScope)('wechatPublicTag', data, [
|
||||||
|
'applicationId',
|
||||||
|
'id',
|
||||||
|
'text',
|
||||||
|
]);
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
];
|
];
|
||||||
|
|
|
||||||
|
|
@ -37,5 +37,5 @@ export declare type Poi = {
|
||||||
email?: string;
|
email?: string;
|
||||||
businessArea?: string;
|
businessArea?: string;
|
||||||
};
|
};
|
||||||
declare const Location: (props: LocationProps) => JSX.Element;
|
declare const Location: (props: LocationProps) => import("react/jsx-runtime").JSX.Element;
|
||||||
export default Location;
|
export default Location;
|
||||||
|
|
|
||||||
|
|
@ -29,5 +29,5 @@ export interface AMapProps extends APILoaderProps {
|
||||||
securityJsCode?: string;
|
securityJsCode?: string;
|
||||||
serviceHost?: string;
|
serviceHost?: string;
|
||||||
}
|
}
|
||||||
declare const memo: (props: AMapProps) => JSX.Element;
|
declare const memo: (props: AMapProps) => import("react/jsx-runtime").JSX.Element;
|
||||||
export default memo;
|
export default memo;
|
||||||
|
|
|
||||||
|
|
@ -7,4 +7,4 @@ export default function Render(props: WebComponentProps<EntityDict, 'article', f
|
||||||
name: string;
|
name: string;
|
||||||
width: string;
|
width: string;
|
||||||
editor: any;
|
editor: any;
|
||||||
}, {}>): JSX.Element;
|
}, {}>): import("react/jsx-runtime").JSX.Element;
|
||||||
|
|
|
||||||
|
|
@ -8,4 +8,4 @@ export default function Render(props: WebComponentProps<EntityDict, 'article', f
|
||||||
content?: string;
|
content?: string;
|
||||||
html?: string;
|
html?: string;
|
||||||
origin?: string;
|
origin?: string;
|
||||||
}, {}>): JSX.Element;
|
}, {}>): import("react/jsx-runtime").JSX.Element;
|
||||||
|
|
|
||||||
|
|
@ -8,4 +8,4 @@ export default function Render(props: WebComponentProps<EntityDict, 'article', f
|
||||||
content?: string;
|
content?: string;
|
||||||
html?: string;
|
html?: string;
|
||||||
origin?: string;
|
origin?: string;
|
||||||
}, {}>): JSX.Element;
|
}, {}>): import("react/jsx-runtime").JSX.Element;
|
||||||
|
|
|
||||||
|
|
@ -19,4 +19,4 @@ export default function Render(props: WebComponentProps<EntityDict, 'articleMenu
|
||||||
setCurrentArticle: (id: string) => void;
|
setCurrentArticle: (id: string) => void;
|
||||||
}, {
|
}, {
|
||||||
createOne: () => Promise<void>;
|
createOne: () => Promise<void>;
|
||||||
}>): JSX.Element | null;
|
}>): import("react/jsx-runtime").JSX.Element | null;
|
||||||
|
|
|
||||||
|
|
@ -26,4 +26,4 @@ export default function Render(props: WebComponentProps<EntityDict, "article", f
|
||||||
}>;
|
}>;
|
||||||
clearContentTip: () => void;
|
clearContentTip: () => void;
|
||||||
gotoPreview: (content?: string, title?: string) => void;
|
gotoPreview: (content?: string, title?: string) => void;
|
||||||
}>): JSX.Element;
|
}>): import("react/jsx-runtime").JSX.Element;
|
||||||
|
|
|
||||||
|
|
@ -34,4 +34,4 @@ export default function Render(props: WebComponentProps<EntityDict, 'articleMenu
|
||||||
createSubArticle: (name: string) => Promise<void>;
|
createSubArticle: (name: string) => Promise<void>;
|
||||||
createSubArticleMenu: (name: string) => Promise<void>;
|
createSubArticleMenu: (name: string) => Promise<void>;
|
||||||
gotoDoc: (articleMenuId: string) => void;
|
gotoDoc: (articleMenuId: string) => void;
|
||||||
}>): JSX.Element | null;
|
}>): import("react/jsx-runtime").JSX.Element | null;
|
||||||
|
|
|
||||||
|
|
@ -10,4 +10,4 @@ export default function Render(props: WebComponentProps<EntityDict, 'message', f
|
||||||
setMobile: (value: string) => void;
|
setMobile: (value: string) => void;
|
||||||
sendCaptcha: (mobile: string) => Promise<void>;
|
sendCaptcha: (mobile: string) => Promise<void>;
|
||||||
onConfirmByMobile: (mobile: string, captcha: string, newPassword: string) => Promise<void>;
|
onConfirmByMobile: (mobile: string, captcha: string, newPassword: string) => Promise<void>;
|
||||||
}>): JSX.Element;
|
}>): import("react/jsx-runtime").JSX.Element;
|
||||||
|
|
|
||||||
|
|
@ -5,4 +5,4 @@ export default function Render(props: WebComponentProps<EntityDict, 'message', f
|
||||||
failTimes: number;
|
failTimes: number;
|
||||||
}, {
|
}, {
|
||||||
onConfirm: (prevPassword: string, password: string) => Promise<void>;
|
onConfirm: (prevPassword: string, password: string) => Promise<void>;
|
||||||
}>): JSX.Element;
|
}>): import("react/jsx-runtime").JSX.Element;
|
||||||
|
|
|
||||||
|
|
@ -6,4 +6,4 @@ export default function Render(props: WebComponentProps<EntityDict, 'message', f
|
||||||
oakId: string;
|
oakId: string;
|
||||||
}, {
|
}, {
|
||||||
goToMobile: () => void;
|
goToMobile: () => void;
|
||||||
}>): JSX.Element;
|
}>): import("react/jsx-runtime").JSX.Element;
|
||||||
|
|
|
||||||
|
|
@ -7,7 +7,7 @@ declare type IDownloadProps = {
|
||||||
style?: React.CSSProperties;
|
style?: React.CSSProperties;
|
||||||
filename?: string;
|
filename?: string;
|
||||||
};
|
};
|
||||||
declare function Download(props: IDownloadProps): JSX.Element;
|
declare function Download(props: IDownloadProps): import("react/jsx-runtime").JSX.Element;
|
||||||
declare namespace Download {
|
declare namespace Download {
|
||||||
var onDownload: (arrayBuffer: ArrayBuffer, filename: string) => void;
|
var onDownload: (arrayBuffer: ArrayBuffer, filename: string) => void;
|
||||||
var base64ToBlob: (base64String: string) => Blob;
|
var base64ToBlob: (base64String: string) => Blob;
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,3 @@
|
||||||
import './index.less';
|
import './index.less';
|
||||||
declare const Empty: () => JSX.Element;
|
declare const Empty: () => import("react/jsx-runtime").JSX.Element;
|
||||||
export default Empty;
|
export default Empty;
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,3 @@
|
||||||
import './index.less';
|
import './index.less';
|
||||||
declare const Empty: () => JSX.Element;
|
declare const Empty: () => import("react/jsx-runtime").JSX.Element;
|
||||||
export default Empty;
|
export default Empty;
|
||||||
|
|
|
||||||
|
|
@ -15,5 +15,5 @@ interface IErrorPageProps {
|
||||||
children?: React.ReactNode;
|
children?: React.ReactNode;
|
||||||
icon?: React.ReactNode;
|
icon?: React.ReactNode;
|
||||||
}
|
}
|
||||||
declare function ErrorPage(props: IErrorPageProps): JSX.Element;
|
declare function ErrorPage(props: IErrorPageProps): import("react/jsx-runtime").JSX.Element;
|
||||||
export default ErrorPage;
|
export default ErrorPage;
|
||||||
|
|
|
||||||
|
|
@ -15,5 +15,5 @@ declare type GridProps = {
|
||||||
list: Array<Item>;
|
list: Array<Item>;
|
||||||
onChange?: (index: number, event?: React.MouseEvent<HTMLDivElement, MouseEvent>) => void;
|
onChange?: (index: number, event?: React.MouseEvent<HTMLDivElement, MouseEvent>) => void;
|
||||||
};
|
};
|
||||||
declare const _default: React.MemoExoticComponent<(props: GridProps) => JSX.Element>;
|
declare const _default: React.MemoExoticComponent<(props: GridProps) => import("react/jsx-runtime").JSX.Element>;
|
||||||
export default _default;
|
export default _default;
|
||||||
|
|
|
||||||
|
|
@ -17,5 +17,5 @@ declare type PageHeaderProps = {
|
||||||
children?: React.ReactNode;
|
children?: React.ReactNode;
|
||||||
showHeader?: boolean;
|
showHeader?: boolean;
|
||||||
};
|
};
|
||||||
declare const _default: React.MemoExoticComponent<(props: PageHeaderProps) => JSX.Element>;
|
declare const _default: React.MemoExoticComponent<(props: PageHeaderProps) => import("react/jsx-runtime").JSX.Element>;
|
||||||
export default _default;
|
export default _default;
|
||||||
|
|
|
||||||
|
|
@ -14,5 +14,5 @@ declare type IQrCodeProps = {
|
||||||
successed?: boolean;
|
successed?: boolean;
|
||||||
type?: EntityDict['wechatLogin']['Schema']['type'];
|
type?: EntityDict['wechatLogin']['Schema']['type'];
|
||||||
};
|
};
|
||||||
declare function QrCode(props: IQrCodeProps): JSX.Element;
|
declare function QrCode(props: IQrCodeProps): import("react/jsx-runtime").JSX.Element;
|
||||||
export default QrCode;
|
export default QrCode;
|
||||||
|
|
|
||||||
|
|
@ -5,5 +5,5 @@ declare type Props = {
|
||||||
description?: string;
|
description?: string;
|
||||||
children?: React.ReactNode;
|
children?: React.ReactNode;
|
||||||
};
|
};
|
||||||
declare const _default: React.MemoExoticComponent<(props: Props) => JSX.Element>;
|
declare const _default: React.MemoExoticComponent<(props: Props) => import("react/jsx-runtime").JSX.Element>;
|
||||||
export default _default;
|
export default _default;
|
||||||
|
|
|
||||||
|
|
@ -5,5 +5,5 @@ declare type Props = {
|
||||||
description?: string;
|
description?: string;
|
||||||
children?: React.ReactNode;
|
children?: React.ReactNode;
|
||||||
};
|
};
|
||||||
declare const _default: React.MemoExoticComponent<(props: Props) => JSX.Element>;
|
declare const _default: React.MemoExoticComponent<(props: Props) => import("react/jsx-runtime").JSX.Element>;
|
||||||
export default _default;
|
export default _default;
|
||||||
|
|
|
||||||
|
|
@ -14,5 +14,5 @@ interface GrantProps {
|
||||||
rootStyle?: React.CSSProperties;
|
rootStyle?: React.CSSProperties;
|
||||||
rootClassName?: string;
|
rootClassName?: string;
|
||||||
}
|
}
|
||||||
declare function Grant(props: GrantProps): JSX.Element;
|
declare function Grant(props: GrantProps): import("react/jsx-runtime").JSX.Element;
|
||||||
export default Grant;
|
export default Grant;
|
||||||
|
|
|
||||||
|
|
@ -14,5 +14,5 @@ interface QrCodeProps {
|
||||||
rootStyle?: React.CSSProperties;
|
rootStyle?: React.CSSProperties;
|
||||||
rootClassName?: string;
|
rootClassName?: string;
|
||||||
}
|
}
|
||||||
declare function QrCode(props: QrCodeProps): JSX.Element;
|
declare function QrCode(props: QrCodeProps): import("react/jsx-runtime").JSX.Element;
|
||||||
export default QrCode;
|
export default QrCode;
|
||||||
|
|
|
||||||
|
|
@ -29,7 +29,7 @@ function QrCode(props) {
|
||||||
redirect_uri: redirectUri,
|
redirect_uri: redirectUri,
|
||||||
style: style,
|
style: style,
|
||||||
href: href,
|
href: href,
|
||||||
state: state || '',
|
state: state || ''
|
||||||
};
|
};
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
new WxLogin(params);
|
new WxLogin(params);
|
||||||
|
|
|
||||||
|
|
@ -15,5 +15,5 @@ export default function render(props: WebComponentProps<EntityDict, 'user', fals
|
||||||
setValue: (path: string, value: string) => void;
|
setValue: (path: string, value: string) => void;
|
||||||
removeItem: (path: string, index: number) => void;
|
removeItem: (path: string, index: number) => void;
|
||||||
cleanKey: (path: string, key: string) => void;
|
cleanKey: (path: string, key: string) => void;
|
||||||
}>): JSX.Element;
|
}>): import("react/jsx-runtime").JSX.Element;
|
||||||
export {};
|
export {};
|
||||||
|
|
|
||||||
|
|
@ -4,4 +4,4 @@ export default function Web(props: {
|
||||||
setValue: (path: string, value: any) => void;
|
setValue: (path: string, value: any) => void;
|
||||||
removeItem: (path: string, index: number) => void;
|
removeItem: (path: string, index: number) => void;
|
||||||
cleanKey: (path: string, key: string) => void;
|
cleanKey: (path: string, key: string) => void;
|
||||||
}): JSX.Element;
|
}): import("react/jsx-runtime").JSX.Element;
|
||||||
|
|
|
||||||
|
|
@ -4,4 +4,4 @@ export default function WechatMp(props: {
|
||||||
setValue: (path: string, value: any) => void;
|
setValue: (path: string, value: any) => void;
|
||||||
removeItem: (path: string, index: number) => void;
|
removeItem: (path: string, index: number) => void;
|
||||||
cleanKey: (path: string, key: string) => void;
|
cleanKey: (path: string, key: string) => void;
|
||||||
}): JSX.Element;
|
}): import("react/jsx-runtime").JSX.Element;
|
||||||
|
|
|
||||||
|
|
@ -5,4 +5,4 @@ export default function WechatPublic(props: {
|
||||||
setValue: (path: string, value: any) => void;
|
setValue: (path: string, value: any) => void;
|
||||||
removeItem: (path: string, index: number) => void;
|
removeItem: (path: string, index: number) => void;
|
||||||
cleanKey: (path: string, key: string) => void;
|
cleanKey: (path: string, key: string) => void;
|
||||||
}): JSX.Element;
|
}): import("react/jsx-runtime").JSX.Element;
|
||||||
|
|
|
||||||
|
|
@ -3,5 +3,5 @@ declare type StyleProps = {
|
||||||
value?: StyleType | null;
|
value?: StyleType | null;
|
||||||
onChange: (value: StyleType) => void;
|
onChange: (value: StyleType) => void;
|
||||||
};
|
};
|
||||||
export default function Render(props: StyleProps): JSX.Element;
|
export default function Render(props: StyleProps): import("react/jsx-runtime").JSX.Element;
|
||||||
export {};
|
export {};
|
||||||
|
|
|
||||||
|
|
@ -3,4 +3,4 @@ export default function Account(props: {
|
||||||
account: Required<Config>['Account'];
|
account: Required<Config>['Account'];
|
||||||
setValue: (path: string, value: any) => void;
|
setValue: (path: string, value: any) => void;
|
||||||
removeItem: (path: string, index: number) => void;
|
removeItem: (path: string, index: number) => void;
|
||||||
}): JSX.Element;
|
}): import("react/jsx-runtime").JSX.Element;
|
||||||
|
|
|
||||||
|
|
@ -2,4 +2,4 @@ import { Config } from '../../../../types/Config';
|
||||||
export default function Cos(props: {
|
export default function Cos(props: {
|
||||||
cos: Required<Config>['Cos'];
|
cos: Required<Config>['Cos'];
|
||||||
setValue: (path: string, value: any) => void;
|
setValue: (path: string, value: any) => void;
|
||||||
}): JSX.Element;
|
}): import("react/jsx-runtime").JSX.Element;
|
||||||
|
|
|
||||||
|
|
@ -2,4 +2,4 @@ import { Config } from '../../../../types/Config';
|
||||||
export default function Cos(props: {
|
export default function Cos(props: {
|
||||||
live: Required<Config>['Live'];
|
live: Required<Config>['Live'];
|
||||||
setValue: (path: string, value: any) => void;
|
setValue: (path: string, value: any) => void;
|
||||||
}): JSX.Element;
|
}): import("react/jsx-runtime").JSX.Element;
|
||||||
|
|
|
||||||
|
|
@ -2,4 +2,4 @@ import { Config } from '../../../../types/Config';
|
||||||
export default function Cos(props: {
|
export default function Cos(props: {
|
||||||
map: Required<Config>['Map'];
|
map: Required<Config>['Map'];
|
||||||
setValue: (path: string, value: any) => void;
|
setValue: (path: string, value: any) => void;
|
||||||
}): JSX.Element;
|
}): import("react/jsx-runtime").JSX.Element;
|
||||||
|
|
|
||||||
|
|
@ -4,4 +4,4 @@ export default function Sms(props: {
|
||||||
setValue: (path: string, value: any) => void;
|
setValue: (path: string, value: any) => void;
|
||||||
removeItem: (path: string, index: number) => void;
|
removeItem: (path: string, index: number) => void;
|
||||||
cleanKey: (path: string, key: string) => void;
|
cleanKey: (path: string, key: string) => void;
|
||||||
}): JSX.Element;
|
}): import("react/jsx-runtime").JSX.Element;
|
||||||
|
|
|
||||||
|
|
@ -12,4 +12,4 @@ export default function Render(props: WebComponentProps<EntityDict, 'user', fals
|
||||||
setValue: (path: string, value: string) => void;
|
setValue: (path: string, value: string) => void;
|
||||||
removeItem: (path: string, index: number) => void;
|
removeItem: (path: string, index: number) => void;
|
||||||
cleanKey: (path: string, key: string) => void;
|
cleanKey: (path: string, key: string) => void;
|
||||||
}>): JSX.Element;
|
}>): import("react/jsx-runtime").JSX.Element;
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,7 @@
|
||||||
Object.defineProperty(exports, "__esModule", { value: true });
|
Object.defineProperty(exports, "__esModule", { value: true });
|
||||||
var tslib_1 = require("tslib");
|
var tslib_1 = require("tslib");
|
||||||
var uuid_1 = require("oak-domain/lib/utils/uuid");
|
var uuid_1 = require("oak-domain/lib/utils/uuid");
|
||||||
var assert_1 = tslib_1.__importDefault(require("assert"));
|
var assert_1 = require("oak-domain/lib/utils/assert");
|
||||||
exports.default = OakComponent({
|
exports.default = OakComponent({
|
||||||
entity: 'extraFile',
|
entity: 'extraFile',
|
||||||
isList: true,
|
isList: true,
|
||||||
|
|
@ -137,7 +137,7 @@ exports.default = OakComponent({
|
||||||
name = options.name, extra1 = options.extra1, fileType = options.fileType, size = options.size;
|
name = options.name, extra1 = options.extra1, fileType = options.fileType, size = options.size;
|
||||||
extension = name.substring(name.lastIndexOf('.') + 1);
|
extension = name.substring(name.lastIndexOf('.') + 1);
|
||||||
filename = name.substring(0, name.lastIndexOf('.'));
|
filename = name.substring(0, name.lastIndexOf('.'));
|
||||||
(0, assert_1.default)(entity, '必须传入entity');
|
(0, assert_1.assert)(entity, '必须传入entity');
|
||||||
updateData = {
|
updateData = {
|
||||||
extra1: extra1,
|
extra1: extra1,
|
||||||
origin: origin,
|
origin: origin,
|
||||||
|
|
|
||||||
|
|
@ -6,4 +6,4 @@ export default function render(props: WebComponentProps<EntityDict, 'extraFile',
|
||||||
avatarUrl?: string;
|
avatarUrl?: string;
|
||||||
}, {
|
}, {
|
||||||
onPickByWeb: (files: File[]) => void;
|
onPickByWeb: (files: File[]) => void;
|
||||||
}>): JSX.Element;
|
}>): import("react/jsx-runtime").JSX.Element;
|
||||||
|
|
|
||||||
|
|
@ -1 +1 @@
|
||||||
export default function render(): JSX.Element;
|
export default function render(): import("react/jsx-runtime").JSX.Element;
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
import { EntityDict } from '../../../oak-app-domain';
|
import { EntityDict } from '../../../oak-app-domain';
|
||||||
import { EntityDict as BaseEntityDict } from 'oak-domain/lib/types/Entity';
|
import { EntityDict as BaseEntityDict } from 'oak-domain/lib/types/Entity';
|
||||||
import { ReactComponentProps } from 'oak-frontend-base/lib/types/Page';
|
import { ReactComponentProps } from 'oak-frontend-base';
|
||||||
declare const _default: <ED2 extends EntityDict & BaseEntityDict, T2 extends keyof ED2>(props: ReactComponentProps<ED2, T2, true, {
|
declare const _default: <ED2 extends EntityDict & BaseEntityDict, T2 extends keyof ED2>(props: ReactComponentProps<ED2, T2, true, {
|
||||||
type: string;
|
type: string;
|
||||||
origin: string;
|
origin: string;
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,7 @@
|
||||||
Object.defineProperty(exports, "__esModule", { value: true });
|
Object.defineProperty(exports, "__esModule", { value: true });
|
||||||
var tslib_1 = require("tslib");
|
var tslib_1 = require("tslib");
|
||||||
var uuid_1 = require("oak-domain/lib/utils/uuid");
|
var uuid_1 = require("oak-domain/lib/utils/uuid");
|
||||||
var assert_1 = tslib_1.__importDefault(require("assert"));
|
var assert_1 = require("oak-domain/lib/utils/assert");
|
||||||
var lodash_1 = require("oak-domain/lib/utils/lodash");
|
var lodash_1 = require("oak-domain/lib/utils/lodash");
|
||||||
exports.default = OakComponent({
|
exports.default = OakComponent({
|
||||||
entity: 'extraFile',
|
entity: 'extraFile',
|
||||||
|
|
@ -186,7 +186,7 @@ exports.default = OakComponent({
|
||||||
bucket: '',
|
bucket: '',
|
||||||
id: (0, uuid_1.generateNewId)(),
|
id: (0, uuid_1.generateNewId)(),
|
||||||
};
|
};
|
||||||
(0, assert_1.default)(entity, '必须传入entity');
|
(0, assert_1.assert)(entity, '必须传入entity');
|
||||||
switch (methodsType) {
|
switch (methodsType) {
|
||||||
case 'uploadLocalImg':
|
case 'uploadLocalImg':
|
||||||
var _b = params, name_1 = _b.name, size = _b.size, type = _b.type;
|
var _b = params, name_1 = _b.name, size = _b.size, type = _b.type;
|
||||||
|
|
|
||||||
|
|
@ -19,5 +19,5 @@ export default function render(props: WebComponentProps<EntityDict, "extraFile",
|
||||||
closeModal: () => void;
|
closeModal: () => void;
|
||||||
onModal1Confirm: (value: number) => void;
|
onModal1Confirm: (value: number) => void;
|
||||||
setSelectedId: (id: number) => void;
|
setSelectedId: (id: number) => void;
|
||||||
}>): JSX.Element;
|
}>): import("react/jsx-runtime").JSX.Element;
|
||||||
export {};
|
export {};
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
import { EntityDict } from '../../../oak-app-domain';
|
import { EntityDict } from '../../../oak-app-domain';
|
||||||
import { EntityDict as BaseEntityDict } from 'oak-domain/lib/types/Entity';
|
import { EntityDict as BaseEntityDict } from 'oak-domain/lib/types/Entity';
|
||||||
import { ReactComponentProps } from 'oak-frontend-base/lib/types/Page';
|
import { ReactComponentProps } from 'oak-frontend-base';
|
||||||
declare type SourceType = 'album' | 'camera';
|
declare type SourceType = 'album' | 'camera';
|
||||||
declare type Theme = 'file' | 'image' | 'image-flow' | 'custom';
|
declare type Theme = 'file' | 'image' | 'image-flow' | 'custom';
|
||||||
declare type FileType = 'all' | 'video' | 'image' | 'file';
|
declare type FileType = 'all' | 'video' | 'image' | 'file';
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,7 @@
|
||||||
Object.defineProperty(exports, "__esModule", { value: true });
|
Object.defineProperty(exports, "__esModule", { value: true });
|
||||||
var tslib_1 = require("tslib");
|
var tslib_1 = require("tslib");
|
||||||
var uuid_1 = require("oak-domain/lib/utils/uuid");
|
var uuid_1 = require("oak-domain/lib/utils/uuid");
|
||||||
var assert_1 = tslib_1.__importDefault(require("assert"));
|
var assert_1 = require("oak-domain/lib/utils/assert");
|
||||||
var index_1 = tslib_1.__importDefault(require("../../../utils/dialog/index"));
|
var index_1 = tslib_1.__importDefault(require("../../../utils/dialog/index"));
|
||||||
exports.default = OakComponent({
|
exports.default = OakComponent({
|
||||||
entity: 'extraFile',
|
entity: 'extraFile',
|
||||||
|
|
@ -312,8 +312,8 @@ exports.default = OakComponent({
|
||||||
name = options.name, extra1 = options.extra1, fileType = options.fileType, size = options.size, sort = options.sort;
|
name = options.name, extra1 = options.extra1, fileType = options.fileType, size = options.size, sort = options.sort;
|
||||||
extension = name.substring(name.lastIndexOf('.') + 1);
|
extension = name.substring(name.lastIndexOf('.') + 1);
|
||||||
filename = name.substring(0, name.lastIndexOf('.'));
|
filename = name.substring(0, name.lastIndexOf('.'));
|
||||||
(0, assert_1.default)(entity, '必须传入entity');
|
(0, assert_1.assert)(entity, '必须传入entity');
|
||||||
(0, assert_1.default)(origin === 'qiniu', '目前只支持七牛上传'); // 目前只支持七牛上传
|
(0, assert_1.assert)(origin === 'qiniu', '目前只支持七牛上传'); // 目前只支持七牛上传
|
||||||
updateData = {
|
updateData = {
|
||||||
extra1: extra1,
|
extra1: extra1,
|
||||||
origin: origin,
|
origin: origin,
|
||||||
|
|
|
||||||
|
|
@ -33,5 +33,5 @@ export default function render(props: WebComponentProps<EntityDict, "extraFile",
|
||||||
getUrl: (extraFile: EntityDict['extraFile']['OpSchema']) => string;
|
getUrl: (extraFile: EntityDict['extraFile']['OpSchema']) => string;
|
||||||
getFileName: (extraFile: EntityDict['extraFile']['OpSchema']) => string;
|
getFileName: (extraFile: EntityDict['extraFile']['OpSchema']) => string;
|
||||||
eFFormatBytes: (value: number) => string;
|
eFFormatBytes: (value: number) => string;
|
||||||
}>): JSX.Element;
|
}>): import("react/jsx-runtime").JSX.Element;
|
||||||
export {};
|
export {};
|
||||||
|
|
|
||||||
|
|
@ -11,7 +11,7 @@ var web_module_less_1 = tslib_1.__importDefault(require("./web.module.less"));
|
||||||
var react_dnd_1 = require("react-dnd");
|
var react_dnd_1 = require("react-dnd");
|
||||||
var react_dnd_html5_backend_1 = require("react-dnd-html5-backend");
|
var react_dnd_html5_backend_1 = require("react-dnd-html5-backend");
|
||||||
var react_dnd_touch_backend_1 = require("react-dnd-touch-backend");
|
var react_dnd_touch_backend_1 = require("react-dnd-touch-backend");
|
||||||
var utils_2 = require("oak-frontend-base/lib/utils/utils");
|
var utils_2 = require("oak-frontend-base/es/utils/utils");
|
||||||
function getListType(theme) {
|
function getListType(theme) {
|
||||||
var themeMap = {
|
var themeMap = {
|
||||||
file: "text",
|
file: "text",
|
||||||
|
|
|
||||||
|
|
@ -10,4 +10,4 @@ export default function Render(props: WebComponentProps<EntityDict, 'user', fals
|
||||||
}>;
|
}>;
|
||||||
}, {
|
}, {
|
||||||
onClick: (action: string) => void;
|
onClick: (action: string) => void;
|
||||||
}>): JSX.Element | null;
|
}>): import("react/jsx-runtime").JSX.Element | null;
|
||||||
|
|
|
||||||
|
|
@ -10,4 +10,4 @@ export default function render(props: WebComponentProps<EntityDict, 'address', t
|
||||||
resetInitialData: () => void;
|
resetInitialData: () => void;
|
||||||
downloadEnv: () => void;
|
downloadEnv: () => void;
|
||||||
resetEnv: (data: Record<string, any>) => void;
|
resetEnv: (data: Record<string, any>) => void;
|
||||||
}>): JSX.Element;
|
}>): import("react/jsx-runtime").JSX.Element;
|
||||||
|
|
|
||||||
|
|
@ -8,4 +8,4 @@ export default function Render(props: WebComponentProps<EntityDict, 'user', fals
|
||||||
size?: string;
|
size?: string;
|
||||||
className?: string;
|
className?: string;
|
||||||
style?: React.CSSProperties;
|
style?: React.CSSProperties;
|
||||||
}, {}>): JSX.Element;
|
}, {}>): import("react/jsx-runtime").JSX.Element;
|
||||||
|
|
|
||||||
|
|
@ -11,4 +11,4 @@ export default function Render(props: WebComponentProps<EntityDict, 'message', f
|
||||||
router: EntityDict['message']['Schema']['router'];
|
router: EntityDict['message']['Schema']['router'];
|
||||||
visitState: EntityDict['message']['Schema']['visitState'];
|
visitState: EntityDict['message']['Schema']['visitState'];
|
||||||
id: string;
|
id: string;
|
||||||
}, {}>): JSX.Element;
|
}, {}>): import("react/jsx-runtime").JSX.Element;
|
||||||
|
|
|
||||||
|
|
@ -10,4 +10,4 @@ export default function Render(props: WebComponentProps<EntityDict, 'message', f
|
||||||
router: EntityDict['message']['Schema']['router'];
|
router: EntityDict['message']['Schema']['router'];
|
||||||
}, {
|
}, {
|
||||||
goPage: () => void;
|
goPage: () => void;
|
||||||
}>): JSX.Element;
|
}>): import("react/jsx-runtime").JSX.Element;
|
||||||
|
|
|
||||||
|
|
@ -10,4 +10,4 @@ export default function Render(props: WebComponentProps<EntityDict, 'message', f
|
||||||
router: EntityDict['message']['Schema']['router'];
|
router: EntityDict['message']['Schema']['router'];
|
||||||
}, {
|
}, {
|
||||||
goPage: () => void;
|
goPage: () => void;
|
||||||
}>): JSX.Element;
|
}>): import("react/jsx-runtime").JSX.Element;
|
||||||
|
|
|
||||||
|
|
@ -4,4 +4,4 @@ export default function Render(props: WebComponentProps<EntityDict, 'message', t
|
||||||
messages: EntityDict['message']['Schema'][];
|
messages: EntityDict['message']['Schema'][];
|
||||||
}, {
|
}, {
|
||||||
goDetailById: (id: string) => void;
|
goDetailById: (id: string) => void;
|
||||||
}>): JSX.Element;
|
}>): import("react/jsx-runtime").JSX.Element;
|
||||||
|
|
|
||||||
|
|
@ -4,4 +4,4 @@ export default function Render(props: WebComponentProps<EntityDict, 'message', t
|
||||||
messages: RowWithActions<EntityDict, 'message'>[];
|
messages: RowWithActions<EntityDict, 'message'>[];
|
||||||
}, {
|
}, {
|
||||||
goDetailById: (id: string) => void;
|
goDetailById: (id: string) => void;
|
||||||
}>): JSX.Element;
|
}>): import("react/jsx-runtime").JSX.Element;
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,7 @@ var jsx_runtime_1 = require("react/jsx-runtime");
|
||||||
var antd_1 = require("antd");
|
var antd_1 = require("antd");
|
||||||
var dayjs_1 = tslib_1.__importDefault(require("dayjs"));
|
var dayjs_1 = tslib_1.__importDefault(require("dayjs"));
|
||||||
var web_module_less_1 = tslib_1.__importDefault(require("./web.module.less"));
|
var web_module_less_1 = tslib_1.__importDefault(require("./web.module.less"));
|
||||||
var actionBtnPanel_1 = tslib_1.__importDefault(require("oak-frontend-base/lib/components/actionBtnPanel"));
|
var actionBtnPanel_1 = tslib_1.__importDefault(require("oak-frontend-base/es/components/actionBtnPanel"));
|
||||||
var MessageType = {
|
var MessageType = {
|
||||||
adminNotification: '系统通知',
|
adminNotification: '系统通知',
|
||||||
conversationMessage: '客服消息',
|
conversationMessage: '客服消息',
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
import { MessageProps } from 'oak-frontend-base/lib/types/Message';
|
import { MessageProps } from 'oak-frontend-base';
|
||||||
export default function render(props: {
|
export default function render(props: {
|
||||||
data: {
|
data: {
|
||||||
data: MessageProps;
|
data: MessageProps;
|
||||||
};
|
};
|
||||||
}): JSX.Element;
|
}): import("react/jsx-runtime").JSX.Element;
|
||||||
|
|
|
||||||
|
|
@ -5,4 +5,4 @@ export default function Render(props: WebComponentProps<EntityDict, 'messageType
|
||||||
dirtyIds: string[];
|
dirtyIds: string[];
|
||||||
messageTypes: string[];
|
messageTypes: string[];
|
||||||
applicationId: string;
|
applicationId: string;
|
||||||
}, {}>): JSX.Element;
|
}, {}>): import("react/jsx-runtime").JSX.Element;
|
||||||
|
|
|
||||||
|
|
@ -9,4 +9,4 @@ export default function Render(props: WebComponentProps<EntityDict, 'token', fal
|
||||||
iconName?: string;
|
iconName?: string;
|
||||||
iconLarger?: string;
|
iconLarger?: string;
|
||||||
onClick?: () => void;
|
onClick?: () => void;
|
||||||
}>): JSX.Element;
|
}>): import("react/jsx-runtime").JSX.Element;
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,6 @@
|
||||||
"use strict";
|
"use strict";
|
||||||
Object.defineProperty(exports, "__esModule", { value: true });
|
Object.defineProperty(exports, "__esModule", { value: true });
|
||||||
var tslib_1 = require("tslib");
|
var assert_1 = require("oak-domain/lib/utils/assert");
|
||||||
var assert_1 = tslib_1.__importDefault(require("assert"));
|
|
||||||
var uuid_1 = require("oak-domain/lib/utils/uuid");
|
var uuid_1 = require("oak-domain/lib/utils/uuid");
|
||||||
exports.default = OakComponent({
|
exports.default = OakComponent({
|
||||||
isList: false,
|
isList: false,
|
||||||
|
|
@ -45,7 +44,7 @@ exports.default = OakComponent({
|
||||||
updateAttribute: function (attr, value) {
|
updateAttribute: function (attr, value) {
|
||||||
var _a;
|
var _a;
|
||||||
var userId = this.state.userId;
|
var userId = this.state.userId;
|
||||||
(0, assert_1.default)(userId);
|
(0, assert_1.assert)(userId);
|
||||||
return this.features.cache.operate('user', {
|
return this.features.cache.operate('user', {
|
||||||
id: (0, uuid_1.generateNewId)(),
|
id: (0, uuid_1.generateNewId)(),
|
||||||
action: 'update',
|
action: 'update',
|
||||||
|
|
|
||||||
|
|
@ -13,4 +13,4 @@ export default function Render(props: WebComponentProps<EntityDict, 'token', fal
|
||||||
}, {
|
}, {
|
||||||
logout: () => void;
|
logout: () => void;
|
||||||
updateAttribute: (attr: string, value: any) => Promise<void>;
|
updateAttribute: (attr: string, value: any) => Promise<void>;
|
||||||
}>): JSX.Element;
|
}>): import("react/jsx-runtime").JSX.Element;
|
||||||
|
|
|
||||||
|
|
@ -13,4 +13,4 @@ export default function Render(props: WebComponentProps<EntityDict, 'token', fal
|
||||||
}, {
|
}, {
|
||||||
logout: () => void;
|
logout: () => void;
|
||||||
updateAttribute: (attr: string, value: any) => Promise<void>;
|
updateAttribute: (attr: string, value: any) => Promise<void>;
|
||||||
}>): JSX.Element;
|
}>): import("react/jsx-runtime").JSX.Element;
|
||||||
|
|
|
||||||
|
|
@ -8,4 +8,4 @@ export default function Render(props: WebComponentProps<EntityDict, 'user', fals
|
||||||
style?: React.CSSProperties;
|
style?: React.CSSProperties;
|
||||||
}, {
|
}, {
|
||||||
goMessageList: () => void;
|
goMessageList: () => void;
|
||||||
}>): JSX.Element;
|
}>): import("react/jsx-runtime").JSX.Element;
|
||||||
|
|
|
||||||
|
|
@ -10,4 +10,4 @@ export default function Render(props: WebComponentProps<EntityDict, 'user', fals
|
||||||
buttonClassName?: string;
|
buttonClassName?: string;
|
||||||
}, {
|
}, {
|
||||||
goMessageList: () => void;
|
goMessageList: () => void;
|
||||||
}>): JSX.Element;
|
}>): import("react/jsx-runtime").JSX.Element;
|
||||||
|
|
|
||||||
|
|
@ -6,4 +6,4 @@ export default function Render(props: WebComponentProps<EntityDict, 'userEntityG
|
||||||
url: string;
|
url: string;
|
||||||
expiresAt: number;
|
expiresAt: number;
|
||||||
title?: string;
|
title?: string;
|
||||||
}, {}>): JSX.Element;
|
}, {}>): import("react/jsx-runtime").JSX.Element;
|
||||||
|
|
|
||||||
|
|
@ -4,4 +4,4 @@ export default function render(props: WebComponentProps<EntityDict, 'parasite',
|
||||||
loading: boolean;
|
loading: boolean;
|
||||||
illegal: boolean;
|
illegal: boolean;
|
||||||
expired: boolean;
|
expired: boolean;
|
||||||
}, {}>): JSX.Element;
|
}, {}>): import("react/jsx-runtime").JSX.Element;
|
||||||
|
|
|
||||||
|
|
@ -7,4 +7,4 @@ export default function render(props: WebComponentProps<EntityDict, 'parasite',
|
||||||
}, {
|
}, {
|
||||||
cancel: () => void;
|
cancel: () => void;
|
||||||
getQrCode: () => Promise<void>;
|
getQrCode: () => Promise<void>;
|
||||||
}>): JSX.Element;
|
}>): import("react/jsx-runtime").JSX.Element;
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,7 @@ var tslib_1 = require("tslib");
|
||||||
var jsx_runtime_1 = require("react/jsx-runtime");
|
var jsx_runtime_1 = require("react/jsx-runtime");
|
||||||
var antd_1 = require("antd");
|
var antd_1 = require("antd");
|
||||||
var dayjs_1 = tslib_1.__importDefault(require("dayjs"));
|
var dayjs_1 = tslib_1.__importDefault(require("dayjs"));
|
||||||
var actionBtnPanel_1 = tslib_1.__importDefault(require("oak-frontend-base/lib/components/actionBtnPanel"));
|
var actionBtnPanel_1 = tslib_1.__importDefault(require("oak-frontend-base/es/components/actionBtnPanel"));
|
||||||
var detail_1 = tslib_1.__importDefault(require("../detail"));
|
var detail_1 = tslib_1.__importDefault(require("../detail"));
|
||||||
var react_1 = require("react");
|
var react_1 = require("react");
|
||||||
function render(props) {
|
function render(props) {
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
import { EntityDict } from '../../../oak-app-domain';
|
import { EntityDict } from '../../../oak-app-domain';
|
||||||
import { EntityDict as BaseEntityDict } from 'oak-domain/lib/types/Entity';
|
import { EntityDict as BaseEntityDict } from 'oak-domain/lib/types/Entity';
|
||||||
import { ReactComponentProps } from 'oak-frontend-base/lib/types/Page';
|
import { ReactComponentProps } from 'oak-frontend-base';
|
||||||
declare const _default: <ED2 extends EntityDict & BaseEntityDict, T2 extends keyof ED2>(props: ReactComponentProps<ED2, T2, false, {
|
declare const _default: <ED2 extends EntityDict & BaseEntityDict, T2 extends keyof ED2>(props: ReactComponentProps<ED2, T2, false, {
|
||||||
entity: keyof ED2;
|
entity: keyof ED2;
|
||||||
entityId: string;
|
entityId: string;
|
||||||
|
|
|
||||||
|
|
@ -19,4 +19,4 @@ export default function Render(props: WebComponentProps<EntityDict, 'parasite',
|
||||||
onSearch: (value: string) => void;
|
onSearch: (value: string) => void;
|
||||||
onSelect: (value: string) => void;
|
onSelect: (value: string) => void;
|
||||||
setSearchValue: (value: string) => void;
|
setSearchValue: (value: string) => void;
|
||||||
}>): JSX.Element;
|
}>): import("react/jsx-runtime").JSX.Element;
|
||||||
|
|
|
||||||
|
|
@ -16,4 +16,4 @@ export default function render(props: WebComponentProps<EntityDict, 'area', true
|
||||||
setCheckedList: (station: string, flag: boolean) => void;
|
setCheckedList: (station: string, flag: boolean) => void;
|
||||||
cancel: () => void;
|
cancel: () => void;
|
||||||
confirm: () => void;
|
confirm: () => void;
|
||||||
}>): JSX.Element;
|
}>): import("react/jsx-runtime").JSX.Element;
|
||||||
|
|
|
||||||
|
|
@ -3,5 +3,5 @@ interface IProps {
|
||||||
defaultValue?: number | string;
|
defaultValue?: number | string;
|
||||||
onChange: (color: string) => void;
|
onChange: (color: string) => void;
|
||||||
}
|
}
|
||||||
declare const _default: React.MemoExoticComponent<(props: IProps) => JSX.Element>;
|
declare const _default: React.MemoExoticComponent<(props: IProps) => import("react/jsx-runtime").JSX.Element>;
|
||||||
export default _default;
|
export default _default;
|
||||||
|
|
|
||||||
|
|
@ -9,5 +9,5 @@ interface IProps {
|
||||||
onChange: (value?: any) => void;
|
onChange: (value?: any) => void;
|
||||||
options: IOption[];
|
options: IOption[];
|
||||||
}
|
}
|
||||||
declare const _default: React.MemoExoticComponent<(props: IProps) => JSX.Element>;
|
declare const _default: React.MemoExoticComponent<(props: IProps) => import("react/jsx-runtime").JSX.Element>;
|
||||||
export default _default;
|
export default _default;
|
||||||
|
|
|
||||||
|
|
@ -1 +1 @@
|
||||||
export default function Render(this: any): JSX.Element;
|
export default function Render(this: any): import("react/jsx-runtime").JSX.Element;
|
||||||
|
|
|
||||||
|
|
@ -19,4 +19,4 @@ export default function Render(props: WebComponentProps<EntityDict, 'token', fal
|
||||||
sendCaptcha: (mobile: string) => Promise<void>;
|
sendCaptcha: (mobile: string) => Promise<void>;
|
||||||
loginByMobile: (mobile: string, password?: string, captcha?: string) => Promise<void>;
|
loginByMobile: (mobile: string, password?: string, captcha?: string) => Promise<void>;
|
||||||
setLoginMode: (value: number) => void;
|
setLoginMode: (value: number) => void;
|
||||||
}>): JSX.Element;
|
}>): import("react/jsx-runtime").JSX.Element;
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
import { EntityDict } from '../../../oak-app-domain';
|
import { EntityDict } from '../../../oak-app-domain';
|
||||||
import { EntityDict as BaseEntityDict } from 'oak-domain/lib/types/Entity';
|
import { EntityDict as BaseEntityDict } from 'oak-domain/lib/types/Entity';
|
||||||
import { ReactComponentProps } from 'oak-frontend-base/lib/types/Page';
|
import { ReactComponentProps } from 'oak-frontend-base';
|
||||||
declare const _default: <ED2 extends EntityDict & BaseEntityDict, T2 extends keyof ED2>(props: ReactComponentProps<ED2, T2, true, {
|
declare const _default: <ED2 extends EntityDict & BaseEntityDict, T2 extends keyof ED2>(props: ReactComponentProps<ED2, T2, true, {
|
||||||
entity: keyof ED2;
|
entity: keyof ED2;
|
||||||
entityId: string;
|
entityId: string;
|
||||||
|
|
|
||||||
|
|
@ -4,13 +4,13 @@ var tslib_1 = require("tslib");
|
||||||
var types_1 = require("oak-domain/lib/types");
|
var types_1 = require("oak-domain/lib/types");
|
||||||
var string_1 = require("oak-domain/lib/utils/string");
|
var string_1 = require("oak-domain/lib/utils/string");
|
||||||
var uuid_1 = require("oak-domain/lib/utils/uuid");
|
var uuid_1 = require("oak-domain/lib/utils/uuid");
|
||||||
var assert_1 = tslib_1.__importDefault(require("assert"));
|
var assert_1 = require("oak-domain/lib/utils/assert");
|
||||||
exports.default = OakComponent({
|
exports.default = OakComponent({
|
||||||
entity: 'user',
|
entity: 'user',
|
||||||
projection: function () {
|
projection: function () {
|
||||||
var userId = this.features.token.getUserId();
|
var userId = this.features.token.getUserId();
|
||||||
var isRoot = this.features.token.isRoot();
|
var isRoot = this.features.token.isRoot();
|
||||||
(0, assert_1.default)(userId);
|
(0, assert_1.assert)(userId);
|
||||||
var _a = this.props, entity = _a.entity, entityId = _a.entityId;
|
var _a = this.props, entity = _a.entity, entityId = _a.entityId;
|
||||||
var userRelationFilter = {
|
var userRelationFilter = {
|
||||||
entity: entity,
|
entity: entity,
|
||||||
|
|
|
||||||
|
|
@ -17,4 +17,4 @@ export default function Render(props: WebComponentProps<EntityDict, 'user', true
|
||||||
goUpsert: () => void;
|
goUpsert: () => void;
|
||||||
confirmDelete: (id: string) => Promise<void>;
|
confirmDelete: (id: string) => Promise<void>;
|
||||||
goUpdate: (id: string) => void;
|
goUpdate: (id: string) => void;
|
||||||
}>): JSX.Element;
|
}>): import("react/jsx-runtime").JSX.Element;
|
||||||
|
|
|
||||||
|
|
@ -11,4 +11,4 @@ export default function Render(props: WebComponentProps<EntityDict, 'user', true
|
||||||
goUpsert: () => void;
|
goUpsert: () => void;
|
||||||
goUpdate: (id: string) => void;
|
goUpdate: (id: string) => void;
|
||||||
confirmDelete: (id: string) => Promise<void>;
|
confirmDelete: (id: string) => Promise<void>;
|
||||||
}>): JSX.Element;
|
}>): import("react/jsx-runtime").JSX.Element;
|
||||||
|
|
|
||||||
|
|
@ -1 +1 @@
|
||||||
export default function render(this: any): JSX.Element;
|
export default function render(this: any): import("react/jsx-runtime").JSX.Element;
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
import { EntityDict } from '../../../../oak-app-domain';
|
import { EntityDict } from '../../../../oak-app-domain';
|
||||||
import { ReactComponentProps } from 'oak-frontend-base/lib/types/Page';
|
import { ReactComponentProps } from 'oak-frontend-base';
|
||||||
import { EntityDict as BaseEntityDict } from 'oak-domain/lib/types/Entity';
|
import { EntityDict as BaseEntityDict } from 'oak-domain/lib/types/Entity';
|
||||||
declare const _default: <ED2 extends EntityDict & BaseEntityDict, T2 extends keyof ED2>(props: ReactComponentProps<ED2, T2, true, {
|
declare const _default: <ED2 extends EntityDict & BaseEntityDict, T2 extends keyof ED2>(props: ReactComponentProps<ED2, T2, true, {
|
||||||
entity: keyof ED2;
|
entity: keyof ED2;
|
||||||
|
|
|
||||||
|
|
@ -11,4 +11,4 @@ export default function Render(props: WebComponentProps<EntityDict, 'mobile', fa
|
||||||
onMobileChange: (value: string) => Promise<void>;
|
onMobileChange: (value: string) => Promise<void>;
|
||||||
onConfirm: () => Promise<void>;
|
onConfirm: () => Promise<void>;
|
||||||
onReset: () => void;
|
onReset: () => void;
|
||||||
}>): JSX.Element;
|
}>): import("react/jsx-runtime").JSX.Element;
|
||||||
|
|
|
||||||
|
|
@ -13,4 +13,4 @@ export default function Render(props: WebComponentProps<EntityDict, 'mobile', fa
|
||||||
onMobileChange: (value: string) => Promise<void>;
|
onMobileChange: (value: string) => Promise<void>;
|
||||||
onConfirm: () => Promise<void>;
|
onConfirm: () => Promise<void>;
|
||||||
onReset: () => void;
|
onReset: () => void;
|
||||||
}>): JSX.Element;
|
}>): import("react/jsx-runtime").JSX.Element;
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
import { EntityDict } from '../../../../oak-app-domain';
|
import { EntityDict } from '../../../../oak-app-domain';
|
||||||
import { ReactComponentProps } from 'oak-frontend-base/lib/types/Page';
|
import { ReactComponentProps } from 'oak-frontend-base';
|
||||||
import { EntityDict as BaseEntityDict } from 'oak-domain/lib/types/Entity';
|
import { EntityDict as BaseEntityDict } from 'oak-domain/lib/types/Entity';
|
||||||
declare const _default: <ED2 extends EntityDict & BaseEntityDict, T2 extends keyof ED2>(props: ReactComponentProps<ED2, T2, true, {
|
declare const _default: <ED2 extends EntityDict & BaseEntityDict, T2 extends keyof ED2>(props: ReactComponentProps<ED2, T2, true, {
|
||||||
entity: keyof ED2;
|
entity: keyof ED2;
|
||||||
|
|
|
||||||
|
|
@ -8,4 +8,4 @@ export default function Render(props: WebComponentProps<EntityDict, 'user', fals
|
||||||
}, {
|
}, {
|
||||||
onConfirm: () => Promise<void>;
|
onConfirm: () => Promise<void>;
|
||||||
onReset: () => void;
|
onReset: () => void;
|
||||||
}>): JSX.Element;
|
}>): import("react/jsx-runtime").JSX.Element;
|
||||||
|
|
|
||||||
|
|
@ -8,4 +8,4 @@ export default function Render(props: WebComponentProps<EntityDict, 'user', fals
|
||||||
}, {
|
}, {
|
||||||
onConfirm: () => Promise<void>;
|
onConfirm: () => Promise<void>;
|
||||||
onReset: () => void;
|
onReset: () => void;
|
||||||
}>): JSX.Element;
|
}>): import("react/jsx-runtime").JSX.Element;
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
import { EntityDict } from '../../../../oak-app-domain';
|
import { EntityDict } from '../../../../oak-app-domain';
|
||||||
import { QrCodeType } from '../../../../types/Config';
|
import { QrCodeType } from '../../../../types/Config';
|
||||||
import { EntityDict as BaseEntityDict } from 'oak-domain/lib/types/Entity';
|
import { EntityDict as BaseEntityDict } from 'oak-domain/lib/types/Entity';
|
||||||
import { ReactComponentProps } from 'oak-frontend-base/lib/types/Page';
|
import { ReactComponentProps } from 'oak-frontend-base';
|
||||||
declare const _default: <ED2 extends EntityDict & BaseEntityDict, T2 extends keyof ED2>(props: ReactComponentProps<ED2, T2, true, {
|
declare const _default: <ED2 extends EntityDict & BaseEntityDict, T2 extends keyof ED2>(props: ReactComponentProps<ED2, T2, true, {
|
||||||
entity: keyof ED2;
|
entity: keyof ED2;
|
||||||
entityId: string;
|
entityId: string;
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
"use strict";
|
"use strict";
|
||||||
Object.defineProperty(exports, "__esModule", { value: true });
|
Object.defineProperty(exports, "__esModule", { value: true });
|
||||||
var tslib_1 = require("tslib");
|
var tslib_1 = require("tslib");
|
||||||
var assert_1 = tslib_1.__importDefault(require("assert"));
|
var assert_1 = require("oak-domain/lib/utils/assert");
|
||||||
exports.default = OakComponent({
|
exports.default = OakComponent({
|
||||||
entity: 'userEntityGrant',
|
entity: 'userEntityGrant',
|
||||||
projection: {
|
projection: {
|
||||||
|
|
@ -180,7 +180,7 @@ exports.default = OakComponent({
|
||||||
this.update({
|
this.update({
|
||||||
expiresAt: expiresAt,
|
expiresAt: expiresAt,
|
||||||
});
|
});
|
||||||
(0, assert_1.default)(!this.props.oakId);
|
(0, assert_1.assert)(!this.props.oakId);
|
||||||
id = this.getId();
|
id = this.getId();
|
||||||
return [4 /*yield*/, this.execute()];
|
return [4 /*yield*/, this.execute()];
|
||||||
case 1:
|
case 1:
|
||||||
|
|
|
||||||
|
|
@ -14,5 +14,5 @@ export default function render(props: WebComponentProps<EntityDict, 'userEntityG
|
||||||
setInit: () => void;
|
setInit: () => void;
|
||||||
setPeriod: (p: number) => void;
|
setPeriod: (p: number) => void;
|
||||||
setUnit: (u: Unit) => void;
|
setUnit: (u: Unit) => void;
|
||||||
}>): JSX.Element;
|
}>): import("react/jsx-runtime").JSX.Element;
|
||||||
export {};
|
export {};
|
||||||
|
|
|
||||||
|
|
@ -18,5 +18,5 @@ export default function render(props: WebComponentProps<EntityDict, 'userEntityG
|
||||||
setInit: () => void;
|
setInit: () => void;
|
||||||
setPeriod: (p: number) => void;
|
setPeriod: (p: number) => void;
|
||||||
setUnit: (u: Unit) => void;
|
setUnit: (u: Unit) => void;
|
||||||
}>): JSX.Element;
|
}>): import("react/jsx-runtime").JSX.Element;
|
||||||
export {};
|
export {};
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
import { ReactComponentProps } from 'oak-frontend-base/lib/types/Page';
|
import { ReactComponentProps } from 'oak-frontend-base';
|
||||||
import { EntityDict } from '../../../oak-app-domain';
|
import { EntityDict } from '../../../oak-app-domain';
|
||||||
import { EntityDict as BaseEntityDict } from 'oak-domain/lib/types/Entity';
|
import { EntityDict as BaseEntityDict } from 'oak-domain/lib/types/Entity';
|
||||||
declare const _default: <ED2 extends EntityDict & BaseEntityDict, T2 extends keyof ED2>(props: ReactComponentProps<ED2, T2, true, {
|
declare const _default: <ED2 extends EntityDict & BaseEntityDict, T2 extends keyof ED2>(props: ReactComponentProps<ED2, T2, true, {
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,6 @@
|
||||||
"use strict";
|
"use strict";
|
||||||
Object.defineProperty(exports, "__esModule", { value: true });
|
Object.defineProperty(exports, "__esModule", { value: true });
|
||||||
var tslib_1 = require("tslib");
|
var assert_1 = require("oak-domain/lib/utils/assert");
|
||||||
var assert_1 = tslib_1.__importDefault(require("assert"));
|
|
||||||
exports.default = OakComponent({
|
exports.default = OakComponent({
|
||||||
isList: true,
|
isList: true,
|
||||||
entity: 'relation',
|
entity: 'relation',
|
||||||
|
|
@ -33,7 +32,7 @@ exports.default = OakComponent({
|
||||||
entityId: {
|
entityId: {
|
||||||
$exists: false,
|
$exists: false,
|
||||||
},
|
},
|
||||||
}
|
},
|
||||||
],
|
],
|
||||||
};
|
};
|
||||||
if (!isRoot) {
|
if (!isRoot) {
|
||||||
|
|
@ -47,8 +46,8 @@ exports.default = OakComponent({
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
return filter;
|
return filter;
|
||||||
}
|
},
|
||||||
}
|
},
|
||||||
],
|
],
|
||||||
formData: function (_a) {
|
formData: function (_a) {
|
||||||
var data = _a.data;
|
var data = _a.data;
|
||||||
|
|
@ -72,7 +71,7 @@ exports.default = OakComponent({
|
||||||
grantByUserEntityGrant = true;
|
grantByUserEntityGrant = true;
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
(0, assert_1.default)(type === 'web');
|
(0, assert_1.assert)(type === 'web');
|
||||||
var passport = config.passport || [];
|
var passport = config.passport || [];
|
||||||
grantByEmail = passport.includes('email');
|
grantByEmail = passport.includes('email');
|
||||||
// 是超级管理员 不需要根据配置手机号来判断 by wkj
|
// 是超级管理员 不需要根据配置手机号来判断 by wkj
|
||||||
|
|
|
||||||
|
|
@ -8,4 +8,4 @@ export default function Render(props: WebComponentProps<EntityDict, 'user', fals
|
||||||
}[];
|
}[];
|
||||||
}, {
|
}, {
|
||||||
onRelationChange: (relation: EntityDict['relation']['OpSchema'], checked: boolean) => void;
|
onRelationChange: (relation: EntityDict['relation']['OpSchema'], checked: boolean) => void;
|
||||||
}>): JSX.Element;
|
}>): import("react/jsx-runtime").JSX.Element;
|
||||||
|
|
|
||||||
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue