(change) repository url

This commit is contained in:
kakkokari-gtyih 2023-12-18 17:43:48 +09:00
parent 6d1d5efb66
commit dac209c090
4 changed files with 10 additions and 4 deletions

View File

@ -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',
},
]
};

View File

@ -15,7 +15,7 @@
<p class="text-center mb-4">{{ error?.statusCode === 404 ? $t('_error.notFoundDesc') : $t('_error.generalErrorDesc') }}</p>
<div class="max-w-lg w-full mx-auto grid grid-cols-1 sm:grid-cols-2 gap-4">
<button class="block rounded-full text-center px-4 py-2 border-2 hover:opacity-70" @click="handleError">{{ $t('_error.goToTop') }}</button>
<GNuxtLink class="block rounded-full text-center px-4 py-2 border-2 hover:opacity-70" target="_blank" to="https://github.com/misskey-dev/misskey-hub/issues/new">{{ $t('_error.reportProblem') }}</GNuxtLink>
<GNuxtLink class="block rounded-full text-center px-4 py-2 border-2 hover:opacity-70" target="_blank" :to="`${runtimeConfig.public.repositoryUrl}/issues/new`">{{ $t('_error.reportProblem') }}</GNuxtLink>
</div>
</div>
<div v-else class="mx-auto py-5">
@ -31,6 +31,7 @@ import NProgress from 'nprogress';
const error = useError();
const colorMode = useColorMode();
const runtimeConfig = useRuntimeConfig();
const { locale, locales } = useI18n();
const localePath = useLocalePath();

View File

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

View File

@ -25,7 +25,7 @@
<ContentRenderer v-if="data.body.children.length > 0" :value="data" class="markdown-body w-full mb-6">
</ContentRenderer>
<div class="mt-8 mb-4 flex flex-wrap justify-end gap-3">
<div><GNuxtLink class="hover:underline underline-offset-4" target="_blank" :to="`https://github.com/misskey-dev/misskey-hub/tree/master/content/${data._file}`">{{ $t('_docs._contribute.editThis') }}<ExtIco class="ml-1" /></GNuxtLink></div>
<div><GNuxtLink class="hover:underline underline-offset-4" target="_blank" :to="`${runtimeConfig.public.repositoryUrl}/tree/master/content/${data._file}`">{{ $t('_docs._contribute.editThis') }}<ExtIco class="ml-1" /></GNuxtLink></div>
<div><GNuxtLink class="hover:underline underline-offset-4" target="_blank" to="https://crowdin.com/project/misskey-hub">{{ $t('_docs._contribute.translateThis') }}<ExtIco class="ml-1" /></GNuxtLink></div>
</div>
<DocsPrevNext :ignore-dir-based-nav="data?.ignoreDirBasedNav ?? false" />
@ -55,6 +55,7 @@ const isAsideNavOpen = useState<boolean>('miHub_docs_asideNav_openState', () =>
const { locale, locales } = useI18n();
const openState = ref<boolean>(false);
const runtimeConfig = useRuntimeConfig();
definePageMeta({
layout: 'docs',