version 1.0
All checks were successful
Build-und-Deploy / build (push) Successful in 11s

minor change for pipeline test

minor change for pipeline test

minor change for pipeline test

minor change for pipeline test

minor change for pipeline test

minor change for pipeline test

minor change for pipeline test

minor change for pipeline test

minor change for pipeline test

minor change for pipeline test

minor change for pipeline test

minor change for pipeline test

Add Gitea Actions build workflow

Add CI/CD pipeline

Test Build & Deploy

add pipeline

add pipeline2

add pipeline3

add pipeline4

add pipeline 5

add pipeline 6

add pipeline 7

add pipeline 8

add pipeline 9

add pipeline 10

add pipeline 11

add pipeline 12

add pipeline 13

add pipeline 14

add pipeline 15

add pipeline 16

add pipeline 17

add pipeline 18

add pipeline 19

add pipeline 20

add pipeline 21

add pipeline 22

add pipeline 23

add pipeline 24

1

2

3
This commit is contained in:
Nils Burghardt
2025-07-12 19:06:23 +02:00
parent d3af3b6433
commit 9e4b0de915
116 changed files with 185827 additions and 109 deletions

View File

@@ -0,0 +1,76 @@
import { IObservableValue } from 'mobx';
import { TemplateResult } from 'lit';
/**
* Plugin API for the dev tools window.
*/
export interface CopilotInterface {
send(command: string, data: any): void;
addPanel(panel: PanelConfiguration): void;
}
export interface MessageHandler {
handleMessage(message: ServerMessage): boolean;
}
export interface ServerMessage {
/**
* The command
*/
command: string;
/**
* The data for the command
*/
data: any;
}
export type Framework = 'flow' | 'hilla-lit' | 'hilla-react';
export interface CopilotPlugin {
/**
* Called once to initialize the plugin.
*
* @param copilotInterface provides methods to interact with the dev tools
*/
init(copilotInterface: CopilotInterface): void;
}
export declare enum MessageType {
INFORMATION = "information",
WARNING = "warning",
ERROR = "error"
}
export interface Message {
id: number;
type: MessageType;
message: string;
timestamp: Date;
details?: IObservableValue<TemplateResult> | string;
link?: string;
persistentId?: string;
dontShowAgain: boolean;
deleted: boolean;
}
export interface PanelConfiguration {
header: string;
expanded: boolean;
expandable?: boolean;
panel?: 'bottom' | 'left' | 'right';
panelOrder: number;
tag: string;
actionsTag?: string;
floating: boolean;
height?: number;
width?: number;
floatingPosition?: FloatingPosition;
showWhileDragging?: boolean;
helpUrl?: string;
/**
* These panels can be visible regardless of copilot activation status
*/
individual?: boolean;
/**
* A panel is rendered the first time when it is expanded unless eager is set to true, which causes it be always be rendered
*/
eager?: boolean;
}
export interface FloatingPosition {
top?: number;
left?: number;
right?: number;
bottom?: number;
}

View File

@@ -0,0 +1,41 @@
import { FiberNode, Source } from 'react-devtools-inline';
import { CopilotTreeNode } from './copilot-tree';
import { JavaSource } from '../show-in-ide';
export type FlowComponentReference = {
nodeId: number;
uiId: number;
};
export type FlowComponentInfo = FlowComponentReference & {
element: HTMLElement;
javaClass?: string;
hiddenByServer: boolean;
styles: Record<string, string>;
};
export type ComponentDefinitionProperties = Record<string, any[] | Record<string, any> | boolean | number | string | null>;
export type ComponentDefinition = {
tag?: string;
className?: string;
props: ComponentDefinitionProperties;
children: Array<ComponentDefinition | string>;
reactImports?: Record<string, string>;
javaClass?: string;
metadata?: any;
};
export declare function isFlowComponentInfo(info: FlowComponentInfo | JavaSource | Source | undefined): info is FlowComponentInfo;
export declare function isFlowComponent(element: HTMLElement): boolean;
export declare function getJavaClassName(component: FlowComponentInfo): string | undefined;
export declare function getFlowComponent(element: HTMLElement): FlowComponentInfo | undefined;
export declare const fetchComponentDefinition: (flowComponent: FlowComponentInfo) => Promise<ComponentDefinition>;
export declare function getUIId(): string | undefined;
export declare function getFlowComponentId(flowComponent: FlowComponentInfo): FlowComponentReference;
export declare function isServerRouteContainer(fiber?: FiberNode): boolean;
export declare const isEditableComponentText: (node: CopilotTreeNode | undefined, propertyToCheck: string) => Promise<{
canBeEdited: boolean;
isTranslation: boolean;
}> | {
canBeEdited: boolean;
isTranslation: boolean;
};
export declare function isServerRouteContainerElement(element: HTMLElement): boolean;
export declare function getSimpleName(className: string): string;
export declare function getPackageName(className: string): string;