Skip to content

Commit

Permalink
feat: ssr
Browse files Browse the repository at this point in the history
Signed-off-by: ZTL-UwU <zhangtianli2006@163.com>
  • Loading branch information
ZTL-UwU committed Jun 29, 2024
1 parent 2717901 commit 681dcde
Show file tree
Hide file tree
Showing 13 changed files with 182 additions and 175 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,4 @@ logs

# db
drizzle
local.sqlite
local.sqlite*
10 changes: 8 additions & 2 deletions app.vue
Original file line number Diff line number Diff line change
@@ -1,12 +1,18 @@
<script setup lang="ts">
import { ConfigProvider } from 'radix-vue';
const useIdFunction = () => useId();
</script>

<template>
<div>
<ConfigProvider :use-id="useIdFunction">
<ClientOnly>
<Toaster position="top-center" rich-colors />
</ClientOnly>
<NuxtLayout>
<NuxtPage />
</NuxtLayout>
</div>
</ConfigProvider>
</template>

<style>
Expand Down
Binary file modified bun.lockb
Binary file not shown.
5 changes: 4 additions & 1 deletion components/AboutUsDialog.vue
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
<p>
这个项目的代码是开源的,你可以在
<NuxtLink to="https://github.com/SMS-COSMO/the1068fm" class="font-bold">
这里
<span>这里</span>
</NuxtLink>
查看源代码。期待各位同学的反馈!
</p>
Expand All @@ -40,6 +40,9 @@
<span class="icon-[radix-icons--github-logo]" />
GitHub
</NuxtLink>
<NuxtLink to="https://the1068.pictures/" class="text-gray-600 flex justify-center items-center gap-1 font-serif">
the1068
</NuxtLink>
</section>
</section>
</div>
Expand Down
2 changes: 1 addition & 1 deletion constants/index.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export const passwordRegex = /^(?=.*?[A-Z])(?=.*?[a-z])(?=.*?[0-9])(?=.*?[#?!@$%^&*-_]).{8,}$/;
export const passwordRegex = /^(?=.*?[A-Z])(?=.*?[a-z])(?=.*?\d)(?=.*?[#!_$%&*-]).{8,}$/;
66 changes: 33 additions & 33 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,56 +15,56 @@
"db:push": "drizzle-kit push:sqlite"
},
"dependencies": {
"@libsql/client": "^0.5.3",
"@nuxt/image": "^1.4.0",
"@libsql/client": "^0.5.6",
"@nuxt/image": "^1.7.0",
"@pinia/nuxt": "^0.5.1",
"@trpc/client": "^10.45.0",
"@trpc/server": "^10.45.0",
"@vee-validate/nuxt": "^4.12.4",
"@vee-validate/zod": "^4.12.4",
"@vueuse/core": "^10.7.2",
"@trpc/client": "^10.45.2",
"@trpc/server": "^10.45.2",
"@vee-validate/nuxt": "^4.13.1",
"@vee-validate/zod": "^4.13.1",
"@vueuse/core": "^10.11.0",
"@vueuse/gesture": "2.0.0-beta.1",
"@vueuse/integrations": "^10.7.2",
"@vueuse/nuxt": "^10.7.2",
"@vueuse/integrations": "^10.11.0",
"@vueuse/nuxt": "^10.11.0",
"bcrypt": "^5.1.1",
"class-variance-authority": "^0.7.0",
"clsx": "^2.1.0",
"dayjs": "^1.11.10",
"drizzle-orm": "^0.30.1",
"clsx": "^2.1.1",
"dayjs": "^1.11.11",
"drizzle-orm": "^0.30.10",
"fuse.js": "^7.0.0",
"jose": "^5.2.0",
"jose": "^5.6.2",
"lucide-vue-next": "^0.292.0",
"nanoid": "^5.0.4",
"nanoid": "^5.0.7",
"pinia": "^2.1.7",
"radix-vue": "^1.3.2",
"radix-vue": "^1.8.5",
"superjson": "^2.2.1",
"tailwind-merge": "^2.2.0",
"tailwind-merge": "^2.3.0",
"tailwindcss-animate": "^1.0.7",
"trpc-nuxt": "^0.10.17",
"trpc-nuxt": "^0.10.22",
"v-calendar": "^3.1.2",
"vee-validate": "^4.12.4",
"vee-validate": "^4.13.1",
"vue-draggable-plus": "^0.3.5",
"vue-sonner": "^1.0.2",
"zod": "^3.22.4"
"vue-sonner": "^1.1.3",
"zod": "^3.23.8"
},
"devDependencies": {
"@antfu/eslint-config": "^2.6.3",
"@antfu/eslint-config": "^2.21.2",
"@iconify-json/radix-icons": "^1.1.14",
"@iconify-json/tabler": "^1.1.104",
"@iconify-json/tabler": "^1.1.115",
"@iconify/tailwind": "^0.1.4",
"@nuxt/devtools": "latest",
"@nuxtjs/tailwindcss": "^6.11.0",
"@pinia-plugin-persistedstate/nuxt": "^1.2.0",
"@tailwindcss/typography": "^0.5.10",
"@nuxtjs/tailwindcss": "^6.12.0",
"@pinia-plugin-persistedstate/nuxt": "^1.2.1",
"@tailwindcss/typography": "^0.5.13",
"@types/bcrypt": "^5.0.2",
"@types/bun": "^1.0.4",
"dotenv": "^16.3.2",
"drizzle-kit": "^0.20.13",
"eslint": "^8.56.0",
"nuxt": "^3.9.3",
"@types/bun": "^1.1.6",
"dotenv": "^16.4.5",
"drizzle-kit": "^0.20.18",
"eslint": "^8.57.0",
"nuxt": "^3.12.2",
"trpc-panel": "^1.3.4",
"typescript": "^5.3.3",
"vue": "^3.4.15",
"vue-router": "^4.2.5"
"typescript": "^5.5.2",
"vue": "^3.4.31",
"vue-router": "^4.4.0"
}
}
Loading

0 comments on commit 681dcde

Please sign in to comment.