Merge remote-tracking branch 'origin/master' into dev
This commit is contained in:
commit
b26b036833
7 changed files with 14 additions and 11 deletions
|
|
@ -1 +1 @@
|
|||
v20.11
|
||||
20.11.0
|
||||
|
|
|
|||
|
|
@ -71,7 +71,8 @@ We welcome your contributions and PRs.
|
|||
- [Sink Tool](https://github.com/zhuzhuyule/sink-extension)
|
||||
- [x] Raycast Extension
|
||||
- [Raycast-Sink](https://github.com/foru17/raycast-sink)
|
||||
- [ ] Apple Shortcuts
|
||||
- [x] Apple Shortcuts
|
||||
- [Sink Shortcuts](https://s.search1api.com/sink001)
|
||||
- [ ] Enhanced Link Management (with Cloudflare D1)
|
||||
- [ ] Analytics Enhancements (Support for merging filter conditions)
|
||||
- [ ] Dashboard Performance Optimization (Infinite loading)
|
||||
|
|
|
|||
|
|
@ -1,11 +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://c.im/@mt',
|
||||
blog: 'https://mt.ci',
|
||||
github: 'https://github.com/ccbikai/sink',
|
||||
twitter: 'https://sink.cool/kai',
|
||||
telegram: 'https://sink.cool/telegram',
|
||||
mastodon: 'https://sink.cool/mastodon',
|
||||
blog: 'https://sink.cool/blog',
|
||||
description: 'A Simple / Speedy / Secure Link Shortener with Analytics, 100% run on Cloudflare.',
|
||||
image: 'https://sink.cool/banner.png',
|
||||
previewTTL: 24 * 3600, // 24h
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"name": "sink",
|
||||
"type": "module",
|
||||
"version": "0.1.4",
|
||||
"version": "0.1.5",
|
||||
"private": true,
|
||||
"packageManager": "pnpm@9.7.1",
|
||||
"engines": {
|
||||
|
|
|
|||
|
|
@ -23,6 +23,7 @@ export default eventHandler(async (event) => {
|
|||
},
|
||||
})
|
||||
setResponseStatus(event, 201)
|
||||
return { link }
|
||||
const shortLink = `${getRequestProtocol(event)}://${getRequestHost(event)}/${link.slug}`
|
||||
return { link, shortLink }
|
||||
}
|
||||
})
|
||||
|
|
|
|||
|
|
@ -30,6 +30,7 @@ export default eventHandler(async (event) => {
|
|||
},
|
||||
})
|
||||
setResponseStatus(event, 201)
|
||||
return { link: newLink }
|
||||
const shortLink = `${getRequestProtocol(event)}://${getRequestHost(event)}/${link.slug}`
|
||||
return { link: newLink, shortLink }
|
||||
}
|
||||
})
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@ export default eventHandler(async (event) => {
|
|||
const list = await KV.list({
|
||||
prefix: `link:`,
|
||||
limit,
|
||||
cursor,
|
||||
cursor: cursor || undefined,
|
||||
})
|
||||
if (Array.isArray(list.keys)) {
|
||||
list.links = await Promise.all(list.keys.map(async (key: { name: string }) => {
|
||||
|
|
|
|||
Loading…
Reference in a new issue