Skip to content

Commit d263340

Browse files
committed
feat(nginx-dashboard): add modules table
1 parent c241122 commit d263340

File tree

20 files changed

+3627
-2354
lines changed

20 files changed

+3627
-2354
lines changed

api/nginx/modules.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import (
99

1010
func GetModules(c *gin.Context) {
1111
modules := nginx.GetModules()
12-
modulesList := make([]nginx.Module, 0, modules.Len())
12+
modulesList := make([]*nginx.Module, 0, modules.Len())
1313
for _, module := range modules.AllFromFront() {
1414
modulesList = append(modulesList, module)
1515
}

app/src/language/ar/app.po

Lines changed: 203 additions & 150 deletions
Large diffs are not rendered by default.

app/src/language/constants.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,4 +57,7 @@ export const msg = [
5757

5858
$gettext('All Recovery Codes Have Been Used'),
5959
$gettext('Please generate new recovery codes in the preferences immediately to prevent lockout.'),
60+
61+
$gettext('Search module name'),
62+
$gettext('Search'),
6063
]

app/src/language/de_DE/app.po

Lines changed: 258 additions & 185 deletions
Large diffs are not rendered by default.

app/src/language/en/app.po

Lines changed: 67 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ msgid "Action"
129129
msgstr ""
130130

131131
#: src/composables/usePerformanceMetrics.ts:84
132-
#: src/views/dashboard/components/PerformanceTablesCard.vue:43
132+
#: src/views/dashboard/components/PerformanceTablesCard.vue:44
133133
msgid "Active connections"
134134
msgstr ""
135135

@@ -341,7 +341,7 @@ msgstr ""
341341
msgid "Auto"
342342
msgstr ""
343343

344-
#: src/views/dashboard/components/PerformanceTablesCard.vue:200
344+
#: src/views/dashboard/components/PerformanceTablesCard.vue:201
345345
msgid "auto = CPU cores"
346346
msgstr ""
347347

@@ -479,7 +479,7 @@ msgid "Cache loader processing time threshold"
479479
msgstr ""
480480

481481
#: src/composables/usePerformanceMetrics.ts:139
482-
#: src/views/dashboard/components/PerformanceTablesCard.vue:94
482+
#: src/views/dashboard/components/PerformanceTablesCard.vue:95
483483
msgid "Cache manager processes"
484484
msgstr ""
485485

@@ -509,7 +509,7 @@ msgid "CADir"
509509
msgstr ""
510510

511511
#: src/views/dashboard/components/PerformanceStatisticsCard.vue:43
512-
#: src/views/dashboard/components/PerformanceTablesCard.vue:190
512+
#: src/views/dashboard/components/PerformanceTablesCard.vue:191
513513
msgid ""
514514
"Calculated based on worker_processes * worker_connections. Actual "
515515
"performance depends on hardware, configuration, and workload"
@@ -869,7 +869,7 @@ msgstr ""
869869
msgid "Configuration History"
870870
msgstr ""
871871

872-
#: src/views/dashboard/components/PerformanceTablesCard.vue:167
872+
#: src/views/dashboard/components/PerformanceTablesCard.vue:168
873873
msgid "Configuration information"
874874
msgstr ""
875875

@@ -1368,6 +1368,11 @@ msgstr ""
13681368
msgid "Duplicate to local successfully"
13691369
msgstr ""
13701370

1371+
#: src/views/dashboard/components/ModulesTable.vue:88
1372+
#: src/views/dashboard/components/ModulesTable.vue:93
1373+
msgid "Dynamic"
1374+
msgstr ""
1375+
13711376
#: src/components/StdDesign/StdDetail/StdDetail.vue:110
13721377
msgid "Edit"
13731378
msgstr ""
@@ -1385,7 +1390,7 @@ msgstr ""
13851390
msgid "Edit Site"
13861391
msgstr ""
13871392

1388-
#: src/routes/modules/streams.ts:19
1393+
#: src/routes/modules/streams.ts:20
13891394
msgid "Edit Stream"
13901395
msgstr ""
13911396

@@ -2090,7 +2095,7 @@ msgstr ""
20902095
msgid "Indexing..."
20912096
msgstr ""
20922097

2093-
#: src/views/dashboard/components/PerformanceTablesCard.vue:15
2098+
#: src/views/dashboard/components/PerformanceTablesCard.vue:16
20942099
msgid "Indicator"
20952100
msgstr ""
20962101

@@ -2322,6 +2327,11 @@ msgstr ""
23222327
msgid "Load successfully"
23232328
msgstr ""
23242329

2330+
#: src/views/dashboard/components/ModulesTable.vue:101
2331+
#: src/views/dashboard/components/ModulesTable.vue:106
2332+
msgid "Loaded"
2333+
msgstr ""
2334+
23252335
#: src/views/dashboard/components/ParamsOpt/ProxyCacheConfig.vue:313
23262336
msgid "Loader Files"
23272337
msgstr ""
@@ -2454,7 +2464,7 @@ msgstr ""
24542464
msgid "Manual"
24552465
msgstr ""
24562466

2457-
#: src/views/dashboard/components/PerformanceTablesCard.vue:201
2467+
#: src/views/dashboard/components/PerformanceTablesCard.vue:202
24582468
msgid "manually set"
24592469
msgstr ""
24602470

@@ -2463,7 +2473,7 @@ msgid "Master"
24632473
msgstr ""
24642474

24652475
#: src/composables/usePerformanceMetrics.ts:134
2466-
#: src/views/dashboard/components/PerformanceTablesCard.vue:89
2476+
#: src/views/dashboard/components/PerformanceTablesCard.vue:90
24672477
msgid "Master process"
24682478
msgstr ""
24692479

@@ -2497,15 +2507,15 @@ msgid "Maximum number of concurrent connections"
24972507
msgstr ""
24982508

24992509
#: src/composables/usePerformanceMetrics.ts:174
2500-
#: src/views/dashboard/components/PerformanceTablesCard.vue:125
2510+
#: src/views/dashboard/components/PerformanceTablesCard.vue:126
25012511
msgid "Maximum number of connections per worker process"
25022512
msgstr ""
25032513

25042514
#: src/views/dashboard/components/ParamsOpt/ProxyCacheConfig.vue:201
25052515
msgid "Maximum total size of the cache"
25062516
msgstr ""
25072517

2508-
#: src/views/dashboard/components/PerformanceTablesCard.vue:195
2518+
#: src/views/dashboard/components/PerformanceTablesCard.vue:196
25092519
msgid "Maximum worker process number:"
25102520
msgstr ""
25112521

@@ -2566,6 +2576,14 @@ msgstr ""
25662576
msgid "Modify Mode"
25672577
msgstr ""
25682578

2579+
#: src/views/dashboard/components/ModulesTable.vue:28
2580+
msgid "Module"
2581+
msgstr ""
2582+
2583+
#: src/views/dashboard/components/PerformanceTablesCard.vue:215
2584+
msgid "Modules"
2585+
msgstr ""
2586+
25692587
#: src/components/NgxConfigEditor/directive/DirectiveAdd.vue:51
25702588
msgid "Multi-line Directive"
25712589
msgstr ""
@@ -2703,7 +2721,7 @@ msgid "Nginx Control Mode"
27032721
msgstr ""
27042722

27052723
#: src/composables/usePerformanceMetrics.ts:149
2706-
#: src/views/dashboard/components/PerformanceTablesCard.vue:104
2724+
#: src/views/dashboard/components/PerformanceTablesCard.vue:105
27072725
msgid "Nginx CPU usage rate"
27082726
msgstr ""
27092727

@@ -2740,7 +2758,7 @@ msgid "Nginx Log Directory Whitelist"
27402758
msgstr ""
27412759

27422760
#: src/composables/usePerformanceMetrics.ts:154
2743-
#: src/views/dashboard/components/PerformanceTablesCard.vue:109
2761+
#: src/views/dashboard/components/PerformanceTablesCard.vue:110
27442762
msgid "Nginx Memory usage"
27452763
msgstr ""
27462764

@@ -2790,7 +2808,7 @@ msgstr ""
27902808
msgid "Nginx test failed: {0}"
27912809
msgstr ""
27922810

2793-
#: src/views/dashboard/components/PerformanceTablesCard.vue:180
2811+
#: src/views/dashboard/components/PerformanceTablesCard.vue:181
27942812
msgid "Nginx theoretical maximum performance"
27952813
msgstr ""
27962814

@@ -2888,6 +2906,11 @@ msgstr ""
28882906
msgid "Not Found"
28892907
msgstr ""
28902908

2909+
#: src/views/dashboard/components/ModulesTable.vue:102
2910+
#: src/views/dashboard/components/ModulesTable.vue:106
2911+
msgid "Not Loaded"
2912+
msgstr ""
2913+
28912914
#: src/components/CertInfo/CertInfo.vue:41
28922915
msgid "Not Valid Before: %{date}"
28932916
msgstr ""
@@ -2931,8 +2954,8 @@ msgstr ""
29312954

29322955
#: src/composables/usePerformanceMetrics.ts:129
29332956
#: src/composables/usePerformanceMetrics.ts:169
2934-
#: src/views/dashboard/components/PerformanceTablesCard.vue:120
2935-
#: src/views/dashboard/components/PerformanceTablesCard.vue:84
2957+
#: src/views/dashboard/components/PerformanceTablesCard.vue:121
2958+
#: src/views/dashboard/components/PerformanceTablesCard.vue:85
29362959
msgid "Number of worker processes"
29372960
msgstr ""
29382961

@@ -3037,7 +3060,7 @@ msgid "OS:"
30373060
msgstr ""
30383061

30393062
#: src/composables/usePerformanceMetrics.ts:144
3040-
#: src/views/dashboard/components/PerformanceTablesCard.vue:99
3063+
#: src/views/dashboard/components/PerformanceTablesCard.vue:100
30413064
msgid "Other Nginx processes"
30423065
msgstr ""
30433066

@@ -3297,7 +3320,7 @@ msgstr ""
32973320
msgid "Process Distribution"
32983321
msgstr ""
32993322

3300-
#: src/views/dashboard/components/PerformanceTablesCard.vue:154
3323+
#: src/views/dashboard/components/PerformanceTablesCard.vue:155
33013324
msgid "Process information"
33023325
msgstr ""
33033326

@@ -3330,7 +3353,7 @@ msgid "Read dir failed: {0}"
33303353
msgstr ""
33313354

33323355
#: src/composables/usePerformanceMetrics.ts:104
3333-
#: src/views/dashboard/components/PerformanceTablesCard.vue:63
3356+
#: src/views/dashboard/components/PerformanceTablesCard.vue:64
33343357
msgid "Read requests"
33353358
msgstr ""
33363359

@@ -3566,7 +3589,7 @@ msgstr ""
35663589
msgid "Renew successfully"
35673590
msgstr ""
35683591

3569-
#: src/views/dashboard/components/PerformanceTablesCard.vue:141
3592+
#: src/views/dashboard/components/PerformanceTablesCard.vue:142
35703593
msgid "Request statistics"
35713594
msgstr ""
35723595

@@ -3598,7 +3621,7 @@ msgid ""
35983621
msgstr ""
35993622

36003623
#: src/composables/usePerformanceMetrics.ts:109
3601-
#: src/views/dashboard/components/PerformanceTablesCard.vue:68
3624+
#: src/views/dashboard/components/PerformanceTablesCard.vue:69
36023625
msgid "Responses"
36033626
msgstr ""
36043627

@@ -3782,6 +3805,14 @@ msgstr ""
37823805
msgid "SDK"
37833806
msgstr ""
37843807

3808+
#: src/language/constants.ts:62
3809+
msgid "Search"
3810+
msgstr ""
3811+
3812+
#: src/language/constants.ts:61
3813+
msgid "Search module name"
3814+
msgstr ""
3815+
37853816
#: src/views/preference/components/AuthSettings/TOTP.vue:109
37863817
msgid "Secret has been copied"
37873818
msgstr ""
@@ -4007,8 +4038,14 @@ msgstr ""
40074038
msgid "Start Restore"
40084039
msgstr ""
40094040

4041+
#: src/views/dashboard/components/ModulesTable.vue:89
4042+
#: src/views/dashboard/components/ModulesTable.vue:93
4043+
msgid "Static"
4044+
msgstr ""
4045+
40104046
#: src/views/certificate/ACMEUser.vue:65
40114047
#: src/views/certificate/CertificateList/certColumns.tsx:65
4048+
#: src/views/dashboard/components/ModulesTable.vue:97
40124049
#: src/views/environments/list/envColumns.tsx:44
40134050
#: src/views/site/site_edit/components/RightPanel/Basic.vue:28
40144051
#: src/views/site/site_list/columns.tsx:90 src/views/stream/StreamList.vue:47
@@ -4273,11 +4310,11 @@ msgstr ""
42734310
msgid "The username or password is incorrect"
42744311
msgstr ""
42754312

4276-
#: src/views/dashboard/components/PerformanceTablesCard.vue:184
4313+
#: src/views/dashboard/components/PerformanceTablesCard.vue:185
42774314
msgid "Theoretical maximum concurrent connections:"
42784315
msgstr ""
42794316

4280-
#: src/views/dashboard/components/PerformanceTablesCard.vue:188
4317+
#: src/views/dashboard/components/PerformanceTablesCard.vue:189
42814318
msgid "Theoretical maximum RPS (Requests Per Second):"
42824319
msgstr ""
42834320

@@ -4371,7 +4408,7 @@ msgstr ""
43714408
msgid "Tips"
43724409
msgstr ""
43734410

4374-
#: src/views/dashboard/components/PerformanceTablesCard.vue:206
4411+
#: src/views/dashboard/components/PerformanceTablesCard.vue:207
43754412
msgid ""
43764413
"Tips: You can increase the concurrency processing capacity by increasing "
43774414
"worker_processes or worker_connections"
@@ -4429,12 +4466,12 @@ msgstr[0] ""
44294466
msgstr[1] ""
44304467

44314468
#: src/composables/usePerformanceMetrics.ts:94
4432-
#: src/views/dashboard/components/PerformanceTablesCard.vue:53
4469+
#: src/views/dashboard/components/PerformanceTablesCard.vue:54
44334470
msgid "Total connections"
44344471
msgstr ""
44354472

44364473
#: src/composables/usePerformanceMetrics.ts:89
4437-
#: src/views/dashboard/components/PerformanceTablesCard.vue:48
4474+
#: src/views/dashboard/components/PerformanceTablesCard.vue:49
44384475
msgid "Total handshakes"
44394476
msgstr ""
44404477

@@ -4447,7 +4484,7 @@ msgid "Total Nginx Processes"
44474484
msgstr ""
44484485

44494486
#: src/composables/usePerformanceMetrics.ts:99
4450-
#: src/views/dashboard/components/PerformanceTablesCard.vue:58
4487+
#: src/views/dashboard/components/PerformanceTablesCard.vue:59
44514488
msgid "Total requests"
44524489
msgstr ""
44534490

@@ -4474,6 +4511,7 @@ msgid "Two-factor authentication required"
44744511
msgstr ""
44754512

44764513
#: src/views/certificate/CertificateList/certColumns.tsx:25
4514+
#: src/views/dashboard/components/ModulesTable.vue:84
44774515
#: src/views/nginx_log/NginxLogList.vue:14
44784516
#: src/views/notification/notificationColumns.tsx:9
44794517
#: src/views/preference/components/ExternalNotify/columns.tsx:18
@@ -4578,7 +4616,7 @@ msgstr ""
45784616
msgid "Valid"
45794617
msgstr ""
45804618

4581-
#: src/views/dashboard/components/PerformanceTablesCard.vue:21
4619+
#: src/views/dashboard/components/PerformanceTablesCard.vue:22
45824620
msgid "Value"
45834621
msgstr ""
45844622

@@ -4622,7 +4660,7 @@ msgid "Viewed"
46224660
msgstr ""
46234661

46244662
#: src/composables/usePerformanceMetrics.ts:114
4625-
#: src/views/dashboard/components/PerformanceTablesCard.vue:73
4663+
#: src/views/dashboard/components/PerformanceTablesCard.vue:74
46264664
msgid "Waiting processes"
46274665
msgstr ""
46284666

0 commit comments

Comments
 (0)