From ef333a80807246630a7ae29a6ec90638ea605abe Mon Sep 17 00:00:00 2001 From: Zac Date: Mon, 19 Aug 2024 01:50:42 +0800 Subject: [PATCH 1/8] add chrome extension for the skin --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 2a9bf21..77a1cae 100644 --- a/README.md +++ b/README.md @@ -67,7 +67,8 @@ Site Token: SinkCool We welcome your contributions and PRs. -- [ ] Browser Extension +- [x] Browser Extension + - [Skin Tool](https://github.com/zhuzhuyule/skin-extension) - [ ] Raycast Extension - [ ] Apple Shortcuts - [ ] Enhanced Link Management (with Cloudflare D1) From 968cc521724bfe76a4b495be2a5a10fa12cd2b36 Mon Sep 17 00:00:00 2001 From: Zac Date: Tue, 20 Aug 2024 22:47:05 +0800 Subject: [PATCH 2/8] fix: fix spelling mistake --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 77a1cae..61afd55 100644 --- a/README.md +++ b/README.md @@ -68,7 +68,7 @@ Site Token: SinkCool We welcome your contributions and PRs. - [x] Browser Extension - - [Skin Tool](https://github.com/zhuzhuyule/skin-extension) + - [Skin Tool](https://github.com/zhuzhuyule/sink-extension) - [ ] Raycast Extension - [ ] Apple Shortcuts - [ ] Enhanced Link Management (with Cloudflare D1) From 02d5e30e87661f2f50df9195ee8f6ed81c38631e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=9D=A2=E6=9D=A1?= <2959393+ccbikai@users.noreply.github.com> Date: Mon, 16 Sep 2024 19:25:41 +0800 Subject: [PATCH 3/8] docs: add video tutorial --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index 2a9bf21..4874314 100644 --- a/README.md +++ b/README.md @@ -78,6 +78,8 @@ We welcome your contributions and PRs. ## 🏗️ Deployment +> Video tutorial: + 1. [Fork](https://github.com/ccbikai/Sink/fork) the repository to your GitHub account. 2. Create a [Cloudflare Pages](https://developers.cloudflare.com/pages/) project. 3. Select the `Sink` repository and the `Nuxt.js` preset. From cae1828da154736b0b8fe7f8256fc48074d29b5b Mon Sep 17 00:00:00 2001 From: Manuel Osorio Date: Sun, 29 Sep 2024 15:10:17 -0400 Subject: [PATCH 4/8] feat: remove leading and trailing slash from slug --- server/middleware/1.redirect.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/middleware/1.redirect.ts b/server/middleware/1.redirect.ts index 81f32dd..297098d 100644 --- a/server/middleware/1.redirect.ts +++ b/server/middleware/1.redirect.ts @@ -3,7 +3,7 @@ import { parsePath, withQuery } from 'ufo' import type { LinkSchema } from '@/schemas/link' export default eventHandler(async (event) => { - const { pathname: slug } = parsePath(event.path.slice(1)) // remove leading slash + const { pathname: slug } = parsePath(event.path.replace(/^\/|\/$/g, '')) // remove leading and trailing slashes const { slugRegex, reserveSlug } = useAppConfig(event) const { homeURL, linkCacheTtl, redirectWithQuery } = useRuntimeConfig(event) const { cloudflare } = event.context From 9f98d0017b9d309dd5d20e5016de07fd5943289d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=9D=A2=E6=9D=A1?= <2959393+ccbikai@users.noreply.github.com> Date: Wed, 16 Oct 2024 20:27:59 +0800 Subject: [PATCH 5/8] docs: Raycast Extension --- README.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index a86a01c..a6959ff 100644 --- a/README.md +++ b/README.md @@ -68,8 +68,9 @@ Site Token: SinkCool We welcome your contributions and PRs. - [x] Browser Extension - - [Skin Tool](https://github.com/zhuzhuyule/sink-extension) -- [ ] Raycast Extension + - [Sink Tool](https://github.com/zhuzhuyule/sink-extension) +- [x] Raycast Extension + - [Raycast-Sink](https://github.com/foru17/raycast-sink) - [ ] Apple Shortcuts - [ ] Enhanced Link Management (with Cloudflare D1) - [ ] Analytics Enhancements (Support for merging filter conditions) From 04492c3813dd0eaae85b51e32fb878e7c7548ba7 Mon Sep 17 00:00:00 2001 From: Logan Date: Fri, 18 Oct 2024 11:54:16 +0800 Subject: [PATCH 6/8] =?UTF-8?q?feat:=20=E5=B0=86=E5=9B=BA=E5=AE=9A?= =?UTF-8?q?=E9=93=BE=E6=8E=A5=E5=90=8D=E7=A7=B0=E6=8A=BD=E5=8F=96=E5=88=B0?= =?UTF-8?q?=E9=85=8D=E7=BD=AE=E4=B8=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app.config.ts | 6 ++++++ components/dashboard/Breadcrumb.vue | 3 ++- components/home/Hero.vue | 4 ++-- components/home/Twitter.vue | 4 +++- components/layouts/Footer.vue | 28 +++++++++++++++------------- components/layouts/Header.vue | 17 +++++++++-------- 6 files changed, 37 insertions(+), 25 deletions(-) diff --git a/app.config.ts b/app.config.ts index 919ec00..ae92df8 100644 --- a/app.config.ts +++ b/app.config.ts @@ -1,5 +1,11 @@ export default defineAppConfig({ title: 'Sink', + twitter: 'https://x.com/0xKaiBi', + github: 'https://github.com/ccbikai/sink', + email: 'sink.cool@miantiao.me', + telegram: 'https://t.me/htmlzone', + mastodon: 'https://miantiao.me/@chi', + blog: 'https://mt.ci', description: 'A Simple / Speedy / Secure Link Shortener with Analytics, 100% run on Cloudflare.', image: 'https://sink.cool/banner.png', previewTTL: 24 * 3600, // 24h diff --git a/components/dashboard/Breadcrumb.vue b/components/dashboard/Breadcrumb.vue index ad84c85..5cd5077 100644 --- a/components/dashboard/Breadcrumb.vue +++ b/components/dashboard/Breadcrumb.vue @@ -7,6 +7,7 @@ defineProps({ required: true, }, }) +const { title } = useAppConfig()