forked from typesense/showcase-linux-commits-search
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
268 lines (246 loc) Β· 11.2 KB
/
index.html
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta name="theme-color" content="#000000">
<link rel="manifest" href="./manifest.webmanifest">
<link rel="shortcut icon" href="./favicon.png">
<link rel="stylesheet" href="./src/index.scss">
<title>Linux Kernel Commit History Search with Typesense</title>
<meta name="description"
content="Search through commits from the Linux Kernel git repository instantly with Typesense. Celebrating 30 Years of Linux and 1 Million Linux Kernel Commits.">
<meta name="keywords" content="linux, git commit history, search, search engine, typesense, search linux kernel, #TuxTurns30, #30YearsOfLinux" />
<!-- Open Graph -->
<meta property="og:type" content="website">
<meta property="og:url" content="https://linux-commits-search.typesense.org">
<meta property="og:title" content="Instantly Search Linux Kernel Commit History with Typesense">
<meta name="og:description"
content="Search through commits from the Linux Kernel git repository instantly with Typesense. Celebrating 30 Years of Linux and 1 Million Linux Kernel Commits." />
<meta property="og:image" content="./images/opengraph_banner.png">
<meta name="twitter:card" content="summary_large_image">
<meta name="twitter:title" content="Linux Kernel Commit History Search with Typesense">
<meta name="twitter:description" content="Celebrating 30 Years of Linux and 1 Million Linux Kernel Commits">
<meta name="twitter:image" content="./images/opengraph_banner.png">
<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-116415641-8"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag() {
dataLayer.push(arguments);
}
gtag('js', new Date());
gtag('config', 'UA-116415641-8');
</script>
</head>
<body>
<div class="bg-dark text-center py-1">
Celebrating Linux's 30th Anniversary & 1 Million Linux Kernel Commits! π
<a role="button" data-toggle="modal" data-target="#aboutModal" class="small">
Learn More
</a>
</div>
<div class="container-fluid px-md-5 pt-4">
<div class="row d-flex align-items-center">
<div class="col-md">
<h1 class="font-letter-spacing-tight">
Search 1 Million Linux Kernel Commit Messages
</h1>
<p class="text-muted">
Find any interesting search queries?
<a role="button" onclick="window.tweetSearchTerm(); event.preventDefault();" class="text-secondary">Tweet</a>
it with #TuxTurns30 #LinuxCommitMessages and we'll add it below β’
<a role="button" data-toggle="modal" data-target="#aboutModal">About</a> β’
<a href="https://github.com/typesense/showcase-linux-commits-search" target="_blank">Source Code</a>
</p>
</div>
<div class="col-md-2 d-none d-md-block text-md-right">
<img src="images/linux_tux.svg" height="120" width="109" alt="Linux Tux" />
</div>
</div>
<div id="searchbox-container" class="row pt-3">
<div class="col-md justify-content-md-center">
<div id="searchbox"></div>
<div class="row mt-2 text-muted">
<div class="col-md">
Interesting finds:
<span id="example-search-terms">
<a role="button" class="clickable-search-term">noise</a>,
<a role="button" class="clickable-search-term">cheese</a>,
<a role="button" class="clickable-search-term">floppy</a>,
<a role="button" class="clickable-search-term">mainframe</a>,
<a role="button" class="clickable-search-term">stupid</a>,
<a role="button" class="clickable-search-term">urgent</a>,
<a role="button" class="clickable-search-term">postgresql</a>,
<a role="button" class="clickable-search-term">GUI</a>,
<a role="button" class="clickable-search-term">bug</a>,
<a role="button" class="clickable-search-term">race condition</a>
</span>
</div>
<div class="col-md-2 text-md-right mt-3 mt-md-0">
<div>Search powered by</div>
<div>
<a href="https://github.com/typesense/typesense" target="_blank" alt="Typesense">
<img src="images/typesense_terminal_white.svg" width="114" height="25" />
</a>
</div>
</div>
</div>
</div>
</div>
<div id="results-section">
<div class="row mt-4 mt-md-5">
<div class="col-md-3">
</div>
<div class="col-md">
<div class="row d-flex justify-content-end">
<div id="sort-by" class="col-6 col-md-3"></div>
<div id="stats"
class="col col-md ml-md-2 text-md-right small order-first order-md-last d-flex align-items-center justify-content-end justify-content-md-start px-md-0"></div>
</div>
</div>
</div>
<div class="row mt-3">
<div class="col-md-3">
<nav class="navbar navbar-expand-md navbar-light p-0 pb-3">
<button class="navbar-toggler text-primary border-light-2" type="button" data-toggle="collapse"
data-target="#filters-section"
aria-controls="filters-section" aria-expanded="false" aria-label="Toggle filters">
<span class="navbar-toggler-icon"></span><span class="text-secondary small ml-1">Filter Commits</span>
</button>
<div class="collapse navbar-collapse d-md-block mt-3 mt-md-0" id="filters-section">
<div class="row mb-2">
<div class="col-md">
<div id="current-refinements"></div>
</div>
</div>
<div class="row">
<div class="col-md">
<h6 class="text-secondary">Commit Year</h6>
<div id="author-timestamp-year-date-selector"></div>
</div>
</div>
<div class="row mt-3">
<div class="col-md">
<h6 class="text-secondary">Merge Commits</h6>
<div id="exclude-merge-commits-toggle-refinement"></div>
</div>
</div>
<div class="row mt-4">
<div class="col-md">
<h6 class="text-secondary">Author Email Domain</h6>
<div id="author-email-domain-refinement-list"></div>
<div class="text-muted small mt-3 pr-md-5">
Note: Some kernel authors use their personal email addresses predominantly.
</div>
</div>
</div>
<div class="row mt-5">
<div class="col-md">
<h6 class="text-secondary">Author Name</h6>
<div id="author-name-refinement-list"></div>
</div>
</div>
<div class="row mt-5">
<div class="col-md">
<h6 class="text-secondary">Committer Name</h6>
<div id="committer-name-refinement-list"></div>
</div>
</div>
<div class="row mt-5">
<div class="col-md">
<h6 class="text-secondary">Committer Email Domain</h6>
<div id="committer-email-domain-refinement-list"></div>
<div class="text-muted small mt-3 pr-md-5">
Note: Some kernel committers use their personal email addresses predominantly.
</div>
</div>
</div>
<div class="row mt-5">
<div class="col-md">
<h6 class="text-secondary">Number of Files Changed</h6>
<div id="files-changed-range-input"></div>
</div>
</div>
<div class="row mt-5">
<div class="col-md">
<h6 class="text-secondary">Commit Insertions</h6>
<div id="commit-insertions-range-input"></div>
</div>
</div>
<div class="row mt-5">
<div class="col-md">
<h6 class="text-secondary">Commit Deletions</h6>
<div id="commit-deletions-range-input"></div>
</div>
</div>
</div>
</nav>
</div>
<div class="col-md-9">
<div id="hits"></div>
</div>
</div>
</div>
</div>
<!-- About Modal -->
<div id="aboutModal" class="modal fade" tabindex="-1" aria-labelledby="aboutLabel" aria-hidden="true">
<div class="modal-dialog modal-lg">
<div class="modal-content text-dark">
<div class="modal-header">
<h5 class="modal-title font-weight-normal" id="aboutLabel">
About
</h5>
<button type="button" class="close btn btn-primary" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body">
<p>
The <a href="https://github.com/torvalds/linux">Linux Kernel</a> we all know and use, <a
href="https://www.linuxfoundation.org/en/linux30th/" target="_blank">turned 30 years</a> in 2021
and also recently crossed 1 Million commits, after switching to git for a version control system. π
</p>
<p>
This site was built by the <a href="https://typesense.org">Typesense</a> team as a tribute to all the hard
work that went into building a piece of software that powers a good chunk of the world today.
Thank you Linux Kernel Team! ππ»π»
</p>
<p>
Some technical details:</p>
<ul>
<li>The search experience is powered by <a href="https://typesense.org" target="_blank">Typesense</a> which is
a fast, <a href="https://github.com/typesense/typesense" target="_blank">open source</a> typo-tolerant
search-engine. It is an open source alternative to Algolia and an easier-to-use alternative to
ElasticSearch.
</li>
<li>
The app was built using the <a href="https://github.com/typesense/typesense-instantsearch-adapter"
target="_blank">
Typesense Adapter for InstantSearch.js</a> and is hosted on AWS S3 with Cloudfront for a CDN.
</li>
<li>
The search backend is powered by a geo-distributed 3-node Typesense cluster running on <a
href="https://cloud.typesense.org" target="_blank">Typesense Cloud</a>,
with nodes in Oregon, Frankfurt and Mumbai.
</li>
<li>
Here is the source-code for this site: <a
href="https://github.com/typesense/showcase-linux-commits-search" target="_blank">https://github.com/typesense/showcase-linux-commits-search</a>
</li>
</ul>
<p>
We're sure there some interesting nuggets buried in the commit messages. If you find something interesting,
<a role="button" onclick="window.tweetSearchTerm(); event.preventDefault();">Tweet</a>
it with #TuxTurns30 #LinuxCommitMessages and we'll add it to the list on the site.
</p>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-primary" data-dismiss="modal">Close</button>
</div>
</div>
</div>
</div>
<script src="./src/app.js"></script>
</body>
</html>