-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathindex.html
More file actions
304 lines (295 loc) · 14.8 KB
/
index.html
File metadata and controls
304 lines (295 loc) · 14.8 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
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
<!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>WDProp: Everything about Wikidata Properties: John Samuel</title>
<link rel="stylesheet" type="text/css" href="style.css" />
<script type="text/javascript" src="wdprop.js"></script>
<script type="text/javascript" src="dashboard.js"></script>
</head>
<body>
<div id="mobile-menu-toggle" onclick="toggleMobileMenu()">
<span></span>
<span></span>
<span></span>
</div>
<div id="header">
<div id="logo"><a href="./index.html">WDProp</a>
<span id="subtitle">Everything about Wikidata properties</span>
</div>
<div id="theme-toggle" onclick="toggleTheme()" title="Toggle theme"></div>
</div>
<div id="sidebar">
<div id="sidebarlinks">
<ul>
<li><a href="./index.html">📊 Dashboard</a></li>
<li><a href="./languages.html">🌍 Languages</a></li>
<li><a href="./datatypes.html">📊 Data types</a></li>
<li><a href="./properties.html">🔧 Properties</a></li>
<li><a href="./classes.html">📦 Property Classes</a></li>
<li><a href="./provenance.html">📜 Provenance</a></li>
<li><a href="./search.html">🔍 Search</a></li>
<li><a href="./compare.html">⚖️ Compare</a></li>
<li><a href="templates/translated.html">💬 Property Discussion</a></li>
<li><a href="./wikiprojects.html">🚀 Wikiprojects</a></li>
<li><a href="./wdprop.html">ℹ️ About</a> </li>
</ul>
</div>
</div>
<div id="content">
<!-- Hero Stats Section -->
<div class="dashboard-hero">
<div class="stat-card" onclick="window.location.href='./properties.html'">
<span class="stat-icon">🔧</span>
<div class="stat-label">Total Properties</div>
<div class="stat-value" data-target="12847">0</div>
<div class="stat-change">Wikidata</div>
</div>
<div class="stat-card" onclick="window.location.href='./languages.html'">
<span class="stat-icon">🌍</span>
<div class="stat-label">Languages</div>
<div class="stat-value" data-target="450">0</div>
<div class="stat-change">Supported</div>
</div>
<div class="stat-card" onclick="window.location.href='./datatypes.html'">
<span class="stat-icon">📊</span>
<div class="stat-label">Data Types</div>
<div class="stat-value" data-target="18">0</div>
<div class="stat-change">Available</div>
</div>
<div class="stat-card" onclick="window.location.href='./classes.html'">
<span class="stat-icon">📦</span>
<div class="stat-label">Property Classes</div>
<div class="stat-value" data-target="847">0</div>
<div class="stat-change">Categories</div>
</div>
</div>
<!-- Quick Actions -->
<div class="quick-actions">
<a href="./search.html" class="action-btn">
<span class="icon">🔍</span>
<span>Search Properties</span>
</a>
<a href="./compare.html" class="action-btn">
<span class="icon">⚖️</span>
<span>Compare Languages</span>
</a>
<a href="./properties.html" class="action-btn">
<span class="icon">📈</span>
<span>Browse All</span>
</a>
<a href="./wikiprojects.html" class="action-btn">
<span class="icon">🚀</span>
<span>WikiProjects</span>
</a>
</div>
<!-- Search Widget -->
<div class="section search-widget">
<div class="widget-header">
<h2 class="widget-title">
<span class="icon">🔍</span>
Search Properties
</h2>
</div>
<div class="search-input-container">
<span class="search-icon">🔍</span>
<input type="text" class="search-input" placeholder="Search by name, ID, or description..."
onkeypress="if(event.key==='Enter'){window.location.href='./search.html?search='+encodeURIComponent(this.value)+'&language=en';}" />
</div>
<div class="popular-searches">
<span style="font-size: 13px; color: var(--text-secondary); margin-right: 8px;">Popular:</span>
<a href="./search.html?search=software&language=en" class="search-tag">software</a>
<a href="./search.html?search=heritage&language=en" class="search-tag">heritage</a>
<a href="./search.html?search=person&language=en" class="search-tag">person</a>
<a href="./search.html?search=location&language=en" class="search-tag">location</a>
</div>
</div>
<!-- Dashboard Grid -->
<div class="dashboard-grid">
<!-- Translation Progress -->
<div class="dashboard-widget">
<div class="widget-header">
<h2 class="widget-title">
<span class="icon">🌍</span>
Translation Coverage
</h2>
<a href="./languages.html" class="widget-action">View all →</a>
</div>
<div class="progress-list">
<div class="progress-item">
<div class="progress-header">
<span class="progress-label">English (en)</span>
<span class="progress-value">98%</span>
</div>
<div class="progress-bar-container">
<div class="progress-bar high" style="width: 98%"></div>
</div>
</div>
<div class="progress-item">
<div class="progress-header">
<span class="progress-label">German (de)</span>
<span class="progress-value">81%</span>
</div>
<div class="progress-bar-container">
<div class="progress-bar medium" style="width: 81%"></div>
</div>
</div>
<div class="progress-item">
<div class="progress-header">
<span class="progress-label">French (fr)</span>
<span class="progress-value">76%</span>
</div>
<div class="progress-bar-container">
<div class="progress-bar medium" style="width: 76%"></div>
</div>
</div>
<div class="progress-item">
<div class="progress-header">
<span class="progress-label">Spanish (es)</span>
<span class="progress-value">72%</span>
</div>
<div class="progress-bar-container">
<div class="progress-bar medium" style="width: 72%"></div>
</div>
</div>
<div class="progress-item">
<div class="progress-header">
<span class="progress-label">Japanese (ja)</span>
<span class="progress-value">43%</span>
</div>
<div class="progress-bar-container">
<div class="progress-bar low" style="width: 43%"></div>
</div>
</div>
</div>
</div>
<!-- Top Properties -->
<div class="dashboard-widget">
<div class="widget-header">
<h2 class="widget-title">
<span class="icon">⭐</span>
Top Properties
</h2>
<a href="./properties.html#tophundredProperties" class="widget-action">View Top 100 →</a>
</div>
<table class="top-properties-table">
<tr>
<td class="rank">#1</td>
<td>
<div class="property-name">instance of</div>
<div class="property-id">P31</div>
</td>
<td class="usage-count">89.2M</td>
</tr>
<tr>
<td class="rank">#2</td>
<td>
<div class="property-name">subclass of</div>
<div class="property-id">P279</div>
</td>
<td class="usage-count">45.7M</td>
</tr>
<tr>
<td class="rank">#3</td>
<td>
<div class="property-name">country</div>
<div class="property-id">P17</div>
</td>
<td class="usage-count">38.1M</td>
</tr>
<tr>
<td class="rank">#4</td>
<td>
<div class="property-name">located in...</div>
<div class="property-id">P131</div>
</td>
<td class="usage-count">32.5M</td>
</tr>
<tr>
<td class="rank">#5</td>
<td>
<div class="property-name">official website</div>
<div class="property-id">P856</div>
</td>
<td class="usage-count">28.9M</td>
</tr>
</table>
</div>
</div>
<!-- WikiProjects -->
<div class="section">
<div class="widget-header">
<h2 class="widget-title">
<span class="icon">🚀</span>
WikiProjects
</h2>
<a href="./wikiprojects.html" class="widget-action">View all →</a>
</div>
<div class="projects-grid">
<a href="./wikiproject.html?project=Wikidata:WikiProject Heritage Collections" class="project-card">
<div class="project-icon">🏛️</div>
<div class="project-name">Cultural Heritage</div>
</a>
<a href="./wikiproject.html?project=Wikidata:WikiProject Informatics/FLOSS" class="project-card">
<div class="project-icon">💻</div>
<div class="project-name">Informatics</div>
</a>
<a href="./wikiproject.html?project=Wikidata:WikiProject Biography/Model" class="project-card">
<div class="project-icon">👤</div>
<div class="project-name">Biography</div>
</a>
<a href="./wikiproject.html?project=Wikidata:WikiProject Medicine/Properties" class="project-card">
<div class="project-icon">⚕️</div>
<div class="project-name">Medicine</div>
</a>
<a href="./wikiproject.html?project=Wikidata:WikiProject Sports" class="project-card">
<div class="project-icon">⚽</div>
<div class="project-name">Sports</div>
</a>
<a href="./wikiproject.html?project=Wikidata:WikiProject Movies/Properties" class="project-card">
<div class="project-icon">🎬</div>
<div class="project-name">Film</div>
</a>
</div>
</div>
<!-- System Status -->
<div class="section">
<div class="widget-header">
<h2 class="widget-title">
<span class="icon">⚙️</span>
System Status
</h2>
</div>
<div class="status-grid">
<div class="status-item">
<span class="status-label">Wikidata API</span>
<span class="status-value">
<span class="status-dot"></span>
Online
</span>
</div>
<div class="status-item">
<span class="status-label">MediaWiki API</span>
<span class="status-value">
<span class="status-dot"></span>
Online
</span>
</div>
<div class="status-item">
<span class="status-label">Last Updated</span>
<span class="status-value">2 minutes ago</span>
</div>
<div class="status-item">
<span class="status-label">Cache Status</span>
<span class="status-value">Fresh</span>
</div>
</div>
</div>
</div>
<div id="footer">
<p id="footertext">Powered by <a href="https://www.wikidata.org/">Wikidata</a> and <a
href="https://mediawiki.org/">MediaWiki</a> API</p>
</div>
</body>
</html>