fix: add Raw to sidebar, update footer stats (32MB, 7 registries), fix badges (#64)

This commit is contained in:
2026-03-27 23:08:48 +03:00
committed by GitHub
parent 9bf6615a10
commit 14f41ec10c
2 changed files with 17 additions and 4 deletions

View File

@@ -19,7 +19,7 @@ Open [http://localhost:4000/ui/](http://localhost:4000/ui/) — your registry is
- **Secure by default** — [OpenSSF Scorecard](https://scorecard.dev/viewer/?uri=github.com/getnora-io/nora), signed releases, SBOM, fuzz testing, 200+ unit tests. - **Secure by default** — [OpenSSF Scorecard](https://scorecard.dev/viewer/?uri=github.com/getnora-io/nora), signed releases, SBOM, fuzz testing, 200+ unit tests.
[![Release](https://img.shields.io/github/v/release/getnora-io/nora)](https://github.com/getnora-io/nora/releases) [![Release](https://img.shields.io/github/v/release/getnora-io/nora)](https://github.com/getnora-io/nora/releases)
[![Image Size](https://ghcr-badge.egpl.dev/getnora-io/nora/size?label=image)](https://github.com/getnora-io/nora/pkgs/container/nora) [![Image Size](https://img.shields.io/badge/image-32%20MB-blue)](https://github.com/getnora-io/nora/pkgs/container/nora)
[![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](LICENSE) [![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](LICENSE)
**32 MB** binary | **< 100 MB** RAM | **3s** startup | **7** registries **32 MB** binary | **< 100 MB** RAM | **3s** startup | **7** registries
@@ -249,7 +249,6 @@ See [SECURITY.md](SECURITY.md) for vulnerability reporting.
Created and maintained by [DevITWay](https://github.com/devitway) Created and maintained by [DevITWay](https://github.com/devitway)
[![Release](https://img.shields.io/github/v/release/getnora-io/nora)](https://github.com/getnora-io/nora/releases)
[![GHCR](https://img.shields.io/badge/ghcr.io-nora-blue?logo=github)](https://github.com/getnora-io/nora/pkgs/container/nora) [![GHCR](https://img.shields.io/badge/ghcr.io-nora-blue?logo=github)](https://github.com/getnora-io/nora/pkgs/container/nora)
[![Rust](https://img.shields.io/badge/rust-%23000000.svg?logo=rust&logoColor=white)](https://www.rust-lang.org/) [![Rust](https://img.shields.io/badge/rust-%23000000.svg?logo=rust&logoColor=white)](https://www.rust-lang.org/)
[![Docs](https://img.shields.io/badge/docs-getnora.dev-green?logo=gitbook)](https://getnora.dev) [![Docs](https://img.shields.io/badge/docs-getnora.dev-green?logo=gitbook)](https://getnora.dev)

View File

@@ -109,6 +109,13 @@ fn sidebar_dark(active_page: Option<&str>, t: &Translations) -> String {
("npm", "/ui/npm", "npm", npm_icon, false), ("npm", "/ui/npm", "npm", npm_icon, false),
("cargo", "/ui/cargo", "Cargo", cargo_icon, false), ("cargo", "/ui/cargo", "Cargo", cargo_icon, false),
("pypi", "/ui/pypi", "PyPI", pypi_icon, false), ("pypi", "/ui/pypi", "PyPI", pypi_icon, false),
(
"raw",
"/ui/raw",
"Raw",
r#"<path fill="currentColor" d="M14 2H6a2 2 0 00-2 2v16a2 2 0 002 2h12a2 2 0 002-2V8l-6-6zm4 18H6V4h7v5h5v11z"/>"#,
false,
),
( (
"go", "go",
"/ui/go", "/ui/go",
@@ -513,6 +520,13 @@ fn sidebar(active_page: Option<&str>) -> String {
("npm", "/ui/npm", "npm", npm_icon, false), ("npm", "/ui/npm", "npm", npm_icon, false),
("cargo", "/ui/cargo", "Cargo", cargo_icon, false), ("cargo", "/ui/cargo", "Cargo", cargo_icon, false),
("pypi", "/ui/pypi", "PyPI", pypi_icon, false), ("pypi", "/ui/pypi", "PyPI", pypi_icon, false),
(
"raw",
"/ui/raw",
"Raw",
r#"<path fill="currentColor" d="M14 2H6a2 2 0 00-2 2v16a2 2 0 002 2h12a2 2 0 002-2V8l-6-6zm4 18H6V4h7v5h5v11z"/>"#,
false,
),
( (
"go", "go",
"/ui/go", "/ui/go",
@@ -691,7 +705,7 @@ pub fn render_bragging_footer(lang: Lang) -> String {
</div> </div>
<div class="grid grid-cols-2 md:grid-cols-3 lg:grid-cols-6 gap-4 text-center"> <div class="grid grid-cols-2 md:grid-cols-3 lg:grid-cols-6 gap-4 text-center">
<div class="p-3"> <div class="p-3">
<div class="text-2xl font-bold text-blue-400">34 MB</div> <div class="text-2xl font-bold text-blue-400">32 MB</div>
<div class="text-xs text-slate-500 mt-1">{}</div> <div class="text-xs text-slate-500 mt-1">{}</div>
</div> </div>
<div class="p-3"> <div class="p-3">
@@ -703,7 +717,7 @@ pub fn render_bragging_footer(lang: Lang) -> String {
<div class="text-xs text-slate-500 mt-1">{}</div> <div class="text-xs text-slate-500 mt-1">{}</div>
</div> </div>
<div class="p-3"> <div class="p-3">
<div class="text-2xl font-bold text-yellow-400">5</div> <div class="text-2xl font-bold text-yellow-400">7</div>
<div class="text-xs text-slate-500 mt-1">{}</div> <div class="text-xs text-slate-500 mt-1">{}</div>
</div> </div>
<div class="p-3"> <div class="p-3">