将context的引用放回到index

This commit is contained in:
Xu Chang 2024-02-18 12:11:14 +08:00
parent 4d255c7dfd
commit b3ae7f8c30
23 changed files with 29 additions and 27 deletions

View File

@ -1,7 +1,7 @@
import { Style } from '../../../../types/Style';
declare const _default: (props: import("oak-frontend-base").ReactComponentProps<import("../../../../oak-app-domain").EntityDict, keyof import("../../../../oak-app-domain").EntityDict, false, {
style: Style;
entity: "application" | "platform" | "system";
entity: "application" | "system" | "platform";
entityId: string;
name: string;
}>) => import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>;

View File

@ -1,7 +1,7 @@
import { Config } from '../../../types/Config';
declare const _default: (props: import("oak-frontend-base").ReactComponentProps<import("../../../oak-app-domain").EntityDict, keyof import("../../../oak-app-domain").EntityDict, false, {
config: Config;
entity: "platform" | "system";
entity: "system" | "platform";
name: string;
entityId: string;
}>) => import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>;

View File

@ -12,16 +12,16 @@ declare const _default: <ED2 extends EntityDict & BaseEntityDict, T2 extends key
type?: ButtonProps['type'] | AmButtonProps['type'];
executeText?: string | undefined;
buttonProps?: (ButtonProps & {
color?: "default" | "success" | "warning" | "primary" | "danger" | undefined;
color?: "success" | "warning" | "default" | "primary" | "danger" | undefined;
fill?: "none" | "solid" | "outline" | undefined;
size?: "small" | "large" | "middle" | "mini" | undefined;
size?: "small" | "middle" | "large" | "mini" | undefined;
block?: boolean | undefined;
loading?: boolean | "auto" | undefined;
loadingText?: string | undefined;
loadingIcon?: import("react").ReactNode;
disabled?: boolean | undefined;
onClick?: ((event: import("react").MouseEvent<HTMLButtonElement, MouseEvent>) => unknown) | undefined;
type?: "button" | "reset" | "submit" | undefined;
type?: "button" | "submit" | "reset" | undefined;
shape?: "default" | "rounded" | "rectangular" | undefined;
children?: import("react").ReactNode;
} & Pick<import("react").ClassAttributes<HTMLButtonElement> & import("react").ButtonHTMLAttributes<HTMLButtonElement>, "id" | "onMouseDown" | "onMouseUp" | "onTouchEnd" | "onTouchStart"> & {

View File

@ -4,8 +4,8 @@ declare const _default: (props: import("oak-frontend-base").ReactComponentProps<
entity: keyof EntityDict;
entityFilter: any;
relationIds: string[];
rule: "single" | "all" | "free";
ruleOnRow: "single" | "all" | "free";
rule: "all" | "single" | "free";
ruleOnRow: "all" | "single" | "free";
onPickRelations: (ids: string[]) => void;
onPickRows: (ids: string[]) => void;
pickedRowIds: string[] | undefined;

View File

@ -11,7 +11,7 @@ declare const _default: (props: import("oak-frontend-base").ReactComponentProps<
claimUrl: string;
qrCodeType: QrCodeType;
multiple: boolean;
rule: "single" | "all" | "free";
ruleOnRow: "single" | "all" | "free";
rule: "all" | "single" | "free";
ruleOnRow: "all" | "single" | "free";
}>) => import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>;
export default _default;

View File

@ -1,6 +1,6 @@
import { EntityDict } from '../../../oak-app-domain';
declare const _default: (props: import("oak-frontend-base").ReactComponentProps<EntityDict, keyof EntityDict, false, {
type: "login" | "bind";
type: "bind" | "login";
url: string;
}>) => import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>;
export default _default;

View File

@ -2,7 +2,7 @@ import { RuntimeContext } from './RuntimeContext';
import { EntityDict } from '../oak-app-domain';
import { SerializedData } from './FrontendRuntimeContext';
import { EntityDict as BaseEntityDict } from 'oak-domain/lib/types/Entity';
import { BackendRuntimeContext as BRC } from 'oak-frontend-base/lib/context/BackendRuntimeContext';
import { BackendRuntimeContext as BRC } from 'oak-frontend-base';
/**
* general数据结构要求的后台上下文
*/

View File

@ -5,7 +5,7 @@ import { ROOT_TOKEN_ID } from '../constants';
import { generateNewIdAsync } from 'oak-domain/lib/utils/uuid';
import { applicationProjection } from '../types/Projection';
import { getMpUnlimitWxaCode } from '../aspects/wechatQrCode';
import { BackendRuntimeContext as BRC } from 'oak-frontend-base/lib/context/BackendRuntimeContext';
import { BackendRuntimeContext as BRC } from 'oak-frontend-base';
import { cloneDeep } from 'oak-domain/lib/utils/lodash';
/**
* general数据结构要求的后台上下文

View File

@ -1,5 +1,5 @@
import { EntityDict as BaseEntityDict } from 'oak-domain/lib/types/Entity';
import { FrontendRuntimeContext as Frc, SerializedData as Fsd } from 'oak-frontend-base/es/context/FrontendRuntimeContext';
import { FrontendRuntimeContext as Frc, SerializedData as Fsd } from 'oak-frontend-base';
import { BasicFeatures } from 'oak-frontend-base';
import { EntityDict } from '../oak-app-domain';
import { RuntimeContext } from './RuntimeContext';

View File

@ -1,5 +1,5 @@
import { assert } from 'oak-domain/lib/utils/assert';
import { FrontendRuntimeContext as Frc } from 'oak-frontend-base/es/context/FrontendRuntimeContext';
import { FrontendRuntimeContext as Frc } from 'oak-frontend-base';
import { OakApplicationLoadingException, OakTokenExpiredException, OakUserDisabledException, OakUserInfoLoadingException, } from '../types/Exception';
import { OakUnloggedInException } from 'oak-domain/lib/types';
;

1
es/index.d.ts vendored
View File

@ -1,5 +1,6 @@
export type { GeneralFeatures } from './features';
export type { GeneralAspectDict } from './aspects/AspectDict';
export * from './types/Exception';
export * from './types/Page';
export * from './types/Message';
export * from './types/RuntimeCxt';

View File

@ -1,6 +1,6 @@
// import { registerMessageNotificationConverters } from './triggers/message';
// import { registerWeChatPublicEventCallback } from './endpoints';
// export * from './types/Exception';
export * from './types/Exception';
export * from './types/Page';
export * from './types/Message';
export * from './types/RuntimeCxt';

View File

@ -14,7 +14,7 @@ export declare function createToDo<ED extends EntityDict & BaseEntityDict, T ext
redirectTo: EntityDict['toDo']['OpSchema']['redirectTo'];
entity: any;
entityId: string;
}, userIds?: string[]): Promise<0 | 1>;
}, userIds?: string[]): Promise<1 | 0>;
/**
* todo例程entity对象上进行action操作时filtertodo完成
* entity的action的后trigger中调用

View File

@ -2,7 +2,7 @@ import { RuntimeContext } from './RuntimeContext';
import { EntityDict } from '../oak-app-domain';
import { SerializedData } from './FrontendRuntimeContext';
import { EntityDict as BaseEntityDict } from 'oak-domain/lib/types/Entity';
import { BackendRuntimeContext as BRC } from 'oak-frontend-base/lib/context/BackendRuntimeContext';
import { BackendRuntimeContext as BRC } from 'oak-frontend-base';
/**
* general数据结构要求的后台上下文
*/

View File

@ -8,12 +8,12 @@ const constants_1 = require("../constants");
const uuid_1 = require("oak-domain/lib/utils/uuid");
const Projection_1 = require("../types/Projection");
const wechatQrCode_1 = require("../aspects/wechatQrCode");
const BackendRuntimeContext_1 = require("oak-frontend-base/lib/context/BackendRuntimeContext");
const oak_frontend_base_1 = require("oak-frontend-base");
const lodash_1 = require("oak-domain/lib/utils/lodash");
/**
* general数据结构要求的后台上下文
*/
class BackendRuntimeContext extends BackendRuntimeContext_1.BackendRuntimeContext {
class BackendRuntimeContext extends oak_frontend_base_1.BackendRuntimeContext {
application;
token;
amIRoot;

View File

@ -1,5 +1,5 @@
import { EntityDict as BaseEntityDict } from 'oak-domain/lib/types/Entity';
import { FrontendRuntimeContext as Frc, SerializedData as Fsd } from 'oak-frontend-base/es/context/FrontendRuntimeContext';
import { FrontendRuntimeContext as Frc, SerializedData as Fsd } from 'oak-frontend-base';
import { BasicFeatures } from 'oak-frontend-base';
import { EntityDict } from '../oak-app-domain';
import { RuntimeContext } from './RuntimeContext';

View File

@ -2,11 +2,11 @@
Object.defineProperty(exports, "__esModule", { value: true });
exports.FrontendRuntimeContext = void 0;
const assert_1 = require("oak-domain/lib/utils/assert");
const FrontendRuntimeContext_1 = require("oak-frontend-base/es/context/FrontendRuntimeContext");
const oak_frontend_base_1 = require("oak-frontend-base");
const Exception_1 = require("../types/Exception");
const types_1 = require("oak-domain/lib/types");
;
class FrontendRuntimeContext extends FrontendRuntimeContext_1.FrontendRuntimeContext {
class FrontendRuntimeContext extends oak_frontend_base_1.FrontendRuntimeContext {
application;
token;
constructor(store, features) {

1
lib/index.d.ts vendored
View File

@ -1,5 +1,6 @@
export type { GeneralFeatures } from './features';
export type { GeneralAspectDict } from './aspects/AspectDict';
export * from './types/Exception';
export * from './types/Page';
export * from './types/Message';
export * from './types/RuntimeCxt';

View File

@ -4,7 +4,7 @@
Object.defineProperty(exports, "__esModule", { value: true });
exports.updateFreeDict = exports.authDeduceRelationMap = exports.selectFreeEntities = exports.FrontendRuntimeContext = exports.BackendRuntimeContext = void 0;
const tslib_1 = require("tslib");
// export * from './types/Exception';
tslib_1.__exportStar(require("./types/Exception"), exports);
tslib_1.__exportStar(require("./types/Page"), exports);
tslib_1.__exportStar(require("./types/Message"), exports);
tslib_1.__exportStar(require("./types/RuntimeCxt"), exports);

View File

@ -14,7 +14,7 @@ export declare function createToDo<ED extends EntityDict & BaseEntityDict, T ext
redirectTo: EntityDict['toDo']['OpSchema']['redirectTo'];
entity: any;
entityId: string;
}, userIds?: string[]): Promise<0 | 1>;
}, userIds?: string[]): Promise<1 | 0>;
/**
* todo例程entity对象上进行action操作时filtertodo完成
* entity的action的后trigger中调用

View File

@ -16,7 +16,7 @@ import { generateNewIdAsync } from 'oak-domain/lib/utils/uuid';
import { SelectOpResult } from 'oak-domain/lib/types';
import { applicationProjection } from '../types/Projection';
import { getMpUnlimitWxaCode } from '../aspects/wechatQrCode';
import { BackendRuntimeContext as BRC } from 'oak-frontend-base/lib/context/BackendRuntimeContext';
import { BackendRuntimeContext as BRC } from 'oak-frontend-base';
import { cloneDeep } from 'oak-domain/lib/utils/lodash';
/**
* general数据结构要求的后台上下文

View File

@ -1,6 +1,6 @@
import { assert } from 'oak-domain/lib/utils/assert';
import { EntityDict as BaseEntityDict } from 'oak-domain/lib/types/Entity';
import { FrontendRuntimeContext as Frc, SerializedData as Fsd } from 'oak-frontend-base/es/context/FrontendRuntimeContext';
import { FrontendRuntimeContext as Frc, SerializedData as Fsd } from 'oak-frontend-base';
import { BasicFeatures } from 'oak-frontend-base'
import { EntityDict } from '../oak-app-domain';

View File

@ -4,7 +4,7 @@
export type { GeneralFeatures } from './features';
export type { GeneralAspectDict } from './aspects/AspectDict';
// export * from './types/Exception';
export * from './types/Exception';
export * from './types/Page';
export * from './types/Message';
export * from './types/RuntimeCxt';