diff --git a/components/PageHero.tsx b/components/PageHero.tsx
index b4fc90b..58675c5 100644
--- a/components/PageHero.tsx
+++ b/components/PageHero.tsx
@@ -110,7 +110,7 @@ function Subline(
const ctx = useContext(HeroContext);
return (
{children}
diff --git a/islands/KMenu.tsx b/islands/KMenu.tsx
index 16c7e39..e3ee48b 100644
--- a/islands/KMenu.tsx
+++ b/islands/KMenu.tsx
@@ -191,7 +191,7 @@ export const KMenu = (
}}
style={{ outline: "none !important" }}
placeholder="Command"
- class="bg-transparent color pl-4 outline outline outline-2 outline-offset-2"
+ class="bg-transparent color pl-4 outline-none"
/>
>
)}
diff --git a/lib/cache.ts b/lib/cache.ts
index 979305c..a0d8415 100644
--- a/lib/cache.ts
+++ b/lib/cache.ts
@@ -6,9 +6,9 @@ interface SetCacheOptions {
expires?: number; // Override expiration for individual cache entries
}
-export const caches = new Map<
+const caches = new Map<
string,
- { info: () => { count: number; sizeInKB: number } }
+ { info: () => { name: string; count: number; sizeInKB: number } }
>();
export function createCache(
@@ -96,9 +96,10 @@ export function createCache(
caches.set(cacheName, {
info: api.info.bind(api),
});
+
return api;
}
export function getCacheInfo() {
- return caches.values().map((c) => c.info());
+ return [...caches.values().map((c) => c.info())];
}
diff --git a/lib/crud.ts b/lib/crud.ts
index 4dfb3ea..64d0497 100644
--- a/lib/crud.ts
+++ b/lib/crud.ts
@@ -89,10 +89,10 @@ export function createCrud(
return;
}
- const parsed = parse(content, id);
+ let parsed = parse(content, id);
if (hasThumbnails) {
- return addThumbnailToResource(parsed);
+ parsed = await addThumbnailToResource(parsed);
}
const doc = { ...parsed, content };
cache.set(path, doc, { expires: 10 * 1000 });
@@ -124,7 +124,6 @@ export function createCrud(
return;
}
const newDoc = transformDocument(content, updater);
- cache.set("all", undefined);
await createDocument(path, newDoc);
}
diff --git a/routes/_app.tsx b/routes/_app.tsx
index 990d5bd..4c24222 100644
--- a/routes/_app.tsx
+++ b/routes/_app.tsx
@@ -19,6 +19,7 @@ export default function App({ Component }: PageProps) {
/>
+
Memorium