diff --git a/scripts/ct/debian.sh b/scripts/ct/debian.sh deleted file mode 100644 index 54b1748..0000000 --- a/scripts/ct/debian.sh +++ /dev/null @@ -1,43 +0,0 @@ -#!/usr/bin/env bash -SCRIPT_DIR="$(dirname "$0")" -source "$SCRIPT_DIR/../core/build.func" -# Copyright (c) 2021-2025 tteck -# Author: tteck (tteckster) -# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE -# Source: https://www.debian.org/ - -APP="Debian" -var_tags="${var_tags:-os}" -var_cpu="${var_cpu:-1}" -var_ram="${var_ram:-512}" -var_disk="${var_disk:-2}" -var_os="${var_os:-debian}" -var_version="${var_version:-13}" -var_unprivileged="${var_unprivileged:-1}" - -header_info "$APP" -variables -color -catch_errors - -function update_script() { - header_info - check_container_storage - check_container_resources - if [[ ! -d /var ]]; then - msg_error "No ${APP} Installation Found!" - exit - fi - msg_info "Updating $APP LXC" - $STD apt update - $STD apt -y upgrade - msg_ok "Updated $APP LXC" - exit -} - -start -build_container -description - -msg_ok "Completed Successfully!\n" -echo -e "${CREATING}${GN}${APP} setup has been successfully initialized!${CL}" diff --git a/scripts/install/debian-install.sh b/scripts/install/debian-install.sh deleted file mode 100644 index 7b00eca..0000000 --- a/scripts/install/debian-install.sh +++ /dev/null @@ -1,24 +0,0 @@ -#!/usr/bin/env bash - -# Copyright (c) 2021-2025 tteck -# Author: tteck (tteckster) -# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE -# Source: https://www.debian.org/ - -source /dev/stdin <<<"$FUNCTIONS_FILE_PATH" -color -verb_ip6 -catch_errors -setting_up_container -network_check -update_os - -motd_ssh -customize - -msg_info "Cleaning up" -$STD apt -y autoremove -$STD apt -y autoclean -$STD apt -y clean -msg_ok "Cleaned" - diff --git a/src/app/_components/ScriptCard.tsx b/src/app/_components/ScriptCard.tsx index 3b8d407..2929954 100644 --- a/src/app/_components/ScriptCard.tsx +++ b/src/app/_components/ScriptCard.tsx @@ -8,20 +8,49 @@ import { TypeBadge, UpdateableBadge } from './Badge'; interface ScriptCardProps { script: ScriptCard; onClick: (script: ScriptCard) => void; + isSelected?: boolean; + onToggleSelect?: (slug: string) => void; } -export function ScriptCard({ script, onClick }: ScriptCardProps) { +export function ScriptCard({ script, onClick, isSelected = false, onToggleSelect }: ScriptCardProps) { const [imageError, setImageError] = useState(false); const handleImageError = () => { setImageError(true); }; + const handleCheckboxClick = (e: React.MouseEvent) => { + e.stopPropagation(); + if (onToggleSelect && script.slug) { + onToggleSelect(script.slug); + } + }; + return (