Compare commits

..

2 Commits

Author SHA1 Message Date
8902db0ae4 Remove console.log 2025-03-30 07:02:54 +08:00
cdbf7f1843 Init 2025-03-30 06:58:07 +08:00
4 changed files with 5 additions and 15 deletions

View File

@ -106,7 +106,7 @@ docker compose pull && docker compose up -d
## Motivations ## Motivations
- I have been using Portainer for some time, but for the stack management, I am sometimes not satisfied with it. For example, sometimes when I try to deploy a stack, the loading icon keeps spinning for a few minutes without progress. And sometimes error messages are not clear. - I have been using Portainer for some time, but for the stack management, I am sometimes not satisfied with it. For example, sometimes when I try to deploy a stack, the loading icon keeps spinning for a few minutes without progress. And sometimes error messages are not clear.
- Try to develop with ES Module + TypeScript - Try to develop with ES Module + TypeScript (Originally, I planned to use Deno or Bun.js, but they don't have support for arm64, so I stepped back to Node.js)
If you love this project, please consider giving it a ⭐. If you love this project, please consider giving it a ⭐.

View File

@ -311,12 +311,7 @@ export class MainSocketHandler extends SocketHandler {
throw new ValidationError("dockerRunCommand must be a string"); throw new ValidationError("dockerRunCommand must be a string");
} }
// Option: 'latest' | 'v2x' | 'v3x' const composeTemplate = composerize(dockerRunCommand);
let composeTemplate = composerize(dockerRunCommand, "", "latest");
// Remove the first line "name: <your project name>"
composeTemplate = composeTemplate.split("\n").slice(1).join("\n");
callback({ callback({
ok: true, ok: true,
composeTemplate, composeTemplate,

View File

@ -491,11 +491,6 @@ export default {
}, },
requestServiceStatus() { requestServiceStatus() {
// Do not request if it is add mode
if (this.isAdd) {
return;
}
this.$root.emitAgent(this.endpoint, "serviceStatusList", this.stack.name, (res) => { this.$root.emitAgent(this.endpoint, "serviceStatusList", this.stack.name, (res) => {
if (res.ok) { if (res.ok) {
this.serviceStatusList = res.serviceStatusList; this.serviceStatusList = res.serviceStatusList;

View File

@ -1,6 +1,6 @@
{ {
"name": "dockge", "name": "dockge",
"version": "1.5.0", "version": "1.4.2",
"type": "module", "type": "module",
"engines": { "engines": {
"node": ">= 22.14.0" "node": ">= 22.14.0"