plugin-workflow-portainer 0.0.0-stage → 0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (98) hide show
  1. package/LICENSE +176 -0
  2. package/README.md +31 -3
  3. package/client-v2.js +1 -0
  4. package/client.js +1 -0
  5. package/dist/client/127.5012da93825a6e5c.js +10 -0
  6. package/dist/client/57.ace9538136438718.js +10 -0
  7. package/dist/client/65.ec4a55173511c06d.js +10 -0
  8. package/dist/client/660.546c702d1ddf7eff.js +10 -0
  9. package/dist/client/index.js +10 -0
  10. package/dist/client-v2/127.0ec4dce7b13750e9.js +10 -0
  11. package/dist/client-v2/57.e7cfc50fb651ac14.js +10 -0
  12. package/dist/client-v2/65.9c745ea32ac96e98.js +10 -0
  13. package/dist/client-v2/660.29ae3c3b4040039d.js +10 -0
  14. package/dist/client-v2/index.js +10 -0
  15. package/dist/externalVersion.js +20 -0
  16. package/dist/index.js +48 -0
  17. package/dist/locale/en-US.json +151 -0
  18. package/dist/locale/vi-VN.json +151 -0
  19. package/dist/locale/zh-CN.json +151 -0
  20. package/dist/node_modules/joi/dist/joi-browser.min.js +1 -0
  21. package/dist/node_modules/joi/lib/annotate.js +175 -0
  22. package/dist/node_modules/joi/lib/base.js +1069 -0
  23. package/dist/node_modules/joi/lib/cache.js +143 -0
  24. package/dist/node_modules/joi/lib/common.js +216 -0
  25. package/dist/node_modules/joi/lib/compile.js +283 -0
  26. package/dist/node_modules/joi/lib/errors.js +271 -0
  27. package/dist/node_modules/joi/lib/extend.js +312 -0
  28. package/dist/node_modules/joi/lib/index.d.ts +2365 -0
  29. package/dist/node_modules/joi/lib/index.js +1 -0
  30. package/dist/node_modules/joi/lib/manifest.js +476 -0
  31. package/dist/node_modules/joi/lib/messages.js +207 -0
  32. package/dist/node_modules/joi/lib/modify.js +267 -0
  33. package/dist/node_modules/joi/lib/ref.js +414 -0
  34. package/dist/node_modules/joi/lib/schemas.js +302 -0
  35. package/dist/node_modules/joi/lib/state.js +166 -0
  36. package/dist/node_modules/joi/lib/template.js +463 -0
  37. package/dist/node_modules/joi/lib/trace.js +346 -0
  38. package/dist/node_modules/joi/lib/types/alternatives.js +364 -0
  39. package/dist/node_modules/joi/lib/types/any.js +174 -0
  40. package/dist/node_modules/joi/lib/types/array.js +809 -0
  41. package/dist/node_modules/joi/lib/types/binary.js +100 -0
  42. package/dist/node_modules/joi/lib/types/boolean.js +150 -0
  43. package/dist/node_modules/joi/lib/types/date.js +233 -0
  44. package/dist/node_modules/joi/lib/types/function.js +93 -0
  45. package/dist/node_modules/joi/lib/types/keys.js +1084 -0
  46. package/dist/node_modules/joi/lib/types/link.js +184 -0
  47. package/dist/node_modules/joi/lib/types/number.js +363 -0
  48. package/dist/node_modules/joi/lib/types/object.js +22 -0
  49. package/dist/node_modules/joi/lib/types/string.js +850 -0
  50. package/dist/node_modules/joi/lib/types/symbol.js +102 -0
  51. package/dist/node_modules/joi/lib/validator.js +750 -0
  52. package/dist/node_modules/joi/lib/values.js +263 -0
  53. package/dist/node_modules/joi/node_modules/@hapi/topo/lib/index.d.ts +60 -0
  54. package/dist/node_modules/joi/node_modules/@hapi/topo/lib/index.js +225 -0
  55. package/dist/node_modules/joi/node_modules/@hapi/topo/package.json +30 -0
  56. package/dist/node_modules/joi/package.json +1 -0
  57. package/dist/server/actions/portainer.js +192 -0
  58. package/dist/server/collections/portainer-instances.js +54 -0
  59. package/dist/server/index.js +54 -0
  60. package/dist/server/instructions/PortainerStackControlInstruction.js +156 -0
  61. package/dist/server/instructions/PortainerStackRedeployInstruction.js +254 -0
  62. package/dist/server/instructions/helpers.js +211 -0
  63. package/dist/server/plugin.js +170 -0
  64. package/dist/server/services/PortainerClient.js +497 -0
  65. package/dist/shared/collection.js +57 -0
  66. package/dist/shared/constants.js +66 -0
  67. package/dist/shared/env.js +221 -0
  68. package/dist/shared/types.js +24 -0
  69. package/package.json +50 -4
  70. package/server.js +1 -0
  71. package/src/client/index.tsx +50 -0
  72. package/src/client/instructions.tsx +76 -0
  73. package/src/client-v2/__tests__/workflow-registration.test.tsx +132 -0
  74. package/src/client-v2/components/ControlFieldset.tsx +46 -0
  75. package/src/client-v2/components/PortainerEnvEditor.tsx +223 -0
  76. package/src/client-v2/components/PortainerSettingsPage.tsx +671 -0
  77. package/src/client-v2/components/PortainerTargetFields.tsx +317 -0
  78. package/src/client-v2/components/RedeployFieldset.tsx +123 -0
  79. package/src/client-v2/index.tsx +50 -0
  80. package/src/client-v2/instructions.tsx +162 -0
  81. package/src/client-v2/locale.ts +24 -0
  82. package/src/index.ts +11 -0
  83. package/src/locale/en-US.json +151 -0
  84. package/src/locale/vi-VN.json +151 -0
  85. package/src/locale/zh-CN.json +151 -0
  86. package/src/server/__tests__/portainer-workflow.test.ts +455 -0
  87. package/src/server/actions/portainer.ts +196 -0
  88. package/src/server/collections/portainer-instances.ts +34 -0
  89. package/src/server/index.ts +13 -0
  90. package/src/server/instructions/PortainerStackControlInstruction.ts +139 -0
  91. package/src/server/instructions/PortainerStackRedeployInstruction.ts +255 -0
  92. package/src/server/instructions/helpers.ts +237 -0
  93. package/src/server/plugin.ts +167 -0
  94. package/src/server/services/PortainerClient.ts +589 -0
  95. package/src/shared/collection.ts +32 -0
  96. package/src/shared/constants.ts +25 -0
  97. package/src/shared/env.ts +228 -0
  98. package/src/shared/types.ts +105 -0
