Skip to content

Commit f725462

Browse files
committed
fix: update version prompt confirmation handling and clean up unused DNS provider filters #1471
1 parent bc53510 commit f725462

File tree

5 files changed

+9
-9
lines changed

5 files changed

+9
-9
lines changed

app/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "nginx-ui-app-next",
33
"type": "module",
4-
"version": "2.3.0",
4+
"version": "2.3.1",
55
"packageManager": "pnpm@10.24.0+sha512.01ff8ae71b4419903b65c60fb2dc9d34cf8bb6e06d03bde112ef38f7a34d6904c424ba66bea5cdcf12890230bf39f9580473140ed9c946fef328b6e5238a345a",
66
"scripts": {
77
"dev": "vite --host",

app/src/components/AutoCertForm/DNSChallenge.vue

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ import type { Ref } from 'vue'
55
import type { AutoCertOptions, DNSProvider } from '@/api/auto_cert'
66
import auto_cert from '@/api/auto_cert'
77
import dns_credential from '@/api/dns_credential'
8-
import { filterAllowedDnsProviders } from '@/constants/dns_providers'
98
109
const providers = ref([]) as Ref<DNSProvider[]>
1110
const credentials = ref<SelectProps['options']>([])
@@ -72,7 +71,7 @@ watch(current, () => {
7271
7372
onMounted(async () => {
7473
await auto_cert.get_dns_providers().then(r => {
75-
providers.value = filterAllowedDnsProviders(r)
74+
providers.value = r
7675
}).then(() => {
7776
init()
7877
})

app/src/version.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"version":"2.3.0","build_id":1,"total_build":510}
1+
{"version":"2.3.1","build_id":1,"total_build":511}

app/src/views/dns/components/DNSChallenge.vue

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ import type { Ref } from 'vue'
55
import type { DNSProvider } from '@/api/auto_cert'
66
import type { DnsCredential } from '@/api/dns_credential'
77
import auto_cert from '@/api/auto_cert'
8-
import { filterAllowedDnsProviders } from '@/constants/dns_providers'
98
109
const providers = ref([]) as Ref<DNSProvider[]>
1110
@@ -23,7 +22,7 @@ async function init() {
2322
}
2423
2524
auto_cert.get_dns_providers().then(r => {
26-
providers.value = filterAllowedDnsProviders(r)
25+
providers.value = r
2726
}).then(() => {
2827
init()
2928
})

version.sh

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,11 @@ while true; do
1212
# Show confirmation prompt with original input
1313
echo "You entered version: ${VERSION}"
1414
read -p "Is this correct? [Y/n] " confirm
15-
case ${confirm,,} in
16-
y|yes|"") break ;;
17-
n|no)
15+
case "$confirm" in
16+
[Yy]|[Yy][Ee][Ss]|"")
17+
break
18+
;;
19+
[Nn]|[Nn][Oo])
1820
echo "Restarting version input..."
1921
continue
2022
;;

0 commit comments

Comments
 (0)