File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 6969 " 5. View Server Logs" \
7070 " 6. Reinstall SlowDNS Server" \
7171 " 7. Uninstall SlowDNS Server" \
72- " ←. Back to Main Menu " )
72+ " ←. Back" )
7373 else
7474 opt=$( gum choose --limit=1 --header " Choose Option" \
7575 " 1. Install SlowDNS Server" \
76- " ←. Back to Main Menu " )
76+ " ←. Back" )
7777 fi
7878
7979 clear
170170 echo " "
171171 read -p " Press Enter to continue..."
172172 ;;
173- " ←. Back to Main Menu " )
174- return 0
173+ " ←. Back" )
174+ asx
175175 ;;
176176 * )
177177 echo -e " ${red} [ Error ]${nc} Invalid option selected."
Original file line number Diff line number Diff line change 273273 read -p " Press Enter to continue..."
274274 ;;
275275 " ←. Back" | " ←. Back" )
276- return 0
276+ asx
277277 ;;
278278 * )
279279 echo -e " ${red} [ Error ]${nc} Invalid option selected."
Original file line number Diff line number Diff line change @@ -54,4 +54,4 @@ Upgrade: websocket[crlf][crlf]
5454\`\`\`
5555EOF
5656
57- gum confirm " Return to menu?" && menu
57+ gum confirm " Return to menu?" && asx
Original file line number Diff line number Diff line change @@ -20,22 +20,22 @@ gum format --theme dracula --type markdown <<< "# 🧨 Delete SSH Accounts"
2020if [ -z " $USER_LIST " ]; then
2121 gum style --foreground 1 " No SSH Account available to delete."
2222 echo -e
23- gum confirm " Return to menu?" && menu
23+ gum confirm " Return to menu?" && asx
2424 exit 1
2525fi
2626
2727SEL=$( echo -e " $USER_LIST " | gum choose --height=15 --no-limit --header=" Use SPACE or X to select" )
2828if [ -z " $SEL " ]; then
2929 gum style --foreground 1 " No accounts selected. Use SPACE or X to select"
3030 echo -e
31- gum confirm " Return to menu?" && menu
31+ gum confirm " Return to menu?" && asx
3232 exit 0
3333fi
3434
3535if ! gum confirm " Delete selected accounts?" ; then
3636 gum format --type markdown <<< " **❎ Cancelled.**"
3737 echo -e
38- gum confirm " Return to menu?" && menu
38+ gum confirm " Return to menu?" && asx
3939 exit 0
4040fi
4141
@@ -50,4 +50,4 @@ done <<< "$SEL"
5050gum format --type markdown <<< " # 🧹 $COUNT Account(s) deleted"
5151
5252echo -e
53- gum confirm " Return to menu?" && menu
53+ gum confirm " Return to menu?" && asx
Original file line number Diff line number Diff line change 2727fi
2828
2929echo -e
30- gum confirm " Return to menu?" && menu
30+ gum confirm " Return to menu?" && asx
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ new_res=$(echo "$old_res" | gum write --placeholder "Write message to show after
1313if [ -z " $new_res " ] || [ " $new_res " = " $old_res " ]; then
1414 gum style --foreground 1 " No changes detected. Response not updated."
1515 echo -e
16- gum confirm " Return to menu?" && menu
16+ gum confirm " Return to menu?" && asx
1717 exit 0
1818fi
1919
@@ -28,4 +28,4 @@ systemctl restart ws-proxy.service
2828gum style --foreground 212 " ✅ 101 Response Updated:"
2929
3030echo -e
31- gum confirm " Return to menu?" && menu
31+ gum confirm " Return to menu?" && asx
Original file line number Diff line number Diff line change @@ -18,14 +18,14 @@ done <<< "$users"
1818if [[ ${# entries[@]} -eq 0 ]]; then
1919 gum style --foreground 1 " No accounts found."
2020 echo -e
21- gum confirm " Return to menu?" && menu
21+ gum confirm " Return to menu?" && asx
2222fi
2323
2424selected=$( printf " %s\n" " ${entries[@]} " | gum choose --height 20 --no-limit --header=" Use SPACE or X to select" )
2525if [[ -z " $selected " ]]; then
2626 gum style --foreground 1 " No accounts selected. Use SPACE or X to select"
2727 echo -e
28- gum confirm " Return to menu?" && menu
28+ gum confirm " Return to menu?" && asx
2929 exit 0
3030fi
3131
4747fi
4848
4949echo -e
50- gum confirm " Return to menu?" && menu
50+ gum confirm " Return to menu?" && asx
Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ gum format --theme dracula --type markdown "# 🔄 Renew Expired Accounts"
1919if [ ${# EXPIRED_USERS[@]} -eq 0 ]; then
2020 gum style --foreground 1 " No expired accounts found."
2121 echo -e
22- gum confirm " Return to menu?" && menu
22+ gum confirm " Return to menu?" && asx
2323 exit 0
2424fi
2525
@@ -28,15 +28,15 @@ user=$(printf "%s\n" "${EXPIRED_USERS[@]}" | gum choose --height=10 --header="Us
2828if [ -z " $user " ]; then
2929 gum style --foreground 1 " No accounts selected. Use SPACE or X to select"
3030 echo -e
31- gum confirm " Return to menu?" && menu
31+ gum confirm " Return to menu?" && asx
3232fi
3333
3434echo -ne " \e[38;5;212m📅 Enter number of days to extend (e.g. 7):\e[0m "
3535read -r days
3636if [[ ! " $days " =~ ^[0-9]+$ ]]; then
3737 gum style --foreground 1 " Invalid number of days."
3838 echo -e
39- gum confirm " Return to menu?" && menu
39+ gum confirm " Return to menu?" && asx
4040fi
4141
4242expire_date=$( date -u -d " +$days days" +%Y-%m-%d)
@@ -54,4 +54,4 @@ gum format --theme dracula --type markdown <<EOF
5454EOF
5555
5656echo -e
57- gum confirm " Return to menu?" && menu
57+ gum confirm " Return to menu?" && asx
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ read -r domain
88if [[ -z " $domain " ]]; then
99 gum style --foreground 1 " No domain entered."
1010 echo -e
11- gum confirm " Return to menu?" && menu
11+ gum confirm " Return to menu?" && asx
1212 exit 0
1313fi
1414
@@ -33,4 +33,4 @@ systemctl restart nginx >/dev/null 2>&1
3333gum style --foreground 10 " 🎉 Domain and SSL setup complete!"
3434
3535echo -e
36- gum confirm " Return to menu?" && menu
36+ gum confirm " Return to menu?" && asx
Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ selected_services=$(printf "%s\n" "${!services[@]}" | gum choose --no-limit --he
3636if [[ -z " $selected_services " ]]; then
3737 gum style --foreground 1 " No service selected."
3838 echo -e
39- gum confirm " Return to menu?" && menu
39+ gum confirm " Return to menu?" && asx
4040 exit 0
4141fi
4242
@@ -51,4 +51,4 @@ while IFS= read -r service; do
5151done <<< " $selected_services"
5252
5353echo -e
54- gum confirm " Return to menu?" && menu
54+ gum confirm " Return to menu?" && asx
You can’t perform that action at this time.
0 commit comments