underpost 2.8.866 → 2.8.871
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.
- package/README.md +52 -36
- package/bin/build.js +1 -0
- package/bin/deploy.js +30 -1
- package/bin/file.js +3 -0
- package/bin/util.js +1 -56
- package/cli.md +88 -86
- package/conf.js +1 -1
- package/manifests/deployment/dd-default-development/deployment.yaml +2 -2
- package/manifests/deployment/mongo-express/deployment.yaml +12 -12
- package/manifests/maas/nvim.sh +91 -0
- package/package.json +1 -10
- package/src/api/file/file.service.js +28 -8
- package/src/api/user/user.router.js +24 -0
- package/src/api/user/user.service.js +3 -4
- package/src/cli/cluster.js +2 -13
- package/src/cli/cron.js +0 -1
- package/src/cli/db.js +0 -19
- package/src/cli/deploy.js +17 -26
- package/src/cli/fs.js +1 -0
- package/src/cli/index.js +1 -0
- package/src/cli/run.js +9 -2
- package/src/client/components/core/CalendarCore.js +1 -1
- package/src/client/components/core/CssCore.js +12 -0
- package/src/client/components/core/Docs.js +2 -2
- package/src/client/components/core/FullScreen.js +19 -28
- package/src/client/components/core/Input.js +1 -0
- package/src/client/components/core/Modal.js +66 -63
- package/src/client/components/core/ObjectLayerEngine.js +229 -4
- package/src/client/components/core/ObjectLayerEngineModal.js +441 -0
- package/src/client/components/core/Panel.js +4 -1
- package/src/client/components/core/PanelForm.js +1 -1
- package/src/client/components/core/Router.js +29 -25
- package/src/client/components/core/ToggleSwitch.js +15 -1
- package/src/client/components/core/VanillaJs.js +12 -13
- package/src/client/public/default/assets/mailer/api-user-default-avatar.png +0 -0
- package/src/index.js +1 -1
- package/src/server/client-build.js +3 -11
- package/src/server/client-icons.js +6 -78
- package/src/server/conf.js +20 -64
- package/src/server/process.js +2 -1
- package/test/api.test.js +3 -2
- package/bin/cyberia0.js +0 -78
package/cli.md
CHANGED
|
@@ -1,46 +1,47 @@
|
|
|
1
|
-
## underpost ci/cd cli v2.8.
|
|
1
|
+
## underpost ci/cd cli v2.8.871
|
|
2
2
|
|
|
3
3
|
### Usage: `underpost [options] [command]`
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
4
|
+
|
|
5
|
+
```
|
|
6
|
+
Options:
|
|
7
|
+
-V, --version output the version number
|
|
8
|
+
-h, --help display help for command
|
|
8
9
|
|
|
9
10
|
Commands:
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
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
|
+
|
|
38
39
|
```
|
|
39
40
|
|
|
40
41
|
## Commands:
|
|
41
|
-
|
|
42
42
|
|
|
43
43
|
### `new` :
|
|
44
|
+
|
|
44
45
|
```
|
|
45
46
|
Usage: underpost new [options] <app-name>
|
|
46
47
|
|
|
@@ -53,11 +54,11 @@ Options:
|
|
|
53
54
|
--deploy-id Crete deploy ID conf env files
|
|
54
55
|
--dev Sets the development cli context
|
|
55
56
|
-h, --help display help for command
|
|
56
|
-
|
|
57
|
+
|
|
57
58
|
```
|
|
58
|
-
|
|
59
59
|
|
|
60
60
|
### `start` :
|
|
61
|
+
|
|
61
62
|
```
|
|
62
63
|
Usage: underpost start [options] <deploy-id> [env]
|
|
63
64
|
|
|
@@ -73,11 +74,11 @@ Options:
|
|
|
73
74
|
--run Starts application servers and monitors their health.
|
|
74
75
|
--build Triggers the client-side application build process.
|
|
75
76
|
-h, --help display help for command
|
|
76
|
-
|
|
77
|
+
|
|
77
78
|
```
|
|
78
|
-
|
|
79
79
|
|
|
80
80
|
### `clone` :
|
|
81
|
+
|
|
81
82
|
```
|
|
82
83
|
Usage: underpost clone [options] <uri>
|
|
83
84
|
|
|
@@ -90,11 +91,11 @@ Options:
|
|
|
90
91
|
--bare Performs a bare clone, downloading only the .git files.
|
|
91
92
|
-g8 Uses the g8 repository extension for cloning.
|
|
92
93
|
-h, --help display help for command
|
|
93
|
-
|
|
94
|
+
|
|
94
95
|
```
|
|
95
|
-
|
|
96
96
|
|
|
97
97
|
### `pull` :
|
|
98
|
+
|
|
98
99
|
```
|
|
99
100
|
Usage: underpost pull [options] <path> <uri>
|
|
100
101
|
|
|
@@ -108,11 +109,11 @@ Arguments:
|
|
|
108
109
|
Options:
|
|
109
110
|
-g8 Uses the g8 repository extension for pulling.
|
|
110
111
|
-h, --help display help for command
|
|
111
|
-
|
|
112
|
+
|
|
112
113
|
```
|
|
113
|
-
|
|
114
114
|
|
|
115
115
|
### `cmt` :
|
|
116
|
+
|
|
116
117
|
```
|
|
117
118
|
Usage: underpost cmt [options] <path> <commit-type> [module-tag] [message]
|
|
118
119
|
|
|
@@ -132,11 +133,11 @@ Options:
|
|
|
132
133
|
--copy Copies the generated commit message to the clipboard.
|
|
133
134
|
--info Displays information about available commit types.
|
|
134
135
|
-h, --help display help for command
|
|
135
|
-
|
|
136
|
+
|
|
136
137
|
```
|
|
137
|
-
|
|
138
138
|
|
|
139
139
|
### `push` :
|
|
140
|
+
|
|
140
141
|
```
|
|
141
142
|
Usage: underpost push [options] <path> <uri>
|
|
142
143
|
|
|
@@ -150,11 +151,11 @@ Options:
|
|
|
150
151
|
-f Forces the push, overwriting the remote repository history.
|
|
151
152
|
-g8 Uses the g8 repository extension for pushing.
|
|
152
153
|
-h, --help display help for command
|
|
153
|
-
|
|
154
|
+
|
|
154
155
|
```
|
|
155
|
-
|
|
156
156
|
|
|
157
157
|
### `env` :
|
|
158
|
+
|
|
158
159
|
```
|
|
159
160
|
Usage: underpost env [options] <deploy-id> [env]
|
|
160
161
|
|
|
@@ -169,11 +170,11 @@ Arguments:
|
|
|
169
170
|
|
|
170
171
|
Options:
|
|
171
172
|
-h, --help display help for command
|
|
172
|
-
|
|
173
|
+
|
|
173
174
|
```
|
|
174
|
-
|
|
175
175
|
|
|
176
176
|
### `config` :
|
|
177
|
+
|
|
177
178
|
```
|
|
178
179
|
Usage: underpost config [options] <operator> [key] [value]
|
|
179
180
|
|
|
@@ -188,11 +189,11 @@ Arguments:
|
|
|
188
189
|
Options:
|
|
189
190
|
--plain Prints the configuration value in plain text.
|
|
190
191
|
-h, --help display help for command
|
|
191
|
-
|
|
192
|
+
|
|
192
193
|
```
|
|
193
|
-
|
|
194
194
|
|
|
195
195
|
### `root` :
|
|
196
|
+
|
|
196
197
|
```
|
|
197
198
|
Usage: underpost root [options]
|
|
198
199
|
|
|
@@ -200,11 +201,11 @@ Displays the root path of the npm installation.
|
|
|
200
201
|
|
|
201
202
|
Options:
|
|
202
203
|
-h, --help display help for command
|
|
203
|
-
|
|
204
|
+
|
|
204
205
|
```
|
|
205
|
-
|
|
206
206
|
|
|
207
207
|
### `cluster` :
|
|
208
|
+
|
|
208
209
|
```
|
|
209
210
|
Usage: underpost cluster [options] [pod-name]
|
|
210
211
|
|
|
@@ -261,11 +262,11 @@ Options:
|
|
|
261
262
|
--k3s Initializes the cluster using K3s (Lightweight
|
|
262
263
|
Kubernetes).
|
|
263
264
|
-h, --help display help for command
|
|
264
|
-
|
|
265
|
+
|
|
265
266
|
```
|
|
266
|
-
|
|
267
267
|
|
|
268
268
|
### `deploy` :
|
|
269
|
+
|
|
269
270
|
```
|
|
270
271
|
Usage: underpost deploy [options] [deploy-list] [env]
|
|
271
272
|
|
|
@@ -307,13 +308,15 @@ Options:
|
|
|
307
308
|
current resource deployments.
|
|
308
309
|
--kubeadm Enables the kubeadm context for deployment
|
|
309
310
|
operations.
|
|
311
|
+
--etc-hosts Enables the etc-hosts context for
|
|
312
|
+
deployment operations.
|
|
310
313
|
--restore-hosts Restores default `/etc/hosts` entries.
|
|
311
314
|
-h, --help display help for command
|
|
312
|
-
|
|
315
|
+
|
|
313
316
|
```
|
|
314
|
-
|
|
315
317
|
|
|
316
318
|
### `secret` :
|
|
319
|
+
|
|
317
320
|
```
|
|
318
321
|
Usage: underpost secret [options] <platform>
|
|
319
322
|
|
|
@@ -331,11 +334,11 @@ Options:
|
|
|
331
334
|
--list Lists all available secrets for the
|
|
332
335
|
platform.
|
|
333
336
|
-h, --help display help for command
|
|
334
|
-
|
|
337
|
+
|
|
335
338
|
```
|
|
336
|
-
|
|
337
339
|
|
|
338
340
|
### `dockerfile-image-build` :
|
|
341
|
+
|
|
339
342
|
```
|
|
340
343
|
Usage: underpost dockerfile-image-build [options]
|
|
341
344
|
|
|
@@ -362,11 +365,11 @@ Options:
|
|
|
362
365
|
cache.
|
|
363
366
|
--k3s-load Loads the image into a K3s cluster.
|
|
364
367
|
-h, --help display help for command
|
|
365
|
-
|
|
368
|
+
|
|
366
369
|
```
|
|
367
|
-
|
|
368
370
|
|
|
369
371
|
### `dockerfile-pull-base-images` :
|
|
372
|
+
|
|
370
373
|
```
|
|
371
374
|
Usage: underpost dockerfile-pull-base-images [options]
|
|
372
375
|
|
|
@@ -380,11 +383,11 @@ Options:
|
|
|
380
383
|
--version Sets a custom version for the base images.
|
|
381
384
|
--k3s-load Loads the image into a K3s cluster.
|
|
382
385
|
-h, --help display help for command
|
|
383
|
-
|
|
386
|
+
|
|
384
387
|
```
|
|
385
|
-
|
|
386
388
|
|
|
387
389
|
### `install` :
|
|
390
|
+
|
|
388
391
|
```
|
|
389
392
|
Usage: underpost install [options]
|
|
390
393
|
|
|
@@ -392,11 +395,11 @@ Quickly imports Underpost npm dependencies by copying them.
|
|
|
392
395
|
|
|
393
396
|
Options:
|
|
394
397
|
-h, --help display help for command
|
|
395
|
-
|
|
398
|
+
|
|
396
399
|
```
|
|
397
|
-
|
|
398
400
|
|
|
399
401
|
### `db` :
|
|
402
|
+
|
|
400
403
|
```
|
|
401
404
|
Usage: underpost db [options] <deploy-list>
|
|
402
405
|
|
|
@@ -426,11 +429,11 @@ Options:
|
|
|
426
429
|
--ns <ns-name> Optional: Specifies the namespace context for
|
|
427
430
|
database operations.
|
|
428
431
|
-h, --help display help for command
|
|
429
|
-
|
|
432
|
+
|
|
430
433
|
```
|
|
431
|
-
|
|
432
434
|
|
|
433
435
|
### `metadata` :
|
|
436
|
+
|
|
434
437
|
```
|
|
435
438
|
Usage: underpost metadata [options] [deploy-id] [host] [path]
|
|
436
439
|
|
|
@@ -449,11 +452,11 @@ Options:
|
|
|
449
452
|
--generate Generate cluster metadata
|
|
450
453
|
--itc Apply under container execution context
|
|
451
454
|
-h, --help display help for command
|
|
452
|
-
|
|
455
|
+
|
|
453
456
|
```
|
|
454
|
-
|
|
455
457
|
|
|
456
458
|
### `script` :
|
|
459
|
+
|
|
457
460
|
```
|
|
458
461
|
Usage: underpost script [options] <operator> <script-name> [script-value]
|
|
459
462
|
|
|
@@ -475,11 +478,11 @@ Options:
|
|
|
475
478
|
execution.
|
|
476
479
|
--pod-name <pod-name> Optional: Specifies the pod name for script execution.
|
|
477
480
|
-h, --help display help for command
|
|
478
|
-
|
|
481
|
+
|
|
479
482
|
```
|
|
480
|
-
|
|
481
483
|
|
|
482
484
|
### `cron` :
|
|
485
|
+
|
|
483
486
|
```
|
|
484
487
|
Usage: underpost cron [options] [deploy-list] [job-list]
|
|
485
488
|
|
|
@@ -497,11 +500,11 @@ Options:
|
|
|
497
500
|
--init Initializes cron jobs for the default deployment ID.
|
|
498
501
|
--git Uploads cron job configurations to GitHub.
|
|
499
502
|
-h, --help display help for command
|
|
500
|
-
|
|
503
|
+
|
|
501
504
|
```
|
|
502
|
-
|
|
503
505
|
|
|
504
506
|
### `fs` :
|
|
507
|
+
|
|
505
508
|
```
|
|
506
509
|
Usage: underpost fs [options] [path]
|
|
507
510
|
|
|
@@ -519,11 +522,11 @@ Options:
|
|
|
519
522
|
--force Forces the action, overriding any warnings or conflicts.
|
|
520
523
|
--storage-file-path <storage-file-path> Specifies a custom file storage path.
|
|
521
524
|
-h, --help display help for command
|
|
522
|
-
|
|
525
|
+
|
|
523
526
|
```
|
|
524
|
-
|
|
525
527
|
|
|
526
528
|
### `test` :
|
|
529
|
+
|
|
527
530
|
```
|
|
528
531
|
Usage: underpost test [options] [deploy-list]
|
|
529
532
|
|
|
@@ -545,11 +548,11 @@ Options:
|
|
|
545
548
|
--kind-type <kind-type> Optional: Specifies the Kind cluster type for
|
|
546
549
|
tests.
|
|
547
550
|
-h, --help display help for command
|
|
548
|
-
|
|
551
|
+
|
|
549
552
|
```
|
|
550
|
-
|
|
551
553
|
|
|
552
554
|
### `monitor` :
|
|
555
|
+
|
|
553
556
|
```
|
|
554
557
|
Usage: underpost monitor [options] <deploy-id> [env]
|
|
555
558
|
|
|
@@ -572,11 +575,11 @@ Options:
|
|
|
572
575
|
--sync Synchronizes with current proxy deployments and
|
|
573
576
|
traffic configurations.
|
|
574
577
|
-h, --help display help for command
|
|
575
|
-
|
|
578
|
+
|
|
576
579
|
```
|
|
577
|
-
|
|
578
580
|
|
|
579
581
|
### `ssh` :
|
|
582
|
+
|
|
580
583
|
```
|
|
581
584
|
Usage: underpost ssh [options]
|
|
582
585
|
|
|
@@ -586,11 +589,11 @@ Options:
|
|
|
586
589
|
--generate Generates new ssh credential and stores it in current private
|
|
587
590
|
keys file storage.
|
|
588
591
|
-h, --help display help for command
|
|
589
|
-
|
|
592
|
+
|
|
590
593
|
```
|
|
591
|
-
|
|
592
594
|
|
|
593
595
|
### `run` :
|
|
596
|
+
|
|
594
597
|
```
|
|
595
598
|
Usage: underpost run [options] <runner-id> [path]
|
|
596
599
|
|
|
@@ -612,11 +615,11 @@ Options:
|
|
|
612
615
|
--container-name <container-name> Optional: Specifies the container name for test execution.
|
|
613
616
|
--namespace <namespace> Optional: Specifies the namespace for test execution.
|
|
614
617
|
-h, --help display help for command
|
|
615
|
-
|
|
618
|
+
|
|
616
619
|
```
|
|
617
|
-
|
|
618
620
|
|
|
619
621
|
### `lxd` :
|
|
622
|
+
|
|
620
623
|
```
|
|
621
624
|
Usage: underpost lxd [options]
|
|
622
625
|
|
|
@@ -657,11 +660,11 @@ Options:
|
|
|
657
660
|
--auto-expose-k8s-ports <vm-id> Automatically exposes common Kubernetes
|
|
658
661
|
ports for the specified VM.
|
|
659
662
|
-h, --help display help for command
|
|
660
|
-
|
|
663
|
+
|
|
661
664
|
```
|
|
662
|
-
|
|
663
665
|
|
|
664
666
|
### `baremetal` :
|
|
667
|
+
|
|
665
668
|
```
|
|
666
669
|
Usage: underpost baremetal [options] [workflow-id] [hostname] [ip-address]
|
|
667
670
|
|
|
@@ -695,6 +698,5 @@ Options:
|
|
|
695
698
|
baremetal operations.
|
|
696
699
|
--ls Lists available boot resources and machines.
|
|
697
700
|
-h, --help display help for command
|
|
698
|
-
|
|
701
|
+
|
|
699
702
|
```
|
|
700
|
-
|
package/conf.js
CHANGED
|
@@ -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.
|
|
20
|
+
image: localhost/rockylinux9-underpost:v2.8.871
|
|
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.
|
|
103
|
+
image: localhost/rockylinux9-underpost:v2.8.871
|
|
104
104
|
# resources:
|
|
105
105
|
# requests:
|
|
106
106
|
# memory: "124Ki"
|
|
@@ -20,16 +20,16 @@ spec:
|
|
|
20
20
|
ports:
|
|
21
21
|
- containerPort: 8081
|
|
22
22
|
env:
|
|
23
|
-
- name: ME_CONFIG_MONGODB_ADMINUSERNAME
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
- name: ME_CONFIG_MONGODB_ADMINPASSWORD
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
23
|
+
# - name: ME_CONFIG_MONGODB_ADMINUSERNAME
|
|
24
|
+
# valueFrom:
|
|
25
|
+
# secretKeyRef:
|
|
26
|
+
# name: mongodb-secret
|
|
27
|
+
# key: username
|
|
28
|
+
# - name: ME_CONFIG_MONGODB_ADMINPASSWORD
|
|
29
|
+
# valueFrom:
|
|
30
|
+
# secretKeyRef:
|
|
31
|
+
# name: mongodb-secret
|
|
32
|
+
# key: password
|
|
33
33
|
- name: ME_CONFIG_BASICAUTH_USERNAME
|
|
34
34
|
valueFrom:
|
|
35
35
|
secretKeyRef:
|
|
@@ -42,8 +42,8 @@ spec:
|
|
|
42
42
|
key: password
|
|
43
43
|
- name: ME_CONFIG_MONGODB_SERVER
|
|
44
44
|
value: 'mongodb-0.mongodb-service'
|
|
45
|
-
- name: ME_CONFIG_MONGODB_ENABLE_ADMIN
|
|
46
|
-
|
|
45
|
+
# - name: ME_CONFIG_MONGODB_ENABLE_ADMIN
|
|
46
|
+
# value: 'true'
|
|
47
47
|
- name: ME_CONFIG_MONGODB_PORT
|
|
48
48
|
value: '27017'
|
|
49
49
|
---
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
#!/usr/bin/env bash
|
|
2
|
+
set -euo pipefail
|
|
3
|
+
|
|
4
|
+
sudo dnf install -y neovim
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
sudo rm -rf ~/.config/nvim
|
|
8
|
+
sudo rm -rf ~/.local/share/nvim
|
|
9
|
+
|
|
10
|
+
mkdir -p ~/.config/nvim
|
|
11
|
+
mkdir -p ~/.local/share/nvim/site/autoload
|
|
12
|
+
|
|
13
|
+
# Install vim-plug for Neovim
|
|
14
|
+
curl -fLo ~/.local/share/nvim/site/autoload/plug.vim --create-dirs \
|
|
15
|
+
https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
|
|
16
|
+
|
|
17
|
+
# Create an init.vim with nvim-tree.lua + web-devicons + gruvbox (theme)
|
|
18
|
+
cat > ~/.config/nvim/init.vim <<'EOF'
|
|
19
|
+
" Minimal init.vim to use nvim-tree.lua + gruvbox theme via vim-plug
|
|
20
|
+
|
|
21
|
+
" --- vim-plug manager
|
|
22
|
+
call plug#begin('~/.local/share/nvim/plugged')
|
|
23
|
+
|
|
24
|
+
" file explorer (nvim-tree)
|
|
25
|
+
Plug 'nvim-tree/nvim-tree.lua'
|
|
26
|
+
Plug 'nvim-tree/nvim-web-devicons' " optional: file icons
|
|
27
|
+
|
|
28
|
+
" colorscheme
|
|
29
|
+
Plug 'morhetz/gruvbox'
|
|
30
|
+
|
|
31
|
+
" sensible defaults, optional
|
|
32
|
+
Plug 'tpope/vim-sensible'
|
|
33
|
+
|
|
34
|
+
call plug#end()
|
|
35
|
+
|
|
36
|
+
" --- UI settings
|
|
37
|
+
syntax on
|
|
38
|
+
filetype plugin indent on
|
|
39
|
+
set number
|
|
40
|
+
set relativenumber
|
|
41
|
+
if has('termguicolors')
|
|
42
|
+
set termguicolors
|
|
43
|
+
endif
|
|
44
|
+
set background=dark
|
|
45
|
+
|
|
46
|
+
" gruvbox options (optional)
|
|
47
|
+
let g:gruvbox_contrast_dark = 'soft'
|
|
48
|
+
colorscheme gruvbox
|
|
49
|
+
|
|
50
|
+
" --- nvim-tree configuration (Lua block)
|
|
51
|
+
lua << 'LUA'
|
|
52
|
+
-- safe require
|
|
53
|
+
local ok, tree = pcall(require, "nvim-tree")
|
|
54
|
+
if not ok then
|
|
55
|
+
return
|
|
56
|
+
end
|
|
57
|
+
tree.setup{
|
|
58
|
+
view = {
|
|
59
|
+
width = 30,
|
|
60
|
+
side = "left",
|
|
61
|
+
preserve_window_proportions = true,
|
|
62
|
+
},
|
|
63
|
+
renderer = {
|
|
64
|
+
indent_markers = { enable = true },
|
|
65
|
+
},
|
|
66
|
+
actions = {
|
|
67
|
+
open_file = {
|
|
68
|
+
quit_on_open = false,
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
LUA
|
|
73
|
+
|
|
74
|
+
" --- mappings: Ctrl-n toggles nvim-tree
|
|
75
|
+
nnoremap <C-n> :NvimTreeToggle<CR>
|
|
76
|
+
|
|
77
|
+
" Open nvim-tree on startup when opening nvim with no file args
|
|
78
|
+
autocmd StdinReadPre * let s:std_in=1
|
|
79
|
+
autocmd VimEnter * if argc() == 0 && !exists('s:std_in') | NvimTreeToggle | wincmd p | endif
|
|
80
|
+
EOF
|
|
81
|
+
|
|
82
|
+
# Fix permissions in case something was left owned by root (happens if you used sudo on these paths before)
|
|
83
|
+
sudo chown -R "$USER":"$USER" ~/.config/nvim ~/.local/share/nvim 2>/dev/null || true
|
|
84
|
+
|
|
85
|
+
# Install plugins automatically (non-interactive)
|
|
86
|
+
nvim +PlugInstall +qall
|
|
87
|
+
|
|
88
|
+
echo
|
|
89
|
+
echo "Done. Plugins installed."
|
|
90
|
+
echo "Run 'nvim' and press Ctrl-n to toggle the file tree."
|
|
91
|
+
echo "If colorscheme is not correct, ensure your terminal supports truecolor and TERM is xterm-256color."
|
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.
|
|
5
|
+
"version": "2.8.871",
|
|
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",
|
|
@@ -58,11 +58,8 @@
|
|
|
58
58
|
"axios": "^1.5.1",
|
|
59
59
|
"chai": "^5.1.0",
|
|
60
60
|
"clean-jsdoc-theme": "^4.3.0",
|
|
61
|
-
"cli-progress": "^3.12.0",
|
|
62
|
-
"cli-spinners": "^3.0.0",
|
|
63
61
|
"clipboardy": "^4.0.0",
|
|
64
62
|
"cloudinary": "^2.5.1",
|
|
65
|
-
"color": "^4.2.3",
|
|
66
63
|
"colors": "^1.4.0",
|
|
67
64
|
"commander": "^12.1.0",
|
|
68
65
|
"compression": "^1.7.4",
|
|
@@ -74,7 +71,6 @@
|
|
|
74
71
|
"express": "^4.18.2",
|
|
75
72
|
"express-fileupload": "^1.4.3",
|
|
76
73
|
"favicons": "^7.2.0",
|
|
77
|
-
"font-awesome-assets": "^0.0.9",
|
|
78
74
|
"fs-extra": "^11.1.1",
|
|
79
75
|
"fullcalendar": "^6.1.15",
|
|
80
76
|
"html-minifier-terser": "^7.2.0",
|
|
@@ -82,11 +78,8 @@
|
|
|
82
78
|
"ignore-walk": "^6.0.4",
|
|
83
79
|
"iovalkey": "^0.2.1",
|
|
84
80
|
"jimp": "^0.22.12",
|
|
85
|
-
"joystick-controller": "^1.0.15",
|
|
86
81
|
"json-colorizer": "^2.2.2",
|
|
87
82
|
"jsonwebtoken": "^9.0.2",
|
|
88
|
-
"keyword-extractor": "^0.0.28",
|
|
89
|
-
"log-update": "^6.0.0",
|
|
90
83
|
"mariadb": "^3.2.2",
|
|
91
84
|
"marked": "^12.0.2",
|
|
92
85
|
"mocha": "^10.8.2",
|
|
@@ -97,7 +90,6 @@
|
|
|
97
90
|
"pathfinding": "^0.4.18",
|
|
98
91
|
"peer": "^1.0.2",
|
|
99
92
|
"peerjs": "^1.5.2",
|
|
100
|
-
"pixi.js": "7.4.2",
|
|
101
93
|
"prom-client": "^15.1.2",
|
|
102
94
|
"public-ip": "^6.0.1",
|
|
103
95
|
"read": "^2.1.0",
|
|
@@ -116,7 +108,6 @@
|
|
|
116
108
|
"vanilla-jsoneditor": "^2.3.2",
|
|
117
109
|
"winston": "^3.11.0"
|
|
118
110
|
},
|
|
119
|
-
"devDependencies": {},
|
|
120
111
|
"publishConfig": {
|
|
121
112
|
"provenance": true,
|
|
122
113
|
"access": "public",
|