Skip to content

Commit 9bd9e62

Browse files
committed
registry show
1 parent dc9a25b commit 9bd9e62

File tree

6 files changed

+578
-24
lines changed

6 files changed

+578
-24
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"meta":{"registryId":"vixcpp-registry","specVersion":"1.0.0","generatedAt":"2026-02-10T15:36:29.772Z","sourceRepo":"https://github.com/vixcpp/registry","indexFormat":"json-per-package","entryCount":2},"entries":[{"description":"","displayName":"binary_search","homepage":"https://github.com/Gaspardkirira/binary_search","keywords":[],"latest":"0.1.1","license":"MIT","maintainers":[{"github":"","name":""}],"manifestPath":"vix.json","name":"binary_search","namespace":"gaspardkirira","repo":{"defaultBranch":"main","url":"https://github.com/Gaspardkirira/binary_search"},"type":"header-only","versions":{"0.1.1":{"commit":"b2cc3302637f336f2a798f8bf4e855c4b20f7522","notes":"Fix registry id + publishable commit","tag":"v0.1.1"}}},{"description":"Tiny header-only example library for demonstrating the Vix Registry workflow.","displayName":"tree","homepage":"https://github.com/GaspardKirira/tree","keywords":["c++","header-only","demo","registry","vix"],"latest":"0.7.0","license":"MIT","maintainers":[{"github":"GaspardKirira","name":"Gaspard Kirira"}],"manifestPath":"vix.json","name":"tree","namespace":"gaspardkirira","repo":{"defaultBranch":"main","url":"https://github.com/GaspardKirira/tree"},"type":"header-only","versions":{"0.1.0":{"commit":"ffcf9d703e6113f5ac5887c99b45baaccf7e4937","notes":"Initial demo release","tag":"v0.1.0"},"0.2.0":{"commit":"b79ba53ca60a78a3c4b7baaa1da728907ee0a5fa","notes":"Add count_leaves helper","tag":"v0.2.0"},"0.5.0":{"commit":"b184d0cf2220f825ca41139bede5543c5e717df4","notes":"Add index_by_id helper","tag":"v0.5.0"},"0.6.0":{"commit":"6d6a9abdf1b80a85b2f97832153b754f9f746629","notes":"Add count_internal_nodes helper","tag":"v0.6.0"},"0.7.0":{"commit":"18363babf297b4050d2585596238012faee65d52","notes":"Add tree helper","tag":"v0.7.0"}}}]}
1+
{"meta":{"registryId":"vixcpp-registry","specVersion":"1.0.0","generatedAt":"2026-02-10T16:35:25.819Z","sourceRepo":"https://github.com/vixcpp/registry","indexFormat":"json-per-package","entryCount":2},"entries":[{"description":"","displayName":"binary_search","homepage":"https://github.com/Gaspardkirira/binary_search","keywords":[],"latest":"0.1.1","license":"MIT","maintainers":[{"github":"","name":""}],"manifestPath":"vix.json","name":"binary_search","namespace":"gaspardkirira","repo":{"defaultBranch":"main","url":"https://github.com/Gaspardkirira/binary_search"},"type":"header-only","versions":{"0.1.1":{"commit":"b2cc3302637f336f2a798f8bf4e855c4b20f7522","notes":"Fix registry id + publishable commit","tag":"v0.1.1"}}},{"description":"Tiny header-only example library for demonstrating the Vix Registry workflow.","displayName":"tree","readme":"# tree\n\nA tiny header-only example library for the Vix Registry demo.\n\n## Usage\n- Include headers from `include/`\n- Example in `examples/basic.cpp`\n\n---\n\n## License\n\nMIT © [Gaspard Kirira Authors](https://github.com/Gaspardkirira/tree)\n","homepage":"https://github.com/GaspardKirira/tree","keywords":["c++","header-only","demo","registry","vix"],"latest":"0.7.0","license":"MIT","maintainers":[{"github":"GaspardKirira","name":"Gaspard Kirira"}],"manifestPath":"vix.json","name":"tree","namespace":"gaspardkirira","repo":{"defaultBranch":"main","url":"https://github.com/GaspardKirira/tree"},"type":"header-only","versions":{"0.1.0":{"commit":"ffcf9d703e6113f5ac5887c99b45baaccf7e4937","notes":"Initial demo release","tag":"v0.1.0"},"0.2.0":{"commit":"b79ba53ca60a78a3c4b7baaa1da728907ee0a5fa","notes":"Add count_leaves helper","tag":"v0.2.0"},"0.5.0":{"commit":"b184d0cf2220f825ca41139bede5543c5e717df4","notes":"Add index_by_id helper","tag":"v0.5.0"},"0.6.0":{"commit":"6d6a9abdf1b80a85b2f97832153b754f9f746629","notes":"Add count_internal_nodes helper","tag":"v0.6.0"},"0.7.0":{"commit":"18363babf297b4050d2585596238012faee65d52","notes":"Add tree helper","tag":"v0.7.0"}}}]}

vix-site/src/data/github_stats.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"repo": "vixcpp/vix",
3-
"fetched_at": "2026-02-10T15:36:35.833Z",
3+
"fetched_at": "2026-02-10T16:35:57.412Z",
44
"stars": 267,
55
"forks": 22,
66
"open_issues": 182,

vix-site/src/pages/registry/RegistryBrowse.vue

Lines changed: 26 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,15 @@ const searchEl = ref(null);
2020
const worker = new RegistrySearchWorker();
2121
2222
function doSearch() {
23+
const isEmpty = !q.value || !q.value.trim();
24+
2325
worker.postMessage({
2426
type: "search",
25-
query: q.value || "",
26-
limit: q.value ? 30 : 50
27+
query: isEmpty ? "" : q.value.trim(),
28+
limit: isEmpty ? 50 : 30,
29+
sort: isEmpty ? "latest" : "score"
2730
});
2831
}
29-
3032
function goSearch(next) {
3133
const s = (next ?? q.value ?? "").toString().trim();
3234
@@ -175,7 +177,12 @@ watch(
175177
<li v-for="h in hits" :key="h.id" class="item">
176178
<div class="row">
177179
<div class="left">
178-
<div class="id">{{ h.id }}</div>
180+
<RouterLink
181+
class="id id-link"
182+
:to="`/registry/pkg/${h.namespace}/${h.name}`"
183+
>
184+
{{ h.id }}
185+
</RouterLink>
179186
<div v-if="h.description" class="desc">{{ h.description }}</div>
180187
</div>
181188
@@ -457,6 +464,21 @@ watch(
457464
padding: 12px 14px 14px;
458465
border-top: 1px solid rgba(148,163,184,.10);
459466
}
467+
.id-link{
468+
color: #1a73e8;
469+
font-weight: 700;
470+
text-decoration: none;
471+
}
472+
473+
.id-link:hover{
474+
text-decoration: underline;
475+
text-underline-offset: 2px;
476+
}
477+
478+
.id-link:visited{
479+
color: #1a73e8;
480+
}
481+
460482
461483
/* Mobile */
462484
@media (max-width: 920px){

0 commit comments

Comments
 (0)