A free, open, self-hosted app platform (GNU AGPLv3): one-click app deploys, Traefik reverse proxy with automatic SSL, rootless Docker support, gluetun VPN routing, and a web dashboard to manage it all. Free & open forever to self-host; optional paid hosted services fund it. See PROMISE.md. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com> Signed-off-by: librelad <librelad@digitalangels.vip>
26 lines
868 B
Bash
26 lines
868 B
Bash
#!/bin/bash
|
|
|
|
# Tools-tab entry — invoked by `libreportal app tool dashy shortcuts_manage`.
|
|
# Resolved by dockerAppRunTool: tool id `shortcuts_manage` →
|
|
# function `appDashyManageShortcuts`.
|
|
#
|
|
# Modal field (see webui_tools.sh):
|
|
# selected — comma-separated app slugs the user wants on the dashboard.
|
|
#
|
|
# Persists the selection to CFG_DASHY_SHORTCUTS, then regenerates dashy's
|
|
# conf.yml via the existing appDashyUpdateConf and restarts the container.
|
|
appDashyManageShortcuts()
|
|
{
|
|
local tool_args="$1"
|
|
local selected
|
|
selected=$(toolArgsGet "$tool_args" "selected")
|
|
selected="${selected//%7C/|}"
|
|
|
|
local cfg_file="${containers_dir}dashy/dashy.config"
|
|
updateConfigOption "CFG_DASHY_SHORTCUTS" "$selected" "$cfg_file"
|
|
export CFG_DASHY_SHORTCUTS="$selected"
|
|
isSuccessful "Saved CFG_DASHY_SHORTCUTS=$selected"
|
|
|
|
appDashyUpdateConf
|
|
}
|