From 9e8aac7448bdc133d27d2ed5898c81f72d6c568c Mon Sep 17 00:00:00 2001 From: ccbikai Date: Sun, 2 Mar 2025 18:20:54 +0800 Subject: [PATCH 01/14] chore(deps): bump version from 0.1.8 to 0.1.9 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 9be9416..98af1e1 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "sink", "type": "module", - "version": "0.1.8", + "version": "0.1.9", "private": true, "packageManager": "pnpm@9.15.1", "engines": { From e0b6ffd62be573d29581dcff5b4dbc0f31ac82a5 Mon Sep 17 00:00:00 2001 From: MinerAle <66887063+MinerAle00@users.noreply.github.com> Date: Sun, 2 Mar 2025 21:45:43 +0100 Subject: [PATCH 02/14] feat: Add sorting options for links in dashboard --- components/dashboard/links/Index.vue | 36 ++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) diff --git a/components/dashboard/links/Index.vue b/components/dashboard/links/Index.vue index b0a56eb..58c297b 100644 --- a/components/dashboard/links/Index.vue +++ b/components/dashboard/links/Index.vue @@ -7,6 +7,7 @@ const limit = 24 let cursor = '' let listComplete = false let listError = false +const sortBy = ref('created_desc') // created_desc, created_asc, alpha_asc, alpha_desc async function getLinks() { try { @@ -14,6 +15,7 @@ async function getLinks() { query: { limit, cursor, + sort: sortBy.value, }, }) links.value = links.value.concat(data.links).filter(Boolean) // Sometimes cloudflare will return null, filter out @@ -62,6 +64,40 @@ function updateLinkList(link, type) { +
+ + + + +
Date: Sun, 2 Mar 2025 21:53:22 +0100 Subject: [PATCH 03/14] Drop Down menu --- components/dashboard/links/Index.vue | 90 ++++++++++++++++------------ 1 file changed, 53 insertions(+), 37 deletions(-) diff --git a/components/dashboard/links/Index.vue b/components/dashboard/links/Index.vue index 58c297b..2984d9b 100644 --- a/components/dashboard/links/Index.vue +++ b/components/dashboard/links/Index.vue @@ -1,13 +1,35 @@