From dd6ff132288968f2811dc3b913039f0dae5b18a1 Mon Sep 17 00:00:00 2001 From: LittleSheep Date: Sat, 20 Sep 2025 22:11:42 +0800 Subject: [PATCH] :sparkles: OpenGraph --- app/components/OgImage/NuxtSeo.vue | 161 + app/components/OgImage/WithAvatar.vue | 152 + app/layouts/default.vue | 5 + app/pages/accounts/[name].vue | 31 +- app/pages/auth/authorize.vue | 4 + app/pages/auth/callback.vue | 4 + app/pages/auth/captcha.vue | 4 + app/pages/auth/create-account.vue | 4 + app/pages/auth/login.vue | 4 + app/pages/index.vue | 14 + app/pages/posts/[id].vue | 25 +- bun.lock | 225 +- nuxt.config.ts | 29 +- package-lock.json | 12606 ++++++++++++++++++++++++ package.json | 2 + server/routes/__og/convert-image.ts | 36 + 16 files changed, 13280 insertions(+), 26 deletions(-) create mode 100644 app/components/OgImage/NuxtSeo.vue create mode 100644 app/components/OgImage/WithAvatar.vue create mode 100644 package-lock.json create mode 100644 server/routes/__og/convert-image.ts diff --git a/app/components/OgImage/NuxtSeo.vue b/app/components/OgImage/NuxtSeo.vue new file mode 100644 index 0000000..604a1c2 --- /dev/null +++ b/app/components/OgImage/NuxtSeo.vue @@ -0,0 +1,161 @@ + + + diff --git a/app/components/OgImage/WithAvatar.vue b/app/components/OgImage/WithAvatar.vue new file mode 100644 index 0000000..96a192d --- /dev/null +++ b/app/components/OgImage/WithAvatar.vue @@ -0,0 +1,152 @@ + + + diff --git a/app/layouts/default.vue b/app/layouts/default.vue index 861d929..6f32cda 100644 --- a/app/layouts/default.vue +++ b/app/layouts/default.vue @@ -2,6 +2,8 @@ + The Solar Network + diff --git a/app/pages/auth/authorize.vue b/app/pages/auth/authorize.vue index 985f5c3..d89db4d 100644 --- a/app/pages/auth/authorize.vue +++ b/app/pages/auth/authorize.vue @@ -128,6 +128,10 @@ import IconDark from '~/assets/images/cloudy-lamb@dark.png' const route = useRoute() const api = useSolarNetwork() +useHead({ + title: "Authorize Application" +}) + // State const isLoading = ref(true) const isAuthorizing = ref(false) diff --git a/app/pages/auth/callback.vue b/app/pages/auth/callback.vue index a89b77f..5e80f89 100644 --- a/app/pages/auth/callback.vue +++ b/app/pages/auth/callback.vue @@ -11,6 +11,10 @@