Add GitHub link, fix Settings page, direct users to setup on install
Plugin/varaverk.plg: - Add support="https://github.com/FailedProxy/Varaverk/issues" - Install completion log now says "open Varaverk to complete setup" with navigation hint — user lands on wizard automatically Plugin/unraid/VaraverkSettings.page: - Fix stale SCRIPTS_DIR default (unraid_scripts → Varaverk) - Add GitHub / Issues / Changelog links at bottom of settings page Plugin/unraid/Varaverk.page: - Small "⎋ GitHub" link right-aligned in the tab bar links to github.com/FailedProxy/Varaverk in a new tab
This commit is contained in:
@@ -40,6 +40,12 @@ $tabLabels = ['monitor' => 'Monitor', 'scheduler' => 'Scheduler', 'docker' => 'D
|
||||
<?= $tabLabels[$t] ?? ucfirst($t) ?>
|
||||
</a>
|
||||
<?php endforeach; ?>
|
||||
<a href="https://github.com/FailedProxy/Varaverk" target="_blank"
|
||||
style="margin-left:auto;padding:0 10px;font-size:10px;color:#333;text-decoration:none;
|
||||
display:flex;align-items:center;letter-spacing:.03em;"
|
||||
title="GitHub — source, issues, changelog">
|
||||
⎋ GitHub
|
||||
</a>
|
||||
</div>
|
||||
|
||||
<!-- Tab content -->
|
||||
|
||||
@@ -0,0 +1,38 @@
|
||||
Menu="OtherSettings"
|
||||
Title="Varaverk"
|
||||
Icon="varaverk.png"
|
||||
---
|
||||
<?php
|
||||
$cfg = parse_plugin_cfg('varaverk');
|
||||
$scripts_dir = $cfg['SCRIPTS_DIR'] ?? '/mnt/user/appdata/Varaverk';
|
||||
?>
|
||||
|
||||
<form markdown="1" name="varaverk_settings" method="POST" action="/update.php" target="progressFrame">
|
||||
<input type="hidden" name="#file" value="varaverk/varaverk.cfg">
|
||||
|
||||
_(Scripts directory)_:
|
||||
: <input type="text" name="SCRIPTS_DIR" maxlength="255" value="<?=htmlspecialchars($scripts_dir)?>">
|
||||
|
||||
> Path where Varaverk is installed. Changing this only affects the plugin UI — update any scripts that reference the old path manually.
|
||||
|
||||
|
||||
: <input type="submit" value="_(Apply)_">
|
||||
|
||||
</form>
|
||||
|
||||
<div style="margin-top:24px;padding-top:16px;border-top:1px solid #2a2a2a;font-family:monospace;font-size:11px;color:#444;">
|
||||
<a href="https://github.com/FailedProxy/Varaverk" target="_blank"
|
||||
style="color:#555;text-decoration:none;">
|
||||
⎋ github.com/FailedProxy/Varaverk
|
||||
</a>
|
||||
·
|
||||
<a href="https://github.com/FailedProxy/Varaverk/issues" target="_blank"
|
||||
style="color:#555;text-decoration:none;">
|
||||
Issues
|
||||
</a>
|
||||
·
|
||||
<a href="https://github.com/FailedProxy/Varaverk/blob/main/CHANGELOG.md" target="_blank"
|
||||
style="color:#555;text-decoration:none;">
|
||||
Changelog
|
||||
</a>
|
||||
</div>
|
||||
+3
-1
@@ -10,6 +10,7 @@
|
||||
<!ENTITY plugdir "/usr/local/emhttp/plugins/varaverk">
|
||||
]>
|
||||
<PLUGIN name="&name;" author="&author;" version="&version;" launch="&launch;"
|
||||
support="https://github.com/FailedProxy/Varaverk/issues"
|
||||
icon="/plugins/varaverk/icons/varaverk.png">
|
||||
|
||||
<CHANGES>
|
||||
@@ -114,7 +115,8 @@ if [[ ! -f "$CONF_DIR/master.conf" ]]; then
|
||||
fi
|
||||
fi
|
||||
|
||||
log "Install complete"
|
||||
log "Install complete — open Varaverk in Unraid to complete setup"
|
||||
log "→ Plugins → Varaverk (or navigate to Settings → Utilities → Varaverk)"
|
||||
]]>
|
||||
</INLINE>
|
||||
</FILE>
|
||||
|
||||
Reference in New Issue
Block a user