2023-07-08 19:23:27 +02:00
|
|
|
|
import { FunctionalComponent } from "nuxt/dist/app/compat/capi";
|
|
|
|
|
import GHIcon from "bi/github.svg";
|
|
|
|
|
|
2023-09-26 14:57:26 +02:00
|
|
|
|
export type NavSection = {
|
|
|
|
|
/** セクションタイトル 翻訳キー */
|
|
|
|
|
title: string;
|
|
|
|
|
/** アイテム */
|
|
|
|
|
items: NavItem[];
|
|
|
|
|
};
|
|
|
|
|
|
2023-07-08 19:23:27 +02:00
|
|
|
|
/** ナビゲーションバー アイテム */
|
2023-09-26 14:57:26 +02:00
|
|
|
|
export type NavItem = {
|
2023-07-08 19:23:27 +02:00
|
|
|
|
/** 翻訳キー */
|
|
|
|
|
i18n: string;
|
2023-09-26 14:57:26 +02:00
|
|
|
|
/** 説明文 翻訳キー */
|
|
|
|
|
description?: string;
|
2023-07-08 19:23:27 +02:00
|
|
|
|
/** リンク先 */
|
|
|
|
|
to: string;
|
|
|
|
|
} | {
|
|
|
|
|
/** アイコン(svgをインポートして貼り付け) */
|
2023-07-15 10:32:59 +02:00
|
|
|
|
icon: FunctionalComponent | string;
|
2023-07-08 19:23:27 +02:00
|
|
|
|
/** リンク先 */
|
|
|
|
|
to: string;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
/** ナビゲーションバー コンテンツ */
|
|
|
|
|
export default <{
|
|
|
|
|
/** ナビゲーションの真ん中のリンク */
|
|
|
|
|
center: NavItem[];
|
|
|
|
|
/**
|
|
|
|
|
* ナビゲーションの右端のリンク
|
|
|
|
|
* (SNSとかGithubのリンクとか)
|
|
|
|
|
*/
|
|
|
|
|
right: NavItem[];
|
|
|
|
|
}> {
|
|
|
|
|
center: [
|
|
|
|
|
{
|
|
|
|
|
i18n: '_nav.servers',
|
|
|
|
|
to: '/servers/',
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
i18n: '_nav.docs',
|
|
|
|
|
to: '/docs/',
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
i18n: '_nav.blog',
|
|
|
|
|
to: '/blog/',
|
2023-07-15 10:32:59 +02:00
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
i18n: '_nav.other',
|
|
|
|
|
to: '/learn-more/',
|
2023-07-08 19:23:27 +02:00
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
right: [
|
|
|
|
|
{
|
|
|
|
|
icon: GHIcon,
|
|
|
|
|
to: 'https://github.com/misskey-dev/misskey-hub',
|
|
|
|
|
},
|
|
|
|
|
]
|
|
|
|
|
};
|