Policies-Tab: Export/Import (Settings Catalog, Compliance, Config)
Build & Release MSI / build-msi (push) Canceled after 0s
Build & Release MSI / build-msi (push) Canceled after 0s
Neuer Tab "Policies" zum Sichern und Wiederherstellen von Intune-Policies. - Backend src/PolicyIO.ps1: typ-getrieben fuer configurationPolicies (Settings Catalog), deviceCompliancePolicies und deviceConfigurations - Export als JSON-Download (einzeln/Bundle) + Server-Archiv unter %APPDATA% - Import per Datei-Upload, immer Neuanlage (nie ueberschreiben), robust fuer Hashtable (PS7) und PSCustomObject (PS5.1); im Read-Only-Modus ausgeblendet - Routen in src/Api.ps1; Config-Scope DeviceManagementConfiguration.* auch nach Settings-Save sichergestellt - Frontend: Tab + View, Suche/Typ-Filter/Sortierung, Auswahl, Download/Upload - Version 0.1.25 (Start.ps1, CHANGELOG, README) - build-local.ps1: x64-.NET-Runtime fuer wix auf ARM64-Windows + echter Desktop-Pfad Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
+68
-1
@@ -4872,7 +4872,8 @@ body.read-only #btnApply,
|
||||
body.read-only .gex-add-pane,
|
||||
body.read-only .gex-tab[data-tab="add"],
|
||||
body.read-only .gex-tab[data-tab="import"],
|
||||
body.read-only #gexPaneImport {
|
||||
body.read-only #gexPaneImport,
|
||||
body.read-only .pol-write {
|
||||
display: none !important;
|
||||
}
|
||||
|
||||
@@ -5340,3 +5341,69 @@ body.read-only .app-row {
|
||||
.dev-actions-title { font-size: 11px; font-weight: 600; color: var(--muted); margin-bottom: 8px; text-transform: uppercase; letter-spacing: .04em; }
|
||||
.dev-action-btns { display: flex; flex-wrap: wrap; gap: 6px; }
|
||||
.dev-action-btn { display: inline-flex; align-items: center; gap: 5px; }
|
||||
|
||||
/* =============================================================
|
||||
Policies View (Export / Import)
|
||||
============================================================= */
|
||||
.pol-view {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 12px;
|
||||
padding: 16px 20px;
|
||||
height: calc(100vh - var(--topbar-h, 52px) - 32px);
|
||||
box-sizing: border-box;
|
||||
}
|
||||
.pol-toolbar {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 10px;
|
||||
flex-shrink: 0;
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
.pol-toolbar .search-wrap { flex: 0 1 320px; }
|
||||
.pol-table-wrap {
|
||||
flex: 1;
|
||||
overflow: auto;
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 6px;
|
||||
}
|
||||
.pol-table { width: 100%; border-collapse: collapse; font-size: 13px; }
|
||||
.pol-table thead { position: sticky; top: 0; z-index: 2; background: var(--bg2); }
|
||||
.pol-table th {
|
||||
padding: 8px 10px;
|
||||
text-align: left;
|
||||
font-weight: 600;
|
||||
font-size: 12px;
|
||||
color: var(--text-dim, #888);
|
||||
border-bottom: 1px solid var(--border);
|
||||
white-space: nowrap;
|
||||
user-select: none;
|
||||
}
|
||||
.pol-table th.sortable { cursor: pointer; }
|
||||
.pol-table th.sortable:hover { color: var(--text); background: var(--bg3, var(--hover)); }
|
||||
.pol-table td {
|
||||
padding: 6px 10px;
|
||||
border-bottom: 1px solid var(--border);
|
||||
vertical-align: middle;
|
||||
}
|
||||
.pol-table tbody tr:last-child td { border-bottom: none; }
|
||||
.pol-table tbody tr:hover { background: var(--hover, rgba(255,255,255,0.03)); }
|
||||
.pol-col-check { width: 34px; text-align: center; }
|
||||
.pol-table td.pol-col-check { text-align: center; }
|
||||
.pol-table td.pol-name { font-weight: 500; max-width: 380px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
||||
.pol-type-badge {
|
||||
display: inline-block;
|
||||
padding: 1px 8px;
|
||||
border-radius: var(--r-pill, 999px);
|
||||
font-size: 11px;
|
||||
font-weight: 600;
|
||||
background: var(--bg3, var(--hover));
|
||||
color: var(--text-dim, #999);
|
||||
white-space: nowrap;
|
||||
}
|
||||
.pol-hint, .pol-empty {
|
||||
padding: 24px 12px;
|
||||
text-align: center;
|
||||
color: var(--text-dim, #888);
|
||||
font-size: 13px;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user