From f6642ee4369b4eef1fcaca93fd7f44005cf2bb46 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=9D=A2=E6=9D=A1?= <2959393+ccbikai@users.noreply.github.com> Date: Sun, 15 Dec 2024 20:43:55 +0800 Subject: [PATCH 1/3] docs: Update code, refer to the official GitHub documentation --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 14424b8..69887d8 100644 --- a/README.md +++ b/README.md @@ -101,6 +101,7 @@ We welcome your contributions and PRs. - Bind the variable name `ANALYTICS` to the `sink` dataset. 7. Redeploy the project. +8. Update code, refer to the official GitHub documentation [Syncing a fork branch from the web UI](https://docs.github.com/pull-requests/collaborating-with-pull-requests/working-with-forks/syncing-a-fork#syncing-a-fork-branch-from-the-web-ui). ## ⚒️ Configuration From e995d5063f167c3b78c4596f8ff8e96d65a3e7a3 Mon Sep 17 00:00:00 2001 From: ccbikai Date: Sun, 15 Dec 2024 20:54:50 +0800 Subject: [PATCH 2/3] chore: v0.1.6 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 9869c83..3ec4b63 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "sink", "type": "module", - "version": "0.1.5", + "version": "0.1.6", "private": true, "packageManager": "pnpm@9.7.1", "engines": { From 7863b765707be4551efce4a920839e2b879b831f Mon Sep 17 00:00:00 2001 From: ccbikai Date: Sun, 15 Dec 2024 21:04:21 +0800 Subject: [PATCH 3/3] fix: remove the slug conversion that cannot be reached. --- components/dashboard/links/Editor.vue | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/components/dashboard/links/Editor.vue b/components/dashboard/links/Editor.vue index d4eeddd..4f7fb3b 100644 --- a/components/dashboard/links/Editor.vue +++ b/components/dashboard/links/Editor.vue @@ -102,12 +102,10 @@ onMounted(() => { } }) -const { caseSensitive } = useRuntimeConfig() - async function onSubmit(formData) { const link = { url: formData.url, - slug: caseSensitive ? formData.slug : formData.slug.toLowerCase(), + slug: formData.slug, ...(formData.optional || []), expiration: formData.optional?.expiration ? date2unix(formData.optional?.expiration, 'end') : undefined, }