Skip to content

Commit 37749fa

Browse files
committed
fix(ngx-config-editor): incorrect behavior of adding directive #1038
1 parent ad00ed4 commit 37749fa

File tree

15 files changed

+1795
-2059
lines changed

15 files changed

+1795
-2059
lines changed

app/package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
"@ant-design/icons-vue": "^7.0.1",
1818
"@formkit/auto-animate": "^0.8.2",
1919
"@simplewebauthn/browser": "^13.1.0",
20+
"@uozi-admin/curd": "^4.1.3",
2021
"@vue/reactivity": "^3.5.13",
2122
"@vue/shared": "^3.5.13",
2223
"@vueuse/components": "^13.1.0",
@@ -36,7 +37,7 @@
3637
"marked-highlight": "^2.2.1",
3738
"nprogress": "^0.2.0",
3839
"pinia": "^3.0.2",
39-
"pinia-plugin-persistedstate": "^4.2.0",
40+
"pinia-plugin-persistedstate": "^4.3.0",
4041
"reconnecting-websocket": "^4.4.0",
4142
"sortablejs": "^1.15.6",
4243
"splitpanes": "^4.0.3",
@@ -65,7 +66,7 @@
6566
"@types/lodash": "^4.17.16",
6667
"@types/nprogress": "^0.2.3",
6768
"@types/sortablejs": "^1.15.8",
68-
"@vitejs/plugin-vue": "^5.2.3",
69+
"@vitejs/plugin-vue": "^5.2.4",
6970
"@vitejs/plugin-vue-jsx": "^4.1.2",
7071
"@vue/compiler-sfc": "^3.5.13",
7172
"@vue/tsconfig": "^0.7.0",

app/pnpm-lock.yaml

Lines changed: 175 additions & 76 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

