Compare commits

...

11 Commits

Author SHA1 Message Date
9 Technology Group LTD
19f8f85d38 Merge pull request #309 from jaas666/qol/remove-arch-selection
Remove architecture selection from agent installation UI
2025-11-17 01:35:31 +00:00
9 Technology Group LTD
2b7aeda980 Merge pull request #321 from PatchMon/feature/alpine
ui improvements on the toggle
2025-11-17 01:23:24 +00:00
9 Technology Group LTD
b02ed6aa3b Merge pull request #320 from PatchMon/feature/alpine
added reboot required flag
2025-11-16 22:54:15 +00:00
9 Technology Group LTD
3a6f04f748 Merge pull request #319 from PatchMon/feature/alpine
updated agent files
2025-11-16 19:03:27 +00:00
9 Technology Group LTD
0e8d74e821 Merge pull request #318 from PatchMon/feature/alpine
openssl alpine binary for Docker
2025-11-15 01:04:44 +00:00
9 Technology Group LTD
ab23eaf7bd Merge pull request #317 from PatchMon/feature/alpine
fixed node permissions
2025-11-15 00:54:29 +00:00
9 Technology Group LTD
d33992b5f7 Merge pull request #316 from PatchMon/feature/alpine
adding ssl
2025-11-15 00:46:00 +00:00
9 Technology Group LTD
823b89f2c1 Merge pull request #315 from PatchMon/feature/alpine
arm builder
2025-11-15 00:30:43 +00:00
9 Technology Group LTD
c770bf1444 API for auto-enrollment
Api
2025-11-15 00:08:37 +00:00
Juan A.
8cf29c9bbb remove-architecture-selection 2025-11-13 19:28:11 -06:00
9 Technology Group LTD
3f18074f01 Merge pull request #304 from PatchMon/feature/alpine
new binary for alpie apk support
2025-11-11 12:49:09 +00:00

View File

@@ -1664,10 +1664,8 @@ const CredentialsModal = ({ host, isOpen, onClose }) => {
const [showApiKey, setShowApiKey] = useState(false); const [showApiKey, setShowApiKey] = useState(false);
const [activeTab, setActiveTab] = useState("quick-install"); const [activeTab, setActiveTab] = useState("quick-install");
const [forceInstall, setForceInstall] = useState(false); const [forceInstall, setForceInstall] = useState(false);
const [architecture, setArchitecture] = useState("amd64");
const apiIdInputId = useId(); const apiIdInputId = useId();
const apiKeyInputId = useId(); const apiKeyInputId = useId();
const architectureSelectId = useId();
const { data: serverUrlData } = useQuery({ const { data: serverUrlData } = useQuery({
queryKey: ["serverUrl"], queryKey: ["serverUrl"],
@@ -1687,13 +1685,13 @@ const CredentialsModal = ({ host, isOpen, onClose }) => {
return settings?.ignore_ssl_self_signed ? "-sk" : "-s"; return settings?.ignore_ssl_self_signed ? "-sk" : "-s";
}; };
// Helper function to build installation URL with optional force flag and architecture // Helper function to build installation URL with optional force flag
const getInstallUrl = () => { const getInstallUrl = () => {
const baseUrl = `${serverUrl}/api/v1/hosts/install`; const baseUrl = `${serverUrl}/api/v1/hosts/install`;
const params = new URLSearchParams(); if (forceInstall) {
if (forceInstall) params.append("force", "true"); return `${baseUrl}?force=true`;
params.append("arch", architecture); }
return `${baseUrl}?${params.toString()}`; return baseUrl;
}; };
const copyToClipboard = async (text) => { const copyToClipboard = async (text) => {
@@ -1809,30 +1807,6 @@ const CredentialsModal = ({ host, isOpen, onClose }) => {
</p> </p>
</div> </div>
{/* Architecture Selection */}
<div className="mb-3">
<label
htmlFor={architectureSelectId}
className="block text-sm font-medium text-primary-800 dark:text-primary-200 mb-2"
>
Target Architecture
</label>
<select
id={architectureSelectId}
value={architecture}
onChange={(e) => setArchitecture(e.target.value)}
className="px-3 py-2 border border-primary-300 dark:border-primary-600 rounded-md bg-white dark:bg-secondary-800 text-sm text-secondary-900 dark:text-white focus:ring-primary-500 focus:border-primary-500"
>
<option value="amd64">AMD64 (x86_64) - Default</option>
<option value="386">386 (i386) - 32-bit</option>
<option value="arm64">ARM64 (aarch64) - ARM 64-bit</option>
<option value="arm">ARM (armv7l/armv6l) - ARM 32-bit</option>
</select>
<p className="text-xs text-primary-600 dark:text-primary-400 mt-1">
Select the architecture of the target host
</p>
</div>
<div className="flex items-center gap-2"> <div className="flex items-center gap-2">
<input <input
type="text" type="text"