underpost 2.8.881 → 2.8.882

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 (32) hide show
  1. package/.github/workflows/release.cd.yml +1 -2
  2. package/README.md +46 -36
  3. package/cli.md +86 -86
  4. package/conf.js +1 -0
  5. package/manifests/deployment/dd-default-development/deployment.yaml +2 -2
  6. package/manifests/deployment/dd-test-development/deployment.yaml +6 -6
  7. package/package.json +1 -1
  8. package/src/api/document/document.service.js +9 -1
  9. package/src/cli/repository.js +2 -0
  10. package/src/client/components/core/Auth.js +258 -89
  11. package/src/client/components/core/BtnIcon.js +10 -1
  12. package/src/client/components/core/CssCore.js +36 -27
  13. package/src/client/components/core/Docs.js +189 -85
  14. package/src/client/components/core/LoadingAnimation.js +5 -10
  15. package/src/client/components/core/Modal.js +255 -120
  16. package/src/client/components/core/ObjectLayerEngine.js +154 -158
  17. package/src/client/components/core/Panel.js +2 -0
  18. package/src/client/components/core/PanelForm.js +94 -60
  19. package/src/client/components/core/Router.js +15 -15
  20. package/src/client/components/core/ToolTip.js +83 -19
  21. package/src/client/components/core/Translate.js +1 -1
  22. package/src/client/components/core/VanillaJs.js +4 -3
  23. package/src/client/components/core/windowGetDimensions.js +202 -0
  24. package/src/client/components/default/MenuDefault.js +11 -0
  25. package/src/client/ssr/Render.js +1 -1
  26. package/src/index.js +1 -1
  27. package/src/server/auth.js +68 -17
  28. package/src/server/crypto.js +195 -76
  29. package/src/server/peer.js +47 -5
  30. package/src/server/process.js +85 -1
  31. package/src/server/runtime.js +13 -10
  32. package/test/crypto.test.js +117 -0
@@ -2,7 +2,7 @@ name: CD | Release deployment | remote ssh
2
2
 
3
3
  on:
4
4
  workflow_run:
5
- workflows: ["CI | Publish npm package"]
5
+ workflows: ['CI | Publish npm package']
6
6
  types:
7
7
  - completed
8
8
 
@@ -34,5 +34,4 @@ jobs:
34
34
  underpost run pull
35
35
  underpost run secret
36
36
  underpost cmt . --empty ci docker-image-engine
37
- underpost run underpost-config
38
37
  underpost run ssh-deploy engine-test
package/README.md CHANGED
@@ -58,6 +58,11 @@
58
58
 
59
59
 
60
60
 
61
+
62
+
63
+
64
+
65
+
61
66
 
62
67
 
63
68
 
@@ -67,7 +72,7 @@
67
72
  <!-- badges -->
68
73
 
69
74
 
