Skip to content

Commit 55e0271

Browse files
committed
Removed useless stuff in web interface
1 parent 945825c commit 55e0271

1 file changed

Lines changed: 3 additions & 43 deletions

File tree

web2api/templates/index.html

Lines changed: 3 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -50,19 +50,6 @@
5050
animation: lift-in 420ms ease both;
5151
}
5252

53-
.hero-tag {
54-
display: inline-block;
55-
margin-bottom: 0.5rem;
56-
padding: 0.18rem 0.5rem;
57-
border-radius: 999px;
58-
border: 1px solid rgba(17, 79, 85, 0.25);
59-
color: var(--teal-900);
60-
background: var(--teal-100);
61-
text-transform: uppercase;
62-
font-size: 0.72rem;
63-
letter-spacing: 0.08em;
64-
}
65-
6653
h1 {
6754
margin: 0;
6855
font-family: "Palatino Linotype", "Book Antiqua", Palatino, serif;
@@ -87,7 +74,7 @@
8774
.toolbar {
8875
margin-top: 0.95rem;
8976
display: grid;
90-
grid-template-columns: minmax(240px, 1fr) auto;
77+
grid-template-columns: minmax(240px, 1fr);
9178
gap: 0.6rem;
9279
align-items: center;
9380
}
@@ -108,22 +95,6 @@
10895
border-color: rgba(30, 108, 116, 0.45);
10996
}
11097

111-
.toggle {
112-
display: inline-flex;
113-
align-items: center;
114-
gap: 0.42rem;
115-
border: 1px solid var(--line);
116-
border-radius: 9px;
117-
padding: 0.48rem 0.58rem;
118-
font-size: 0.84rem;
119-
color: #34444b;
120-
background: rgba(255, 255, 255, 0.84);
121-
}
122-
123-
.toggle input {
124-
accent-color: var(--teal-700);
125-
}
126-
12798
.summary {
12899
margin-top: 0.65rem;
129100
display: flex;
@@ -561,7 +532,6 @@
561532
<body>
562533
<main class="page">
563534
<header class="hero">
564-
<span class="hero-tag">Live Catalog</span>
565535
<h1>Web2API Recipes</h1>
566536
<p class="subtitle">
567537
Browse installed API recipes, filter quickly, then open or copy ready URLs. Switch tabs
@@ -579,10 +549,6 @@ <h1>Web2API Recipes</h1>
579549
autocomplete="off"
580550
/>
581551
</label>
582-
<label class="toggle">
583-
<input id="qOnlyToggle" type="checkbox" />
584-
Show only endpoints requiring q
585-
</label>
586552
</div>
587553

588554
<div class="summary">
@@ -720,16 +686,14 @@ <h2>Recipe Repository</h2>
720686
(() => {
721687
const rows = Array.from(document.querySelectorAll(".row"));
722688
const filterInput = document.getElementById("filterInput");
723-
const qOnlyToggle = document.getElementById("qOnlyToggle");
724689
const visibleSites = document.getElementById("visibleSites");
725690
const visibleEndpoints = document.getElementById("visibleEndpoints");
726691
const noMatches = document.getElementById("noMatches");
727-
if (rows.length > 0 && filterInput && qOnlyToggle && visibleSites && visibleEndpoints && noMatches) {
692+
if (rows.length > 0 && filterInput && visibleSites && visibleEndpoints && noMatches) {
728693
const normalize = (value) => value.trim().toLowerCase();
729694

730695
const applyFilters = () => {
731696
const term = normalize(filterInput.value || "");
732-
const qOnly = qOnlyToggle.checked;
733697

734698
let shownSites = 0;
735699
let shownEndpoints = 0;
@@ -745,11 +709,8 @@ <h2>Recipe Repository</h2>
745709

746710
endpointItems.forEach((endpointItem, index) => {
747711
const endpointText = endpointItem.dataset.endpointText || "";
748-
const requiresQuery = endpointItem.dataset.requiresQuery === "true";
749-
750-
const matchesToggle = !qOnly || requiresQuery;
751712
const matchesTerm = term === "" || siteMatches || endpointText.includes(term);
752-
const isVisible = matchesToggle && matchesTerm;
713+
const isVisible = matchesTerm;
753714

754715
endpointItem.classList.toggle("is-hidden", !isVisible);
755716
if (urlItems[index]) {
@@ -776,7 +737,6 @@ <h2>Recipe Repository</h2>
776737
};
777738

778739
filterInput.addEventListener("input", applyFilters);
779-
qOnlyToggle.addEventListener("change", applyFilters);
780740

781741
document.querySelectorAll(".copy-btn").forEach((button) => {
782742
button.addEventListener("click", async () => {

0 commit comments

Comments
 (0)