Skip to content

Commit 87645db

Browse files
authored
Merge pull request #8 from IonelPopJara/6-remove-top-searches
6 remove top searches
2 parents 6c9efb3 + 7ba040e commit 87645db

File tree

2 files changed

+27
-3
lines changed

2 files changed

+27
-3
lines changed

services/query-engine/resources/css/app.css

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,22 @@
2626
--another: #394b70;
2727
}
2828

29+
#note {
30+
color: var(--color-red-500);
31+
background-color: black;
32+
padding: 1rem;
33+
border: #c0caf5 solid 0.1rem;
34+
border-radius: 0.5rem;
35+
}
36+
37+
#github {
38+
color: var(--blue);
39+
}
40+
41+
#github:hover {
42+
color: var(--color-blue-500);
43+
}
44+
2945
#cringe-title {
3046
color: var(--text);
3147
background-color: var(--another);

services/query-engine/resources/views/cringe-results.blade.php

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,19 @@
3030
</p>
3131
</div>
3232
<h2 id="cringe-top-searches" class="text-2xl mb-4 font-semibold" style="color: var(--orange);">
33-
Top Searches
33+
Top Searches (Deprecated Feature)
3434
</h2>
3535

3636
<ul class="space-y-2">
37-
@foreach ($topSearches as $search)
37+
<p id="note">
38+
Due to the top searches being used for spam and displaying inappropriate results, the top
39+
searches feature has been disabled.<br>
40+
If you'd like to contribute a new feature to replace it, you can go to the
41+
related <a href="https://github.com/IonelPopJara/moogle/issues/7" target="_blank"
42+
id="github">GitHub
43+
issue</a>.
44+
</p>
45+
{{-- @foreach ($topSearches as $search)
3846
<li>
3947
<a href="{{ route('search_force', ['processed_query' => $search]) }}"
4048
class="transition hover:underline" style="color: var(--text);"
@@ -43,7 +51,7 @@ class="transition hover:underline" style="color: var(--text);"
4351
- {{ $search }}
4452
</a>
4553
</li>
46-
@endforeach
54+
@endforeach --}}
4755
</ul>
4856
</div>
4957

0 commit comments

Comments
 (0)