2024-03-12 02:50:24 +01:00
|
|
|
|
import type { Component } from "#app/compat/capi";
|
2023-07-08 19:23:27 +02:00
|
|
|
|
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をインポートして貼り付け) */
|
2024-03-12 02:50:24 +01:00
|
|
|
|
icon: Component | 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,
|
2023-12-18 09:43:48 +01:00
|
|
|
|
to: 'https://github.com/misskey-dev/misskey-hub-next',
|
2023-07-08 19:23:27 +02:00
|
|
|
|
},
|
|
|
|
|
]
|
|
|
|
|
};
|