Repository navigation
Expand file tree
/
Copy pathindex.html
More file actions
115 lines (103 loc) · 4.69 KB
/
Copy pathindex.html
File metadata and controls
115 lines (103 loc) · 4.69 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
113
114
115
<!-- Copyright 2026 Espressif Systems (Shanghai) PTE LTD
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="theme-color" content="#E60012">
<title>Matter Data Model Diff Checker | Espressif</title>
<link rel="icon" type="image/svg+xml" href="static/espressif-logo.svg">
<link rel="apple-touch-icon" href="static/espressif-logo.svg">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap" rel="stylesheet">
<link rel="stylesheet" href="static/css/style.css">
<script>
(function () {
var saved = localStorage.getItem('esp-matter-tools-theme');
if (!saved) saved = window.matchMedia('(prefers-color-scheme: dark)').matches ? 'dark' : 'light';
document.documentElement.setAttribute('data-theme', saved);
})();
</script>
</head>
<body>
<div id="initOverlay">
<div class="spinner"></div>
<div class="init-text" id="initStatus">Loading Python runtime...</div>
</div>
<div class="container">
<header class="header">
<button class="theme-toggle" id="themeToggle" type="button" aria-label="Toggle theme"
title="Switch to dark mode">🌙</button>
<h1>Matter Data Model Diff Checker</h1>
<p class="header-subtitle">Compare Matter data model versions and track specification changes</p>
<div class="controls">
<div class="control-group">
<label>Base version:</label>
<select id="oldVersion"></select>
</div>
<button class="swap-btn" onclick="swapVersions()" title="Swap versions">⇄</button>
<div class="control-group">
<label>New version:</label>
<select id="newVersion"></select>
</div>
<div class="control-group">
<label>Category:</label>
<select id="category">
<option value="all">All</option>
<option value="clusters">Clusters only</option>
<option value="device_types">Device Types only</option>
</select>
</div>
<div class="control-group">
<label>Search:</label>
<input type="text" id="nameFilter" placeholder="Any term: attribute, command, event, cluster...">
</div>
<button class="btn" id="compareBtn" onclick="runDiff()" disabled>Compare</button>
<button class="btn" id="exportBtn" onclick="exportJSON()"
style="background:var(--surface-alt);border:1px solid var(--border);color:var(--text-dim);display:none;"
title="Export diff as JSON">Export JSON</button>
</div>
</header>
<div class="main-content">
<div id="resultArea">
<div class="empty-state">Select two versions and click <strong>Compare</strong>. Use search to find any
attribute, command, event, feature, or cluster name across the spec.</div>
</div>
</div>
<footer class="footer">
<div class="footer-logo">
<img src="static/espressif-logo.svg" alt="Espressif Systems" width="28" height="28">
<span>Espressif Systems</span>
</div>
<div class="footer-links">
<a href="https://github.com/espressif/esp-matter-tools/tree/main/dm_diff_tool" target="_blank"
rel="noopener noreferrer">
🛠 GitHub repository
</a>
<a href="https://github.com/espressif/esp-matter-tools/issues/new" target="_blank" rel="noopener noreferrer">
🐛 Report an issue
</a>
</div>
<p class="footer-copy">Copyright © 2026 Espressif Systems</p>
</footer>
</div>
<script src="https://cdn.jsdelivr.net/npm/jszip@3.10.1/dist/jszip.min.js"
integrity="sha384-+mbV2IY1Zk/X1p/nWllGySJSUN8uMs+gUAN10Or95UBH0fpj6GfKgPmgC5EXieXG"
crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/pyodide/v0.27.5/full/pyodide.js"
integrity="sha384-rm4QcPMX69sqmX2kWiJa3BF02sgdJkVyATWkw5NHAxBUAvmLXhToWZYaP2wCcyEe"
crossorigin="anonymous"></script>
<script src="static/js/app.js"></script>
</body>
</html>