Skip to content

Commit 5b1d34d

Browse files
feat: Add inline editing and manual script entry functionality
- Add inline editing for script names and container IDs in installed scripts table - Add manual script entry form for pre-installed containers - Update database and API to support script_name editing - Improve dark mode hover effects for table rows - Add form validation and error handling - Support both local and SSH execution modes for manual entries
1 parent 677729a commit 5b1d34d

File tree

6 files changed

+356
-23
lines changed

6 files changed

+356
-23
lines changed

.gitattributes

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
# Set default behavior to automatically normalize line endings
2+
* text=auto
3+
4+
# Shell scripts should always use LF
5+
*.sh text eol=lf
6+
*.func text eol=lf
7+
*.bash text eol=lf
8+
9+
# Windows batch files should use CRLF
10+
*.bat text eol=crlf
11+
*.cmd text eol=crlf
12+
13+
# Configuration files should use LF
14+
*.conf text eol=lf
15+
*.config text eol=lf
16+
*.ini text eol=lf
17+
*.toml text eol=lf
18+
*.yaml text eol=lf
19+
*.yml text eol=lf
20+
*.json text eol=lf
21+
22+
# Source code files should use LF
23+
*.js text eol=lf
24+
*.ts text eol=lf
25+
*.tsx text eol=lf
26+
*.jsx text eol=lf
27+
*.css text eol=lf
28+
*.scss text eol=lf
29+
*.html text eol=lf
30+
*.xml text eol=lf
31+
32+
# Binary files
33+
*.png binary
34+
*.jpg binary
35+
*.jpeg binary
36+
*.gif binary
37+
*.ico binary
38+
*.db binary
39+
*.exe binary
40+
*.dll binary

scripts/ct/debian.sh

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
#!/usr/bin/env bash
2+
SCRIPT_DIR="$(dirname "$0")"
3+
source "$SCRIPT_DIR/../core/build.func"
4+
# Copyright (c) 2021-2025 tteck
5+
# Author: tteck (tteckster)
6+
# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE
7+
# Source: https://www.debian.org/
8+
9+
APP="Debian"
10+
var_tags="${var_tags:-os}"
11+
var_cpu="${var_cpu:-1}"
12+
var_ram="${var_ram:-512}"
13+
var_disk="${var_disk:-2}"
14+
var_os="${var_os:-debian}"
15+
var_version="${var_version:-13}"
16+
var_unprivileged="${var_unprivileged:-1}"
17+
18+
header_info "$APP"
19+
variables
20+
color
21+
catch_errors
22+
23+
function update_script() {
24+
header_info
25+
check_container_storage
26+
check_container_resources
27+
if [[ ! -d /var ]]; then
28+
msg_error "No ${APP} Installation Found!"
29+
exit
30+
fi
31+
msg_info "Updating $APP LXC"
32+
$STD apt update
33+
$STD apt -y upgrade
34+
msg_ok "Updated $APP LXC"
35+
exit
36+
}
37+
38+
start
39+
build_container
40+
description
41+
42+
msg_ok "Completed Successfully!\n"
43+
echo -e "${CREATING}${GN}${APP} setup has been successfully initialized!${CL}"

scripts/install/debian-install.sh

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
#!/usr/bin/env bash
2+
3+
# Copyright (c) 2021-2025 tteck
4+
# Author: tteck (tteckster)
5+
# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE
6+
# Source: https://www.debian.org/
7+
8+
source /dev/stdin <<<"$FUNCTIONS_FILE_PATH"
9+
color
10+
verb_ip6
11+
catch_errors
12+
setting_up_container
13+
network_check
14+
update_os
15+
16+
motd_ssh
17+
customize
18+
19+
msg_info "Cleaning up"
20+
$STD apt -y autoremove
21+
$STD apt -y autoclean
22+
$STD apt -y clean
23+
msg_ok "Cleaned"
24+

0 commit comments

Comments
 (0)