@@ -0,0 +1,151 @@
1
+ {
2
+ "Portainer": "Portainer",
3
+ "Portainer Workflows": "Portainer Workflows",
4
+ "Portainer Instances": "Portainer Instances",
5
+ "Portainer instance": "Portainer instance",
6
+ "Default": "Default",
7
+ "Default Portainer instance": "Default Portainer instance",
8
+ "Leave empty to use the default enabled Portainer instance, or bind a workflow variable.": "Leave empty to use the default enabled Portainer instance, or bind a workflow variable.",
9
+ "Environment (Endpoint)": "Environment (Endpoint)",
10
+ "Select a Portainer environment or bind a dynamic endpointId variable.": "Select a Portainer environment or bind a dynamic endpointId variable.",
11
+ "Endpoint ID (e.g. 1)": "Endpoint ID (e.g. 1)",
12
+ "Auto-resolve from Stack or select environment": "Auto-resolve from Stack or select environment",
13
+ "Refresh Portainer environments": "Refresh Portainer environments",
14
+ "Up": "Up",
15
+ "Down": "Down",
16
+ "Target Stack": "Target Stack",
17
+ "Please select a Stack or bind a Stack ID variable": "Please select a Stack or bind a Stack ID variable",
18
+ "Connected Git repository": "Connected Git repository",
19
+ "Choose the Portainer Stack to control or bind a stackId variable from upstream data.": "Choose the Portainer Stack to control or bind a stackId variable from upstream data.",
20
+ "Stack ID (e.g. 12)": "Stack ID (e.g. 12)",
21
+ "Select Portainer Stack": "Select Portainer Stack",
22
+ "Git Stack": "Git Stack",
23
+ "Compose": "Compose",
24
+ "Run / Redeploy Stack": "Run / Redeploy Stack",
25
+ "Pull Git changes, build compose services, or redeploy a Portainer Stack with full environment variable control.": "Pull Git changes, build compose services, or redeploy a Portainer Stack with full environment variable control.",
26
+ "Control / Inspect Stack": "Control / Inspect Stack",
27
+ "Inspect Stack container health, start, or stop a Portainer Stack in an environment.": "Inspect Stack container health, start, or stop a Portainer Stack in an environment.",
28
+ "Execution mode": "Execution mode",
29
+ "Use Stack API to control Environment, Stack, Git branch, and full Env variables; use Stack Webhook when triggering an unauthenticated Portainer webhook UUID.": "Use Stack API to control Environment, Stack, Git branch, and full Env variables; use Stack Webhook when triggering an unauthenticated Portainer webhook UUID.",
30
+ "Stack API (Git / Compose)": "Stack API (Git / Compose)",
31
+ "Stack Webhook": "Stack Webhook",
32
+ "Stack Webhook token": "Stack Webhook token",
33
+ "Webhook token is required": "Webhook token is required",
34
+ "The UUID at the end of /api/stacks/webhooks/<token>.": "The UUID at the end of /api/stacks/webhooks/<token>.",
35
+ "Image tag override (optional)": "Image tag override (optional)",
36
+ "Appends ?tag=<value> when triggering a Portainer Stack webhook.": "Appends ?tag=<value> when triggering a Portainer Stack webhook.",
37
+ "Git branch / tag override (optional)": "Git branch / tag override (optional)",
38
+ "Leave empty to keep the Git reference already configured on Portainer (e.g. refs/heads/main), or pass a branch/tag such as main or refs/tags/v1.2.0.": "Leave empty to keep the Git reference already configured on Portainer (e.g. refs/heads/main), or pass a branch/tag such as main or refs/tags/v1.2.0.",
39
+ "Force pull / repull latest images": "Force pull / repull latest images",
40
+ "Enable when deploying a separate Stack so Portainer pulls the newly built image from your registry.": "Enable when deploying a separate Stack so Portainer pulls the newly built image from your registry.",
41
+ "Prune orphan services on redeploy": "Prune orphan services on redeploy",
42
+ "Request timeout": "Request timeout",
43
+ "Increase timeout for Stacks that run long Dockerfile builds during git/redeploy.": "Increase timeout for Stacks that run long Dockerfile builds during git/redeploy.",
44
+ "ms": "ms",
45
+ "Ignore failed execution and continue workflow": "Ignore failed execution and continue workflow",
46
+ "Environment merge strategy": "Environment merge strategy",
47
+ "Merge keeps existing Portainer Stack variables intact and overrides matching keys; Replace overwrites the entire Stack Env list.": "Merge keeps existing Portainer Stack variables intact and overrides matching keys; Replace overwrites the entire Stack Env list.",
48
+ "Merge & override existing Stack Env": "Merge & override existing Stack Env",
49
+ "Replace all Stack Env": "Replace all Stack Env",
50
+ "Environment variables (Key-Value)": "Environment variables (Key-Value)",
51
+ "Load Env from Stack": "Load Env from Stack",
52
+ "Add variables such as IMAGE_TAG or runtime settings. Mark sensitive values as Secret to redact them in workflow execution logs.": "Add variables such as IMAGE_TAG or runtime settings. Mark sensitive values as Secret to redact them in workflow execution logs.",
53
+ "Delete environment variable": "Delete environment variable",
54
+ "Value or {{variable}}": "Value or {{variable}}",
55
+ "Secret": "Secret",
56
+ "Add environment variable": "Add environment variable",
57
+ "Bulk .env text & dynamic JSON environment": "Bulk .env text & dynamic JSON environment",
58
+ "Bulk .env format": "Bulk .env format",
59
+ "Enter KEY=VALUE lines. Supports upstream workflow variables.": "Enter KEY=VALUE lines. Supports upstream workflow variables.",
60
+ "Dynamic environment JSON / variable": "Dynamic environment JSON / variable",
61
+ "Pass a JSON object {\"KEY\":\"VAL\"}, an array [{\"name\":\"KEY\",\"value\":\"VAL\"}], or a workflow variable from a build catalog record.": "Pass a JSON object {\"KEY\":\"VAL\"}, an array [{\"name\":\"KEY\",\"value\":\"VAL\"}], or a workflow variable from a build catalog record.",
62
+ "Loaded {{count}} variables ({{sensitive}} sensitive keys stay preserved on Portainer in Merge mode)": "Loaded {{count}} variables ({{sensitive}} sensitive keys stay preserved on Portainer in Merge mode)",
63
+ "Loaded {{count}} variables from Portainer Stack": "Loaded {{count}} variables from Portainer Stack",
64
+ "Failed to load environment variables from Portainer Stack": "Failed to load environment variables from Portainer Stack",
65
+ "Stack operation": "Stack operation",
66
+ "Inspect retrieves Stack status, current Env keys, and container health without restarting services; Start and Stop control the Stack lifecycle.": "Inspect retrieves Stack status, current Env keys, and container health without restarting services; Start and Stop control the Stack lifecycle.",
67
+ "Inspect Stack & Health": "Inspect Stack & Health",
68
+ "Start Stack": "Start Stack",
69
+ "Stop Stack": "Stop Stack",
70
+ "Succeeded": "Succeeded",
71
+ "Executed action": "Executed action",
72
+ "Stack ID": "Stack ID",
73
+ "Stack ID is required": "Stack ID is required",
74
+ "Stack name": "Stack name",
75
+ "Environment (Endpoint) ID": "Environment (Endpoint) ID",
76
+ "Stack type": "Stack type",
77
+ "Stack status": "Stack status",
78
+ "Git reference": "Git reference",
79
+ "Applied environment (masked)": "Applied environment (masked)",
80
+ "Applied variable count": "Applied variable count",
81
+ "Containers healthy": "Containers healthy",
82
+ "Stack healthy": "Stack healthy",
83
+ "Running containers": "Running containers",
84
+ "Total containers": "Total containers",
85
+ "Current environment (masked)": "Current environment (masked)",
86
+ "Duration (ms)": "Duration (ms)",
87
+ "Started at": "Started at",
88
+ "Finished at": "Finished at",
89
+ "Error message": "Error message",
90
+ "Refresh": "Refresh",
91
+ "Add Portainer instance": "Add Portainer instance",
92
+ "Edit Portainer instance": "Edit Portainer instance",
93
+ "Delete Portainer instance": "Delete Portainer instance",
94
+ "Delete this Portainer instance?": "Delete this Portainer instance?",
95
+ "Configure Portainer servers with an Access Token (X-API-Key). Workflow nodes can select Environments and Stacks directly or receive dynamic IDs and Env variables from upstream build catalogs.": "Configure Portainer servers with an Access Token (X-API-Key). Workflow nodes can select Environments and Stacks directly or receive dynamic IDs and Env variables from upstream build catalogs.",
96
+ "Name": "Name",
97
+ "Base URL": "Base URL",
98
+ "Health & Version": "Health & Version",
99
+ "Not tested": "Not tested",
100
+ "Connected": "Connected",
101
+ "Unreachable": "Unreachable",
102
+ "Enabled": "Enabled",
103
+ "Toggle Portainer instance": "Toggle Portainer instance",
104
+ "Actions": "Actions",
105
+ "Test": "Test",
106
+ "Test connection": "Test connection",
107
+ "Stacks": "Stacks",
108
+ "Browse Stacks": "Browse Stacks",
109
+ "Cancel": "Cancel",
110
+ "Save": "Save",
111
+ "Instance name": "Instance name",
112
+ "Instance name is required": "Instance name is required",
113
+ "Portainer base URL": "Portainer base URL",
114
+ "Base URL is required": "Base URL is required",
115
+ "Example: https://portainer.internal:9443": "Example: https://portainer.internal:9443",
116
+ "Portainer API key (X-API-Key)": "Portainer API key (X-API-Key)",
117
+ "API key is required": "API key is required",
118
+ "Generated under Portainer -> My account -> Access tokens. Encrypted at rest.": "Generated under Portainer -> My account -> Access tokens. Encrypted at rest.",
119
+ "Default build/redeploy timeout (ms)": "Default build/redeploy timeout (ms)",
120
+ "Set as default instance": "Set as default instance",
121
+ "Allow self-signed TLS certificate (:9443)": "Allow self-signed TLS certificate (:9443)",
122
+ "Optional Git authentication fallback (when Stack has no saved GitCredentialID)": "Optional Git authentication fallback (when Stack has no saved GitCredentialID)",
123
+ "Portainer saved Git Credential ID (optional)": "Portainer saved Git Credential ID (optional)",
124
+ "Automatically detected from each Git Stack when present; set here only to supply a default ID.": "Automatically detected from each Git Stack when present; set here only to supply a default ID.",
125
+ "Fallback Git username (optional)": "Fallback Git username (optional)",
126
+ "Fallback Git Personal Access Token (optional)": "Fallback Git Personal Access Token (optional)",
127
+ "Portainer Stacks": "Portainer Stacks",
128
+ "All environments (Endpoints)": "All environments (Endpoints)",
129
+ "ID": "ID",
130
+ "Stack Name": "Stack Name",
131
+ "Endpoint": "Endpoint",
132
+ "Source": "Source",
133
+ "Status": "Status",
134
+ "Active": "Active",
135
+ "Inactive": "Inactive",
136
+ "Deploying": "Deploying",
137
+ "Error": "Error",
138
+ "Env Vars": "Env Vars",
139
+ "Failed to load Portainer instances": "Failed to load Portainer instances",
140
+ "Portainer instance updated": "Portainer instance updated",
141
+ "Portainer instance created": "Portainer instance created",
142
+ "Failed to save Portainer instance": "Failed to save Portainer instance",
143
+ "Please enter a Portainer base URL first": "Please enter a Portainer base URL first",
144
+ "Connected to Portainer v{{version}} ({{count}} environments found)": "Connected to Portainer v{{version}} ({{count}} environments found)",
145
+ "Connection test failed. Check URL, API key, and TLS settings.": "Connection test failed. Check URL, API key, and TLS settings.",
146
+ "Connection test failed": "Connection test failed",
147
+ "Failed to update status": "Failed to update status",
148
+ "Portainer instance deleted": "Portainer instance deleted",
149
+ "Failed to delete Portainer instance": "Failed to delete Portainer instance",
150
+ "Failed to load environments and stacks from Portainer": "Failed to load environments and stacks from Portainer"
151
+ }
@@ -0,0 +1,151 @@
1
+ {
2
+ "Portainer": "Portainer",
3
+ "Portainer Workflows": "Luồng công việc Portainer",
4
+ "Portainer Instances": "Kết nối Portainer",
5
+ "Portainer instance": "Máy chủ Portainer",
6
+ "Default": "Mặc định",
7
+ "Default Portainer instance": "Máy chủ Portainer mặc định",
8
+ "Leave empty to use the default enabled Portainer instance, or bind a workflow variable.": "Để trống để dùng máy chủ Portainer mặc định đang bật, hoặc gắn biến workflow.",
9
+ "Environment (Endpoint)": "Môi trường (Endpoint)",
10
+ "Select a Portainer environment or bind a dynamic endpointId variable.": "Chọn môi trường trên Portainer hoặc gắn biến động endpointId.",
11
+ "Endpoint ID (e.g. 1)": "Endpoint ID (VD: 1)",
12
+ "Auto-resolve from Stack or select environment": "Tự lấy theo Stack hoặc chọn môi trường",
13
+ "Refresh Portainer environments": "Làm mới danh sách môi trường Portainer",
14
+ "Up": "Hoạt động",
15
+ "Down": "Ngừng",
16
+ "Target Stack": "Stack đích",
17
+ "Please select a Stack or bind a Stack ID variable": "Vui lòng chọn Stack hoặc gắn biến Stack ID",
18
+ "Connected Git repository": "Kho Git đang kết nối",
19
+ "Choose the Portainer Stack to control or bind a stackId variable from upstream data.": "Chọn Stack Portainer cần điều khiển hoặc gắn biến stackId từ bước trước.",
20
+ "Stack ID (e.g. 12)": "Stack ID (VD: 12)",
21
+ "Select Portainer Stack": "Chọn Stack trên Portainer",
22
+ "Git Stack": "Git Stack",
23
+ "Compose": "Compose",
24
+ "Run / Redeploy Stack": "Chạy / Redeploy Stack",
25
+ "Pull Git changes, build compose services, or redeploy a Portainer Stack with full environment variable control.": "Kéo mã mới từ Git, chạy compose build hoặc redeploy Stack trên Portainer kèm quản lý đầy đủ biến môi trường.",
26
+ "Control / Inspect Stack": "Kiểm soát / Kiểm tra Stack",
27
+ "Inspect Stack container health, start, or stop a Portainer Stack in an environment.": "Kiểm tra sức khỏe container, bật hoặc dừng một Stack trên môi trường Portainer.",
28
+ "Execution mode": "Chế độ thực thi",
29
+ "Use Stack API to control Environment, Stack, Git branch, and full Env variables; use Stack Webhook when triggering an unauthenticated Portainer webhook UUID.": "Dùng Stack API để kiểm soát đầy đủ Môi trường, Stack, nhánh Git và biến Env; dùng Stack Webhook khi gọi thẳng UUID webhook của Portainer.",
30
+ "Stack API (Git / Compose)": "Stack API (Git / Compose)",
31
+ "Stack Webhook": "Stack Webhook",
32
+ "Stack Webhook token": "Mã token Stack Webhook",
33
+ "Webhook token is required": "Vui lòng nhập mã token Webhook",
34
+ "The UUID at the end of /api/stacks/webhooks/<token>.": "Chuỗi UUID ở cuối đường dẫn /api/stacks/webhooks/<token>.",
35
+ "Image tag override (optional)": "Ghi đè Image Tag (tùy chọn)",
36
+ "Appends ?tag=<value> when triggering a Portainer Stack webhook.": "Tự nối ?tag=<value> khi kích hoạt Stack Webhook trên Portainer.",
37
+ "Git branch / tag override (optional)": "Ghi đè nhánh / tag Git (tùy chọn)",
38
+ "Leave empty to keep the Git reference already configured on Portainer (e.g. refs/heads/main), or pass a branch/tag such as main or refs/tags/v1.2.0.": "Để trống để giữ nguyên nhánh Git đang cấu hình sẵn trên Portainer (VD: refs/heads/main), hoặc nhập main / refs/tags/v1.2.0.",
39
+ "Force pull / repull latest images": "Ép kéo lại (repull) image mới nhất",
40
+ "Enable when deploying a separate Stack so Portainer pulls the newly built image from your registry.": "Nên bật ở bước chạy Stack Deploy riêng để Portainer kéo bản image vừa build từ Registry về.",
41
+ "Prune orphan services on redeploy": "Dọn các service dư thừa (prune) khi redeploy",
42
+ "Request timeout": "Thời gian chờ tối đa (timeout)",
43
+ "Increase timeout for Stacks that run long Dockerfile builds during git/redeploy.": "Tăng thời gian chờ đối với các Stack chạy compose build Dockerfile nặng khi gọi git/redeploy.",
44
+ "ms": "ms",
45
+ "Ignore failed execution and continue workflow": "Bỏ qua lỗi và tiếp tục luồng công việc",
46
+ "Environment merge strategy": "Chiến lược gộp biến môi trường (Env)",
47
+ "Merge keeps existing Portainer Stack variables intact and overrides matching keys; Replace overwrites the entire Stack Env list.": "Chế độ Gộp giữ nguyên các biến sẵn có trên Stack Portainer và chỉ ghi đè biến trùng tên; chế độ Thay thế sẽ ghi đè toàn bộ danh sách Env.",
48
+ "Merge & override existing Stack Env": "Gộp & ghi đè lên Env sẵn có của Stack",
49
+ "Replace all Stack Env": "Thay thế toàn bộ Env của Stack",
50
+ "Environment variables (Key-Value)": "Biến môi trường (Key-Value)",
51
+ "Load Env from Stack": "Tải Env từ Stack",
52
+ "Add variables such as IMAGE_TAG or runtime settings. Mark sensitive values as Secret to redact them in workflow execution logs.": "Thêm các biến như IMAGE_TAG hoặc cấu hình runtime. Đánh dấu Bí mật để ẩn giá trị trong nhật ký chạy workflow.",
53
+ "Delete environment variable": "Xóa biến môi trường",
54
+ "Value or {{variable}}": "Giá trị hoặc {{variable}}",
55
+ "Secret": "Bí mật",
56
+ "Add environment variable": "Thêm biến môi trường",
57
+ "Bulk .env text & dynamic JSON environment": "Nhập nhanh dạng .env & JSON biến động",
58
+ "Bulk .env format": "Định dạng .env nhiều dòng",
59
+ "Enter KEY=VALUE lines. Supports upstream workflow variables.": "Nhập từng dòng KEY=VALUE. Hỗ trợ chèn biến từ các bước trước.",
60
+ "Dynamic environment JSON / variable": "JSON biến môi trường động / biến workflow",
61
+ "Pass a JSON object {\"KEY\":\"VAL\"}, an array [{\"name\":\"KEY\",\"value\":\"VAL\"}], or a workflow variable from a build catalog record.": "Truyền object JSON {\"KEY\":\"VAL\"}, mảng [{\"name\":\"KEY\",\"value\":\"VAL\"}], hoặc biến từ bảng danh sách workflow build.",
62
+ "Loaded {{count}} variables ({{sensitive}} sensitive keys stay preserved on Portainer in Merge mode)": "Đã nạp {{count}} biến ({{sensitive}} biến nhạy cảm được giữ nguyên trên Portainer ở chế độ Gộp)",
63
+ "Loaded {{count}} variables from Portainer Stack": "Đã nạp {{count}} biến từ Stack trên Portainer",
64
+ "Failed to load environment variables from Portainer Stack": "Không thể tải biến môi trường từ Stack Portainer",
65
+ "Stack operation": "Thao tác điều khiển Stack",
66
+ "Inspect retrieves Stack status, current Env keys, and container health without restarting services; Start and Stop control the Stack lifecycle.": "Kiểm tra giúp lấy trạng thái Stack, biến Env và sức khỏe container mà không khởi động lại dịch vụ; Bật và Dừng dùng để điều khiển vòng đời Stack.",
67
+ "Inspect Stack & Health": "Kiểm tra Stack & Sức khỏe",
68
+ "Start Stack": "Khởi động Stack",
69
+ "Stop Stack": "Dừng Stack",
70
+ "Succeeded": "Thành công",
71
+ "Executed action": "Thao tác đã chạy",
72
+ "Stack ID": "Stack ID",
73
+ "Stack ID is required": "Vui lòng cung cấp Stack ID",
74
+ "Stack name": "Tên Stack",
75
+ "Environment (Endpoint) ID": "ID Môi trường (Endpoint)",
76
+ "Stack type": "Loại Stack",
77
+ "Stack status": "Trạng thái Stack",
78
+ "Git reference": "Nhánh / Tag Git",
79
+ "Applied environment (masked)": "Bộ biến Env đã áp dụng (đã che bí mật)",
80
+ "Applied variable count": "Số lượng biến Env đã truyền",
81
+ "Containers healthy": "Container khỏe mạnh",
82
+ "Stack healthy": "Stack khỏe mạnh",
83
+ "Running containers": "Số container đang chạy",
84
+ "Total containers": "Tổng số container",
85
+ "Current environment (masked)": "Bộ biến Env hiện tại (đã che bí mật)",
86
+ "Duration (ms)": "Thời lượng (ms)",
87
+ "Started at": "Bắt đầu lúc",
88
+ "Finished at": "Kết thúc lúc",
89
+ "Error message": "Thông báo lỗi",
90
+ "Refresh": "Làm mới",
91
+ "Add Portainer instance": "Thêm máy chủ Portainer",
92
+ "Edit Portainer instance": "Chỉnh sửa máy chủ Portainer",
93
+ "Delete Portainer instance": "Xóa máy chủ Portainer",
94
+ "Delete this Portainer instance?": "Xóa kết nối máy chủ Portainer này?",
95
+ "Configure Portainer servers with an Access Token (X-API-Key). Workflow nodes can select Environments and Stacks directly or receive dynamic IDs and Env variables from upstream build catalogs.": "Khai báo máy chủ Portainer bằng Access Token (X-API-Key). Các node trong Workflow có thể chọn trực tiếp Môi trường, Stack hoặc nhận ID và bộ Env động từ bảng danh sách workflow build.",
96
+ "Name": "Tên kết nối",
97
+ "Base URL": "Địa chỉ Base URL",
98
+ "Health & Version": "Trạng thái & Phiên bản",
99
+ "Not tested": "Chưa kiểm tra",
100
+ "Connected": "Đã kết nối",
101
+ "Unreachable": "Không kết nối được",
102
+ "Enabled": "Kích hoạt",
103
+ "Toggle Portainer instance": "Bật/tắt kết nối Portainer",
104
+ "Actions": "Thao tác",
105
+ "Test": "Kiểm tra",
106
+ "Test connection": "Kiểm tra kết nối",
107
+ "Stacks": "Danh sách Stack",
108
+ "Browse Stacks": "Xem danh sách Stack",
109
+ "Cancel": "Hủy",
110
+ "Save": "Lưu",
111
+ "Instance name": "Tên máy chủ Portainer",
112
+ "Instance name is required": "Vui lòng nhập tên máy chủ Portainer",
113
+ "Portainer base URL": "Địa chỉ Portainer Base URL",
114
+ "Base URL is required": "Vui lòng nhập Base URL",
115
+ "Example: https://portainer.internal:9443": "Ví dụ: https://portainer.internal:9443",
116
+ "Portainer API key (X-API-Key)": "Khóa Portainer API (X-API-Key)",
117
+ "API key is required": "Vui lòng nhập API key",
118
+ "Generated under Portainer -> My account -> Access tokens. Encrypted at rest.": "Tạo tại Portainer -> My account -> Access tokens. Được mã hóa khi lưu trữ.",
119
+ "Default build/redeploy timeout (ms)": "Timeout mặc định khi build/redeploy (ms)",
120
+ "Set as default instance": "Đặt làm máy chủ mặc định",
121
+ "Allow self-signed TLS certificate (:9443)": "Cho phép chứng chỉ TLS tự ký (:9443)",
122
+ "Optional Git authentication fallback (when Stack has no saved GitCredentialID)": "Cấu hình xác thực Git dự phòng (tùy chọn khi Stack không lưu GitCredentialID)",
123
+ "Portainer saved Git Credential ID (optional)": "ID Git Credential đã lưu trên Portainer (tùy chọn)",
124
+ "Automatically detected from each Git Stack when present; set here only to supply a default ID.": "Tự động đọc từ từng Git Stack nếu đã có sẵn; chỉ cần điền khi muốn đặt ID mặc định.",
125
+ "Fallback Git username (optional)": "Tài khoản Git dự phòng (tùy chọn)",
126
+ "Fallback Git Personal Access Token (optional)": "Personal Access Token Git dự phòng (tùy chọn)",
127
+ "Portainer Stacks": "Danh sách Stack trên Portainer",
128
+ "All environments (Endpoints)": "Tất cả môi trường (Endpoints)",
129
+ "ID": "ID",
130
+ "Stack Name": "Tên Stack",
131
+ "Endpoint": "Môi trường",
132
+ "Source": "Nguồn",
133
+ "Status": "Trạng thái",
134
+ "Active": "Đang chạy",
135
+ "Inactive": "Đã dừng",
136
+ "Deploying": "Đang triển khai",
137
+ "Error": "Lỗi",
138
+ "Env Vars": "Số biến Env",
139
+ "Failed to load Portainer instances": "Không thể tải danh sách kết nối Portainer",
140
+ "Portainer instance updated": "Đã cập nhật kết nối Portainer",
141
+ "Portainer instance created": "Đã thêm kết nối Portainer",
142
+ "Failed to save Portainer instance": "Lưu kết nối Portainer thất bại",
143
+ "Please enter a Portainer base URL first": "Vui lòng nhập địa chỉ Base URL trước",
144
+ "Connected to Portainer v{{version}} ({{count}} environments found)": "Đã kết nối Portainer v{{version}} (tìm thấy {{count}} môi trường)",
145
+ "Connection test failed. Check URL, API key, and TLS settings.": "Kiểm tra kết nối thất bại. Vui lòng kiểm tra URL, API key và cấu hình TLS.",
146
+ "Connection test failed": "Kiểm tra kết nối thất bại",
147
+ "Failed to update status": "Cập nhật trạng thái thất bại",
148
+ "Portainer instance deleted": "Đã xóa kết nối Portainer",
149
+ "Failed to delete Portainer instance": "Xóa kết nối Portainer thất bại",
150
+ "Failed to load environments and stacks from Portainer": "Không thể tải danh sách môi trường và Stack từ Portainer"
151
+ }
@@ -0,0 +1,151 @@
1
+ {
2
+ "Portainer": "Portainer",
3
+ "Portainer Workflows": "Portainer 工作流",
4
+ "Portainer Instances": "Portainer 实例",
5
+ "Portainer instance": "Portainer 实例",
6
+ "Default": "默认",
7
+ "Default Portainer instance": "默认 Portainer 实例",
8
+ "Leave empty to use the default enabled Portainer instance, or bind a workflow variable.": "留空则使用默认启用的 Portainer 实例,也可绑定工作流变量。",
9
+ "Environment (Endpoint)": "环境 (Endpoint)",
10
+ "Select a Portainer environment or bind a dynamic endpointId variable.": "选择 Portainer 环境,或绑定动态 endpointId 变量。",
11
+ "Endpoint ID (e.g. 1)": "环境 ID(例如 1)",
12
+ "Auto-resolve from Stack or select environment": "从 Stack 自动解析或选择环境",
13
+ "Refresh Portainer environments": "刷新 Portainer 环境",
14
+ "Up": "在线",
15
+ "Down": "离线",
16
+ "Target Stack": "目标 Stack",
17
+ "Please select a Stack or bind a Stack ID variable": "请选择 Stack 或绑定 Stack ID 变量",
18
+ "Connected Git repository": "已关联 Git 仓库",
19
+ "Choose the Portainer Stack to control or bind a stackId variable from upstream data.": "选择要控制的 Portainer Stack,或从上游节点绑定 stackId 变量。",
20
+ "Stack ID (e.g. 12)": "Stack ID(例如 12)",
21
+ "Select Portainer Stack": "选择 Portainer Stack",
22
+ "Git Stack": "Git Stack",
23
+ "Compose": "Compose",
24
+ "Run / Redeploy Stack": "运行 / 重新部署 Stack",
25
+ "Pull Git changes, build compose services, or redeploy a Portainer Stack with full environment variable control.": "拉取 Git 变更、构建 Compose 服务或重新部署 Portainer Stack,并支持完整环境变量管理。",
26
+ "Control / Inspect Stack": "控制 / 检查 Stack",
27
+ "Inspect Stack container health, start, or stop a Portainer Stack in an environment.": "检查环境内 Portainer Stack 的容器健康状态,或启动、停止 Stack。",
28
+ "Execution mode": "执行模式",
29
+ "Use Stack API to control Environment, Stack, Git branch, and full Env variables; use Stack Webhook when triggering an unauthenticated Portainer webhook UUID.": "使用 Stack API 可完整控制环境、Stack、Git 分支与环境变量;触发免认证 Portainer Webhook UUID 时请选择 Stack Webhook。",
30
+ "Stack API (Git / Compose)": "Stack API(Git / Compose)",
31
+ "Stack Webhook": "Stack Webhook",
32
+ "Stack Webhook token": "Stack Webhook 令牌",
33
+ "Webhook token is required": "Webhook 令牌不能为空",
34
+ "The UUID at the end of /api/stacks/webhooks/<token>.": "/api/stacks/webhooks/<token> 末尾的 UUID。",
35
+ "Image tag override (optional)": "覆盖镜像标签(可选)",
36
+ "Appends ?tag=<value> when triggering a Portainer Stack webhook.": "触发 Portainer Stack Webhook 时附加 ?tag=<value> 参数。",
37
+ "Git branch / tag override (optional)": "覆盖 Git 分支 / 标签(可选)",
38
+ "Leave empty to keep the Git reference already configured on Portainer (e.g. refs/heads/main), or pass a branch/tag such as main or refs/tags/v1.2.0.": "留空则保留 Portainer 上已配置的 Git 引用(如 refs/heads/main),也可传入 main 或 refs/tags/v1.2.0。",
39
+ "Force pull / repull latest images": "强制拉取最新镜像",
40
+ "Enable when deploying a separate Stack so Portainer pulls the newly built image from your registry.": "部署独立 Stack 时建议开启,以便 Portainer 从镜像仓库拉取新构建的镜像。",
41
+ "Prune orphan services on redeploy": "重新部署时清理孤立服务",
42
+ "Request timeout": "请求超时时间",
43
+ "Increase timeout for Stacks that run long Dockerfile builds during git/redeploy.": "当 Stack 在 git/redeploy 期间执行较长的 Dockerfile 构建时,请适当调大超时时间。",
44
+ "ms": "毫秒",
45
+ "Ignore failed execution and continue workflow": "忽略失败并继续工作流",
46
+ "Environment merge strategy": "环境变量合并策略",
47
+ "Merge keeps existing Portainer Stack variables intact and overrides matching keys; Replace overwrites the entire Stack Env list.": "合并模式保留 Portainer Stack 原有变量并覆盖同名项;替换模式将用当前列表完全覆盖 Stack 环境变量。",
48
+ "Merge & override existing Stack Env": "合并并覆盖已有 Stack 环境变量",
49
+ "Replace all Stack Env": "替换全部 Stack 环境变量",
50
+ "Environment variables (Key-Value)": "环境变量(键值对)",
51
+ "Load Env from Stack": "从 Stack 加载环境变量",
52
+ "Add variables such as IMAGE_TAG or runtime settings. Mark sensitive values as Secret to redact them in workflow execution logs.": "添加如 IMAGE_TAG 或运行时参数;勾选“机密”可在工作流日志中隐藏敏感值。",
53
+ "Delete environment variable": "删除环境变量",
54
+ "Value or {{variable}}": "值或 {{variable}}",
55
+ "Secret": "机密",
56
+ "Add environment variable": "添加环境变量",
57
+ "Bulk .env text & dynamic JSON environment": "批量 .env 文本与动态 JSON 环境变量",
58
+ "Bulk .env format": "批量 .env 格式",
59
+ "Enter KEY=VALUE lines. Supports upstream workflow variables.": "按行输入 KEY=VALUE,支持使用上游工作流变量。",
60
+ "Dynamic environment JSON / variable": "动态环境变量 JSON / 变量",
61
+ "Pass a JSON object {\"KEY\":\"VAL\"}, an array [{\"name\":\"KEY\",\"value\":\"VAL\"}], or a workflow variable from a build catalog record.": "传入 JSON 对象 {\"KEY\":\"VAL\"}、数组 [{\"name\":\"KEY\",\"value\":\"VAL\"}] 或来自构建目录记录的工作流变量。",
62
+ "Loaded {{count}} variables ({{sensitive}} sensitive keys stay preserved on Portainer in Merge mode)": "已加载 {{count}} 个变量({{sensitive}} 个敏感键在合并模式下将继续保留在 Portainer 中)",
63
+ "Loaded {{count}} variables from Portainer Stack": "已从 Portainer Stack 加载 {{count}} 个变量",
64
+ "Failed to load environment variables from Portainer Stack": "从 Portainer Stack 加载环境变量失败",
65
+ "Stack operation": "Stack 操作",
66
+ "Inspect retrieves Stack status, current Env keys, and container health without restarting services; Start and Stop control the Stack lifecycle.": "检查操作读取 Stack 状态、当前环境变量与容器健康度且不重启服务;启动与停止用于控制 Stack 生命周期。",
67
+ "Inspect Stack & Health": "检查 Stack 与健康度",
68
+ "Start Stack": "启动 Stack",
69
+ "Stop Stack": "停止 Stack",
70
+ "Succeeded": "是否成功",
71
+ "Executed action": "执行动作",
72
+ "Stack ID": "Stack ID",
73
+ "Stack ID is required": "Stack ID 不能为空",
74
+ "Stack name": "Stack 名称",
75
+ "Environment (Endpoint) ID": "环境 (Endpoint) ID",
76
+ "Stack type": "Stack 类型",
77
+ "Stack status": "Stack 状态",
78
+ "Git reference": "Git 引用",
79
+ "Applied environment (masked)": "应用的环境变量(已脱敏)",
80
+ "Applied variable count": "应用变量数量",
81
+ "Containers healthy": "容器健康状态",
82
+ "Stack healthy": "Stack 健康状态",
83
+ "Running containers": "运行中容器数",
84
+ "Total containers": "总容器数",
85
+ "Current environment (masked)": "当前环境变量(已脱敏)",
86
+ "Duration (ms)": "耗时(毫秒)",
87
+ "Started at": "开始时间",
88
+ "Finished at": "结束时间",
89
+ "Error message": "错误信息",
90
+ "Refresh": "刷新",
91
+ "Add Portainer instance": "添加 Portainer 实例",
92
+ "Edit Portainer instance": "编辑 Portainer 实例",
93
+ "Delete Portainer instance": "删除 Portainer 实例",
94
+ "Delete this Portainer instance?": "确定删除此 Portainer 实例吗?",
95
+ "Configure Portainer servers with an Access Token (X-API-Key). Workflow nodes can select Environments and Stacks directly or receive dynamic IDs and Env variables from upstream build catalogs.": "通过访问令牌 (X-API-Key) 配置 Portainer 服务器。工作流节点可直接选择环境与 Stack,也可接收来自构建目录的动态 ID 与环境变量。",
96
+ "Name": "名称",
97
+ "Base URL": "基础 URL",
98
+ "Health & Version": "连接状态与版本",
99
+ "Not tested": "未测试",
100
+ "Connected": "已连接",
101
+ "Unreachable": "不可达",
102
+ "Enabled": "启用",
103
+ "Toggle Portainer instance": "切换 Portainer 实例启用状态",
104
+ "Actions": "操作",
105
+ "Test": "测试",
106
+ "Test connection": "测试连接",
107
+ "Stacks": "Stack 列表",
108
+ "Browse Stacks": "浏览 Stack",
109
+ "Cancel": "取消",
110
+ "Save": "保存",
111
+ "Instance name": "实例名称",
112
+ "Instance name is required": "实例名称不能为空",
113
+ "Portainer base URL": "Portainer 基础 URL",
114
+ "Base URL is required": "基础 URL 不能为空",
115
+ "Example: https://portainer.internal:9443": "示例:https://portainer.internal:9443",
116
+ "Portainer API key (X-API-Key)": "Portainer API 密钥 (X-API-Key)",
117
+ "API key is required": "API 密钥不能为空",
118
+ "Generated under Portainer -> My account -> Access tokens. Encrypted at rest.": "在 Portainer -> My account -> Access tokens 中生成,存储时加密。",
119
+ "Default build/redeploy timeout (ms)": "默认构建/重新部署超时时间(毫秒)",
120
+ "Set as default instance": "设为默认实例",
121
+ "Allow self-signed TLS certificate (:9443)": "允许自签名 TLS 证书 (:9443)",
122
+ "Optional Git authentication fallback (when Stack has no saved GitCredentialID)": "可选 Git 认证回退(当 Stack 未绑定 GitCredentialID 时使用)",
123
+ "Portainer saved Git Credential ID (optional)": "Portainer 已保存的 Git 凭据 ID(可选)",
124
+ "Automatically detected from each Git Stack when present; set here only to supply a default ID.": "若 Git Stack 已配置凭据会自动识别;仅需在需要默认凭据 ID 时填写。",
125
+ "Fallback Git username (optional)": "备用 Git 用户名(可选)",
126
+ "Fallback Git Personal Access Token (optional)": "备用 Git 个人访问令牌(可选)",
127
+ "Portainer Stacks": "Portainer Stack 列表",
128
+ "All environments (Endpoints)": "全部环境 (Endpoints)",
129
+ "ID": "ID",
130
+ "Stack Name": "Stack 名称",
131
+ "Endpoint": "环境",
132
+ "Source": "来源",
133
+ "Status": "状态",
134
+ "Active": "运行中",
135
+ "Inactive": "已停止",
136
+ "Deploying": "部署中",
137
+ "Error": "错误",
138
+ "Env Vars": "环境变量数",
139
+ "Failed to load Portainer instances": "加载 Portainer 实例失败",
140
+ "Portainer instance updated": "Portainer 实例已更新",
141
+ "Portainer instance created": "Portainer 实例已创建",
142
+ "Failed to save Portainer instance": "保存 Portainer 实例失败",
143
+ "Please enter a Portainer base URL first": "请先输入 Portainer 基础 URL",
144
+ "Connected to Portainer v{{version}} ({{count}} environments found)": "已连接到 Portainer v{{version}}(发现 {{count}} 个环境)",
145
+ "Connection test failed. Check URL, API key, and TLS settings.": "连接测试失败,请检查 URL、API 密钥与 TLS 设置。",
146
+ "Connection test failed": "连接测试失败",
147
+ "Failed to update status": "更新状态失败",
148
+ "Portainer instance deleted": "Portainer 实例已删除",
149
+ "Failed to delete Portainer instance": "删除 Portainer 实例失败",
150
+ "Failed to load environments and stacks from Portainer": "从 Portainer 加载环境与 Stack 列表失败"
151
+ }