From 9e6a5534344bfbfc600a558cd11e00b68cdac6a6 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 5d96d6dfd8..d093676280 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 49d2c87e50582b5fa86dfd878f715a41377767d6 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 3dd71a5557..f8383357b5 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 c4fa29be5032e0a52e3ab3562f9d67175fb37875 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 68e4619ebb..e5c0a26762 100644 --- a/packages/client/src/ui/_common_/navbar.vue +++ b/packages/client/src/ui/_common_/navbar.vue @@ -92,7 +92,12 @@ >{{ i18n.ts.controlPanel }} -