From 2dc7d11166f9fed890c49413eb23b70c516a848d Mon Sep 17 00:00:00 2001 From: Freeplay Date: Sun, 4 Jun 2023 15:31:42 -0400 Subject: [PATCH 1/5] preload antennas & lists --- packages/client/src/pages/timeline.vue | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/client/src/pages/timeline.vue b/packages/client/src/pages/timeline.vue index 5d96d6dfd..d09367628 100644 --- a/packages/client/src/pages/timeline.vue +++ b/packages/client/src/pages/timeline.vue @@ -152,8 +152,8 @@ function top(): void { scroll(rootEl, { top: 0 }); } -async function chooseList(ev: MouseEvent): Promise { - const lists = await os.api("users/lists/list"); +const lists = await os.api("users/lists/list"); +function chooseList(ev: MouseEvent) { const items = [ { type: "link" as const, @@ -172,8 +172,8 @@ async function chooseList(ev: MouseEvent): Promise { os.popupMenu(items, ev.currentTarget ?? ev.target); } -async function chooseAntenna(ev: MouseEvent): Promise { - const antennas = await os.api("antennas/list"); +const antennas = await os.api("antennas/list"); +function chooseAntenna(ev: MouseEvent) { const items = [ { type: "link" as const, From 70e8aea389eae3aed5c6829b1ed4daec0f00bbf3 Mon Sep 17 00:00:00 2001 From: Freeplay Date: Sun, 4 Jun 2023 15:39:23 -0400 Subject: [PATCH 2/5] 'clip' to 'clips' #10255 --- packages/client/src/navbar.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/client/src/navbar.ts b/packages/client/src/navbar.ts index 3dd71a555..f8383357b 100644 --- a/packages/client/src/navbar.ts +++ b/packages/client/src/navbar.ts @@ -91,7 +91,7 @@ export const navbarItemDef = reactive({ to: "/gallery", }, clips: { - title: "clip", + title: "clips", icon: "ph-paperclip ph-bold ph-lg", show: computed(() => $i != null), to: "/my/clips", From e23dc68ac90cd55715ad1aa814b2cef6db002e31 Mon Sep 17 00:00:00 2001 From: Freeplay Date: Sun, 4 Jun 2023 15:46:11 -0400 Subject: [PATCH 3/5] i18n to more button in navbar --- packages/client/src/ui/_common_/navbar.vue | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/packages/client/src/ui/_common_/navbar.vue b/packages/client/src/ui/_common_/navbar.vue index 68e4619eb..e5c0a2676 100644 --- a/packages/client/src/ui/_common_/navbar.vue +++ b/packages/client/src/ui/_common_/navbar.vue @@ -92,7 +92,12 @@ >{{ i18n.ts.controlPanel }} -