-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathindex.html
More file actions
112 lines (96 loc) · 5.66 KB
/
index.html
File metadata and controls
112 lines (96 loc) · 5.66 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
110
111
112
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>MCTools - Config Sanitizer</title>
<meta name="description"
content="Clean and sanitize your MeshCentral configuration files safely with the Config Sanitizer. Automatically remove sensitive data before sharing configs." />
<!-- Google / Search Engine Tags -->
<meta itemprop="name" content="MeshCentral Tools - Config Sanitizer" />
<meta itemprop="description"
content="Clean and sanitize your MeshCentral configuration files safely with the Config Sanitizer. Automatically remove sensitive data before sharing configs." />
<meta itemprop="image" content="https://sanitizer.meshcentraltools.com/images/logo.png" />
<!-- Facebook Meta Tags -->
<meta property="og:url" content="https://sanitizer.meshcentraltools.com/" />
<meta property="og:type" content="website" />
<meta property="og:title" content="MeshCentral Tools - Config Sanitizer" />
<meta property="og:description"
content="Clean and sanitize your MeshCentral configuration files safely with the Config Sanitizer. Automatically remove sensitive data before sharing configs." />
<meta property="og:image" content="https://sanitizer.meshcentraltools.com/images/logo.png" />
<!-- Twitter Meta Tags -->
<meta name="twitter:card" content="summary_large_image" />
<meta name="twitter:title" content="MeshCentral Tools - Config Sanitizer" />
<meta name="twitter:description"
content="Clean and sanitize your MeshCentral configuration files safely with the Config Sanitizer. Automatically remove sensitive data before sharing configs." />
<meta name="twitter:image" content="https://sanitizer.meshcentraltools.com/images/logo.png" />
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/codemirror/5.65.11/codemirror.min.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/codemirror/5.65.11/theme/dracula.min.css">
<link rel="icon" type="image/png" href="images/logo.png">
<script src="https://cdnjs.cloudflare.com/ajax/libs/codemirror/5.65.11/codemirror.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/codemirror/5.65.11/mode/javascript/javascript.min.js"></script>
<!-- Custom Styles -->
<link rel="stylesheet" href="styles.css">
</head>
<body>
<div class="header-top">
<div class="header-left">
<div class="header-title-group">
<h1 style="margin: 0; padding: 0;">MCTools - Config Sanitizer</h1>
<span class="help-icon">?
<div class="help-tooltip">
<p>Clean and sanitize your MeshCentral configuration files safely with the Config Sanitizer.</p>
<p>Objective: Automatically remove sensitive data before sharing configs or submitting issues.
</p>
<p>How to use:</p>
<ul>
<li>Upload or paste your config.json.</li>
<li>Click "Hide Sensitive" to redact secrets.</li>
<li>Click "Remove Irrelevant" to clean up noise.</li>
<li>Download or Copy the result.</li>
</ul>
</div>
</span>
</div>
<div style="min-width: 150px; height: 28px; margin-left: 10px; visibility: hidden;"></div>
</div>
<div class="header-right">
<label id="uploadLabel">Upload
<input type="file" id="fileInput" accept=".json, .txt" style="display: none;">
</label>
<button id="sanitizeBtn" onclick="sanitizeConfig()">Hide Sensitive</button>
<button id="cleanupBtn" onclick="cleanupConfig()">Remove Irrelevant</button>
<button id="downloadBtn" onclick="downloadConfig()">Download</button>
<button id="copyBtn" onclick="copyToClipboard()">Copy</button>
<button id="themeToggle" title="Toggle light / dark mode">
<svg id="themeIcon" width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor"
stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<path d="M21 12.79A9 9 0 1 1 11.21 3 7 7 0 0 0 21 12.79z"></path>
</svg>
</button>
<div onclick="toggleDropdown()" class="profile-dropdown">
<img src="images/logo.png" alt="Logo" class="logo">
<span class="profile-name">MC Tools</span>
<div class="dropdown-menu" id="dropdown-menu">
<a href="https://github.com/Melo-Professional/" target="_blank">My GitHub</a>
<a href="https://config.meshcentraltools.com/" target="_blank">Config Generator</a>
<a href="https://github.com/Melo-Professional/MeshCentral-Stylish-UI" target="_blank">Stylish UI</a>
</div>
</div>
</div>
</div>
<div class="container">
<div class="column right" style="margin-left: 15px;">
<textarea id="editor"></textarea>
</div>
</div>
<div id="toast-container"></div>
<!-- Load modules in dependency order -->
<script src="js/constants.js"></script>
<script src="js/dataProcessing.js"></script>
<script src="js/sanitizer.js"></script>
<script src="js/editor.js"></script>
<script src="js/ui.js"></script>
<script src="js/main.js"></script>
</body>
</html>