Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,6 @@ node_modules/
*.sdPlugin/bin
*.sdPlugin/logs
.vscode
*.streamDeckPlugin
*.streamDeckPlugin
.npm-cache
.DS_Store
26 changes: 26 additions & 0 deletions com.darkdragon14.elgato-docker.sdPlugin/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,32 @@
],
"UserTitleEnabled": true
},
{
"Name": "Running stack stop",
"UUID": "com.darkdragon14.elgato-docker.docker-running-stack-stop",
"Icon": "imgs/actions/docker/icon",
"Tooltip": "Automatically bind to a running stack and stop it.",
"PropertyInspectorPath": "ui/docker/docker-running-stack-stop.html",
"Controllers": [
"Keypad"
],
"States": [
{
"Image": "imgs/actions/docker-running/key",
"TitleAlignment": "middle"
},
{
"Image": "imgs/actions/docker-stopped/key",
"TitleAlignment": "middle"
},
{
"Image": "imgs/actions/error/key",
"TitleAlignment": "middle",
"Title": "Please,\nlaunch\nDocker"
}
],
"UserTitleEnabled": true
},
{
"Name": "Containers Count",
"UUID": "com.darkdragon14.elgato-docker.containers-count",
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
<!doctype html>
<html>
<head lang="en">
<title>Running Stack Stop Settings</title>
<meta charset="utf-8" />
<script src="https://sdpi-components.dev/releases/v3/sdpi-components.js"></script>
</head>

<body>
<sdpi-heading>Connection</sdpi-heading>
<sdpi-item label="Context">
<sdpi-select
setting="contextName"
placeholder="Select Context"
datasource="getDockerContexts"
loading="Fetching contexts..."
hot-reload
>
</sdpi-select>
</sdpi-item>
<sdpi-heading>Notes</sdpi-heading>
<sdpi-description>
Each visible key automatically binds to one running Compose or Swarm stack in this context.
</sdpi-description>
</body>
</html>
1 change: 0 additions & 1 deletion src/actions/containers-count.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@ export class ContainersCount extends SingletonAction<ContainersListSettings> {
: (await listDockerContexts()).map((c) => ({ label: c.name, value: c.name }));
streamDeck.ui.sendToPropertyInspector({ event: "getDockerContexts", items });
}
streamDeck.connect();
}

override async onWillAppear(ev: WillAppearEvent<ContainersListSettings>): Promise<void> {
Expand Down
1 change: 0 additions & 1 deletion src/actions/docker-run-or-rm.ts
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,6 @@ export class DockerRunOrRm extends SingletonAction<DockerRunOrRmSettings> {
: (await listDockerContexts()).map((c) => ({ label: c.name, value: c.name }));
streamDeck.ui.sendToPropertyInspector({ event: "getDockerContexts", items });
}
streamDeck.connect();
}

override async onKeyDown(ev: KeyDownEvent): Promise<void> {
Expand Down
Loading
Loading