mirror of
https://github.com/Termix-SSH/Termix.git
synced 2026-10-31 07:35:24 +00:00
feat: rail items can show a status dot (Plugin-Sync#5)
This commit is contained in:
1 parent
8d26c716b4
commit
e292462b38
2 files changed
+6
No files matched your search
@@ -11,6 +11,7 @@ Plugin API 1.13.0.
|
|||||||
- `@termix-ssh/plugin-sdk/frame-host` runs one plugin view outside the shell, with core's bridge, registries and CSS, so the mobile app can show `webview` plugins
|
- `@termix-ssh/plugin-sdk/frame-host` runs one plugin view outside the shell, with core's bridge, registries and CSS, so the mobile app can show `webview` plugins
|
||||||
- SSH transport providers get the host's owner, sync id, connection origin and local only flag in `claims` and `open`, and core's SSH relay takes a `syncId` instead of a host id
|
- SSH transport providers get the host's owner, sync id, connection origin and local only flag in `claims` and `open`, and core's SSH relay takes a `syncId` instead of a host id
|
||||||
- `ctx.sync.host.entities.idsOf` maps sync ids to the local ids of the user's own rows of one type
|
- `ctx.sync.host.entities.idsOf` maps sync ids to the local ids of the user's own rows of one type
|
||||||
|
- Rail items take `useStatus` for a small ok, warning or error dot on the icon
|
||||||
|
|
||||||
### Fixed
|
### Fixed
|
||||||
|
|
||||||
|
|||||||
@@ -425,6 +425,11 @@ export interface RailItemContribution {
|
|||||||
* Zero or nothing shows no badge.
|
* Zero or nothing shows no badge.
|
||||||
*/
|
*/
|
||||||
useBadge?: () => number | null | undefined;
|
useBadge?: () => number | null | undefined;
|
||||||
|
/**
|
||||||
|
* A hook for a small status dot on the icon: "ok" (green), "warning" or
|
||||||
|
* "error". Nothing shows no dot. Layouts from Termix 26.10.6 draw it.
|
||||||
|
*/
|
||||||
|
useStatus?: () => "ok" | "warning" | "error" | null | undefined;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface PanelProps {
|
export interface PanelProps {
|
||||||
|
|||||||
Reference in new issue
Block a user