Skip to content

Commit b1e1a6c

Browse files
committed
small changes after first meeting
1 parent e3f2aad commit b1e1a6c

File tree

4 files changed

+10
-39
lines changed

4 files changed

+10
-39
lines changed

src/index.njk

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ layout: layout.njk
88
We have further grouped these extensions into {{ extensionGroups | length }} <strong>extension groups</strong> based on their common functionality. These extension groups are listed below for your convenience, in relative order of importance. Feel free to explore!
99
<p>
1010

11-
<p>Search by mnemonic or long name. Hit Enter on an exact mnemonic match to jump straight to the instruction details.</p>
11+
<p>Search by mnemonic or long name. Hit <b>Enter</b> on an exact mnemonic match to jump straight to the instruction details.</p>
1212

1313
<input id="search" placeholder="Search mnemonic, e.g. addi" style="padding:8px; width: 100%; max-width: 480px;" />
1414

@@ -34,7 +34,7 @@ layout: layout.njk
3434
- Add small description here...
3535
</div>
3636

37-
{% set limit = 28 %}
37+
{% set limit = 0 %}
3838
{% set total = ext.instructions | length %}
3939

4040
<div class="instruction-grid">
@@ -82,7 +82,7 @@ layout: layout.njk
8282
hiddenGrid.style.display = hiddenGrid.style.display === "none" ? "grid" : "none";
8383
originalGrid.style.display = originalGrid.style.display === "none" ? "grid" : "none";
8484
85-
if (hiddenGrid.style.display === "grid") button.textContent = "Show first 49 instructions";
85+
if (hiddenGrid.style.display === "grid") button.textContent = "Hide instructions";
8686
else button.textContent = `Show all ${button.dataset.total} instructions`;
8787
}
8888
</script>

src/instruction-search.njk

Lines changed: 0 additions & 34 deletions
This file was deleted.

src/lib/loadExtensions.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
import loadInstructions from "./loadInstructions.ts";
22
import loadExtensionGroups from "./loadExtensionGroups.ts";
33

4+
type ExtensionInfo = {
5+
name: string;
6+
slug: string;
7+
}
8+
49
export default () => {
510
const instructions = loadInstructions();
611
const extensionGroups = loadExtensionGroups();
@@ -37,7 +42,7 @@ export default () => {
3742
for (const entry of list) {
3843
entry.instructions.sort((a, b) => a.name.localeCompare(b.name));
3944
entry.count = entry.instructions.length;
40-
entry.previewInstructions = entry.instructions.slice(0, 49);
45+
entry.previewInstructions = entry.instructions.slice(0, 0);
4146
}
4247

4348
list.sort((a, b) => a.name.localeCompare(b.name));

src/scripts/search.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ for (const a of items) {
1414
extensionGroupSet.add(extension);
1515
}
1616

17-
const extensionGroups = Array.from(extensionGroupSet).sort();
17+
const extensionGroups = Array.from(extensionGroupSet);
1818
for (const extensionGroup of extensionGroups) {
1919
const id = `ext-group-${extensionGroup}`;
2020
const label = document.createElement("label");

0 commit comments

Comments
 (0)