From 14f41ec10c979e0e0e42f222dd9cb660e9434265 Mon Sep 17 00:00:00 2001 From: DevITWay | Pavel Volkov Date: Fri, 27 Mar 2026 23:08:48 +0300 Subject: [PATCH] fix: add Raw to sidebar, update footer stats (32MB, 7 registries), fix badges (#64) --- README.md | 3 +-- nora-registry/src/ui/components.rs | 18 ++++++++++++++++-- 2 files changed, 17 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index b9ff2b1..91901dc 100644 --- a/README.md +++ b/README.md @@ -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. [![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) **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) -[![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) [![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) diff --git a/nora-registry/src/ui/components.rs b/nora-registry/src/ui/components.rs index 3616d3f..b68eef2 100644 --- a/nora-registry/src/ui/components.rs +++ b/nora-registry/src/ui/components.rs @@ -109,6 +109,13 @@ fn sidebar_dark(active_page: Option<&str>, t: &Translations) -> String { ("npm", "/ui/npm", "npm", npm_icon, false), ("cargo", "/ui/cargo", "Cargo", cargo_icon, false), ("pypi", "/ui/pypi", "PyPI", pypi_icon, false), + ( + "raw", + "/ui/raw", + "Raw", + r#""#, + false, + ), ( "go", "/ui/go", @@ -513,6 +520,13 @@ fn sidebar(active_page: Option<&str>) -> String { ("npm", "/ui/npm", "npm", npm_icon, false), ("cargo", "/ui/cargo", "Cargo", cargo_icon, false), ("pypi", "/ui/pypi", "PyPI", pypi_icon, false), + ( + "raw", + "/ui/raw", + "Raw", + r#""#, + false, + ), ( "go", "/ui/go", @@ -691,7 +705,7 @@ pub fn render_bragging_footer(lang: Lang) -> String {
-
34 MB
+
32 MB
{}
@@ -703,7 +717,7 @@ pub fn render_bragging_footer(lang: Lang) -> String {
{}
-
5
+
7
{}