70
- [![Node.js CI](https://github.com/underpostnet/engine/actions/workflows/docker-image.ci.yml/badge.svg?branch=master)](https://github.com/underpostnet/engine/actions/workflows/docker-image.yml) [![Test](https://github.com/underpostnet/engine/actions/workflows/coverall.ci.yml/badge.svg?branch=master)](https://github.com/underpostnet/engine/actions/workflows/coverall.yml) [![Downloads](https://img.shields.io/npm/dm/underpost.svg)](https://www.npmjs.com/package/underpost) [![Socket Badge](https://socket.dev/api/badge/npm/package/underpost/2.8.881)](https://socket.dev/npm/package/underpost/overview/2.8.881) [![Coverage Status](https://coveralls.io/repos/github/underpostnet/engine/badge.svg?branch=master)](https://coveralls.io/github/underpostnet/engine?branch=master) [![Version](https://img.shields.io/npm/v/underpost.svg)](https://www.npmjs.org/package/underpost) [![License](https://img.shields.io/npm/l/underpost.svg)](https://www.npmjs.com/package/underpost)
75
+ [![Node.js CI](https://github.com/underpostnet/engine/actions/workflows/docker-image.ci.yml/badge.svg?branch=master)](https://github.com/underpostnet/engine/actions/workflows/docker-image.yml) [![Test](https://github.com/underpostnet/engine/actions/workflows/coverall.ci.yml/badge.svg?branch=master)](https://github.com/underpostnet/engine/actions/workflows/coverall.yml) [![Downloads](https://img.shields.io/npm/dm/underpost.svg)](https://www.npmjs.com/package/underpost) [![Socket Badge](https://socket.dev/api/badge/npm/package/underpost/2.8.882)](https://socket.dev/npm/package/underpost/overview/2.8.882) [![Coverage Status](https://coveralls.io/repos/github/underpostnet/engine/badge.svg?branch=master)](https://coveralls.io/github/underpostnet/engine?branch=master) [![Version](https://img.shields.io/npm/v/underpost.svg)](https://www.npmjs.org/package/underpost) [![License](https://img.shields.io/npm/l/underpost.svg)](https://www.npmjs.com/package/underpost)
71
76
 
72
77
 
73
78
  <!-- end-badges -->
@@ -114,6 +119,11 @@
114
119
 
115
120
 
116
121
 
122
+
123
+
124
+
125
+
126
+
117
127
 
118
128
 
119
129
 
@@ -164,44 +174,44 @@ Run dev client server
164
174
  npm run dev
165
175
  ```
166
176
  <!-- -->
167
- ## underpost ci/cd cli v2.8.881
177
+ ## underpost ci/cd cli v2.8.882
168
178
 
169
179
  ### Usage: `underpost [options] [command]`
170
-
171
- ```
172
- Options:
173
- -V, --version output the version number
174
- -h, --help display help for command
180
+ ```
181
+ Options:
182
+ -V, --version output the version number
183
+ -h, --help display help for command
175
184
 
176
185
  Commands:
177
- new [options] <app-name> Initializes a new Underpost project with a predefined structure.
178
- start [options] <deploy-id> [env] Initiates application servers, build pipelines, or other defined services based on the deployment ID.
179
- clone [options] <uri> Clones a specified GitHub repository into the current directory.
180
- pull [options] <path> <uri> Pulls the latest changes from a specified GitHub repository.
181
- cmt [options] <path> <commit-type> [module-tag] [message] Manages commits to a GitHub repository, supporting various commit types and options.
182
- push [options] <path> <uri> Pushes committed changes from a local repository to a remote GitHub repository.
183
- env <deploy-id> [env] Sets environment variables and configurations related to a specific deployment ID.
184
- config [options] <operator> [key] [value] Manages Underpost configurations using various operators.
185
- root Displays the root path of the npm installation.
186
- cluster [options] [pod-name] Manages Kubernetes clusters, defaulting to Kind cluster initialization.
187
- deploy [options] [deploy-list] [env] Manages application deployments, defaulting to deploying development pods.
188
- secret [options] <platform> Manages secrets for various platforms.
189
- dockerfile-image-build [options] Builds a Docker image from a specified Dockerfile with various options for naming, saving, and loading.
190
- dockerfile-pull-base-images [options] Pulls required Underpost Dockerfile base images and optionally loads them into clusters.
191
- install Quickly imports Underpost npm dependencies by copying them.
192
- db [options] <deploy-list> Manages database operations, including import, export, and collection management.
193
- metadata [options] [deploy-id] [host] [path] Manages cluster metadata operations, including import and export.
194
- script [options] <operator> <script-name> [script-value] Supports a variety of built-in Underpost global scripts, their preset lifecycle events, and arbitrary custom scripts.
195
- cron [options] [deploy-list] [job-list] Manages cron jobs, including initialization, execution, and configuration updates.
196
- fs [options] [path] Manages file storage, defaulting to file upload operations.
197
- test [options] [deploy-list] Manages and runs tests, defaulting to the current Underpost default test suite.
198
- monitor [options] <deploy-id> [env] Manages health server monitoring for specified deployments.
199
- ssh [options] Import and start ssh server and client based on current default deployment ID.
200
- run [options] <runner-id> [path] Runs a script from the specified path.
201
- lxd [options] Manages LXD containers and virtual machines.
202
- baremetal [options] [workflow-id] [hostname] [ip-address] Manages baremetal server operations, including installation, database setup, commissioning, and user management.
203
- help [command] display help for command
204
-
186
+ new [options] <app-name> Initializes a new Underpost project with a predefined structure.
187
+ start [options] <deploy-id> [env] Initiates application servers, build pipelines, or other defined services based on the deployment ID.
188
+ clone [options] <uri> Clones a specified GitHub repository into the current directory.
189
+ pull [options] <path> <uri> Pulls the latest changes from a specified GitHub repository.
190
+ cmt [options] <path> <commit-type> [module-tag] [message] Manages commits to a GitHub repository, supporting various commit types and options.
191
+ push [options] <path> <uri> Pushes committed changes from a local repository to a remote GitHub repository.
192
+ env <deploy-id> [env] Sets environment variables and configurations related to a specific deployment ID.
193
+ config [options] <operator> [key] [value] Manages Underpost configurations using various operators.
194
+ root Displays the root path of the npm installation.
195
+ cluster [options] [pod-name] Manages Kubernetes clusters, defaulting to Kind cluster initialization.
196
+ deploy [options] [deploy-list] [env] Manages application deployments, defaulting to deploying development pods.
197
+ secret [options] <platform> Manages secrets for various platforms.
198
+ dockerfile-image-build [options] Builds a Docker image from a specified Dockerfile with various options for naming, saving, and loading.
199
+ dockerfile-pull-base-images [options] Pulls required Underpost Dockerfile base images and optionally loads them into clusters.
200
+ install Quickly imports Underpost npm dependencies by copying them.
201
+ db [options] <deploy-list> Manages database operations, including import, export, and collection management.
202
+ metadata [options] [deploy-id] [host] [path] Manages cluster metadata operations, including import and export.
203
+ script [options] <operator> <script-name> [script-value] Supports a variety of built-in Underpost global scripts, their preset lifecycle events, and arbitrary custom scripts.
204
+ cron [options] [deploy-list] [job-list] Manages cron jobs, including initialization, execution, and configuration updates.
205
+ fs [options] [path] Manages file storage, defaulting to file upload operations.
206
+ test [options] [deploy-list] Manages and runs tests, defaulting to the current Underpost default test suite.
207
+ monitor [options] <deploy-id> [env] Manages health server monitoring for specified deployments.
208
+ ssh [options] Import and start ssh server and client based on current default deployment ID.
209
+ run [options] <runner-id> [path] Runs a script from the specified path.
210
+ lxd [options] Manages LXD containers and virtual machines.
211
+ baremetal [options] [workflow-id] [hostname] [ip-address] Manages baremetal server operations, including installation, database setup, commissioning, and user management.
212
+ help [command] display help for command
213
+
205
214
  ```
206
-
215
+
207
216
  <a target="_top" href="https://github.com/underpostnet/pwa-microservices-template/blob/master/cli.md">See complete CLI Docs here.</a>
217
+
package/cli.md CHANGED
@@ -1,47 +1,46 @@
1
- ## underpost ci/cd cli v2.8.881
1
+ ## underpost ci/cd cli v2.8.882
2
2
 
3
3
  ### Usage: `underpost [options] [command]`
4
-
5
- ```
6
- Options:
7
- -V, --version output the version number
8
- -h, --help display help for command
4
+ ```
5
+ Options:
6
+ -V, --version output the version number
7
+ -h, --help display help for command
9
8
 
10
9
  Commands:
11
- new [options] <app-name> Initializes a new Underpost project with a predefined structure.
12
- start [options] <deploy-id> [env] Initiates application servers, build pipelines, or other defined services based on the deployment ID.
13
- clone [options] <uri> Clones a specified GitHub repository into the current directory.
14
- pull [options] <path> <uri> Pulls the latest changes from a specified GitHub repository.
15
- cmt [options] <path> <commit-type> [module-tag] [message] Manages commits to a GitHub repository, supporting various commit types and options.
16
- push [options] <path> <uri> Pushes committed changes from a local repository to a remote GitHub repository.
17
- env <deploy-id> [env] Sets environment variables and configurations related to a specific deployment ID.
18
- config [options] <operator> [key] [value] Manages Underpost configurations using various operators.
19
- root Displays the root path of the npm installation.
20
- cluster [options] [pod-name] Manages Kubernetes clusters, defaulting to Kind cluster initialization.
21
- deploy [options] [deploy-list] [env] Manages application deployments, defaulting to deploying development pods.
22
- secret [options] <platform> Manages secrets for various platforms.
23
- dockerfile-image-build [options] Builds a Docker image from a specified Dockerfile with various options for naming, saving, and loading.
24
- dockerfile-pull-base-images [options] Pulls required Underpost Dockerfile base images and optionally loads them into clusters.
25
- install Quickly imports Underpost npm dependencies by copying them.
26
- db [options] <deploy-list> Manages database operations, including import, export, and collection management.
27
- metadata [options] [deploy-id] [host] [path] Manages cluster metadata operations, including import and export.
28
- script [options] <operator> <script-name> [script-value] Supports a variety of built-in Underpost global scripts, their preset lifecycle events, and arbitrary custom scripts.
29
- cron [options] [deploy-list] [job-list] Manages cron jobs, including initialization, execution, and configuration updates.
30
- fs [options] [path] Manages file storage, defaulting to file upload operations.
31
- test [options] [deploy-list] Manages and runs tests, defaulting to the current Underpost default test suite.
32
- monitor [options] <deploy-id> [env] Manages health server monitoring for specified deployments.
33
- ssh [options] Import and start ssh server and client based on current default deployment ID.
34
- run [options] <runner-id> [path] Runs a script from the specified path.
35
- lxd [options] Manages LXD containers and virtual machines.
36
- baremetal [options] [workflow-id] [hostname] [ip-address] Manages baremetal server operations, including installation, database setup, commissioning, and user management.
37
- help [command] display help for command
38
-
10
+ new [options] <app-name> Initializes a new Underpost project with a predefined structure.
11
+ start [options] <deploy-id> [env] Initiates application servers, build pipelines, or other defined services based on the deployment ID.
12
+ clone [options] <uri> Clones a specified GitHub repository into the current directory.
13
+ pull [options] <path> <uri> Pulls the latest changes from a specified GitHub repository.
14
+ cmt [options] <path> <commit-type> [module-tag] [message] Manages commits to a GitHub repository, supporting various commit types and options.
15
+ push [options] <path> <uri> Pushes committed changes from a local repository to a remote GitHub repository.
16
+ env <deploy-id> [env] Sets environment variables and configurations related to a specific deployment ID.
17
+ config [options] <operator> [key] [value] Manages Underpost configurations using various operators.
18
+ root Displays the root path of the npm installation.
19
+ cluster [options] [pod-name] Manages Kubernetes clusters, defaulting to Kind cluster initialization.
20
+ deploy [options] [deploy-list] [env] Manages application deployments, defaulting to deploying development pods.
21
+ secret [options] <platform> Manages secrets for various platforms.
22
+ dockerfile-image-build [options] Builds a Docker image from a specified Dockerfile with various options for naming, saving, and loading.
23
+ dockerfile-pull-base-images [options] Pulls required Underpost Dockerfile base images and optionally loads them into clusters.
24
+ install Quickly imports Underpost npm dependencies by copying them.
25
+ db [options] <deploy-list> Manages database operations, including import, export, and collection management.
26
+ metadata [options] [deploy-id] [host] [path] Manages cluster metadata operations, including import and export.
27
+ script [options] <operator> <script-name> [script-value] Supports a variety of built-in Underpost global scripts, their preset lifecycle events, and arbitrary custom scripts.
28
+ cron [options] [deploy-list] [job-list] Manages cron jobs, including initialization, execution, and configuration updates.
29
+ fs [options] [path] Manages file storage, defaulting to file upload operations.
30
+ test [options] [deploy-list] Manages and runs tests, defaulting to the current Underpost default test suite.
31
+ monitor [options] <deploy-id> [env] Manages health server monitoring for specified deployments.
32
+ ssh [options] Import and start ssh server and client based on current default deployment ID.
33
+ run [options] <runner-id> [path] Runs a script from the specified path.
34
+ lxd [options] Manages LXD containers and virtual machines.
35
+ baremetal [options] [workflow-id] [hostname] [ip-address] Manages baremetal server operations, including installation, database setup, commissioning, and user management.
36
+ help [command] display help for command
37
+
39
38
  ```
40
39
 
41
40
  ## Commands:
41
+
42
42
 
43
43
  ### `new` :
44
-
45
44
  ```
46
45
  Usage: underpost new [options] <app-name>
47
46
 
@@ -55,11 +54,11 @@ Options:
55
54
  --cluster Create deploy ID cluster files and sync to current cluster
56
55
  --dev Sets the development cli context
57
56
  -h, --help display help for command
58
-
57
+
59
58
  ```
59
+
60
60
 
61
61
  ### `start` :
62
-
63
62
  ```
64
63
  Usage: underpost start [options] <deploy-id> [env]
65
64
 
@@ -75,11 +74,11 @@ Options:
75
74
  --run Starts application servers and monitors their health.
76
75
  --build Triggers the client-side application build process.
77
76
  -h, --help display help for command
78
-
77
+
79
78
  ```
79
+
80
80
 
81
81
  ### `clone` :
82
-
83
82
  ```
84
83
  Usage: underpost clone [options] <uri>
85
84
 
@@ -92,11 +91,11 @@ Options:
92
91
  --bare Performs a bare clone, downloading only the .git files.
93
92
  -g8 Uses the g8 repository extension for cloning.
94
93
  -h, --help display help for command
95
-
94
+
96
95
  ```
96
+
97
97
 
98
98
  ### `pull` :
99
-
100
99
  ```
101
100
  Usage: underpost pull [options] <path> <uri>
102
101
 
@@ -110,11 +109,11 @@ Arguments:
110
109
  Options:
111
110
  -g8 Uses the g8 repository extension for pulling.
112
111
  -h, --help display help for command
113
-
112
+
114
113
  ```
114
+
115
115
 
116
116
  ### `cmt` :
117
-
118
117
  ```
119
118
  Usage: underpost cmt [options] <path> <commit-type> [module-tag] [message]
120
119
 
@@ -134,11 +133,11 @@ Options:
134
133
  --copy Copies the generated commit message to the clipboard.
135
134
  --info Displays information about available commit types.
136
135
  -h, --help display help for command
137
-
136
+
138
137
  ```
138
+
139
139
 
140
140
  ### `push` :
141
-
142
141
  ```
143
142
  Usage: underpost push [options] <path> <uri>
144
143
 
@@ -152,11 +151,11 @@ Options:
152
151
  -f Forces the push, overwriting the remote repository history.
153
152
  -g8 Uses the g8 repository extension for pushing.
154
153
  -h, --help display help for command
155
-
154
+
156
155
  ```
156
+
157
157
 
158
158
  ### `env` :
159
-
160
159
  ```
161
160
  Usage: underpost env [options] <deploy-id> [env]
162
161
 
@@ -171,11 +170,11 @@ Arguments:
171
170
 
172
171
  Options:
173
172
  -h, --help display help for command
174
-
173
+
175
174
  ```
175
+
176
176
 
177
177
  ### `config` :
178
-
179
178
  ```
180
179
  Usage: underpost config [options] <operator> [key] [value]
181
180
 
@@ -190,11 +189,11 @@ Arguments:
190
189
  Options:
191
190
  --plain Prints the configuration value in plain text.
192
191
  -h, --help display help for command
193
-
192
+
194
193
  ```
194
+
195
195
 
196
196
  ### `root` :
197
-
198
197
  ```
199
198
  Usage: underpost root [options]
200
199
 
@@ -202,11 +201,11 @@ Displays the root path of the npm installation.
202
201
 
203
202
  Options:
204
203
  -h, --help display help for command
205
-
204
+
206
205
  ```
206
+
207
207
 
208
208
  ### `cluster` :
209
-
210
209
  ```
211
210
  Usage: underpost cluster [options] [pod-name]
212
211
 
@@ -263,11 +262,11 @@ Options:
263
262
  --k3s Initializes the cluster using K3s (Lightweight
264
263
  Kubernetes).
265
264
  -h, --help display help for command
266
-
265
+
267
266
  ```
267
+
268
268
 
269
269
  ### `deploy` :
270
-
271
270
  ```
272
271
  Usage: underpost deploy [options] [deploy-list] [env]
273
272
 
@@ -316,11 +315,11 @@ Options:
316
315
  deployment operations.
317
316
  --restore-hosts Restores default `/etc/hosts` entries.
318
317
  -h, --help display help for command
319
-
318
+
320
319
  ```
320
+
321
321
 
322
322
  ### `secret` :
323
-
324
323
  ```
325
324
  Usage: underpost secret [options] <platform>
326
325
 
@@ -338,11 +337,11 @@ Options:
338
337
  --list Lists all available secrets for the
339
338
  platform.
340
339
  -h, --help display help for command
341
-
340
+
342
341
  ```
342
+
343
343
 
344
344
  ### `dockerfile-image-build` :
345
-
346
345
  ```
347
346
  Usage: underpost dockerfile-image-build [options]
348
347
 
@@ -369,11 +368,11 @@ Options:
369
368
  cache.
370
369
  --k3s-load Loads the image into a K3s cluster.
371
370
  -h, --help display help for command
372
-
371
+
373
372
  ```
373
+
374
374
 
375
375
  ### `dockerfile-pull-base-images` :
376
-
377
376
  ```
378
377
  Usage: underpost dockerfile-pull-base-images [options]
379
378
 
@@ -387,11 +386,11 @@ Options:
387
386
  --version Sets a custom version for the base images.
388
387
  --k3s-load Loads the image into a K3s cluster.
389
388
  -h, --help display help for command
390
-
389
+
391
390
  ```
391
+
392
392
 
393
393
  ### `install` :
394
-
395
394
  ```
396
395
  Usage: underpost install [options]
397
396
 
@@ -399,11 +398,11 @@ Quickly imports Underpost npm dependencies by copying them.
399
398
 
400
399
  Options:
401
400
  -h, --help display help for command
402
-
401
+
403
402
  ```
403
+
404
404
 
405
405
  ### `db` :
406
-
407
406
  ```
408
407
  Usage: underpost db [options] <deploy-list>
409
408
 
@@ -433,11 +432,11 @@ Options:
433
432
  --ns <ns-name> Optional: Specifies the namespace context for
434
433
  database operations.
435
434
  -h, --help display help for command
436
-
435
+
437
436
  ```
437
+
438
438
 
439
439
  ### `metadata` :
440
-
441
440
  ```
442
441
  Usage: underpost metadata [options] [deploy-id] [host] [path]
443
442
 
@@ -456,11 +455,11 @@ Options:
456
455
  --generate Generate cluster metadata
457
456
  --itc Apply under container execution context
458
457
  -h, --help display help for command
459
-
458
+
460
459
  ```
460
+
461
461
 
462
462
  ### `script` :
463
-
464
463
  ```
465
464
  Usage: underpost script [options] <operator> <script-name> [script-value]
466
465
 
@@ -482,11 +481,11 @@ Options:
482
481
  execution.
483
482
  --pod-name <pod-name> Optional: Specifies the pod name for script execution.
484
483
  -h, --help display help for command
485
-
484
+
486
485
  ```
486
+
487
487
 
488
488
  ### `cron` :
489
-
490
489
  ```
491
490
  Usage: underpost cron [options] [deploy-list] [job-list]
492
491
 
@@ -504,11 +503,11 @@ Options:
504
503
  --init Initializes cron jobs for the default deployment ID.
505
504
  --git Uploads cron job configurations to GitHub.
506
505
  -h, --help display help for command
507
-
506
+
508
507
  ```
508
+
509
509
 
510
510
  ### `fs` :
511
-
512
511
  ```
513
512
  Usage: underpost fs [options] [path]
514
513
 
@@ -526,11 +525,11 @@ Options:
526
525
  --force Forces the action, overriding any warnings or conflicts.
527
526
  --storage-file-path <storage-file-path> Specifies a custom file storage path.
528
527
  -h, --help display help for command
529
-
528
+
530
529
  ```
530
+
531
531
 
532
532
  ### `test` :
533
-
534
533
  ```
535
534
  Usage: underpost test [options] [deploy-list]
536
535
 
@@ -552,11 +551,11 @@ Options:
552
551
  --kind-type <kind-type> Optional: Specifies the Kind cluster type for
553
552
  tests.
554
553
  -h, --help display help for command
555
-
554
+
556
555
  ```
556
+
557
557
 
558
558
  ### `monitor` :
559
-
560
559
  ```
561
560
  Usage: underpost monitor [options] <deploy-id> [env]
562
561
 
@@ -579,11 +578,11 @@ Options:
579
578
  --sync Synchronizes with current proxy deployments and
580
579
  traffic configurations.
581
580
  -h, --help display help for command
582
-
581
+
583
582
  ```
583
+
584
584
 
585
585
  ### `ssh` :
586
-
587
586
  ```
588
587
  Usage: underpost ssh [options]
589
588
 
@@ -593,11 +592,11 @@ Options:
593
592
  --generate Generates new ssh credential and stores it in current private
594
593
  keys file storage.
595
594
  -h, --help display help for command
596
-
595
+
597
596
  ```
597
+
598
598
 
599
599
  ### `run` :
600
-
601
600
  ```
602
601
  Usage: underpost run [options] <runner-id> [path]
603
602
 
@@ -623,11 +622,11 @@ Options:
623
622
  --kubeadm Flag to indicate Kubeadm cluster type context
624
623
  --k3s Flag to indicate K3s cluster type context
625
624
  -h, --help display help for command
626
-
625
+
627
626
  ```
627
+
628
628
 
629
629
  ### `lxd` :
630
-
631
630
  ```
632
631
  Usage: underpost lxd [options]
633
632
 
@@ -668,11 +667,11 @@ Options:
668
667
  --auto-expose-k8s-ports <vm-id> Automatically exposes common Kubernetes
669
668
  ports for the specified VM.
670
669
  -h, --help display help for command
671
-
670
+
672
671
  ```
672
+
673
673
 
674
674
  ### `baremetal` :
675
-
676
675
  ```
677
676
  Usage: underpost baremetal [options] [workflow-id] [hostname] [ip-address]
678
677
 
@@ -706,5 +705,6 @@ Options:
706
705
  baremetal operations.
707
706
  --ls Lists available boot resources and machines.
708
707
  -h, --help display help for command
709
-
708
+
710
709
  ```
710
+
package/conf.js CHANGED
@@ -64,6 +64,7 @@ const DefaultConf = /**/ {
64
64
  '404',
65
65
  '500',
66
66
  'Pagination',
67
+ 'windowGetDimensions',
67
68
  ],
68
69
  default: [
69
70
  'MenuDefault',
@@ -17,7 +17,7 @@ spec:
17
17
  spec:
18
18
  containers:
19
19
  - name: dd-default-development-blue
20
- image: localhost/rockylinux9-underpost:v2.8.881
20
+ image: localhost/rockylinux9-underpost:v2.8.882
21
21
  # resources:
22
22
  # requests:
23
23
  # memory: "124Ki"
@@ -100,7 +100,7 @@ spec:
100
100
  spec:
101
101
  containers:
102
102
  - name: dd-default-development-green
103
- image: localhost/rockylinux9-underpost:v2.8.881
103
+ image: localhost/rockylinux9-underpost:v2.8.882
104
104
  # resources:
105
105
  # requests:
106
106
  # memory: "124Ki"
@@ -17,13 +17,13 @@ spec:
17
17
  spec:
18
18
  containers:
19
19
  - name: dd-test-development-blue
20
- image: localhost/rockylinux9-underpost:v2.8.881
20
+ image: localhost/rockylinux9-underpost:v2.8.882
21
21
  # resources:
22
22
  # requests:
23
- # memory: "94Ki"
23
+ # memory: "96294Ki"
24
24
  # cpu: "75m"
25
25
  # limits:
26
- # memory: "1504Ki"
26
+ # memory: "1540709Ki"
27
27
  # cpu: "1200m"
28
28
  command:
29
29
  - /bin/sh
@@ -104,13 +104,13 @@ spec:
104
104
  spec:
105
105
  containers:
106
106
  - name: dd-test-development-green
107
- image: localhost/rockylinux9-underpost:v2.8.881
107
+ image: localhost/rockylinux9-underpost:v2.8.882
108
108
  # resources:
109
109
  # requests:
110
- # memory: "94Ki"
110
+ # memory: "96294Ki"
111
111
  # cpu: "75m"
112
112
  # limits:
113
- # memory: "1504Ki"
113
+ # memory: "1540709Ki"
114
114
  # cpu: "1200m"
115
115
  command:
116
116
  - /bin/sh
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "type": "module",
3
3
  "main": "src/index.js",
4
4
  "name": "underpost",
5
- "version": "2.8.881",
5
+ "version": "2.8.882",
6
6
  "description": "pwa api rest template",
7
7
  "scripts": {
8
8
  "start": "env-cmd -f .env.production node --max-old-space-size=8192 src/server",
@@ -53,12 +53,20 @@ const DocumentService = {
53
53
  const limit = req.query.limit ? parseInt(req.query.limit, 10) : 6;
54
54
  const skip = req.query.skip ? parseInt(req.query.skip, 10) : 0;
55
55
 
56
- return await Document.find(queryPayload)
56
+ const data = await Document.find(queryPayload)
57
57
  .sort(sort)
58
58
  .limit(limit)
59
59
  .skip(skip)
60
60
  .populate(DocumentDto.populate.file())
61
61
  .populate(user && user.role !== 'guest' ? DocumentDto.populate.user() : null);
62
+
63
+ const lastDoc = await Document.findOne(queryPayload, '_id').sort({ createdAt: 1 });
64
+ const lastId = lastDoc ? lastDoc._id : null;
65
+
66
+ return {
67
+ data,
68
+ lastId,
69
+ };
62
70
  }
63
71
 
64
72
  switch (req.params.id) {
@@ -153,6 +153,8 @@ class UnderpostRepository {
153
153
  if (fs.existsSync(privateRepoPath)) fs.removeSync(privateRepoPath);
154
154
  shellExec(`cd .. && underpost clone ${process.env.GITHUB_USERNAME}/${privateRepoName}`);
155
155
  shellExec(`cd ${privateRepoPath} && underpost pull . ${process.env.GITHUB_USERNAME}/${privateRepoName}`);
156
+ shellExec(`underpost run secret`);
157
+ shellExec(`underpost run underpost-config`);
156
158
  const packageJsonDeploy = JSON.parse(fs.readFileSync(`./engine-private/conf/${deployId}/package.json`, 'utf8'));
157
159
  const packageJsonEngine = JSON.parse(fs.readFileSync(`./package.json`, 'utf8'));
158
160
  if (packageJsonDeploy.version !== packageJsonEngine.version) {