-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathsettings.php
More file actions
109 lines (97 loc) · 4.18 KB
/
Copy pathsettings.php
File metadata and controls
109 lines (97 loc) · 4.18 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Settings</title>
<link rel="preconnect" href="https://fonts.googleapis.com">
<link href="https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500&family=DM+Sans:wght@400;500;600&display=swap" rel="stylesheet">
<link rel="stylesheet" href="static/style.css">
<link rel="icon" href="https://avatars.githubusercontent.com/u/175005826?v=4&size=64">
</head>
<body class="admin-body settings-body">
<div id="topbar">
<div class="topbar-left">
<div class="logo"><span class="logo-icon">▣</span><span class="logo-text">SIGNAGE</span><span class="logo-sub">SETTINGS</span></div>
</div>
<div class="topbar-center"></div>
<div class="topbar-right">
<select class="topbar-btn" id="themeSelect">
<option value="dark">Dark</option>
<option value="white">White</option>
</select>
<a href="admin.php" class="topbar-btn highlight">← EDITOR</a>
</div>
</div>
<div id="settingsLayout">
<!-- ── GERÄT / REFRESH ─────────────────────────── -->
<div class="settings-col">
<div class="settings-card">
<div class="settings-card-title">GERÄT / REFRESH</div>
<div class="pref-row pref-row--col">
<div class="pref-info">
<div class="pref-label">Refresh-Befehl</div>
<div class="pref-desc">Shell-Befehl, der auf dem Server ausgeführt wird – z. B. <code>sudo systemctl restart signage-kiosk</code>. Der Befehl läuft als <code>www-data</code>; stelle sicher, dass ein passender <code>sudoers</code>-Eintrag vorhanden ist (wird vom Installer automatisch gesetzt).</div>
</div>
<div class="refresh-cmd-row">
<input type="text" id="refreshCmdInput" class="refresh-cmd-input"
placeholder="sudo systemctl restart signage-kiosk"
spellcheck="false" autocomplete="off">
<button class="refresh-cmd-btn save-btn" id="saveCmdBtn" onclick="saveRefreshCmd()">SPEICHERN</button>
</div>
<div class="refresh-run-row">
<button class="refresh-cmd-btn run-btn" id="runCmdBtn" onclick="runRefreshCmd()">▶ JETZT AUSFÜHREN</button>
<span id="refreshStatus" class="refresh-status"></span>
</div>
</div>
</div>
</div>
<!-- ── EDITOR PREFERENCES ─────────────────────── -->
<div class="settings-col">
<div class="settings-card">
<div class="settings-card-title">EDITOR PREFERENCES</div>
<div class="pref-row">
<div class="pref-info">
<div class="pref-label">Auto-save</div>
<div class="pref-desc">Automatically save changes 700ms after edits. When off, a Save button appears in the editor toolbar.</div>
</div>
<label class="toggle">
<input type="checkbox" id="autoSaveToggle" onchange="setAutoSave(this.checked)">
<span class="toggle-track"><span class="toggle-thumb"></span></span>
</label>
</div>
</div>
</div>
<!-- ── ASSET LIBRARY ──────────────────────────── -->
<div class="settings-col wide">
<div class="settings-card">
<div class="settings-card-title">
ASSET LIBRARY
<span id="assetCount" class="item-count"></span>
</div>
<div id="assetGrid" class="asset-grid">
<div class="asset-loading">Loading assets…</div>
</div>
</div>
</div>
<!-- ── Advanced ─────────────────────────────────── -->
<div class="settings-col">
<div class="settings-card">
<div class="settings-card-title">
Advanced Settings
</div>
<div class="pref-row pref-row--col">
<div class="pref-info">
<div class="pref-label">Erweiterte Einstellungen öffnen</div>
<div class="pref-desc"></div>
</div>
<div class="refresh-run-row">
<a href="advanced.php" class="topbar-btn">⚙ ADVANCED SETTINGS</a>
</div>
</div>
</div>
</div>
</div>
<script src="static/settings.js"></script>
<script src="static/theme.js"></script>
</body>
</html>