summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGitHub Action <[email protected]>2026-01-20 11:40:31 +0000
committerGitHub Action <[email protected]>2026-01-20 11:40:31 +0000
commit27406cf8ef0dac16e1c4dc8767132c64d0deb4d1 (patch)
treeba97761d19372694c096aaa411503b1ff9bb561f
parent0596b02f198ebe43703c3702f45eb2f1acdda431 (diff)
downloadopencode-27406cf8ef0dac16e1c4dc8767132c64d0deb4d1.tar.gz
opencode-27406cf8ef0dac16e1c4dc8767132c64d0deb4d1.zip
chore: generate
-rw-r--r--packages/app/src/pages/layout.tsx4
-rw-r--r--packages/desktop/src/index.tsx32
2 files changed, 17 insertions, 19 deletions
diff --git a/packages/app/src/pages/layout.tsx b/packages/app/src/pages/layout.tsx
index b46758049..816793753 100644
--- a/packages/app/src/pages/layout.tsx
+++ b/packages/app/src/pages/layout.tsx
@@ -1614,9 +1614,7 @@ export default function Layout(props: ParentProps) {
</Collapsible.Trigger>
}
>
- <div class="flex items-center justify-between w-full pl-2 pr-16 py-1.5 rounded-md">
- {header()}
- </div>
+ <div class="flex items-center justify-between w-full pl-2 pr-16 py-1.5 rounded-md">{header()}</div>
</Show>
<div
class="absolute right-1 top-1/2 -translate-y-1/2 flex items-center gap-0.5 transition-opacity"
diff --git a/packages/desktop/src/index.tsx b/packages/desktop/src/index.tsx
index 3b3002967..7d41fd8f4 100644
--- a/packages/desktop/src/index.tsx
+++ b/packages/desktop/src/index.tsx
@@ -89,27 +89,27 @@ const createPlatform = (password: Accessor<string | null>): Platform => ({
length(): Promise<number>
}
- const WRITE_DEBOUNCE_MS = 250
+ const WRITE_DEBOUNCE_MS = 250
- const storeCache = new Map<string, Promise<StoreLike>>()
- const apiCache = new Map<string, AsyncStorage & { flush: () => Promise<void> }>()
- const memoryCache = new Map<string, StoreLike>()
+ const storeCache = new Map<string, Promise<StoreLike>>()
+ const apiCache = new Map<string, AsyncStorage & { flush: () => Promise<void> }>()
+ const memoryCache = new Map<string, StoreLike>()
- const flushAll = async () => {
- const apis = Array.from(apiCache.values())
- await Promise.all(apis.map((api) => api.flush().catch(() => undefined)))
- }
-
- if ("addEventListener" in globalThis) {
- const handleVisibility = () => {
- if (document.visibilityState !== "hidden") return
- void flushAll()
- }
+ const flushAll = async () => {
+ const apis = Array.from(apiCache.values())
+ await Promise.all(apis.map((api) => api.flush().catch(() => undefined)))
+ }
- window.addEventListener("pagehide", () => void flushAll())
- document.addEventListener("visibilitychange", handleVisibility)
+ if ("addEventListener" in globalThis) {
+ const handleVisibility = () => {
+ if (document.visibilityState !== "hidden") return
+ void flushAll()
}
+ window.addEventListener("pagehide", () => void flushAll())
+ document.addEventListener("visibilitychange", handleVisibility)
+ }
+
const createMemoryStore = () => {
const data = new Map<string, string>()
const store: StoreLike = {