Merge branch 'master' into preview

This commit is contained in:
ccbikai 2024-12-15 21:05:29 +08:00
commit 4e3da1f36a
3 changed files with 3 additions and 4 deletions

View file

@ -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

View file

@ -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,
}

View file

@ -1,7 +1,7 @@
{
"name": "sink",
"type": "module",
"version": "0.1.5",
"version": "0.1.6",
"private": true,
"packageManager": "pnpm@9.7.1",
"engines": {