Update StackMonkey.ps1
This commit is contained in:
@@ -1015,6 +1015,7 @@ $style = @'
|
||||
</style>
|
||||
'@
|
||||
|
||||
|
||||
$script = @'
|
||||
<script>
|
||||
// =======================================================================
|
||||
@@ -1273,26 +1274,26 @@ fetch('/quit', { method: 'GET', keepalive: true });
|
||||
#
|
||||
# 3) The HTML skeleton with placeholders
|
||||
#
|
||||
$htmlTemplate = @"
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width,initial-scale=1.0">
|
||||
<title>Script Monkey</title>
|
||||
<link rel="icon" href="https://git.svstools.com/syelle/Logo/raw/branch/main/SVS_Favicon.ico">
|
||||
$style
|
||||
</head>
|
||||
<body>
|
||||
<div class="logo-container">
|
||||
$htmlTemplate = @"
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width,initial-scale=1.0">
|
||||
<title>Script Monkey</title>
|
||||
<link rel="icon" href="https://git.svstools.com/syelle/Logo/raw/branch/main/SVS_Favicon.ico">
|
||||
$style
|
||||
</head>
|
||||
<body>
|
||||
<div class="logo-container">
|
||||
<div class="logo-left">
|
||||
<img src="https://git.svstools.com/syelle/Logo/raw/branch/main/SVS_logo.svg" alt="SVS Logo">
|
||||
{{moduleVersion}}
|
||||
</div>
|
||||
<div id="tagline"></div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="container">
|
||||
<div class="container">
|
||||
<div class="sidebar">
|
||||
<button class="tab-button" data-tab="onboardTab">On-Boarding</button>
|
||||
<button class="tab-button" data-tab="offboardTab">Off-Boarding</button>
|
||||
@@ -1331,47 +1332,47 @@ fetch('/quit', { method: 'GET', keepalive: true });
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="dattoRmmContainer" style="display:none; margin-bottom:1em;">
|
||||
<label for="dattoDropdown">Select a Datto RMM site:</label>
|
||||
<select id="dattoDropdown" style="width:100%;">
|
||||
<div id="dattoRmmContainer" style="display:none; margin-bottom:1em;">
|
||||
<label for="dattoDropdown">Select a Datto RMM site:</label>
|
||||
<select id="dattoDropdown" style="width:100%;">
|
||||
<option disabled selected>Fetching sites...</option>
|
||||
</select>
|
||||
</div>
|
||||
</select>
|
||||
</div>
|
||||
|
||||
|
||||
<div id="offboardTab" class="tab-content">
|
||||
<h2>Off-Boarding</h2>
|
||||
<div class="columns-container">
|
||||
{{offboardCheckboxes}}
|
||||
{{offboardCheckboxes}}
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<div id="tweaksTab" class="tab-content">
|
||||
<h2>Tweaks</h2>
|
||||
<div class="columns-container">
|
||||
{{tweaksCheckboxes}}
|
||||
{{tweaksCheckboxes}}
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<div id="SVSAppsTab" class="tab-content">
|
||||
<h2>SVS APPs</h2>
|
||||
<div class="columns-container">
|
||||
{{appsCheckboxes}}
|
||||
{{appsCheckboxes}}
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
$script
|
||||
<!-- floating button group -->
|
||||
<div class="fixed-buttons">
|
||||
</div>
|
||||
$script
|
||||
<!-- floating button group -->
|
||||
<div class="fixed-buttons">
|
||||
<button class="exit-button" onclick="endSession()">Exit</button>
|
||||
<button class="run-button" onclick="triggerInstall()">Run Selected</button>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
"@
|
||||
"@
|
||||
|
||||
#
|
||||
# 4) Build the checkbox HTML and tasks JS from $Global:Tasks
|
||||
|
||||
Reference in New Issue
Block a user