Merge branch 'dev' into preview

This commit is contained in:
ccbikai 2025-02-08 20:24:40 +08:00
commit 4eba7cc37d
3 changed files with 12 additions and 7 deletions

View file

@ -6,20 +6,25 @@
<img
src="https://trendshift.io/api/badge/repositories/10421"
alt="ccbikai/Sink | Trendshift"
style="width: 250px; height: 55px;"
width="250"
height="55"
/>
</a>
<a href="https://news.ycombinator.com/item?id=40843683">
<a href="https://news.ycombinator.com/item?id=40843683" target="_blank">
<img
src="https://hackernews-badge.vercel.app/api?id=40843683"
alt="Featured on Hacker News"
style="width: 250px; height: 55px;"
width="250"
height="55"
/>
</a>
<a href="https://www.uneed.best/tool/sink" target="_blank">
<img
src="https://www.uneed.best/POTW1.png"
alt="Uneed Badge"
height="55"
/>
</a>
![Cloudflare](https://img.shields.io/badge/Cloudflare-F69652?style=flat&logo=cloudflare&logoColor=white)
![Nuxt](https://img.shields.io/badge/Nuxt-00DC82?style=flat&logo=nuxtdotjs&logoColor=white)
@ -93,7 +98,7 @@ We welcome your contributions and PRs.
5. Save and deploy the project.
6. Cancel the deployment, then navigate to **Settings** -> **Bindings** -> **Add**:
- **KV Namespace**: Bind the variable name `KV` to a KV namespace (create a new one under **Workers & Pages** -> **KV**).
- **KV Namespace**: Bind the variable name `KV` to a [KV namespace](https://developers.cloudflare.com/kv/) (create a new one under **Storage & Databases** -> **KV**).
- **Workers AI** (_Optional_): Bind the variable name `AI` to the Workers AI Catalog.
- **Analytics Engine**:
- In **Workers & Pages**, go to **Account details** on the right side, find `Analytics Engine`, and click `Set up` to enable the free version.
@ -123,5 +128,5 @@ We welcome your contributions and PRs.
## ☕ Sponsor
1. [Follow Me on X(Twitter)](https://x.com/0xKaiBi).
1. [Follow Me on X(Twitter)](https://404.li/kai).
2. [Become a sponsor to on GitHub](https://github.com/sponsors/ccbikai).

View file

@ -114,7 +114,7 @@ async function onSubmit(formData) {
body: link,
})
dialogOpen.value = false
emit('update:link', newLink)
emit('update:link', newLink, isEdit ? 'edit' : 'create')
if (isEdit) {
toast('Link updated successfully')
}

View file

@ -1,7 +1,7 @@
{
"name": "sink",
"type": "module",
"version": "0.1.7",
"version": "0.1.8",
"private": true,
"packageManager": "pnpm@9.15.1",
"engines": {