configuration
This commit is contained in:
parent
0d8f43dd47
commit
e6e9548451
|
|
@ -1,2 +1,2 @@
|
|||
declare const checkers: (import("oak-domain/lib/types").Checker<import("../oak-app-domain").EntityDict, "address", import("..").RuntimeCxt> | import("oak-domain/lib/types").Checker<import("../oak-app-domain").EntityDict, "token", import("..").RuntimeCxt> | import("oak-domain/lib/types").Checker<import("../oak-app-domain").EntityDict, "user", import("..").RuntimeCxt> | import("oak-domain/lib/types").Checker<import("../oak-app-domain").EntityDict, "userEntityGrant", import("..").RuntimeCxt> | import("oak-domain/lib/types").Checker<import("../oak-app-domain").EntityDict, "wechatQrCode", import("..").RuntimeCxt> | import("oak-domain/lib/types").Checker<import("../oak-app-domain").EntityDict, "application", import("..").RuntimeCxt> | import("oak-domain/lib/types").Checker<import("../oak-app-domain").EntityDict, "mobile", import("..").RuntimeCxt> | import("oak-domain/lib/types").Checker<import("../oak-app-domain").EntityDict, "wechatPublicTag", import("..").RuntimeCxt> | import("oak-domain/lib/types").Checker<import("../oak-app-domain").EntityDict, "message", import("..").RuntimeCxt> | import("oak-domain/lib/types").Checker<import("../oak-app-domain").EntityDict, "parasite", import("..").RuntimeCxt>)[];
|
||||
declare const checkers: (import("oak-domain/lib/types").Checker<import("../oak-app-domain").EntityDict, "parasite", import("..").RuntimeCxt> | import("oak-domain/lib/types").Checker<import("../oak-app-domain").EntityDict, "message", import("..").RuntimeCxt> | import("oak-domain/lib/types").Checker<import("../oak-app-domain").EntityDict, "wechatPublicTag", import("..").RuntimeCxt> | import("oak-domain/lib/types").Checker<import("../oak-app-domain").EntityDict, "mobile", import("..").RuntimeCxt> | import("oak-domain/lib/types").Checker<import("../oak-app-domain").EntityDict, "wechatQrCode", import("..").RuntimeCxt> | import("oak-domain/lib/types").Checker<import("../oak-app-domain").EntityDict, "userEntityGrant", import("..").RuntimeCxt> | import("oak-domain/lib/types").Checker<import("../oak-app-domain").EntityDict, "user", import("..").RuntimeCxt> | import("oak-domain/lib/types").Checker<import("../oak-app-domain").EntityDict, "token", import("..").RuntimeCxt> | import("oak-domain/lib/types").Checker<import("../oak-app-domain").EntityDict, "application", import("..").RuntimeCxt> | import("oak-domain/lib/types").Checker<import("../oak-app-domain").EntityDict, "address", import("..").RuntimeCxt>)[];
|
||||
export default checkers;
|
||||
|
|
|
|||
|
|
@ -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" | "system" | "platform";
|
||||
entity: "application" | "platform" | "system";
|
||||
entityId: string;
|
||||
name: string;
|
||||
}>) => import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>;
|
||||
|
|
|
|||
|
|
@ -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: "system" | "platform";
|
||||
entity: "platform" | "system";
|
||||
name: string;
|
||||
entityId: string;
|
||||
}>) => import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>;
|
||||
|
|
|
|||
|
|
@ -12,21 +12,21 @@ declare const _default: <ED2 extends EntityDict & BaseEntityDict, T2 extends key
|
|||
type?: ButtonProps['type'] | AmButtonProps['type'];
|
||||
executeText?: string | undefined;
|
||||
buttonProps?: (ButtonProps & {
|
||||
color?: "default" | "success" | "primary" | "warning" | "danger" | undefined;
|
||||
color?: "success" | "default" | "warning" | "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?: "reset" | "submit" | "button" | 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" | "onMouseUp" | "onMouseDown" | "onTouchStart" | "onTouchEnd"> & {
|
||||
} & Pick<import("react").ClassAttributes<HTMLButtonElement> & import("react").ButtonHTMLAttributes<HTMLButtonElement>, "id" | "onMouseDown" | "onMouseUp" | "onTouchEnd" | "onTouchStart"> & {
|
||||
className?: string | undefined;
|
||||
style?: (import("react").CSSProperties & Partial<Record<"--text-color" | "--background-color" | "--border-radius" | "--border-width" | "--border-style" | "--border-color", string>>) | undefined;
|
||||
style?: (import("react").CSSProperties & Partial<Record<"--background-color" | "--border-color" | "--text-color" | "--border-width" | "--border-radius" | "--border-style", string>>) | undefined;
|
||||
tabIndex?: number | undefined;
|
||||
} & import("react").AriaAttributes) | undefined;
|
||||
afterCommit?: AfterCommit;
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -0,0 +1,4 @@
|
|||
import { AttrUpdateMatrix } from 'oak-domain/lib/types/EntityDesc';
|
||||
import { EntityDict } from '../oak-app-domain';
|
||||
declare const attrUpdateMatrix: AttrUpdateMatrix<EntityDict>;
|
||||
export default attrUpdateMatrix;
|
||||
|
|
@ -0,0 +1,2 @@
|
|||
const attrUpdateMatrix = {};
|
||||
export default attrUpdateMatrix;
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
import { EntityDict } from '../oak-app-domain';
|
||||
declare const cacheSavedEntities: (keyof EntityDict)[];
|
||||
export default cacheSavedEntities;
|
||||
|
|
@ -0,0 +1,2 @@
|
|||
const cacheSavedEntities = [];
|
||||
export default cacheSavedEntities;
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
import { DependencyConfiguration } from 'oak-domain/lib/types/Configuration';
|
||||
declare const dependencyConfiguration: DependencyConfiguration;
|
||||
export default dependencyConfiguration;
|
||||
|
|
@ -0,0 +1,2 @@
|
|||
const dependencyConfiguration = [];
|
||||
export default dependencyConfiguration;
|
||||
|
|
@ -0,0 +1,4 @@
|
|||
import { CommonConfiguration } from 'oak-domain/lib/types/Configuration';
|
||||
import { EntityDict } from '../oak-app-domain';
|
||||
declare const _default: CommonConfiguration<EntityDict>;
|
||||
export default _default;
|
||||
|
|
@ -0,0 +1,16 @@
|
|||
/**
|
||||
* index中汇总了前端启动需要的引用配置
|
||||
*/
|
||||
import attrUpdateMatrix from './attrUpdateMatrix';
|
||||
import { actionDefDict } from '../oak-app-domain/ActionDefDict';
|
||||
import { selectFreeEntities, authDeduceRelationMap, updateFreeDict } from './relation';
|
||||
import cacheSavedEntities from './cache';
|
||||
export default {
|
||||
attrUpdateMatrix,
|
||||
actionDefDict,
|
||||
authDeduceRelationMap,
|
||||
selectFreeEntities,
|
||||
updateFreeDict,
|
||||
cacheSavedEntities,
|
||||
// cacheKeepFreshPeriod: 600 * 1000, // cache默认对缓存对象的刷新间隔时长(在这个间隔内不刷新)
|
||||
};
|
||||
|
|
@ -0,0 +1,24 @@
|
|||
// 此对象所标识的entity的权限由其外键指向的父对象判定
|
||||
export const authDeduceRelationMap = {
|
||||
extraFile: 'entity',
|
||||
message: 'entity',
|
||||
wechatQrCode: 'entity',
|
||||
};
|
||||
// 可以自由选择的对象
|
||||
export const selectFreeEntities = [
|
||||
'application',
|
||||
'domain',
|
||||
'area',
|
||||
'mobile',
|
||||
'wechatQrCode',
|
||||
'wechatLogin',
|
||||
'messageTypeTemplate',
|
||||
'articleMenu',
|
||||
'article',
|
||||
'userEntityGrant',
|
||||
'wechatMpJump',
|
||||
];
|
||||
// 可以自由更新的对象
|
||||
export const updateFreeDict = {
|
||||
userEntityGrant: ['claim'],
|
||||
};
|
||||
|
|
@ -7,4 +7,3 @@ export * from './types/RuntimeCxt';
|
|||
export { BackendRuntimeContext } from './context/BackendRuntimeContext';
|
||||
export { FrontendRuntimeContext, SerializedData, } from './context/FrontendRuntimeContext';
|
||||
export { RuntimeContext } from './context/RuntimeContext';
|
||||
export { selectFreeEntities, authDeduceRelationMap, updateFreeDict } from './config/relation';
|
||||
|
|
|
|||
|
|
@ -7,6 +7,3 @@ export * from './types/RuntimeCxt';
|
|||
// export { getLivestream, getPlayBackUrl, getStreamObj } from './utils/livestream';
|
||||
export { BackendRuntimeContext } from './context/BackendRuntimeContext';
|
||||
export { FrontendRuntimeContext, } from './context/FrontendRuntimeContext';
|
||||
// export { registerWechatPublicTags } from './config/constants';
|
||||
// export { registerCos as registerUploader } from './utils/cos';
|
||||
export { selectFreeEntities, authDeduceRelationMap, updateFreeDict } from './config/relation';
|
||||
|
|
|
|||
|
|
@ -6,6 +6,6 @@ export type ParticularAction = AbleAction | PayAction;
|
|||
export declare const actions: string[];
|
||||
export declare const AbleActionDef: ActionDef<AbleAction, AbleState>;
|
||||
export type Action = GenericAction | ParticularAction | string;
|
||||
export declare const ActionDefDict: {
|
||||
export declare const actionDefDict: {
|
||||
ableState: ActionDef<AbleAction, AbleState>;
|
||||
};
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
import { makeAbleActionDef } from "oak-domain/lib/actions/action";
|
||||
export const actions = ["count", "stat", "download", "select", "aggregate", "create", "remove", "update", "enable", "disable", "charge", "withdraw", "cost", "refund", "loan", "repay"];
|
||||
export const AbleActionDef = makeAbleActionDef('enabled');
|
||||
export const ActionDefDict = {
|
||||
export const actionDefDict = {
|
||||
ableState: AbleActionDef
|
||||
};
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
export declare const ActionDefDict: {
|
||||
export declare const actionDefDict: {
|
||||
modi: {
|
||||
iState: import("oak-domain/lib/types").ActionDef<string, string>;
|
||||
};
|
||||
|
|
|
|||
|
|
@ -1,34 +1,34 @@
|
|||
import { ActionDefDict as Modi } from "./Modi/Action";
|
||||
import { ActionDefDict as Account } from "./Account/Action";
|
||||
import { ActionDefDict as Captcha } from "./Captcha/Action";
|
||||
import { ActionDefDict as Email } from "./Email/Action";
|
||||
import { ActionDefDict as Message } from "./Message/Action";
|
||||
import { ActionDefDict as Mobile } from "./Mobile/Action";
|
||||
import { ActionDefDict as Notification } from "./Notification/Action";
|
||||
import { ActionDefDict as Parasite } from "./Parasite/Action";
|
||||
import { ActionDefDict as ToDo } from "./ToDo/Action";
|
||||
import { ActionDefDict as Token } from "./Token/Action";
|
||||
import { ActionDefDict as User } from "./User/Action";
|
||||
import { ActionDefDict as UserEntityGrant } from "./UserEntityGrant/Action";
|
||||
import { ActionDefDict as UserWechatPublicTag } from "./UserWechatPublicTag/Action";
|
||||
import { ActionDefDict as WechatLogin } from "./WechatLogin/Action";
|
||||
import { ActionDefDict as WechatMenu } from "./WechatMenu/Action";
|
||||
import { ActionDefDict as WechatPublicTag } from "./WechatPublicTag/Action";
|
||||
export const ActionDefDict = {
|
||||
modi: Modi,
|
||||
account: Account,
|
||||
captcha: Captcha,
|
||||
email: Email,
|
||||
message: Message,
|
||||
mobile: Mobile,
|
||||
notification: Notification,
|
||||
parasite: Parasite,
|
||||
toDo: ToDo,
|
||||
token: Token,
|
||||
user: User,
|
||||
userEntityGrant: UserEntityGrant,
|
||||
userWechatPublicTag: UserWechatPublicTag,
|
||||
wechatLogin: WechatLogin,
|
||||
wechatMenu: WechatMenu,
|
||||
wechatPublicTag: WechatPublicTag
|
||||
import { actionDefDict as modi } from "./Modi/Action";
|
||||
import { actionDefDict as account } from "./Account/Action";
|
||||
import { actionDefDict as captcha } from "./Captcha/Action";
|
||||
import { actionDefDict as email } from "./Email/Action";
|
||||
import { actionDefDict as message } from "./Message/Action";
|
||||
import { actionDefDict as mobile } from "./Mobile/Action";
|
||||
import { actionDefDict as notification } from "./Notification/Action";
|
||||
import { actionDefDict as parasite } from "./Parasite/Action";
|
||||
import { actionDefDict as toDo } from "./ToDo/Action";
|
||||
import { actionDefDict as token } from "./Token/Action";
|
||||
import { actionDefDict as user } from "./User/Action";
|
||||
import { actionDefDict as userEntityGrant } from "./UserEntityGrant/Action";
|
||||
import { actionDefDict as userWechatPublicTag } from "./UserWechatPublicTag/Action";
|
||||
import { actionDefDict as wechatLogin } from "./WechatLogin/Action";
|
||||
import { actionDefDict as wechatMenu } from "./WechatMenu/Action";
|
||||
import { actionDefDict as wechatPublicTag } from "./WechatPublicTag/Action";
|
||||
export const actionDefDict = {
|
||||
modi,
|
||||
account,
|
||||
captcha,
|
||||
email,
|
||||
message,
|
||||
mobile,
|
||||
notification,
|
||||
parasite,
|
||||
toDo,
|
||||
token,
|
||||
user,
|
||||
userEntityGrant,
|
||||
userWechatPublicTag,
|
||||
wechatLogin,
|
||||
wechatMenu,
|
||||
wechatPublicTag
|
||||
};
|
||||
|
|
|
|||
|
|
@ -0,0 +1,3 @@
|
|||
import { EntityDef } from "./Schema";
|
||||
import { StyleDef } from "oak-domain/lib/types/Style";
|
||||
export declare const style: StyleDef<EntityDef["OpSchema"], EntityDef["Action"]>;
|
||||
|
|
@ -0,0 +1,10 @@
|
|||
export const style = {
|
||||
color: {
|
||||
type: {
|
||||
wechatMp: '#32CD32',
|
||||
web: '#00FF7F',
|
||||
wechatPublic: '#90EE90',
|
||||
native: '#008000',
|
||||
}
|
||||
}
|
||||
};
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
import { EntityDef } from "./Schema";
|
||||
import { StyleDef } from "oak-domain/lib/types/Style";
|
||||
export declare const style: StyleDef<EntityDef["OpSchema"], EntityDef["Action"]>;
|
||||
|
|
@ -0,0 +1,11 @@
|
|||
export const style = {
|
||||
color: {
|
||||
level: {
|
||||
province: '#00FF7F',
|
||||
city: '#1E90FF',
|
||||
district: '#4682B4',
|
||||
street: '#808080',
|
||||
country: '#2F4F4F',
|
||||
}
|
||||
}
|
||||
};
|
||||
|
|
@ -6,6 +6,6 @@ export declare const IActionDef: ActionDef<IAction, IState>;
|
|||
export type ParticularAction = IAction;
|
||||
export declare const actions: string[];
|
||||
export type Action = GenericAction | ParticularAction | string;
|
||||
export declare const ActionDefDict: {
|
||||
export declare const actionDefDict: {
|
||||
iState: ActionDef<string, string>;
|
||||
};
|
||||
|
|
|
|||
|
|
@ -7,6 +7,6 @@ export const IActionDef = {
|
|||
is: 'unsent',
|
||||
};
|
||||
export const actions = ["count", "stat", "download", "select", "aggregate", "create", "remove", "update", "send", "success", "fail"];
|
||||
export const ActionDefDict = {
|
||||
export const actionDefDict = {
|
||||
iState: IActionDef
|
||||
};
|
||||
|
|
|
|||
|
|
@ -5,6 +5,6 @@ export type ParticularAction = AbleAction;
|
|||
export declare const actions: string[];
|
||||
export declare const AbleActionDef: ActionDef<AbleAction, AbleState>;
|
||||
export type Action = GenericAction | ParticularAction | string;
|
||||
export declare const ActionDefDict: {
|
||||
export declare const actionDefDict: {
|
||||
ableState: ActionDef<AbleAction, AbleState>;
|
||||
};
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
import { makeAbleActionDef } from "oak-domain/lib/actions/action";
|
||||
export const actions = ["count", "stat", "download", "select", "aggregate", "create", "remove", "update", "enable", "disable"];
|
||||
export const AbleActionDef = makeAbleActionDef('enabled');
|
||||
export const ActionDefDict = {
|
||||
export const actionDefDict = {
|
||||
ableState: AbleActionDef
|
||||
};
|
||||
|
|
|
|||
|
|
@ -9,7 +9,7 @@ export declare const actions: string[];
|
|||
export declare const IActionDef: ActionDef<IAction, IState>;
|
||||
export declare const VisitActionDef: ActionDef<VisitAction, VisitState>;
|
||||
export type Action = GenericAction | ParticularAction | string;
|
||||
export declare const ActionDefDict: {
|
||||
export declare const actionDefDict: {
|
||||
iState: ActionDef<string, string>;
|
||||
visitState: ActionDef<string, string>;
|
||||
};
|
||||
|
|
|
|||
|
|
@ -11,7 +11,7 @@ export const VisitActionDef = {
|
|||
},
|
||||
is: 'unvisited',
|
||||
};
|
||||
export const ActionDefDict = {
|
||||
export const actionDefDict = {
|
||||
iState: IActionDef,
|
||||
visitState: VisitActionDef
|
||||
};
|
||||
|
|
|
|||
|
|
@ -5,6 +5,6 @@ export type ParticularAction = AbleAction;
|
|||
export declare const actions: string[];
|
||||
export declare const AbleActionDef: ActionDef<AbleAction, AbleState>;
|
||||
export type Action = GenericAction | ParticularAction | string;
|
||||
export declare const ActionDefDict: {
|
||||
export declare const actionDefDict: {
|
||||
ableState: ActionDef<AbleAction, AbleState>;
|
||||
};
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
import { makeAbleActionDef } from "oak-domain/lib/actions/action";
|
||||
export const actions = ["count", "stat", "download", "select", "aggregate", "create", "remove", "update", "enable", "disable"];
|
||||
export const AbleActionDef = makeAbleActionDef('enabled');
|
||||
export const ActionDefDict = {
|
||||
export const actionDefDict = {
|
||||
ableState: AbleActionDef
|
||||
};
|
||||
|
|
|
|||
|
|
@ -5,6 +5,6 @@ export type IAction = 'apply' | 'abandon' | string;
|
|||
export type ParticularAction = IAction;
|
||||
export declare const actions: string[];
|
||||
export type Action = GenericAction | ParticularAction | string;
|
||||
export declare const ActionDefDict: {
|
||||
export declare const actionDefDict: {
|
||||
iState: ActionDef<string, string>;
|
||||
};
|
||||
|
|
|
|||
|
|
@ -6,6 +6,6 @@ const IActionDef = {
|
|||
is: 'active',
|
||||
};
|
||||
export const actions = ["count", "stat", "download", "select", "aggregate", "create", "remove", "update", "apply", "abandon"];
|
||||
export const ActionDefDict = {
|
||||
export const actionDefDict = {
|
||||
iState: IActionDef
|
||||
};
|
||||
|
|
|
|||
|
|
@ -5,6 +5,6 @@ export type IState = 'sending' | 'success' | 'failure' | string;
|
|||
export type ParticularAction = IAction;
|
||||
export declare const actions: string[];
|
||||
export type Action = GenericAction | ParticularAction | string;
|
||||
export declare const ActionDefDict: {
|
||||
export declare const actionDefDict: {
|
||||
iState: ActionDef<string, string>;
|
||||
};
|
||||
|
|
|
|||
|
|
@ -6,6 +6,6 @@ const IActionDef = {
|
|||
},
|
||||
is: 'sending',
|
||||
};
|
||||
export const ActionDefDict = {
|
||||
export const actionDefDict = {
|
||||
iState: IActionDef
|
||||
};
|
||||
|
|
|
|||
|
|
@ -3,4 +3,4 @@ export type IAction = 'wakeup' | 'cancel' | 'qrcode' | string;
|
|||
export type ParticularAction = IAction;
|
||||
export declare const actions: string[];
|
||||
export type Action = GenericAction | ParticularAction | string;
|
||||
export declare const ActionDefDict: {};
|
||||
export declare const actionDefDict: {};
|
||||
|
|
|
|||
|
|
@ -1,2 +1,2 @@
|
|||
export const actions = ["count", "stat", "download", "select", "aggregate", "create", "remove", "update", "wakeup", "cancel", "qrcode"];
|
||||
export const ActionDefDict = {};
|
||||
export const actionDefDict = {};
|
||||
|
|
|
|||
|
|
@ -1,6 +1,8 @@
|
|||
import { style as modi } from "./Modi/Style";
|
||||
import { style as user } from "./User/Style";
|
||||
import { style as account } from "./Account/Style";
|
||||
import { style as application } from "./Application/Style";
|
||||
import { style as area } from "./Area/Style";
|
||||
import { style as captcha } from "./Captcha/Style";
|
||||
import { style as changePasswordTemp } from "./ChangePasswordTemp/Style";
|
||||
import { style as domain } from "./Domain/Style";
|
||||
|
|
@ -24,6 +26,8 @@ export const styleDict = {
|
|||
modi,
|
||||
user,
|
||||
account,
|
||||
application,
|
||||
area,
|
||||
captcha,
|
||||
changePasswordTemp,
|
||||
domain,
|
||||
|
|
|
|||
|
|
@ -6,6 +6,6 @@ export declare const IActionDef: ActionDef<IAction, IState>;
|
|||
export type ParticularAction = IAction;
|
||||
export declare const actions: string[];
|
||||
export type Action = GenericAction | ParticularAction | string;
|
||||
export declare const ActionDefDict: {
|
||||
export declare const actionDefDict: {
|
||||
iState: ActionDef<string, string>;
|
||||
};
|
||||
|
|
|
|||
|
|
@ -4,6 +4,6 @@ export const IActionDef = {
|
|||
},
|
||||
};
|
||||
export const actions = ["count", "stat", "download", "select", "aggregate", "create", "remove", "update", "complete"];
|
||||
export const ActionDefDict = {
|
||||
export const actionDefDict = {
|
||||
iState: IActionDef
|
||||
};
|
||||
|
|
|
|||
|
|
@ -5,6 +5,6 @@ export type ParticularAction = AbleAction;
|
|||
export declare const actions: string[];
|
||||
export declare const AbleActionDef: ActionDef<AbleAction, AbleState>;
|
||||
export type Action = GenericAction | ParticularAction | string;
|
||||
export declare const ActionDefDict: {
|
||||
export declare const actionDefDict: {
|
||||
ableState: ActionDef<AbleAction, AbleState>;
|
||||
};
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
import { makeAbleActionDef } from "oak-domain/lib/actions/action";
|
||||
export const actions = ["count", "stat", "download", "select", "aggregate", "create", "remove", "update", "enable", "disable"];
|
||||
export const AbleActionDef = makeAbleActionDef('enabled');
|
||||
export const ActionDefDict = {
|
||||
export const actionDefDict = {
|
||||
ableState: AbleActionDef
|
||||
};
|
||||
|
|
|
|||
|
|
@ -9,7 +9,7 @@ export declare const UserActionDef: ActionDef<UserAction, UserState>;
|
|||
export type ParticularAction = UserAction | IdAction;
|
||||
export declare const actions: string[];
|
||||
export type Action = GenericAction | ParticularAction | RelationAction | string;
|
||||
export declare const ActionDefDict: {
|
||||
export declare const actionDefDict: {
|
||||
idState: ActionDef<string, string>;
|
||||
userState: ActionDef<string, string>;
|
||||
};
|
||||
|
|
|
|||
|
|
@ -16,7 +16,7 @@ export const UserActionDef = {
|
|||
},
|
||||
};
|
||||
export const actions = ["count", "stat", "download", "select", "aggregate", "create", "remove", "update", "grant", "revoke", "activate", "disable", "enable", "mergeTo", "mergeFrom", "verify", "accept", "reject"];
|
||||
export const ActionDefDict = {
|
||||
export const actionDefDict = {
|
||||
idState: IdActionDef,
|
||||
userState: UserActionDef
|
||||
};
|
||||
|
|
|
|||
|
|
@ -2,4 +2,4 @@ import { GenericAction } from "oak-domain/lib/actions/action";
|
|||
export type ParticularAction = 'claim' | 'disable';
|
||||
export declare const actions: string[];
|
||||
export type Action = GenericAction | ParticularAction | string;
|
||||
export declare const ActionDefDict: {};
|
||||
export declare const actionDefDict: {};
|
||||
|
|
|
|||
|
|
@ -1,2 +1,2 @@
|
|||
export const actions = ["count", "stat", "download", "select", "aggregate", "create", "remove", "update", "claim", "disable"];
|
||||
export const ActionDefDict = {};
|
||||
export const actionDefDict = {};
|
||||
|
|
|
|||
|
|
@ -6,6 +6,6 @@ export declare const IActionDef: ActionDef<IAction, IState>;
|
|||
export type ParticularAction = 'sync' | IAction;
|
||||
export declare const actions: string[];
|
||||
export type Action = GenericAction | ParticularAction | string;
|
||||
export declare const ActionDefDict: {
|
||||
export declare const actionDefDict: {
|
||||
iState: ActionDef<string, string>;
|
||||
};
|
||||
|
|
|
|||
|
|
@ -6,6 +6,6 @@ export const IActionDef = {
|
|||
is: 'wait',
|
||||
};
|
||||
export const actions = ["count", "stat", "download", "select", "aggregate", "create", "remove", "update", "sync", "success", "fail"];
|
||||
export const ActionDefDict = {
|
||||
export const actionDefDict = {
|
||||
iState: IActionDef
|
||||
};
|
||||
|
|
|
|||
|
|
@ -2,4 +2,4 @@ import { GenericAction } from "oak-domain/lib/actions/action";
|
|||
export type ParticularAction = 'success';
|
||||
export declare const actions: string[];
|
||||
export type Action = GenericAction | ParticularAction | string;
|
||||
export declare const ActionDefDict: {};
|
||||
export declare const actionDefDict: {};
|
||||
|
|
|
|||
|
|
@ -1,2 +1,2 @@
|
|||
export const actions = ["count", "stat", "download", "select", "aggregate", "create", "remove", "update", "success"];
|
||||
export const ActionDefDict = {};
|
||||
export const actionDefDict = {};
|
||||
|
|
|
|||
|
|
@ -5,6 +5,6 @@ export type IState = 'wait' | 'success' | 'fail' | string;
|
|||
export type ParticularAction = IAction | 'publish';
|
||||
export declare const actions: string[];
|
||||
export type Action = GenericAction | ParticularAction | string;
|
||||
export declare const ActionDefDict: {
|
||||
export declare const actionDefDict: {
|
||||
iState: ActionDef<string, string>;
|
||||
};
|
||||
|
|
|
|||
|
|
@ -6,6 +6,6 @@ const IActionDef = {
|
|||
is: 'wait',
|
||||
};
|
||||
export const actions = ["count", "stat", "download", "select", "aggregate", "create", "remove", "update", "success", "fail", "publish"];
|
||||
export const ActionDefDict = {
|
||||
export const actionDefDict = {
|
||||
iState: IActionDef
|
||||
};
|
||||
|
|
|
|||
|
|
@ -6,6 +6,6 @@ export declare const IActionDef: ActionDef<IAction, IState>;
|
|||
export type ParticularAction = 'sync' | IAction;
|
||||
export declare const actions: string[];
|
||||
export type Action = GenericAction | ParticularAction | string;
|
||||
export declare const ActionDefDict: {
|
||||
export declare const actionDefDict: {
|
||||
iState: ActionDef<string, string>;
|
||||
};
|
||||
|
|
|
|||
|
|
@ -6,6 +6,6 @@ export const IActionDef = {
|
|||
is: 'wait',
|
||||
};
|
||||
export const actions = ["count", "stat", "download", "select", "aggregate", "create", "remove", "update", "sync", "success", "fail"];
|
||||
export const ActionDefDict = {
|
||||
export const actionDefDict = {
|
||||
iState: IActionDef
|
||||
};
|
||||
|
|
|
|||
|
|
@ -1,2 +1,2 @@
|
|||
declare const _default: (import("oak-domain/lib/types").Trigger<import("../oak-app-domain").EntityDict, "address", import("..").RuntimeCxt> | import("oak-domain/lib/types").Trigger<import("../oak-app-domain").EntityDict, "user", import("..").RuntimeCxt> | import("oak-domain/lib/types").Trigger<import("../oak-app-domain").EntityDict, "userEntityGrant", import("..").BRC> | import("oak-domain/lib/types").Trigger<import("../oak-app-domain").EntityDict, "wechatQrCode", import("..").RuntimeCxt> | import("oak-domain/lib/types").Trigger<import("../oak-app-domain").EntityDict, "message", import("..").BRC> | import("oak-domain/lib/types").Trigger<import("../oak-app-domain").EntityDict, "notification", import("..").BackendRuntimeContext<import("../oak-app-domain").EntityDict>> | import("oak-domain/lib/types").Trigger<import("../oak-app-domain").EntityDict, "wechatLogin", import("..").RuntimeCxt> | import("oak-domain/lib/types").Trigger<import("../oak-app-domain").EntityDict, "application", import("..").RuntimeCxt> | import("oak-domain/lib/types").Trigger<import("../oak-app-domain").EntityDict, "articleMenu", import("..").BackendRuntimeContext<import("../oak-app-domain").EntityDict>> | import("oak-domain/lib/types").Trigger<import("../oak-app-domain").EntityDict, "article", import("..").BackendRuntimeContext<import("../oak-app-domain").EntityDict>> | import("oak-domain/lib/types").Trigger<import("../oak-app-domain").EntityDict, "parasite", import("..").BackendRuntimeContext<import("../oak-app-domain").EntityDict>> | import("oak-domain/lib/types").Trigger<import("../oak-app-domain").EntityDict, "extraFile", import("..").BackendRuntimeContext<import("../oak-app-domain").EntityDict>> | import("oak-domain/lib/types").Trigger<import("../oak-app-domain").EntityDict, "sessionMessage", import("..").BackendRuntimeContext<import("../oak-app-domain").EntityDict>> | import("oak-domain/lib/types").Trigger<import("../oak-app-domain").EntityDict, "wechatMenu", import("..").BackendRuntimeContext<import("../oak-app-domain").EntityDict>> | import("oak-domain/lib/types").Trigger<import("../oak-app-domain").EntityDict, "wechatPublicTag", import("..").BackendRuntimeContext<import("../oak-app-domain").EntityDict>> | import("oak-domain/lib/types").Trigger<import("../oak-app-domain").EntityDict, "wechatMpJump", import("..").BackendRuntimeContext<import("../oak-app-domain").EntityDict>> | import("oak-domain/lib/types").Trigger<import("../oak-app-domain").EntityDict, "account", import("..").BackendRuntimeContext<import("../oak-app-domain").EntityDict>>)[];
|
||||
declare const _default: (import("oak-domain/lib/types").Trigger<import("../oak-app-domain").EntityDict, "message", import("..").BRC> | import("oak-domain/lib/types").Trigger<import("../oak-app-domain").EntityDict, "application", import("..").RuntimeCxt> | import("oak-domain/lib/types").Trigger<import("../oak-app-domain").EntityDict, "account", import("..").BackendRuntimeContext<import("../oak-app-domain").EntityDict>> | import("oak-domain/lib/types").Trigger<import("../oak-app-domain").EntityDict, "address", import("..").RuntimeCxt> | import("oak-domain/lib/types").Trigger<import("../oak-app-domain").EntityDict, "article", import("..").BackendRuntimeContext<import("../oak-app-domain").EntityDict>> | import("oak-domain/lib/types").Trigger<import("../oak-app-domain").EntityDict, "articleMenu", import("..").BackendRuntimeContext<import("../oak-app-domain").EntityDict>> | import("oak-domain/lib/types").Trigger<import("../oak-app-domain").EntityDict, "extraFile", import("..").BackendRuntimeContext<import("../oak-app-domain").EntityDict>> | import("oak-domain/lib/types").Trigger<import("../oak-app-domain").EntityDict, "user", import("..").RuntimeCxt> | import("oak-domain/lib/types").Trigger<import("../oak-app-domain").EntityDict, "userEntityGrant", import("..").BRC> | import("oak-domain/lib/types").Trigger<import("../oak-app-domain").EntityDict, "wechatQrCode", import("..").RuntimeCxt> | import("oak-domain/lib/types").Trigger<import("../oak-app-domain").EntityDict, "notification", import("..").BackendRuntimeContext<import("../oak-app-domain").EntityDict>> | import("oak-domain/lib/types").Trigger<import("../oak-app-domain").EntityDict, "wechatLogin", import("..").RuntimeCxt> | import("oak-domain/lib/types").Trigger<import("../oak-app-domain").EntityDict, "parasite", import("..").BackendRuntimeContext<import("../oak-app-domain").EntityDict>> | import("oak-domain/lib/types").Trigger<import("../oak-app-domain").EntityDict, "sessionMessage", import("..").BackendRuntimeContext<import("../oak-app-domain").EntityDict>> | import("oak-domain/lib/types").Trigger<import("../oak-app-domain").EntityDict, "wechatMenu", import("..").BackendRuntimeContext<import("../oak-app-domain").EntityDict>> | import("oak-domain/lib/types").Trigger<import("../oak-app-domain").EntityDict, "wechatPublicTag", import("..").BackendRuntimeContext<import("../oak-app-domain").EntityDict>> | import("oak-domain/lib/types").Trigger<import("../oak-app-domain").EntityDict, "wechatMpJump", import("..").BackendRuntimeContext<import("../oak-app-domain").EntityDict>>)[];
|
||||
export default _default;
|
||||
|
|
|
|||
|
|
@ -1,77 +0,0 @@
|
|||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
const token_1 = require("./token");
|
||||
const extraFile_1 = require("./extraFile");
|
||||
const application_1 = require("./application");
|
||||
const config_1 = require("./config");
|
||||
const template_1 = require("./template");
|
||||
const sms_1 = require("./sms");
|
||||
const user_1 = require("./user");
|
||||
const wechatLogin_1 = require("./wechatLogin");
|
||||
const wechatUser_1 = require("./wechatUser");
|
||||
const wechatQrCode_1 = require("./wechatQrCode");
|
||||
const userEntityGrant_1 = require("./userEntityGrant");
|
||||
const session_1 = require("./session");
|
||||
const wechatMenu_1 = require("./wechatMenu");
|
||||
const wechatPublicTag_1 = require("./wechatPublicTag");
|
||||
const userWechatPublicTag_1 = require("./userWechatPublicTag");
|
||||
const wechatMpJump_1 = require("./wechatMpJump");
|
||||
const aspectDict = {
|
||||
mergeUser: user_1.mergeUser,
|
||||
switchTo: token_1.switchTo,
|
||||
refreshWechatPublicUserInfo: token_1.refreshWechatPublicUserInfo,
|
||||
loginByMobile: token_1.loginByMobile,
|
||||
loginWechat: token_1.loginWechat,
|
||||
loginWechatMp: token_1.loginWechatMp,
|
||||
wakeupParasite: token_1.wakeupParasite,
|
||||
refreshToken: token_1.refreshToken,
|
||||
syncUserInfoWechatMp: token_1.syncUserInfoWechatMp,
|
||||
sendCaptcha: token_1.sendCaptcha,
|
||||
getApplication: application_1.getApplication,
|
||||
updateConfig: config_1.updateConfig,
|
||||
updateStyle: config_1.updateStyle,
|
||||
updateApplicationConfig: config_1.updateApplicationConfig,
|
||||
getWechatMpUserPhoneNumber: token_1.getWechatMpUserPhoneNumber,
|
||||
logout: token_1.logout,
|
||||
signatureJsSDK: application_1.signatureJsSDK,
|
||||
createWechatLogin: wechatLogin_1.createWechatLogin,
|
||||
unbindingWechat: wechatUser_1.unbindingWechat,
|
||||
loginByWechat: token_1.loginByWechat,
|
||||
getInfoByUrl: extraFile_1.getInfoByUrl,
|
||||
getChangePasswordChannels: user_1.getChangePasswordChannels,
|
||||
updateUserPassword: user_1.updateUserPassword,
|
||||
getMpUnlimitWxaCode: wechatQrCode_1.getMpUnlimitWxaCode,
|
||||
confirmUserEntityGrant: userEntityGrant_1.confirmUserEntityGrant,
|
||||
createSession: session_1.createSession,
|
||||
uploadWechatMedia: application_1.uploadWechatMedia,
|
||||
getCurrentMenu: wechatMenu_1.getCurrentMenu,
|
||||
getMenu: wechatMenu_1.getMenu,
|
||||
createMenu: wechatMenu_1.createMenu,
|
||||
createConditionalMenu: wechatMenu_1.createConditionalMenu,
|
||||
deleteConditionalMenu: wechatMenu_1.deleteConditionalMenu,
|
||||
deleteMenu: wechatMenu_1.deleteMenu,
|
||||
batchGetArticle: application_1.batchGetArticle,
|
||||
getArticle: application_1.getArticle,
|
||||
batchGetMaterialList: application_1.batchGetMaterialList,
|
||||
getMaterial: application_1.getMaterial,
|
||||
deleteMaterial: application_1.deleteMaterial,
|
||||
createTag: wechatPublicTag_1.createTag,
|
||||
getTags: wechatPublicTag_1.getTags,
|
||||
editTag: wechatPublicTag_1.editTag,
|
||||
deleteTag: wechatPublicTag_1.deleteTag,
|
||||
syncMessageTemplate: template_1.syncMessageTemplate,
|
||||
getMessageType: template_1.getMessageType,
|
||||
syncTag: wechatPublicTag_1.syncTag,
|
||||
oneKeySync: wechatPublicTag_1.oneKeySync,
|
||||
getTagUsers: userWechatPublicTag_1.getTagUsers,
|
||||
batchtagging: userWechatPublicTag_1.batchtagging,
|
||||
batchuntagging: userWechatPublicTag_1.batchuntagging,
|
||||
getUserTags: userWechatPublicTag_1.getUserTags,
|
||||
getUsers: userWechatPublicTag_1.getUsers,
|
||||
tagging: userWechatPublicTag_1.tagging,
|
||||
syncToLocale: userWechatPublicTag_1.syncToLocale,
|
||||
syncToWechat: userWechatPublicTag_1.syncToWechat,
|
||||
wechatMpJump: wechatMpJump_1.wechatMpJump,
|
||||
syncSmsTemplate: sms_1.syncSmsTemplate
|
||||
};
|
||||
exports.default = aspectDict;
|
||||
|
|
@ -1,2 +1,2 @@
|
|||
declare const checkers: (import("oak-domain/lib/types").Checker<import("../oak-app-domain").EntityDict, "address", import("..").RuntimeCxt> | import("oak-domain/lib/types").Checker<import("../oak-app-domain").EntityDict, "token", import("..").RuntimeCxt> | import("oak-domain/lib/types").Checker<import("../oak-app-domain").EntityDict, "user", import("..").RuntimeCxt> | import("oak-domain/lib/types").Checker<import("../oak-app-domain").EntityDict, "userEntityGrant", import("..").RuntimeCxt> | import("oak-domain/lib/types").Checker<import("../oak-app-domain").EntityDict, "wechatQrCode", import("..").RuntimeCxt> | import("oak-domain/lib/types").Checker<import("../oak-app-domain").EntityDict, "application", import("..").RuntimeCxt> | import("oak-domain/lib/types").Checker<import("../oak-app-domain").EntityDict, "mobile", import("..").RuntimeCxt> | import("oak-domain/lib/types").Checker<import("../oak-app-domain").EntityDict, "wechatPublicTag", import("..").RuntimeCxt> | import("oak-domain/lib/types").Checker<import("../oak-app-domain").EntityDict, "message", import("..").RuntimeCxt> | import("oak-domain/lib/types").Checker<import("../oak-app-domain").EntityDict, "parasite", import("..").RuntimeCxt>)[];
|
||||
declare const checkers: (import("oak-domain/lib/types").Checker<import("../oak-app-domain").EntityDict, "parasite", import("..").RuntimeCxt> | import("oak-domain/lib/types").Checker<import("../oak-app-domain").EntityDict, "message", import("..").RuntimeCxt> | import("oak-domain/lib/types").Checker<import("../oak-app-domain").EntityDict, "wechatPublicTag", import("..").RuntimeCxt> | import("oak-domain/lib/types").Checker<import("../oak-app-domain").EntityDict, "mobile", import("..").RuntimeCxt> | import("oak-domain/lib/types").Checker<import("../oak-app-domain").EntityDict, "wechatQrCode", import("..").RuntimeCxt> | import("oak-domain/lib/types").Checker<import("../oak-app-domain").EntityDict, "userEntityGrant", import("..").RuntimeCxt> | import("oak-domain/lib/types").Checker<import("../oak-app-domain").EntityDict, "user", import("..").RuntimeCxt> | import("oak-domain/lib/types").Checker<import("../oak-app-domain").EntityDict, "token", import("..").RuntimeCxt> | import("oak-domain/lib/types").Checker<import("../oak-app-domain").EntityDict, "application", import("..").RuntimeCxt> | import("oak-domain/lib/types").Checker<import("../oak-app-domain").EntityDict, "address", import("..").RuntimeCxt>)[];
|
||||
export default checkers;
|
||||
|
|
|
|||
|
|
@ -1,26 +0,0 @@
|
|||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
const tslib_1 = require("tslib");
|
||||
const address_1 = tslib_1.__importDefault(require("./address"));
|
||||
const token_1 = tslib_1.__importDefault(require("./token"));
|
||||
const user_1 = tslib_1.__importDefault(require("./user"));
|
||||
const userEntityGrant_1 = tslib_1.__importDefault(require("./userEntityGrant"));
|
||||
const wechatQrCode_1 = tslib_1.__importDefault(require("./wechatQrCode"));
|
||||
const application_1 = tslib_1.__importDefault(require("./application"));
|
||||
const mobile_1 = tslib_1.__importDefault(require("./mobile"));
|
||||
const wechatPublicTag_1 = tslib_1.__importDefault(require("./wechatPublicTag"));
|
||||
const message_1 = tslib_1.__importDefault(require("./message"));
|
||||
const parasite_1 = tslib_1.__importDefault(require("./parasite"));
|
||||
const checkers = [
|
||||
...mobile_1.default,
|
||||
...address_1.default,
|
||||
...token_1.default,
|
||||
...user_1.default,
|
||||
...userEntityGrant_1.default,
|
||||
...wechatQrCode_1.default,
|
||||
...application_1.default,
|
||||
...wechatPublicTag_1.default,
|
||||
...message_1.default,
|
||||
...parasite_1.default,
|
||||
];
|
||||
exports.default = checkers;
|
||||
|
|
@ -1,24 +0,0 @@
|
|||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.DATA_SUBSCRIBER_KEYS = exports.LOCAL_STORAGE_KEYS = exports.getWechatPublicTags = exports.registerWechatPublicTags = exports.WechatPublicTags = void 0;
|
||||
exports.WechatPublicTags = {};
|
||||
function registerWechatPublicTags(_WechatPublicTags) {
|
||||
exports.WechatPublicTags = _WechatPublicTags;
|
||||
}
|
||||
exports.registerWechatPublicTags = registerWechatPublicTags;
|
||||
function getWechatPublicTags() {
|
||||
return exports.WechatPublicTags;
|
||||
}
|
||||
exports.getWechatPublicTags = getWechatPublicTags;
|
||||
exports.LOCAL_STORAGE_KEYS = {
|
||||
captchaSendAt: 'ogb:c-changePassword-byMobile-captchaSendAt',
|
||||
loginMode: 'ogb:c-user-login-loginMode',
|
||||
userSearchHistory: 'ogb:p-user-search-history',
|
||||
themeState: 'ogb:feature-theme-state',
|
||||
appId: 'ogb:f-application-id',
|
||||
token: 'ogb:f-token-token',
|
||||
};
|
||||
exports.DATA_SUBSCRIBER_KEYS = {
|
||||
sessionMessageList: 'sessionM-l',
|
||||
sessionList: 'session-l',
|
||||
};
|
||||
|
|
@ -0,0 +1,4 @@
|
|||
import { AttrUpdateMatrix } from 'oak-domain/lib/types/EntityDesc';
|
||||
import { EntityDict } from '../oak-app-domain';
|
||||
declare const attrUpdateMatrix: AttrUpdateMatrix<EntityDict>;
|
||||
export default attrUpdateMatrix;
|
||||
|
|
@ -1,2 +1,4 @@
|
|||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
const attrUpdateMatrix = {};
|
||||
exports.default = attrUpdateMatrix;
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
import { EntityDict } from '../oak-app-domain';
|
||||
declare const cacheSavedEntities: (keyof EntityDict)[];
|
||||
export default cacheSavedEntities;
|
||||
|
|
@ -1,2 +1,4 @@
|
|||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
const cacheSavedEntities = [];
|
||||
exports.default = cacheSavedEntities;
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
import { DependencyConfiguration } from 'oak-domain/lib/types/Configuration';
|
||||
declare const dependencyConfiguration: DependencyConfiguration;
|
||||
export default dependencyConfiguration;
|
||||
|
|
@ -0,0 +1,4 @@
|
|||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
const dependencyConfiguration = [];
|
||||
exports.default = dependencyConfiguration;
|
||||
|
|
@ -0,0 +1,4 @@
|
|||
import { CommonConfiguration } from 'oak-domain/lib/types/Configuration';
|
||||
import { EntityDict } from '../oak-app-domain';
|
||||
declare const _default: CommonConfiguration<EntityDict>;
|
||||
export default _default;
|
||||
|
|
@ -0,0 +1,19 @@
|
|||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
const tslib_1 = require("tslib");
|
||||
/**
|
||||
* index中汇总了前端启动需要的引用配置
|
||||
*/
|
||||
const attrUpdateMatrix_1 = tslib_1.__importDefault(require("./attrUpdateMatrix"));
|
||||
const ActionDefDict_1 = require("../oak-app-domain/ActionDefDict");
|
||||
const relation_1 = require("./relation");
|
||||
const cache_1 = tslib_1.__importDefault(require("./cache"));
|
||||
exports.default = {
|
||||
attrUpdateMatrix: attrUpdateMatrix_1.default,
|
||||
actionDefDict: ActionDefDict_1.actionDefDict,
|
||||
authDeduceRelationMap: relation_1.authDeduceRelationMap,
|
||||
selectFreeEntities: relation_1.selectFreeEntities,
|
||||
updateFreeDict: relation_1.updateFreeDict,
|
||||
cacheSavedEntities: cache_1.default,
|
||||
// cacheKeepFreshPeriod: 600 * 1000, // cache默认对缓存对象的刷新间隔时长(在这个间隔内不刷新)
|
||||
};
|
||||
|
|
@ -0,0 +1,5 @@
|
|||
import { AuthDeduceRelationMap, SelectFreeEntities, UpdateFreeDict } from 'oak-domain/lib/types/Entity';
|
||||
import { EntityDict } from '../oak-app-domain';
|
||||
export declare const authDeduceRelationMap: AuthDeduceRelationMap<EntityDict>;
|
||||
export declare const selectFreeEntities: SelectFreeEntities<EntityDict>;
|
||||
export declare const updateFreeDict: UpdateFreeDict<EntityDict>;
|
||||
|
|
@ -1,12 +0,0 @@
|
|||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.DefaultConfig = exports.ROOT_TOKEN_ID = exports.ROOT_MOBILE_ID = exports.ROOT_USER_ID = exports.ROOT_ROLE_ID = void 0;
|
||||
exports.ROOT_ROLE_ID = 'oak-root-role';
|
||||
exports.ROOT_USER_ID = 'oak-root-user';
|
||||
exports.ROOT_MOBILE_ID = 'oak-root-mobile';
|
||||
exports.ROOT_TOKEN_ID = 'oak-root-token';
|
||||
exports.DefaultConfig = {
|
||||
userEntityGrant: {
|
||||
lifetimeLength: 3600 * 1000,
|
||||
},
|
||||
};
|
||||
|
|
@ -1,40 +0,0 @@
|
|||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
const actionAuths = [
|
||||
{
|
||||
id: 'message-user',
|
||||
pathId: 'msg-user',
|
||||
deActions: ['select', 'remove', 'update'],
|
||||
},
|
||||
{
|
||||
id: 'mobile-user',
|
||||
pathId: 'mobile-user',
|
||||
deActions: ['create', 'update', 'remove', 'select'],
|
||||
},
|
||||
{
|
||||
id: 'token-user',
|
||||
pathId: 'token-user',
|
||||
deActions: ['create', 'update', 'remove', 'select', 'disable'],
|
||||
},
|
||||
{
|
||||
id: 'wechatLogin-user',
|
||||
pathId: 'wchL-user',
|
||||
deActions: ['create', 'update', 'select'],
|
||||
},
|
||||
{
|
||||
id: 'wechatUser-user',
|
||||
pathId: 'wchU-user',
|
||||
deActions: ['create', 'update', 'select'],
|
||||
},
|
||||
{
|
||||
id: 'passwordChangeTemp-user',
|
||||
pathId: 'pwdCT-user',
|
||||
deActions: ['create', 'select'],
|
||||
},
|
||||
{
|
||||
id: 'userEntityClaim-user',
|
||||
pathId: 'uec-user',
|
||||
deActions: ['create', 'select'],
|
||||
},
|
||||
];
|
||||
exports.default = actionAuths;
|
||||
|
|
@ -1,7 +0,0 @@
|
|||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
const tslib_1 = require("tslib");
|
||||
// import area2 from './area.json';
|
||||
const areaDebug_json_1 = tslib_1.__importDefault(require("./areaDebug.json"));
|
||||
const area = areaDebug_json_1.default;
|
||||
exports.default = area;
|
||||
|
|
@ -1,6 +0,0 @@
|
|||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
const tslib_1 = require("tslib");
|
||||
console.log('走不到这里[data/area]');
|
||||
const area_dev_1 = tslib_1.__importDefault(require("./area.dev"));
|
||||
exports.default = area_dev_1.default;
|
||||
|
|
@ -1,4 +0,0 @@
|
|||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
const area = [];
|
||||
exports.default = area;
|
||||
|
|
@ -1 +0,0 @@
|
|||
[{ "code": "330000", "level": "province", "parentId": "100000", "name": "浙江省", "depth": 1, "id": "330000", "center": { "type": "point", "coordinate": [120.152575, 30.266619] } }, { "code": "100000", "level": "country", "parentId": null, "name": "中华人民共和国", "depth": 0, "id": "100000", "center": { "type": "point", "coordinate": [116.3683244, 39.915085] } }, { "code": "330100", "level": "city", "parentId": "330000", "name": "杭州市", "depth": 2, "id": "330100", "center": { "type": "point", "coordinate": [120.210792, 30.246026] } }, { "code": "330200", "level": "city", "parentId": "330000", "name": "宁波市", "depth": 2, "id": "330200", "center": { "type": "point", "coordinate": [121.62454, 29.860258] } }, { "code": "330206", "level": "district", "parentId": "330200", "name": "北仑区", "depth": 3, "id": "330206", "center": { "type": "point", "coordinate": [121.844601, 29.899548] } }, { "code": "330225", "level": "district", "parentId": "330200", "name": "象山县", "depth": 3, "id": "330225", "center": { "type": "point", "coordinate": [121.869251, 29.476826] } }, { "code": "330205", "level": "district", "parentId": "330200", "name": "江北区", "depth": 3, "id": "330205", "center": { "type": "point", "coordinate": [121.555067, 29.88673] } }, { "code": "330211", "level": "district", "parentId": "330200", "name": "镇海区", "depth": 3, "id": "330211", "center": { "type": "point", "coordinate": [121.596686, 29.965212] } }, { "code": "330226", "level": "district", "parentId": "330200", "name": "宁海县", "depth": 3, "id": "330226", "center": { "type": "point", "coordinate": [121.429729, 29.287929] } }, { "code": "330203", "level": "district", "parentId": "330200", "name": "海曙区", "depth": 3, "id": "330203", "center": { "type": "point", "coordinate": [121.550485, 29.873705] } }, { "code": "330212", "level": "district", "parentId": "330200", "name": "鄞州区", "depth": 3, "id": "330212", "center": { "type": "point", "coordinate": [121.546617, 29.817302] } }, { "code": "330213", "level": "district", "parentId": "330200", "name": "奉化区", "depth": 3, "id": "330213", "center": { "type": "point", "coordinate": [121.406151, 29.655292] } }, { "code": "330281", "level": "district", "parentId": "330200", "name": "余姚市", "depth": 3, "id": "330281", "center": { "type": "point", "coordinate": [121.154572, 30.037967] } }, { "code": "330282", "level": "district", "parentId": "330200", "name": "慈溪市", "depth": 3, "id": "330282", "center": { "type": "point", "coordinate": [121.266525, 30.170695] } }, { "code": "330108", "level": "district", "parentId": "330100", "name": "滨江区", "depth": 3, "id": "330108", "center": { "type": "point", "coordinate": [120.211981, 30.208332] } }, { "code": "330127", "level": "district", "parentId": "330100", "name": "淳安县", "depth": 3, "id": "330127", "center": { "type": "point", "coordinate": [119.042015, 29.609678] } }, { "code": "330109", "level": "district", "parentId": "330100", "name": "萧山区", "depth": 3, "id": "330109", "center": { "type": "point", "coordinate": [120.264263, 30.184119] } }, { "code": "330122", "level": "district", "parentId": "330100", "name": "桐庐县", "depth": 3, "id": "330122", "center": { "type": "point", "coordinate": [119.691755, 29.79418] } }, { "code": "330114", "level": "district", "parentId": "330100", "name": "钱塘区", "depth": 3, "id": "330114", "center": { "type": "point", "coordinate": [120.493941, 30.32304] } }, { "code": "330106", "level": "district", "parentId": "330100", "name": "西湖区", "depth": 3, "id": "330106", "center": { "type": "point", "coordinate": [120.130396, 30.259242] } }, { "code": "330111", "level": "district", "parentId": "330100", "name": "富阳区", "depth": 3, "id": "330111", "center": { "type": "point", "coordinate": [119.96022, 30.048803] } }, { "code": "330102", "level": "district", "parentId": "330100", "name": "上城区", "depth": 3, "id": "330102", "center": { "type": "point", "coordinate": [120.19732, 30.226543] } }, { "code": "330110", "level": "district", "parentId": "330100", "name": "余杭区", "depth": 3, "id": "330110", "center": { "type": "point", "coordinate": [119.978742, 30.273705] } }, { "code": "330113", "level": "district", "parentId": "330100", "name": "临平区", "depth": 3, "id": "330113", "center": { "type": "point", "coordinate": [120.299222, 30.419154] } }, { "code": "330112", "level": "district", "parentId": "330100", "name": "临安区", "depth": 3, "id": "330112", "center": { "type": "point", "coordinate": [119.724457, 30.234375] } }, { "code": "330105", "level": "district", "parentId": "330100", "name": "拱墅区", "depth": 3, "id": "330105", "center": { "type": "point", "coordinate": [120.141503, 30.319126] } }, { "code": "330182", "level": "district", "parentId": "330100", "name": "建德市", "depth": 3, "id": "330182", "center": { "type": "point", "coordinate": [119.281195, 29.474964] } }]
|
||||
470
lib/data/i18n.js
470
lib/data/i18n.js
|
|
@ -1,470 +0,0 @@
|
|||
"use strict";
|
||||
// 本文件为自动编译产生,请勿直接修改
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
const i18ns = [
|
||||
{
|
||||
id: "2ebe552614a81e57fa1a1c21b5dc84f8",
|
||||
namespace: "oak-general-business-c-application-panel",
|
||||
language: "zh-CN",
|
||||
module: "oak-general-business",
|
||||
position: "src/components/application/panel",
|
||||
data: {
|
||||
"detail": "应用详情",
|
||||
"config": "配置管理",
|
||||
"style": "样式管理",
|
||||
"template": "模板消息管理",
|
||||
"menu": "菜单管理",
|
||||
"autoReply": "被关注回复管理",
|
||||
"tag": "标签管理",
|
||||
"user": "用户管理"
|
||||
}
|
||||
},
|
||||
{
|
||||
id: "d790bd454c420a031bbde799c83bbe71",
|
||||
namespace: "oak-general-business-c-common-qrCode",
|
||||
language: "zh-CN",
|
||||
module: "oak-general-business",
|
||||
position: "src/components/common/qrCode",
|
||||
data: {
|
||||
"weChat-account-successfully-bound": "微信账号绑定成功",
|
||||
"weChat-authorization-login-successful": "微信授权登录成功"
|
||||
}
|
||||
},
|
||||
{
|
||||
id: "b1441674d37d696b24feee3921a339a4",
|
||||
namespace: "oak-general-business-c-domain-list",
|
||||
language: "zh-CN",
|
||||
module: "oak-general-business",
|
||||
position: "src/components/domain/list",
|
||||
data: {
|
||||
"confirmRemove": "确认要删除吗?"
|
||||
}
|
||||
},
|
||||
{
|
||||
id: "d294bc3cfdc260f1bcc6b96b4b9b49b0",
|
||||
namespace: "oak-general-business-c-extraFile-commit",
|
||||
language: "zh-CN",
|
||||
module: "oak-general-business",
|
||||
position: "src/components/extraFile/commit",
|
||||
data: {
|
||||
"executing": "%{text}中...",
|
||||
"upload": "上传",
|
||||
"uploading": "上传中"
|
||||
}
|
||||
},
|
||||
{
|
||||
id: "5c2e6feed554bc476664f2a80e09677b",
|
||||
namespace: "oak-general-business-c-extraFile-forUrl",
|
||||
language: "zh-CN",
|
||||
module: "oak-general-business",
|
||||
position: "src/components/extraFile/forUrl",
|
||||
data: {
|
||||
"original": "从原文中选取",
|
||||
"url": "图片链接",
|
||||
"uploadLocalImg": "上传本地图片",
|
||||
"fillInImageLink": "填写图片链接",
|
||||
"chooseImage": "选择图片"
|
||||
}
|
||||
},
|
||||
{
|
||||
id: "acdf0445bef1374155f23a9c59e6dd40",
|
||||
namespace: "oak-general-business-c-extraFile-gallery",
|
||||
language: "zh-CN",
|
||||
module: "oak-general-business",
|
||||
position: "src/components/extraFile/gallery",
|
||||
data: {}
|
||||
},
|
||||
{
|
||||
id: "a0e4461f6283d6ecd0b6bba64c0560c2",
|
||||
namespace: "oak-general-business-c-extraFile-upload",
|
||||
language: "zh-CN",
|
||||
module: "oak-general-business",
|
||||
position: "src/components/extraFile/upload",
|
||||
data: {
|
||||
"choosePicture": "请选择图片",
|
||||
"chooseFile": "请选择文件",
|
||||
"dragSort": "当前拖拽排序值超过上限范围"
|
||||
}
|
||||
},
|
||||
{
|
||||
id: "abfd81b3031c5a66f99fa1b2721d10fc",
|
||||
namespace: "oak-general-business-c-mobile-login",
|
||||
language: "zh-CN",
|
||||
module: "oak-general-business",
|
||||
position: "src/components/mobile/login",
|
||||
data: {
|
||||
"Login": "确定",
|
||||
"Send": "发送验证码",
|
||||
"placeholder": {
|
||||
"Captcha": "输入4位短信验证码",
|
||||
"Mobile": "请输入手机号"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
id: "7ab2802526051f5926338d25cf7f3824",
|
||||
namespace: "oak-general-business-c-my-info",
|
||||
language: "zh-CN",
|
||||
module: "oak-general-business",
|
||||
position: "src/components/my/info",
|
||||
data: {
|
||||
"login": "登录/注册",
|
||||
"unset": "未设置",
|
||||
"logout": "退出",
|
||||
"mobile": "手机号码",
|
||||
"moreThanOne": "多于一条手机号"
|
||||
}
|
||||
},
|
||||
{
|
||||
id: "d558d71567b4e379250a5f2cd43e4a27",
|
||||
namespace: "oak-general-business-c-paper-detail",
|
||||
language: "zh-CN",
|
||||
module: "oak-general-business",
|
||||
position: "src/components/paper/detail",
|
||||
data: {
|
||||
"detail": "详情"
|
||||
}
|
||||
},
|
||||
{
|
||||
id: "992af92da3504b0ec27f55a4ac4e2432",
|
||||
namespace: "oak-general-business-c-paper-list",
|
||||
language: "zh-CN",
|
||||
module: "oak-general-business",
|
||||
position: "src/components/paper/list",
|
||||
data: {
|
||||
"action": {
|
||||
"add": "添加"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
id: "6cedaa26d9738d509c3c99ad06064282",
|
||||
namespace: "oak-general-business-c-paper-preview",
|
||||
language: "zh-CN",
|
||||
module: "oak-general-business",
|
||||
position: "src/components/paper/preview",
|
||||
data: {
|
||||
"detail": "预览"
|
||||
}
|
||||
},
|
||||
{
|
||||
id: "f2a1934629b4b8f7219007245cfdd332",
|
||||
namespace: "oak-general-business-c-paper-upsert",
|
||||
language: "zh-CN",
|
||||
module: "oak-general-business",
|
||||
position: "src/components/paper/upsert",
|
||||
data: {
|
||||
"submit": "提交",
|
||||
"reset": "重置",
|
||||
"placeholder": {
|
||||
"author": "请输入作者",
|
||||
"title": "请在这里输入标题",
|
||||
"content": "从这里开始正文",
|
||||
"abstract": "选填,摘要会在订阅号消息、转发链接等文章外的场景显露,帮助读者快速了解内容,如不填写则默认抓取正文前54字"
|
||||
},
|
||||
"tips": {
|
||||
"content": "请先输入一段正文(或者标题),再点击保存按钮。"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
id: "be4a42e798e981b6ef0c0877904dbb11",
|
||||
namespace: "oak-general-business-c-platform-panel",
|
||||
language: "zh-CN",
|
||||
module: "oak-general-business",
|
||||
position: "src/components/platform/panel",
|
||||
data: {
|
||||
"detail": "平台详情",
|
||||
"config": "配置管理",
|
||||
"style": "样式管理",
|
||||
"system-list": "系统管理"
|
||||
}
|
||||
},
|
||||
{
|
||||
id: "3e68972b48453b60d8c83cdc9ace9657",
|
||||
namespace: "oak-general-business-c-platform-system",
|
||||
language: "zh-CN",
|
||||
module: "oak-general-business",
|
||||
position: "src/components/platform/system",
|
||||
data: {
|
||||
"confirmToRemove": "您确定要删除系统吗?"
|
||||
}
|
||||
},
|
||||
{
|
||||
id: "7c6300b665cdc65858a529c9d4c46d24",
|
||||
namespace: "oak-general-business-c-sessionMessage-upsert",
|
||||
language: "zh-CN",
|
||||
module: "oak-general-business",
|
||||
position: "src/components/sessionMessage/upsert",
|
||||
data: {
|
||||
"placeholder": "Enter 发送,Shift + Enter换行",
|
||||
"send": "发送",
|
||||
"enterContent": "请输入内容"
|
||||
}
|
||||
},
|
||||
{
|
||||
id: "ded171ed67640a148a4a2cc51470cf69",
|
||||
namespace: "oak-general-business-c-system-application",
|
||||
language: "zh-CN",
|
||||
module: "oak-general-business",
|
||||
position: "src/components/system/application",
|
||||
data: {
|
||||
"confirmToRemove": "您确定要删除应用吗?"
|
||||
}
|
||||
},
|
||||
{
|
||||
id: "77647c7511d1f7f9eb5c04bb30981753",
|
||||
namespace: "oak-general-business-c-system-panel",
|
||||
language: "zh-CN",
|
||||
module: "oak-general-business",
|
||||
position: "src/components/system/panel",
|
||||
data: {
|
||||
"detail": "系统详情",
|
||||
"domain-list": "域名管理",
|
||||
"config": "配置管理",
|
||||
"style": "样式管理",
|
||||
"application-list": "应用管理",
|
||||
"smsTemplate-list": "短信模板管理"
|
||||
}
|
||||
},
|
||||
{
|
||||
id: "7bcbb4dbb525e9a575095102f673f7ba",
|
||||
namespace: "oak-general-business-c-token-me",
|
||||
language: "zh-CN",
|
||||
module: "oak-general-business",
|
||||
position: "src/components/token/me",
|
||||
data: {
|
||||
"login": "登录",
|
||||
"syncWeChat": "同步微信信息"
|
||||
}
|
||||
},
|
||||
{
|
||||
id: "34e1363e6dc2a9b3a4e5defc0d570e38",
|
||||
namespace: "oak-general-business-c-user-info",
|
||||
language: "zh-CN",
|
||||
module: "oak-general-business",
|
||||
position: "src/components/user/info",
|
||||
data: {
|
||||
"avatar": "头像",
|
||||
"mobile": "手机号",
|
||||
"password": "密码",
|
||||
"manage": "管理",
|
||||
"bind": "绑定",
|
||||
"syncWeChat": "同步微信信息",
|
||||
"send": "发送验证码",
|
||||
"cancel": "取消",
|
||||
"unbind": "解绑",
|
||||
"Mobile-Number-Verification": "手机号验证",
|
||||
"unbindingWechat": "确定解绑微信账号",
|
||||
"placeholder": {
|
||||
"Captcha": "输入4位短信验证码"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
id: "31967b6cdd8488887e7d2f39fe166458",
|
||||
namespace: "oak-general-business-c-user-login",
|
||||
language: "zh-CN",
|
||||
module: "oak-general-business",
|
||||
position: "src/components/user/login",
|
||||
data: {
|
||||
"Login": "登录",
|
||||
"Remember me": "记住账号",
|
||||
"inPassword": "账号登录",
|
||||
"inCaptcha": "手机号登录",
|
||||
"inQrCode": "扫码登录",
|
||||
"Send": "发送验证码",
|
||||
"placeholder": {
|
||||
"Captcha": "输入4位短信验证码",
|
||||
"Mobile": "请输入手机号",
|
||||
"Password": "请输入密码"
|
||||
},
|
||||
"resendAfter": "秒后可重发"
|
||||
}
|
||||
},
|
||||
{
|
||||
id: "c2d000183900d85963c1d18f0f872bf5",
|
||||
namespace: "oak-general-business-c-user-manage-detail",
|
||||
language: "zh-CN",
|
||||
module: "oak-general-business",
|
||||
position: "src/components/user/manage/detail",
|
||||
data: {
|
||||
"mobile": "手机号",
|
||||
"unset": "未设置",
|
||||
"avatar": "头像"
|
||||
}
|
||||
},
|
||||
{
|
||||
id: "5bf96a3e054b8d73c76d7bb45ea90a80",
|
||||
namespace: "oak-general-business-c-userEntityGrant-claim",
|
||||
language: "zh-CN",
|
||||
module: "oak-general-business",
|
||||
position: "src/components/userEntityGrant/claim",
|
||||
data: {
|
||||
"tip": "您正在领取权限",
|
||||
"source": "授权来源",
|
||||
"granterName": "授权者",
|
||||
"isExpired": "状态",
|
||||
"expired": "已失效",
|
||||
"counter": "过期时间",
|
||||
"hasClaimed": "您已经领取过此权限",
|
||||
"isGranter": "您不能领取自己的授权"
|
||||
}
|
||||
},
|
||||
{
|
||||
id: "056b31e189ca54f43defe7d4ab45d2af",
|
||||
namespace: "oak-general-business-c-userEntityGrant-claim-ubPicker",
|
||||
language: "zh-CN",
|
||||
module: "oak-general-business",
|
||||
position: "src/components/userEntityGrant/claim/ubPicker",
|
||||
data: {
|
||||
"pickRow": "选择%{entity}",
|
||||
"pickRelation": {
|
||||
"single": "选择权限领取(单选)",
|
||||
"singleFixed": "领取单个权限",
|
||||
"free": "选择权限领取(多选)",
|
||||
"all": "领取以下权限"
|
||||
},
|
||||
"relation": "授予权限"
|
||||
}
|
||||
},
|
||||
{
|
||||
id: "24dd3b76e3461bdc74adc6e6d40c5091",
|
||||
namespace: "oak-general-business-c-userRelation-list",
|
||||
language: "zh-CN",
|
||||
module: "oak-general-business",
|
||||
position: "src/components/userRelation/list",
|
||||
data: {
|
||||
"confirmRevokeAll": "确认删除用户的所有权限吗?",
|
||||
"search": "搜索用户名"
|
||||
}
|
||||
},
|
||||
{
|
||||
id: "ac10f5eca5efaddcd42b5c94e9cda34e",
|
||||
namespace: "oak-general-business-c-userRelation-upsert-byMobile",
|
||||
language: "zh-CN",
|
||||
module: "oak-general-business",
|
||||
position: "src/components/userRelation/upsert/byMobile",
|
||||
data: {
|
||||
"inputMobile": "请输入手机号查找"
|
||||
}
|
||||
},
|
||||
{
|
||||
id: "2ae0261640d791c7dcc61d71bec70788",
|
||||
namespace: "oak-general-business-c-userRelation-upsert-byUserEntityGrant",
|
||||
language: "zh-CN",
|
||||
module: "oak-general-business",
|
||||
position: "src/components/userRelation/upsert/byUserEntityGrant",
|
||||
data: {
|
||||
"multiple": "多人领取",
|
||||
"unlimited": "不限",
|
||||
"restart": "重新生成",
|
||||
"chooseExpiresAt": "请选择有效时长",
|
||||
"expiresHelp": "支持分钟、小时选择",
|
||||
"helpRule": "当一次分享多个权限时,可规定单个用户(对多个权限)的认领规则",
|
||||
"helpMultiple": "是否允许多个用户来认领",
|
||||
"shareCode": "请将二维码发给待认领权限的用户,让他们使用微信扫描。",
|
||||
"unit": {
|
||||
"hour": "小时",
|
||||
"minute": "分钟"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
id: "724a46f659f9bfa42239b79e59761f0e",
|
||||
namespace: "oak-general-business-c-userRelation-upsert-onUser",
|
||||
language: "zh-CN",
|
||||
module: "oak-general-business",
|
||||
position: "src/components/userRelation/upsert/onUser",
|
||||
data: {
|
||||
"placeholder": {
|
||||
"name": "请输入姓名",
|
||||
"password": "密码不少于8位",
|
||||
"relation": "至少应选择一个权限",
|
||||
"confirmPassword": "请再次输入密码",
|
||||
"nickname": "请输入昵称"
|
||||
},
|
||||
"error": {
|
||||
"The passwords entered twice do not match, please check": "两次输入的密码不一致,请检查"
|
||||
},
|
||||
"auth": "权限",
|
||||
"existedUser": "现有用户",
|
||||
"newUser": "新建用户",
|
||||
"confirmPassword": "确认密码"
|
||||
}
|
||||
},
|
||||
{
|
||||
id: "460e1de83e973119439dc7c8ba77066a",
|
||||
namespace: "oak-general-business-c-wechatUser-login",
|
||||
language: "zh-CN",
|
||||
module: "oak-general-business",
|
||||
position: "src/components/wechatUser/login",
|
||||
data: {
|
||||
"missingCodeParameter": "缺少code参数",
|
||||
"weChatLoginFailed": "微信登录失败"
|
||||
}
|
||||
},
|
||||
{
|
||||
id: "ce2ef5c2ef3c6b4bf1682c5610f0da28",
|
||||
namespace: "oak-general-business-c-wechatUser-unbindBtn",
|
||||
language: "zh-CN",
|
||||
module: "oak-general-business",
|
||||
position: "src/components/wechatUser/unbindBtn",
|
||||
data: {
|
||||
"unbind": "解绑",
|
||||
"unbindSuccess": "解绑成功",
|
||||
"unbindTip": "解绑微信账号",
|
||||
"unbindContent": "解绑后,您将无法使用该微信扫码登录"
|
||||
}
|
||||
},
|
||||
{
|
||||
id: "65801f60e3c6d0197f2f0a44a794ccf7",
|
||||
namespace: "oak-general-business-l-common",
|
||||
language: "zh-CN",
|
||||
module: "oak-general-business",
|
||||
position: "locales/common",
|
||||
data: {
|
||||
"noData": "暂无数据",
|
||||
"areYouSure": "请确认",
|
||||
"action": {
|
||||
"create": "创建",
|
||||
"update": "更新",
|
||||
"delete": "删除",
|
||||
"remove": "删除",
|
||||
"confirm": "确定",
|
||||
"cancel": "取消",
|
||||
"grant": "授权",
|
||||
"revoke": "回收",
|
||||
"tip": "提示",
|
||||
"detail": "详情",
|
||||
"editor": "编辑",
|
||||
"newAdd": "新增",
|
||||
"add": "添加",
|
||||
"submit": "提交"
|
||||
},
|
||||
"operate": "操作",
|
||||
"submit": "提交",
|
||||
"reset": "重置",
|
||||
"select": "查询",
|
||||
"search": "搜索",
|
||||
"expand": "展开",
|
||||
"shrink": "收起",
|
||||
"back": "返回",
|
||||
"$$createAt$$": "创建时间",
|
||||
"$$updateAt$$": "更新时间",
|
||||
"$$deleteAt$$": "删除时间",
|
||||
"$$seq$$": "序号",
|
||||
"message": "消息",
|
||||
"more": "更多",
|
||||
"view": "查看",
|
||||
"scan": "扫一扫",
|
||||
"bind": "绑定",
|
||||
"true": "是",
|
||||
"false": "否",
|
||||
"open": "开",
|
||||
"close": "关",
|
||||
"other": "其他"
|
||||
}
|
||||
}
|
||||
];
|
||||
exports.default = i18ns;
|
||||
|
|
@ -1,23 +0,0 @@
|
|||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
const tslib_1 = require("tslib");
|
||||
const userRole_1 = require("./userRole");
|
||||
const area_1 = tslib_1.__importDefault(require("./area"));
|
||||
const subway_1 = tslib_1.__importDefault(require("./subway"));
|
||||
const station_1 = tslib_1.__importDefault(require("./station"));
|
||||
const subwayStation_1 = tslib_1.__importDefault(require("./subwayStation"));
|
||||
const actionAuth_1 = tslib_1.__importDefault(require("./actionAuth"));
|
||||
const path_1 = tslib_1.__importDefault(require("./path"));
|
||||
const i18n_1 = tslib_1.__importDefault(require("./i18n"));
|
||||
exports.default = {
|
||||
user: userRole_1.users,
|
||||
mobile: userRole_1.mobiles,
|
||||
token: userRole_1.tokens,
|
||||
area: area_1.default,
|
||||
subway: subway_1.default,
|
||||
station: station_1.default,
|
||||
subwayStation: subwayStation_1.default,
|
||||
actionAuth: actionAuth_1.default,
|
||||
path: path_1.default,
|
||||
i18n: i18n_1.default,
|
||||
};
|
||||
|
|
@ -1,54 +0,0 @@
|
|||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
const paths = [
|
||||
{
|
||||
id: 'msg-user',
|
||||
sourceEntity: 'user',
|
||||
destEntity: 'message',
|
||||
value: 'user',
|
||||
recursive: false,
|
||||
},
|
||||
{
|
||||
id: 'mobile-user',
|
||||
sourceEntity: 'user',
|
||||
destEntity: 'mobile',
|
||||
value: 'user',
|
||||
recursive: false,
|
||||
},
|
||||
{
|
||||
id: 'token-user',
|
||||
sourceEntity: 'user',
|
||||
destEntity: 'token',
|
||||
value: 'user',
|
||||
recursive: false,
|
||||
},
|
||||
{
|
||||
id: 'wchL-user',
|
||||
sourceEntity: 'user',
|
||||
destEntity: 'wechatLogin',
|
||||
value: 'user',
|
||||
recursive: false,
|
||||
},
|
||||
{
|
||||
id: 'wchU-user',
|
||||
sourceEntity: 'user',
|
||||
destEntity: 'wechatUser',
|
||||
value: 'user',
|
||||
recursive: false,
|
||||
},
|
||||
{
|
||||
id: 'pwdCT-user',
|
||||
sourceEntity: 'user',
|
||||
destEntity: 'passwordChangeTemp',
|
||||
value: 'user',
|
||||
recursive: false,
|
||||
},
|
||||
{
|
||||
id: 'uec-user',
|
||||
sourceEntity: 'user',
|
||||
destEntity: 'userEntityClaim',
|
||||
value: 'user',
|
||||
recursive: false,
|
||||
},
|
||||
];
|
||||
exports.default = paths;
|
||||
1545
lib/data/station.js
1545
lib/data/station.js
File diff suppressed because it is too large
Load Diff
|
|
@ -1,80 +0,0 @@
|
|||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
const subway = [
|
||||
{
|
||||
id: '330100023133',
|
||||
name: '1号线',
|
||||
areaId: '330100',
|
||||
},
|
||||
{
|
||||
id: '900000150789',
|
||||
name: '绍兴1号线',
|
||||
areaId: '330100',
|
||||
},
|
||||
{
|
||||
id: '330100020003',
|
||||
name: '2号线',
|
||||
areaId: '330100',
|
||||
},
|
||||
{
|
||||
id: '900000092651',
|
||||
name: '3号线',
|
||||
areaId: '330100',
|
||||
},
|
||||
{
|
||||
id: '900000029624',
|
||||
name: '4号线',
|
||||
areaId: '330100',
|
||||
},
|
||||
{
|
||||
id: '900000065767',
|
||||
name: '5号线',
|
||||
areaId: '330100',
|
||||
},
|
||||
{
|
||||
id: '900000073754',
|
||||
name: '6号线',
|
||||
areaId: '330100',
|
||||
},
|
||||
{
|
||||
id: '900000099060',
|
||||
name: '7号线',
|
||||
areaId: '330100',
|
||||
},
|
||||
{
|
||||
id: '900000099066',
|
||||
name: '8号线',
|
||||
areaId: '330100',
|
||||
},
|
||||
{
|
||||
id: '900000166808',
|
||||
name: '9号线',
|
||||
areaId: '330100',
|
||||
},
|
||||
{
|
||||
id: '900000122963',
|
||||
name: '10号线',
|
||||
areaId: '330100',
|
||||
},
|
||||
{
|
||||
id: '900000130963',
|
||||
name: '16号线',
|
||||
areaId: '330100',
|
||||
},
|
||||
{
|
||||
id: '900000101230',
|
||||
name: '19号线',
|
||||
areaId: '330100',
|
||||
},
|
||||
{
|
||||
id: '900000150702',
|
||||
name: '杭海城际',
|
||||
areaId: '330100',
|
||||
},
|
||||
{
|
||||
id: '900000109349',
|
||||
name: 'S1线',
|
||||
areaId: '330300',
|
||||
},
|
||||
];
|
||||
exports.default = subway;
|
||||
File diff suppressed because it is too large
Load Diff
|
|
@ -1,36 +0,0 @@
|
|||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.tokens = exports.mobiles = exports.users = void 0;
|
||||
const constants_1 = require("../constants");
|
||||
exports.users = [
|
||||
{
|
||||
password: '',
|
||||
nickname: 'root',
|
||||
name: 'root',
|
||||
isRoot: true,
|
||||
id: constants_1.ROOT_USER_ID,
|
||||
userState: 'shadow',
|
||||
idState: 'unverified',
|
||||
},
|
||||
];
|
||||
exports.mobiles = [
|
||||
{
|
||||
mobile: 'root_mobile',
|
||||
id: constants_1.ROOT_MOBILE_ID,
|
||||
userId: constants_1.ROOT_USER_ID,
|
||||
}
|
||||
];
|
||||
exports.tokens = [
|
||||
{
|
||||
entity: 'mobile',
|
||||
entityId: constants_1.ROOT_MOBILE_ID,
|
||||
id: constants_1.ROOT_TOKEN_ID,
|
||||
env: {
|
||||
type: 'server',
|
||||
},
|
||||
userId: constants_1.ROOT_USER_ID,
|
||||
playerId: constants_1.ROOT_USER_ID,
|
||||
refreshedAt: Date.now(),
|
||||
value: constants_1.ROOT_TOKEN_ID,
|
||||
}
|
||||
];
|
||||
|
|
@ -1,9 +0,0 @@
|
|||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.registerWeChatPublicEventCallback = void 0;
|
||||
const tslib_1 = require("tslib");
|
||||
const wechat_1 = tslib_1.__importStar(require("./wechat"));
|
||||
Object.defineProperty(exports, "registerWeChatPublicEventCallback", { enumerable: true, get: function () { return wechat_1.registerWeChatPublicEventCallback; } });
|
||||
exports.default = {
|
||||
...wechat_1.default,
|
||||
};
|
||||
|
|
@ -1 +0,0 @@
|
|||
"use strict";
|
||||
|
|
@ -1,5 +0,0 @@
|
|||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
const tslib_1 = require("tslib");
|
||||
console.warn('不应该跑到这里[features/weiXinJsSdk]');
|
||||
tslib_1.__exportStar(require("./weiXinJsSdk.web"), exports);
|
||||
|
|
@ -1,57 +0,0 @@
|
|||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
const tslib_1 = require("tslib");
|
||||
const react_1 = require("react");
|
||||
const useFeatures_1 = tslib_1.__importDefault(require("./useFeatures"));
|
||||
function useMyInfo() {
|
||||
const features = (0, useFeatures_1.default)();
|
||||
const getMyInfo = () => {
|
||||
const userInfo = features.token.getUserInfo();
|
||||
const { mobile } = (userInfo?.mobile$user && userInfo?.mobile$user[0]) ||
|
||||
(userInfo?.user$ref &&
|
||||
userInfo?.user$ref[0] &&
|
||||
userInfo?.user$ref[0].mobile$user &&
|
||||
userInfo?.user$ref[0].mobile$user[0]) ||
|
||||
{};
|
||||
const extraFile = userInfo?.extraFile$entity?.find((ele) => ele.tag1 === 'avatar');
|
||||
const avatarUrl = features.extraFile.getUrl(extraFile);
|
||||
return {
|
||||
avatarUrl,
|
||||
name: userInfo?.name || '',
|
||||
nickname: userInfo?.nickname || '',
|
||||
mobile: mobile || '',
|
||||
};
|
||||
};
|
||||
const myInfo = getMyInfo();
|
||||
const [avatarUrl, setAvatarUrl] = (0, react_1.useState)(myInfo.avatarUrl || '');
|
||||
const [nickname, setNickname] = (0, react_1.useState)(myInfo.nickname || '');
|
||||
const [name, setName] = (0, react_1.useState)(myInfo.name || '');
|
||||
const [mobile, setMobile] = (0, react_1.useState)(myInfo.mobile || '');
|
||||
(0, react_1.useEffect)(() => {
|
||||
const appUnsub = features.application.subscribe(() => {
|
||||
const { avatarUrl, nickname, name, mobile } = getMyInfo();
|
||||
setAvatarUrl(avatarUrl);
|
||||
setNickname(nickname);
|
||||
setName(name);
|
||||
setMobile(mobile);
|
||||
});
|
||||
const tokenUnsub = features.token.subscribe(() => {
|
||||
const { avatarUrl, nickname, name, mobile } = getMyInfo();
|
||||
setAvatarUrl(avatarUrl);
|
||||
setNickname(nickname);
|
||||
setName(name);
|
||||
setMobile(mobile);
|
||||
});
|
||||
return () => {
|
||||
appUnsub();
|
||||
tokenUnsub();
|
||||
};
|
||||
}, []);
|
||||
return {
|
||||
avatarUrl,
|
||||
name,
|
||||
nickname,
|
||||
mobile,
|
||||
};
|
||||
}
|
||||
exports.default = useMyInfo;
|
||||
|
|
@ -7,4 +7,3 @@ export * from './types/RuntimeCxt';
|
|||
export { BackendRuntimeContext } from './context/BackendRuntimeContext';
|
||||
export { FrontendRuntimeContext, SerializedData, } from './context/FrontendRuntimeContext';
|
||||
export { RuntimeContext } from './context/RuntimeContext';
|
||||
export { selectFreeEntities, authDeduceRelationMap, updateFreeDict } from './config/relation';
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
// import { registerMessageNotificationConverters } from './triggers/message';
|
||||
// import { registerWeChatPublicEventCallback } from './endpoints';
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.updateFreeDict = exports.authDeduceRelationMap = exports.selectFreeEntities = exports.FrontendRuntimeContext = exports.BackendRuntimeContext = void 0;
|
||||
exports.FrontendRuntimeContext = exports.BackendRuntimeContext = void 0;
|
||||
const tslib_1 = require("tslib");
|
||||
tslib_1.__exportStar(require("./types/Exception"), exports);
|
||||
tslib_1.__exportStar(require("./types/Page"), exports);
|
||||
|
|
@ -13,9 +13,3 @@ var BackendRuntimeContext_1 = require("./context/BackendRuntimeContext");
|
|||
Object.defineProperty(exports, "BackendRuntimeContext", { enumerable: true, get: function () { return BackendRuntimeContext_1.BackendRuntimeContext; } });
|
||||
var FrontendRuntimeContext_1 = require("./context/FrontendRuntimeContext");
|
||||
Object.defineProperty(exports, "FrontendRuntimeContext", { enumerable: true, get: function () { return FrontendRuntimeContext_1.FrontendRuntimeContext; } });
|
||||
// export { registerWechatPublicTags } from './config/constants';
|
||||
// export { registerCos as registerUploader } from './utils/cos';
|
||||
var relation_1 = require("./config/relation");
|
||||
Object.defineProperty(exports, "selectFreeEntities", { enumerable: true, get: function () { return relation_1.selectFreeEntities; } });
|
||||
Object.defineProperty(exports, "authDeduceRelationMap", { enumerable: true, get: function () { return relation_1.authDeduceRelationMap; } });
|
||||
Object.defineProperty(exports, "updateFreeDict", { enumerable: true, get: function () { return relation_1.updateFreeDict; } });
|
||||
|
|
|
|||
|
|
@ -1,16 +0,0 @@
|
|||
import { EntityDict as BaseEntityDict } from 'oak-domain/lib/types/Entity';
|
||||
import { Aspect, Checker, Routine, StorageSchema, Timer, Trigger, Watcher } from 'oak-domain/lib/types';
|
||||
import { EntityDict } from './oak-app-domain';
|
||||
import { CacheStore } from 'oak-frontend-base/es/cacheStore/CacheStore';
|
||||
import { AsyncRowStore } from 'oak-domain/lib/store/AsyncRowStore';
|
||||
import { BackendRuntimeContext } from './context/BackendRuntimeContext';
|
||||
import { FrontendRuntimeContext } from './context/FrontendRuntimeContext';
|
||||
import { GAD, GFD } from './types/Page';
|
||||
import type GeneralAspectDict from './aspects/AspectDict';
|
||||
import { AppType } from './oak-app-domain/Application/Schema';
|
||||
import { InitializeOptions } from 'oak-frontend-base';
|
||||
export declare function initialize<ED extends EntityDict & BaseEntityDict, Cxt extends BackendRuntimeContext<ED>, AD extends Record<string, Aspect<ED, Cxt>>, FrontCxt extends FrontendRuntimeContext<ED, Cxt, AD & GAD<ED, Cxt>>>(type: AppType, domain: string, storageSchema: StorageSchema<ED>, frontendContextBuilder: () => (store: CacheStore<ED, FrontCxt>) => FrontCxt, backendContextBuilder: (contextStr?: string) => (store: AsyncRowStore<ED, Cxt>) => Promise<Cxt>, aspectDict: AD, triggers: Array<Trigger<ED, keyof ED, Cxt>>, checkers: Array<Checker<ED, keyof ED, FrontCxt | Cxt>>, watchers: Array<Watcher<ED, keyof ED, Cxt>>, timers: Array<Timer<ED, keyof ED, Cxt>>, startRoutines: Array<Routine<ED, keyof ED, Cxt>>, initialData: {
|
||||
[T in keyof ED]?: Array<ED[T]['OpSchema']>;
|
||||
}, option: InitializeOptions<ED, Cxt>): {
|
||||
features: GFD<ED, Cxt, FrontCxt, AD & GeneralAspectDict<ED, Cxt> & import("oak-common-aspect").CommonAspectDict<ED, Cxt>>;
|
||||
};
|
||||
|
|
@ -1,56 +0,0 @@
|
|||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.initialize = void 0;
|
||||
const tslib_1 = require("tslib");
|
||||
const oak_app_domain_1 = require("./oak-app-domain");
|
||||
const initialize_dev_1 = require("oak-frontend-base/es/initialize-dev");
|
||||
const lodash_1 = require("oak-domain/lib/utils/lodash");
|
||||
const watchers_1 = tslib_1.__importDefault(require("./watchers"));
|
||||
const checkers_1 = tslib_1.__importDefault(require("./checkers"));
|
||||
const triggers_1 = tslib_1.__importDefault(require("./triggers"));
|
||||
const aspects_1 = tslib_1.__importDefault(require("./aspects"));
|
||||
const start_1 = tslib_1.__importDefault(require("./routines/start"));
|
||||
const data_1 = tslib_1.__importDefault(require("./data"));
|
||||
const features_1 = require("./features");
|
||||
const selectionRewriter_1 = require("./utils/selectionRewriter");
|
||||
function initialize(type, domain, storageSchema, frontendContextBuilder, backendContextBuilder, aspectDict, triggers, checkers, watchers, timers, startRoutines, initialData, option) {
|
||||
let intersected = (0, lodash_1.intersection)(Object.keys(aspects_1.default), Object.keys(aspectDict));
|
||||
if (intersected.length > 0) {
|
||||
throw new Error(`用户定义的aspect中不能和general-business中的aspect同名:「${intersected.join(',')}」`);
|
||||
}
|
||||
const aspectDict2 = Object.assign({}, aspectDict, aspects_1.default);
|
||||
const checkers2 = checkers_1.default.concat(checkers || []);
|
||||
const triggers2 = triggers_1.default.concat(triggers || []);
|
||||
const watchers2 = watchers_1.default.concat(watchers || []);
|
||||
const startRoutines2 = start_1.default.concat(startRoutines || []);
|
||||
const data2 = Object.assign({}, data_1.default, initialData);
|
||||
if (initialData) {
|
||||
intersected = (0, lodash_1.intersection)(Object.keys(data_1.default), Object.keys(initialData));
|
||||
if (intersected.length > 0 && process.env.NODE_ENV === 'development') {
|
||||
console.warn(`用户定义的initialData中存在和general-business中的initialData同名:「${intersected.join(',')}」,将产生合并,请确保逻辑正确`);
|
||||
intersected.forEach((ele) => Object.assign(data2, {
|
||||
[ele]: [
|
||||
...data_1.default[ele],
|
||||
...initialData[ele],
|
||||
],
|
||||
}));
|
||||
}
|
||||
}
|
||||
const { common } = option;
|
||||
if (common.actionDict) {
|
||||
intersected = (0, lodash_1.intersection)(Object.keys(oak_app_domain_1.ActionDefDict), Object.keys(common.actionDict));
|
||||
if (intersected.length > 0 && process.env.NODE_ENV === 'development') {
|
||||
console.warn(`用户定义的actionDict中存在和general-business中的actionDict同名:「${intersected.join(',')}」,将覆盖general-business中定义的actionDict,请确保逻辑正确`);
|
||||
}
|
||||
}
|
||||
common.actionDict = Object.assign({}, oak_app_domain_1.ActionDefDict, common.actionDict);
|
||||
const { features } = (0, initialize_dev_1.initialize)(storageSchema, frontendContextBuilder, backendContextBuilder, aspectDict2, triggers2, checkers2, watchers2, timers, startRoutines2, data2, option);
|
||||
const generalFeatures = (0, features_1.initialize)(features, type, domain);
|
||||
// 临时代码
|
||||
features.cache.cacheStore.registerOperationRewriter(selectionRewriter_1.rewriteOperation);
|
||||
features.cache.cacheStore.registerSelectionRewriter(selectionRewriter_1.rewriteSelection);
|
||||
return {
|
||||
features: Object.assign(features, generalFeatures),
|
||||
};
|
||||
}
|
||||
exports.initialize = initialize;
|
||||
|
|
@ -1,12 +0,0 @@
|
|||
import { EntityDict as BaseEntityDict } from 'oak-domain/lib/types/Entity';
|
||||
import { InitializeOptions } from 'oak-frontend-base';
|
||||
import { Aspect, Checker, Connector, StorageSchema } from 'oak-domain/lib/types';
|
||||
import { EntityDict } from './oak-app-domain';
|
||||
import { CacheStore } from 'oak-frontend-base/es/cacheStore/CacheStore';
|
||||
import { BackendRuntimeContext } from './context/BackendRuntimeContext';
|
||||
import { FrontendRuntimeContext } from './context/FrontendRuntimeContext';
|
||||
import { GAD, GFD } from './types/Page';
|
||||
import { AppType } from './oak-app-domain/Application/Schema';
|
||||
export declare function initialize<ED extends EntityDict & BaseEntityDict, Cxt extends BackendRuntimeContext<ED>, AD extends Record<string, Aspect<ED, Cxt>>, FrontCxt extends FrontendRuntimeContext<ED, Cxt, AD & GAD<ED, Cxt>>>(type: AppType, domain: string, storageSchema: StorageSchema<ED>, frontendContextBuilder: () => (store: CacheStore<ED, FrontCxt>) => FrontCxt, connector: Connector<ED, FrontCxt>, checkers: Array<Checker<ED, keyof ED, FrontCxt | Cxt>>, option: InitializeOptions<ED, Cxt>): {
|
||||
features: GFD<ED, Cxt, FrontCxt, AD & import(".").GeneralAspectDict<ED, Cxt> & import("oak-common-aspect").CommonAspectDict<ED, Cxt>>;
|
||||
};
|
||||
|
|
@ -1,31 +0,0 @@
|
|||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.initialize = void 0;
|
||||
const tslib_1 = require("tslib");
|
||||
const initialize_prod_1 = require("oak-frontend-base/es/initialize-prod");
|
||||
const oak_app_domain_1 = require("./oak-app-domain");
|
||||
const lodash_1 = require("oak-domain/lib/utils/lodash");
|
||||
const checkers_1 = tslib_1.__importDefault(require("./checkers"));
|
||||
const features_1 = require("./features");
|
||||
const selectionRewriter_1 = require("./utils/selectionRewriter");
|
||||
function initialize(type, domain, storageSchema, frontendContextBuilder, connector, checkers, option) {
|
||||
const checkers2 = checkers_1.default.concat(checkers || []);
|
||||
let intersected;
|
||||
const { common } = option;
|
||||
if (common.actionDict) {
|
||||
intersected = (0, lodash_1.intersection)(Object.keys(oak_app_domain_1.ActionDefDict), Object.keys(common.actionDict));
|
||||
if (intersected.length > 0 && process.env.NODE_ENV === 'development') {
|
||||
console.warn(`用户定义的actionDict中存在和general-business中的actionDict同名:「${intersected.join(',')}」,将覆盖general-business中定义的actionDict,请确保逻辑正确`);
|
||||
}
|
||||
}
|
||||
common.actionDict = Object.assign({}, oak_app_domain_1.ActionDefDict, common.actionDict);
|
||||
const { features } = (0, initialize_prod_1.initialize)(storageSchema, frontendContextBuilder, connector, checkers2, option);
|
||||
// 临时代码
|
||||
features.cache.cacheStore.registerOperationRewriter(selectionRewriter_1.rewriteOperation);
|
||||
features.cache.cacheStore.registerSelectionRewriter(selectionRewriter_1.rewriteSelection);
|
||||
const generalFeatures = (0, features_1.initialize)(features, type, domain);
|
||||
return {
|
||||
features: Object.assign(features, generalFeatures),
|
||||
};
|
||||
}
|
||||
exports.initialize = initialize;
|
||||
|
|
@ -1,42 +0,0 @@
|
|||
{
|
||||
"noData": "暂无数据",
|
||||
"areYouSure": "请确认",
|
||||
"action": {
|
||||
"create": "创建",
|
||||
"update": "更新",
|
||||
"delete": "删除",
|
||||
"remove": "删除",
|
||||
"confirm": "确定",
|
||||
"cancel": "取消",
|
||||
"grant": "授权",
|
||||
"revoke": "回收",
|
||||
"tip": "提示",
|
||||
"detail": "详情",
|
||||
"editor": "编辑",
|
||||
"newAdd": "新增",
|
||||
"add": "添加",
|
||||
"submit": "提交"
|
||||
},
|
||||
"operate": "操作",
|
||||
"submit": "提交",
|
||||
"reset": "重置",
|
||||
"select": "查询",
|
||||
"search": "搜索",
|
||||
"expand": "展开",
|
||||
"shrink": "收起",
|
||||
"back": "返回",
|
||||
"$$createAt$$": "创建时间",
|
||||
"$$updateAt$$": "更新时间",
|
||||
"$$deleteAt$$": "删除时间",
|
||||
"$$seq$$": "序号",
|
||||
"message": "消息",
|
||||
"more": "更多",
|
||||
"view": "查看",
|
||||
"scan": "扫一扫",
|
||||
"bind": "绑定",
|
||||
"true": "是",
|
||||
"false": "否",
|
||||
"open": "开",
|
||||
"close": "关",
|
||||
"other": "其他"
|
||||
}
|
||||
|
|
@ -6,6 +6,6 @@ export type ParticularAction = AbleAction | PayAction;
|
|||
export declare const actions: string[];
|
||||
export declare const AbleActionDef: ActionDef<AbleAction, AbleState>;
|
||||
export type Action = GenericAction | ParticularAction | string;
|
||||
export declare const ActionDefDict: {
|
||||
export declare const actionDefDict: {
|
||||
ableState: ActionDef<AbleAction, AbleState>;
|
||||
};
|
||||
|
|
|
|||
|
|
@ -1,9 +1,9 @@
|
|||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.ActionDefDict = exports.AbleActionDef = exports.actions = void 0;
|
||||
exports.actionDefDict = exports.AbleActionDef = exports.actions = void 0;
|
||||
const action_1 = require("oak-domain/lib/actions/action");
|
||||
exports.actions = ["count", "stat", "download", "select", "aggregate", "create", "remove", "update", "enable", "disable", "charge", "withdraw", "cost", "refund", "loan", "repay"];
|
||||
exports.AbleActionDef = (0, action_1.makeAbleActionDef)('enabled');
|
||||
exports.ActionDefDict = {
|
||||
exports.actionDefDict = {
|
||||
ableState: exports.AbleActionDef
|
||||
};
|
||||
|
|
|
|||
|
|
@ -1 +0,0 @@
|
|||
{ "name": "地址", "attr": { "ableState": "状态", "total": "余额", "avail": "可用余额", "entity": "对象实体", "entityId": "对象实体Id" }, "action": { "charge": "充值", "withdraw": "提现", "cost": "支付", "refund": "退款", "loan": "抵押", "repay": "归还", "enable": "启用", "disable": "禁用" }, "r": { "owner": "所有者", "audit": "审核者" }, "v": { "ableState": { "enabled": "正常", "disabled": "冻结" } } }
|
||||
|
|
@ -1,39 +0,0 @@
|
|||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.desc = void 0;
|
||||
const action_1 = require("oak-domain/lib/actions/action");
|
||||
exports.desc = {
|
||||
attributes: {
|
||||
relationId: {
|
||||
type: "ref",
|
||||
ref: "relation"
|
||||
},
|
||||
pathId: {
|
||||
notNull: true,
|
||||
type: "ref",
|
||||
ref: "path"
|
||||
},
|
||||
deActions: {
|
||||
notNull: true,
|
||||
type: "object"
|
||||
}
|
||||
},
|
||||
actionType: "crud",
|
||||
actions: action_1.genericActions,
|
||||
indexes: [
|
||||
{
|
||||
name: 'index_relation_path',
|
||||
attributes: [
|
||||
{
|
||||
name: "relationId",
|
||||
},
|
||||
{
|
||||
name: "pathId",
|
||||
}
|
||||
],
|
||||
config: {
|
||||
unique: true,
|
||||
},
|
||||
}
|
||||
]
|
||||
};
|
||||
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue