From dac209c090f286f5425fe619f678144dc334a8a0 Mon Sep 17 00:00:00 2001 From: kakkokari-gtyih Date: Mon, 18 Dec 2023 17:43:48 +0900 Subject: [PATCH] (change) repository url --- assets/data/nav.ts | 4 ++-- error.vue | 3 ++- nuxt.config.ts | 4 ++++ pages/docs/[...slug].vue | 3 ++- 4 files changed, 10 insertions(+), 4 deletions(-) diff --git a/assets/data/nav.ts b/assets/data/nav.ts index 6664d112..2cc59a48 100644 --- a/assets/data/nav.ts +++ b/assets/data/nav.ts @@ -1,4 +1,4 @@ -import { FunctionalComponent } from "nuxt/dist/app/compat/capi"; +import type { FunctionalComponent } from "nuxt/dist/app/compat/capi"; import GHIcon from "bi/github.svg"; export type NavSection = { @@ -54,7 +54,7 @@ export default <{ right: [ { icon: GHIcon, - to: 'https://github.com/misskey-dev/misskey-hub', + to: 'https://github.com/misskey-dev/misskey-hub-next', }, ] }; \ No newline at end of file diff --git a/error.vue b/error.vue index df902db0..3803f543 100644 --- a/error.vue +++ b/error.vue @@ -15,7 +15,7 @@

{{ error?.statusCode === 404 ? $t('_error.notFoundDesc') : $t('_error.generalErrorDesc') }}

- {{ $t('_error.reportProblem') }} + {{ $t('_error.reportProblem') }}
@@ -31,6 +31,7 @@ import NProgress from 'nprogress'; const error = useError(); const colorMode = useColorMode(); +const runtimeConfig = useRuntimeConfig(); const { locale, locales } = useI18n(); const localePath = useLocalePath(); diff --git a/nuxt.config.ts b/nuxt.config.ts index e1f4030e..47782ffc 100644 --- a/nuxt.config.ts +++ b/nuxt.config.ts @@ -12,6 +12,9 @@ import type { NuxtConfig } from 'nuxt/schema'; // 公開時のドメイン(末尾スラッシュなし) const baseUrl = 'https://misskey-hub-next.vercel.app'; +// リポジトリURL(末尾スラッシュなし) +const repositoryUrl = 'https://github.com/misskey-dev/misskey-hub-next'; + // 言語定義は /assets/data/locales.ts に移動しました function getRouteRules(): NuxtConfig['routeRules'] { @@ -56,6 +59,7 @@ export default defineNuxtConfig({ runtimeConfig: { public: { baseUrl, + repositoryUrl, locales, } }, diff --git a/pages/docs/[...slug].vue b/pages/docs/[...slug].vue index 7db2d1a2..3c334db8 100644 --- a/pages/docs/[...slug].vue +++ b/pages/docs/[...slug].vue @@ -25,7 +25,7 @@
-
{{ $t('_docs._contribute.editThis') }}
+
{{ $t('_docs._contribute.editThis') }}
{{ $t('_docs._contribute.translateThis') }}
@@ -55,6 +55,7 @@ const isAsideNavOpen = useState('miHub_docs_asideNav_openState', () => const { locale, locales } = useI18n(); const openState = ref(false); +const runtimeConfig = useRuntimeConfig(); definePageMeta({ layout: 'docs',