Skip to content

Commit 90a775e

Browse files
authored
feat(web): copy to webgui repo script docs + wc build options (#1287)
Per discussion w/ Eli removed the activation code debugger file from the repo. I kept it locally though, hence the `.gitignore` update. Which means I kept the helper method in the activation code extractor class so I could still use it. coderabbit also made a good suggestion in the webgui repo where I synced changes from this repo for web-component-extractor so I implemented and tested it. Included via [`ec29069` (#1287)](ec29069)
1 parent bfdfb14 commit 90a775e

File tree

5 files changed

+6
-14
lines changed

5 files changed

+6
-14
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,3 +103,6 @@ result-*
103103

104104
# Webgui sync script helpers
105105
web/scripts/.sync-webgui-repo-*
106+
107+
# Activation code data
108+
plugin/source/dynamix.unraid.net/usr/local/emhttp/plugins/dynamix.my.servers/data/activation-data.php

plugin/source/dynamix.unraid.net/usr/local/emhttp/plugins/dynamix.my.servers/data/activation-data.php

Lines changed: 0 additions & 10 deletions
This file was deleted.

plugin/source/dynamix.unraid.net/usr/local/emhttp/plugins/dynamix.my.servers/include/activation-code-extractor.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -153,8 +153,6 @@ public function getPartnerUrl(): string {
153153

154154
/**
155155
* Output for debugging
156-
*
157-
* @see https://tower.local/plugins/dynamix.my.servers/data/activation-data.php
158156
* @return void
159157
*/
160158
public function debug(): void {

plugin/source/dynamix.unraid.net/usr/local/emhttp/plugins/dynamix.my.servers/include/web-components-extractor.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,9 @@ public function __construct() {}
1313
private function findManifestFiles(string $manifestName): array
1414
{
1515
$basePath = '/usr/local/emhttp' . self::PREFIXED_PATH;
16-
$command = "find {$basePath} -name {$manifestName}";
16+
$escapedBasePath = escapeshellarg($basePath);
17+
$escapedManifestName = escapeshellarg($manifestName);
18+
$command = "find {$escapedBasePath} -name {$escapedManifestName}";
1719
exec($command, $files);
1820
return $files;
1921
}

plugin/source/dynamix.unraid.net/usr/local/emhttp/plugins/dynamix.my.servers/scripts/activation_code_remove

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,6 @@ if [[ -f "$ACTIVATION_SETUP_FLAG" ]]; then
128128
if [[ $DRY_RUN == false ]]; then
129129
debug_echo "Deleting activation code related setup and php files"
130130
FILES_TO_DELETE=(
131-
"/usr/local/emhttp/plugins/dynamix.my.servers/data/activation-data.php"
132131
"/usr/local/emhttp/plugins/dynamix.my.servers/include/activation-code-extractor.php"
133132
"/usr/local/emhttp/plugins/dynamix.my.servers/include/partner-logo.php"
134133
"/usr/local/emhttp/plugins/dynamix.my.servers/include/welcome-modal.php"

0 commit comments

Comments
 (0)