Initial commit with Advoware proxy

This commit is contained in:
root
2025-10-19 14:57:07 +00:00
commit 273aa8b549
45771 changed files with 5534555 additions and 0 deletions

View File

@@ -0,0 +1,8 @@
/// <reference types="react" />
import { NodeMeta } from 'src/types';
interface Props {
node: any;
nodeMeta: NodeMeta;
}
export default function CopyButton({ node, nodeMeta }: Props): JSX.Element;
export {};

View File

@@ -0,0 +1,12 @@
/// <reference types="react" />
interface Props {
node: any;
depth: number;
deleteHandle?: (indexOrName: string | number, parentPath: string[]) => void;
editHandle?: (indexOrName: string | number, newValue: any, oldValue: any, parentPath: string[]) => void;
indexOrName?: number | string;
parent?: Record<string, any> | Array<any>;
parentPath: string[];
}
export default function JsonNode({ node, depth, deleteHandle: _deleteHandle, indexOrName, parent, editHandle, parentPath }: Props): JSX.Element;
export {};

View File

@@ -0,0 +1,180 @@
/// <reference types="react" />
import type { Collapsed, CustomizeCollapseStringUI, CustomizeNode, DisplaySize, Editable, NodeMeta } from '../types';
type OnEdit = (params: {
newValue: any;
oldValue: any;
depth: number;
src: any;
indexOrName: string | number;
parentType: 'object' | 'array' | null;
parentPath: string[];
}) => void;
type OnDelete = (params: {
value: any;
indexOrName: string | number;
depth: number;
src: any;
parentType: 'object' | 'array' | null;
parentPath: string[];
}) => void;
type OnAdd = (params: {
indexOrName: string | number;
depth: number;
src: any;
parentType: 'object' | 'array';
parentPath: string[];
}) => void;
type OnChange = (params: {
indexOrName: string | number;
depth: number;
src: any;
parentType: 'object' | 'array' | null;
type: 'add' | 'edit' | 'delete';
parentPath: string[];
}) => void;
type OnCollapse = (params: {
isCollapsing: boolean;
node: Record<string, any> | Array<any>;
indexOrName: string | number | undefined;
depth: number;
}) => void;
export declare const defaultURLRegExp: RegExp;
export declare const JsonViewContext: import("react").Context<{
src: any;
collapseStringsAfterLength: number;
collapseStringMode: "directly" | "word" | "address";
customizeCollapseStringUI: CustomizeCollapseStringUI | undefined;
collapseObjectsAfterLength: number;
collapsed: Collapsed;
onCollapse: OnCollapse | undefined;
enableClipboard: boolean;
editable: Editable;
onEdit: OnEdit | undefined;
onDelete: OnDelete | undefined;
onAdd: OnAdd | undefined;
onChange: OnChange | undefined;
forceUpdate: () => void;
customizeNode: CustomizeNode | undefined;
customizeCopy: (node: any, nodeMeta?: NodeMeta) => any;
displaySize: DisplaySize;
displayArrayIndex: boolean;
matchesURL: boolean;
urlRegExp: RegExp;
ignoreLargeArray: boolean;
CopyComponent: import("react").FC<{
onClick: (event: React.MouseEvent) => void;
className: string;
}> | import("react").Component<{
onClick: (event: React.MouseEvent) => void;
className: string;
}, {}, any> | undefined;
CopiedComponent: import("react").FC<{
className: string;
style: React.CSSProperties;
}> | import("react").Component<{
className: string;
style: React.CSSProperties;
}, {}, any> | undefined;
EditComponent: import("react").FC<{
onClick: (event: React.MouseEvent) => void;
className: string;
}> | import("react").Component<{
onClick: (event: React.MouseEvent) => void;
className: string;
}, {}, any> | undefined;
CancelComponent: import("react").FC<{
onClick: (event: React.MouseEvent) => void;
className: string;
style: React.CSSProperties;
}> | import("react").Component<{
onClick: (event: React.MouseEvent) => void;
className: string;
style: React.CSSProperties;
}, {}, any> | undefined;
DoneComponent: import("react").FC<{
onClick: (event: React.MouseEvent) => void;
className: string;
style: React.CSSProperties;
}> | import("react").Component<{
onClick: (event: React.MouseEvent) => void;
className: string;
style: React.CSSProperties;
}, {}, any> | undefined;
CustomOperation: import("react").FC<{
node: any;
}> | import("react").Component<{
node: any;
}, {}, any> | undefined;
}>;
export interface JsonViewProps {
src: any;
collapseStringsAfterLength?: number;
collapseStringMode?: 'directly' | 'word' | 'address';
customizeCollapseStringUI?: CustomizeCollapseStringUI;
collapseObjectsAfterLength?: number;
collapsed?: Collapsed;
onCollapse?: OnCollapse;
enableClipboard?: boolean;
editable?: Editable;
onEdit?: OnEdit;
onDelete?: OnDelete;
onAdd?: OnAdd;
onChange?: OnChange;
customizeNode?: CustomizeNode;
customizeCopy?: (node: any, nodeMeta?: NodeMeta) => any;
dark?: boolean;
theme?: 'default' | 'a11y' | 'github' | 'vscode' | 'atom' | 'winter-is-coming';
displaySize?: DisplaySize;
displayArrayIndex?: boolean;
style?: React.CSSProperties;
className?: string;
matchesURL?: boolean;
urlRegExp?: RegExp;
ignoreLargeArray?: boolean;
CopyComponent?: React.FC<{
onClick: (event: React.MouseEvent) => void;
className: string;
}> | React.Component<{
onClick: (event: React.MouseEvent) => void;
className: string;
}>;
CopiedComponent?: React.FC<{
className: string;
style: React.CSSProperties;
}> | React.Component<{
className: string;
style: React.CSSProperties;
}>;
EditComponent?: React.FC<{
onClick: (event: React.MouseEvent) => void;
className: string;
}> | React.Component<{
onClick: (event: React.MouseEvent) => void;
className: string;
}>;
CancelComponent?: React.FC<{
onClick: (event: React.MouseEvent) => void;
className: string;
style: React.CSSProperties;
}> | React.Component<{
onClick: (event: React.MouseEvent) => void;
className: string;
style: React.CSSProperties;
}>;
DoneComponent?: React.FC<{
onClick: (event: React.MouseEvent) => void;
className: string;
style: React.CSSProperties;
}> | React.Component<{
onClick: (event: React.MouseEvent) => void;
className: string;
style: React.CSSProperties;
}>;
CustomOperation?: React.FC<{
node: any;
}> | React.Component<{
node: any;
}>;
}
export default function JsonView({ src: _src, collapseStringsAfterLength, collapseStringMode, customizeCollapseStringUI, collapseObjectsAfterLength, collapsed, onCollapse, enableClipboard, editable, onEdit, onDelete, onAdd, onChange, dark, theme, customizeNode, customizeCopy, displaySize, displayArrayIndex, style, className, matchesURL, urlRegExp, ignoreLargeArray, CopyComponent, CopiedComponent, EditComponent, CancelComponent, DoneComponent, CustomOperation }: JsonViewProps): JSX.Element;
export {};

