From 6c2752d39af5cb89641d75136887eafd510cb9b6 Mon Sep 17 00:00:00 2001 From: ben little Date: Sat, 13 Jul 2024 17:03:02 -0600 Subject: [PATCH] clean up before merge ->main --- api/main.go | 4 ---- du.out | 26 -------------------------- ui/Cargo.toml | 4 ++-- ui/src/data.rs | 19 ------------------- ui/style.scss | 12 +----------- 5 files changed, 3 insertions(+), 62 deletions(-) delete mode 100644 du.out diff --git a/api/main.go b/api/main.go index 2107f7e..8ebff2f 100644 --- a/api/main.go +++ b/api/main.go @@ -194,10 +194,6 @@ func find_media(m *Manager) func(c *gin.Context) { media, ok := m.Media.Get(id.(ID)) if !ok { log.Printf("media not found: %s", id) - items, _ := m.Media.List() - for iid := range items { - log.Printf("%s", iid) - } c.AbortWithStatus(http.StatusNotFound) return } diff --git a/du.out b/du.out deleted file mode 100644 index 9173cb6..0000000 --- a/du.out +++ /dev/null @@ -1,26 +0,0 @@ -1.3M ../agda-playground -6.8G ../asm -453M ../cargo-error -7.6M ../cu-boulder-fall-23 -147M ../cv -361M ../doc-store-rs -684K ../dumbo -309M ../exmaple -16K ../go-helpers -6.3M ../go-html-forms -172K ../hack-society -132K ../homelab -407M ../img-svc -4.0K ../img-svc2 -51M ../ipld-metadata -896M ../leptos-use -82M ../littlebenlittle.github.io -12G ../media-manager -416K ../NoHarm -261M ../resman -1.9M ../rust-playground -134M ../rustwasm-tusd -128K ../util -4.7M ../wasm-repl -204M ../wasmtime -2.1M ../yew-playground diff --git a/ui/Cargo.toml b/ui/Cargo.toml index 99c6b03..f6b07ea 100644 --- a/ui/Cargo.toml +++ b/ui/Cargo.toml @@ -5,7 +5,7 @@ edition = "2021" authors = ["ben little "] [features] -demo = [] +demo = ["dep:lazy-static"] [dependencies] leptos = { version = "0.6", features = ["csr", "nightly"] } @@ -26,7 +26,7 @@ reqwest = "0.12.4" sha2 = "0.10.8" uuid = { version = "1.8.0", features = [ "v4" ] } base64 = "0.22.1" -lazy_static = "1.5" +lazy_static = { version = "1.5", optional = true } [dependencies.leptos-use] version = "0.10.10" diff --git a/ui/src/data.rs b/ui/src/data.rs index d3e197d..55704bb 100644 --- a/ui/src/data.rs +++ b/ui/src/data.rs @@ -9,22 +9,3 @@ pub struct MediaItem { pub title: String, pub url: String, } - -// #[derive(Debug, PartialEq, Clone, Serialize, Deserialize)] -// pub enum MediaFormat { -// Webm, -// Ogg, -// Mp4, -// Unknown, -// } - -// impl From<&str> for MediaFormat { -// fn from(value: &str) -> Self { -// match value.to_lowercase().as_str() { -// "webm" => Self::Webm, -// "ogg" => Self::Ogg, -// "mp4" => Self::Mp4, -// _ => Self::Unknown, -// } -// } -// } diff --git a/ui/style.scss b/ui/style.scss index 3a1e814..fe7d6b3 100644 --- a/ui/style.scss +++ b/ui/style.scss @@ -1,13 +1,3 @@ -/* --------------------- Open Props --------------------------- */ - -// @import "https://unpkg.com/open-props"; - -/* optional imports that use the props */ -// @import "https://unpkg.com/open-props/normalize.min.css"; -// @import "https://unpkg.com/open-props/buttons.min.css"; - -/* ------------------------------------------------------------ */ - html, body { padding: 0; @@ -497,4 +487,4 @@ button:hover { a:hover { color: #5ad; } -} \ No newline at end of file +}