mirror of
https://github.com/unraid/api.git
synced 2026-01-04 23:50:37 -06:00
refactor: update UserProfile positioning and clean up unraid components
- Adjusted the positioning of the UserProfile component to be absolute, ensuring it aligns correctly within its parent container. - Modified the clean-unraid.sh script to remove the entire components directory instead of just the standalone apps directory, enhancing cleanup efficiency. - Added a cleanup step in deploy-dev.sh to clear the remote standalone directory before deployment, ensuring a fresh setup. These changes improve the layout of the UserProfile component and streamline the deployment process by ensuring no residual files remain.
This commit is contained in:
@@ -85,7 +85,7 @@ onMounted(() => {
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<div id="UserProfile" class="text-foreground relative z-20 flex flex-col h-full gap-y-1 pt-2 pr-2">
|
||||
<div id="UserProfile" class="text-foreground z-20 flex flex-col h-full gap-y-1 pt-2 pr-2 absolute top-0 right-0">
|
||||
<div
|
||||
v-if="bannerGradient"
|
||||
class="absolute z-0 w-full top-0 bottom-0 right-0"
|
||||
|
||||
@@ -15,12 +15,12 @@ echo "Cleaning deployed files from Unraid server: $server_name"
|
||||
exit_code=0
|
||||
|
||||
# Remove standalone apps directory
|
||||
echo "Removing standalone apps directory..."
|
||||
ssh root@"${server_name}" "rm -rf /usr/local/emhttp/plugins/dynamix.my.servers/unraid-components/standalone/"
|
||||
standalone_exit_code=$?
|
||||
if [ $standalone_exit_code -ne 0 ]; then
|
||||
echo "Warning: Failed to remove standalone apps directory"
|
||||
exit_code=$standalone_exit_code
|
||||
echo "Removing components directory..."
|
||||
ssh root@"${server_name}" "rm -rf /usr/local/emhttp/plugins/dynamix.my.servers/unraid-components/"
|
||||
components_exit_code=$?
|
||||
if [ $components_exit_code -ne 0 ]; then
|
||||
echo "Warning: Failed to remove components directory"
|
||||
exit_code=$components_exit_code
|
||||
fi
|
||||
|
||||
# Clean up auth-request.php file
|
||||
|
||||
@@ -34,6 +34,8 @@ if [ "$has_standalone" = true ]; then
|
||||
echo "Deploying standalone apps..."
|
||||
# Ensure remote directory exists
|
||||
ssh root@"${server_name}" "mkdir -p /usr/local/emhttp/plugins/dynamix.my.servers/unraid-components/standalone/"
|
||||
# Clear the remote standalone directory before rsyncing
|
||||
ssh root@"${server_name}" "rm -rf /usr/local/emhttp/plugins/dynamix.my.servers/unraid-components/standalone/*"
|
||||
# Run rsync with proper quoting
|
||||
rsync -avz --delete -e "ssh" "$standalone_directory" "root@${server_name}:/usr/local/emhttp/plugins/dynamix.my.servers/unraid-components/standalone/"
|
||||
standalone_exit_code=$?
|
||||
|
||||
Reference in New Issue
Block a user