app/src/components/NgxConfigEditor/directive/DirectiveEditor.vue

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,7 @@ onMounted(() => {
2222
})
2323
2424
function addDirective(directive: NgxDirective) {
25-
if (curIdx.value >= 0)
26-
ngxDirectives.value.splice(curIdx.value + 1, 0, directive)
27-
else
28-
ngxDirectives.value.push(directive)
25+
ngxDirectives.value.push(directive)
2926
}
3027
3128
function removeDirective(index: number) {

app/src/language/ar/app.po

Lines changed: 123 additions & 138 deletions
Large diffs are not rendered by default.

app/src/language/de_DE/app.po

Lines changed: 158 additions & 193 deletions
Large diffs are not rendered by default.

app/src/language/es/app.po

Lines changed: 146 additions & 168 deletions
Large diffs are not rendered by default.

app/src/language/fr_FR/app.po

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

app/src/language/ja_JP/app.po

Lines changed: 26 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -3,21 +3,24 @@
33
# Kohki Makimoto <[email protected]>, 2024.
44
msgid ""
55
msgstr ""
6-
"PO-Revision-Date: 2024-09-23 19:14+0000\n"
6+
"Project-Id-Version: \n"
7+
"POT-Creation-Date: \n"
8+
"PO-Revision-Date: 2025-05-11 11:32+0800\n"
79
"Last-Translator: Kohki Makimoto <[email protected]>\n"
810
"Language-Team: Japanese <https://weblate.nginxui.com/projects/nginx-ui/"
911
"frontend/ja/>\n"
1012
"Language: ja_JP\n"
13+
"MIME-Version: 1.0\n"
1114
"Content-Type: text/plain; charset=UTF-8\n"
1215
"Content-Transfer-Encoding: 8bit\n"
1316
"Plural-Forms: nplurals=1; plural=0;\n"
14-
"X-Generator: Weblate 5.6.2\n"
17+
"X-Generator: Poedit 3.6\n"
1518

1619
#: src/language/generate.ts:40
1720
msgid "[Nginx UI] ACME User: %{name}, Email: %{email}, CA Dir: %{caDir}"
1821
msgstr ""
19-
"[Nginx UI] ACME ユーザー: %{name}、メール: %{email}、CA ディレクトリ: "
20-
"%{caDir}"
22+
"[Nginx UI] ACME ユーザー: %{name}、メール: %{email}、CA ディレクトリ: %"
23+
"{caDir}"
2124

2225
#: src/language/generate.ts:26
2326
msgid "[Nginx UI] Backing up current certificate for later revocation"
@@ -383,7 +386,7 @@ msgstr "AutoCert が実行中です。お待ちください..."
383386

384387
#: src/components/ProcessingStatus/ProcessingStatus.vue:39
385388
msgid "AutoCert is running..."
386-
msgstr "\"AutoCert が実行中...\""
389+
msgstr "AutoCert が実行中..."
387390

388391
#: src/components/SystemRestore/SystemRestoreContent.vue:332
389392
msgid "Automatic Restart"
@@ -726,16 +729,16 @@ msgid ""
726729
"Check if the nginx access log path exists. By default, this path is obtained "
727730
"from 'nginx -V'. If it cannot be obtained or the obtained path does not "
728731
"point to a valid, existing file, an error will be reported. In this case, "
729-
"you need to modify the configuration file to specify the access log path."
730-
"Refer to the docs for more details: https://nginxui.com/zh_CN/guide/config-"
731-
"nginx.html#accesslogpath"
732+
"you need to modify the configuration file to specify the access log "
733+
"path.Refer to the docs for more details: https://nginxui.com/zh_CN/guide/"
734+
"config-nginx.html#accesslogpath"
732735
msgstr ""
733736
"nginx のアクセスログのパスが存在するか確認してください。デフォルトでは、この"
734737
"パスは 'nginx -V' から取得されます。取得できない場合、または取得したパスが有"
735738
"効な既存のファイルを指していない場合、エラーが報告されます。この場合、設定"
736739
"ファイルを変更してアクセスログのパスを指定する必要があります。詳細については"
737-
"ドキュメントを参照してください: https://nginxui.com/zh_CN/guide/config-nginx."
738-
"html#accesslogpath"
740+
"ドキュメントを参照してください: https://nginxui.com/zh_CN/guide/config-"
741+
"nginx.html#accesslogpath"
739742

740743
#: src/language/generate.ts:34
741744
msgid "Check if the nginx configuration directory exists"
@@ -750,16 +753,16 @@ msgid ""
750753
"Check if the nginx error log path exists. By default, this path is obtained "
751754
"from 'nginx -V'. If it cannot be obtained or the obtained path does not "
752755
"point to a valid, existing file, an error will be reported. In this case, "
753-
"you need to modify the configuration file to specify the error log path."
754-
"Refer to the docs for more details: https://nginxui.com/zh_CN/guide/config-"
755-
"nginx.html#errorlogpath"
756+
"you need to modify the configuration file to specify the error log "
757+
"path.Refer to the docs for more details: https://nginxui.com/zh_CN/guide/"
758+
"config-nginx.html#errorlogpath"
756759
msgstr ""
757760
"nginxのエラーログのパスが存在するか確認してください。デフォルトでは、このパス"
758761
"は'nginx -V'から取得されます。取得できない場合、または取得したパスが有効な既"
759762
"存のファイルを指していない場合、エラーが報告されます。この場合、設定ファイル"
760763
"を変更してエラーログのパスを指定する必要があります。詳細についてはドキュメン"
761-
"トを参照してください:https://nginxui.com/zh_CN/guide/config-nginx."
762-
"html#errorlogpath"
764+
"トを参照してください:https://nginxui.com/zh_CN/guide/config-"
765+
"nginx.html#errorlogpath"
763766

764767
#: src/language/generate.ts:10
765768
msgid ""
@@ -3917,11 +3920,11 @@ msgstr "SDK"
39173920

39183921
#: src/language/constants.ts:62
39193922
msgid "Search"
3920-
msgstr ""
3923+
msgstr "検索"
39213924

39223925
#: src/language/constants.ts:61
39233926
msgid "Search module name"
3924-
msgstr ""
3927+
msgstr "検索モジュール名"
39253928

39263929
#: src/views/preference/components/AuthSettings/TOTP.vue:109
39273930
msgid "Secret has been copied"
@@ -4012,16 +4015,16 @@ msgstr "HTTP01チャレンジプロバイダーの設定"
40124015

40134016
#: src/constants/errors/nginx_log.ts:8
40144017
msgid ""
4015-
"Settings.NginxLogSettings.AccessLogPath is empty, refer to https://nginxui."
4016-
"com/guide/config-nginx.html for more information"
4018+
"Settings.NginxLogSettings.AccessLogPath is empty, refer to https://"
4019+
"nginxui.com/guide/config-nginx.html for more information"
40174020
msgstr ""
40184021
"Settings.NginxLogSettings.AccessLogPath が空です。詳細については https://"
40194022
"nginxui.com/guide/config-nginx.html を参照してください"
40204023

40214024
#: src/constants/errors/nginx_log.ts:7
40224025
msgid ""
4023-
"Settings.NginxLogSettings.ErrorLogPath is empty, refer to https://nginxui."
4024-
"com/guide/config-nginx.html for more information"
4026+
"Settings.NginxLogSettings.ErrorLogPath is empty, refer to https://"
4027+
"nginxui.com/guide/config-nginx.html for more information"
40254028
msgstr ""
40264029
"Settings.NginxLogSettings.ErrorLogPath が空です。詳細については、https://"
40274030
"nginxui.com/guide/config-nginx.html を参照してください"
@@ -4506,7 +4509,7 @@ msgid ""
45064509
"After enabling it, you can view performance statistics"
45074510
msgstr ""
45084511
"このモジュールは、Nginxのリクエスト統計、接続数などのデータを提供します。有効"
4509-
"にすると、パフォーマンス統計を表示できます"
4512+
"にすると、パフォーマンス統計を表示できます"
45104513

45114514
#: src/views/certificate/components/RemoveCert.vue:103
45124515
msgid ""
@@ -4569,7 +4572,7 @@ msgid ""
45694572
"worker_processes or worker_connections"
45704573
msgstr ""
45714574
"ヒント: worker_processes または worker_connections を増やすことで、並列処理能"
4572-
"力を向上させることができます"
4575+
"力を向上させることができます"
45734576

45744577
#: src/views/notification/notificationColumns.tsx:52
45754578
msgid "Title"

0 commit comments

Comments
 (0)