View File

@@ -0,0 +1,15 @@
/// <reference types="react" />
import type { CustomizeOptions } from '../types';
interface Props {
originNode: Array<any>;
node: Array<any>;
depth: number;
index: number;
deleteHandle?: (_: string | number, currentPath: string[]) => void;
customOptions?: CustomizeOptions;
startIndex: number;
parent?: Record<string, any> | Array<any>;
parentPath: string[];
}
export default function LargeArrayNode({ originNode, node, depth, index, deleteHandle: _deleteSelf, customOptions, startIndex, parent, parentPath }: Props): JSX.Element;
export {};

View File

@@ -0,0 +1,13 @@
/// <reference types="react" />
import type { CustomizeOptions } from '../types';
interface Props {
node: Array<any>;
depth: number;
indexOrName?: number | string;
deleteHandle?: (_: string | number, currentPath: string[]) => void;
customOptions?: CustomizeOptions;
parent?: Record<string, any> | Array<any>;
parentPath: string[];
}
export default function LargeArray({ node, depth, deleteHandle: _deleteSelf, indexOrName, customOptions, parent, parentPath }: Props): JSX.Element;
export {};

View File

@@ -0,0 +1,8 @@
import React from 'react';
interface Props {
str: string;
className: string;
ctrlClick: ((event: React.MouseEvent) => void) | undefined;
}
declare const LongString: React.ForwardRefExoticComponent<Props & React.RefAttributes<HTMLSpanElement>>;
export default LongString;

View File

@@ -0,0 +1,12 @@
/// <reference types="react" />
interface Props {
indexOrName: number | string;
value: any;
depth: number;
parent?: Record<string, any> | Array<any>;
parentPath: string[];
deleteHandle: (indexOrName: string | number, parentPath: string[]) => void;
editHandle: (indexOrName: string | number, newValue: any, oldValue: any, parentPath: string[]) => void;
}
export default function NameValue({ indexOrName, value, depth, deleteHandle, editHandle, parent, parentPath }: Props): JSX.Element;
export {};

View File

@@ -0,0 +1,13 @@
/// <reference types="react" />
import type { CustomizeOptions } from '../types';
interface Props {
node: Record<string, any> | Array<any>;
depth: number;
indexOrName?: number | string;
deleteHandle?: (_: string | number, currentPath: string[]) => void;
customOptions?: CustomizeOptions;
parent?: Record<string, any> | Array<any>;
parentPath: string[];
}
export default function ObjectNode({ node, depth, indexOrName, deleteHandle: _deleteSelf, customOptions, parent, parentPath }: Props): JSX.Element;
export {};