2023-11-12 05:21:23 +01:00
|
|
|
|
import type { LocaleCodes } from './../nuxt.config';
|
|
|
|
|
|
2023-07-08 10:36:02 +02:00
|
|
|
|
declare module '*.svg' {
|
|
|
|
|
import { FunctionalComponent, SVGAttributes } from 'vue'
|
|
|
|
|
const src: FunctionalComponent<SVGAttributes>
|
|
|
|
|
export default src
|
2023-09-24 12:43:14 +02:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
declare module 'nuxt/schema' {
|
2023-11-12 05:21:23 +01:00
|
|
|
|
|
|
|
|
|
interface CustomAppConfig {
|
2023-09-24 12:43:14 +02:00
|
|
|
|
|
|
|
|
|
/** お知らせ */
|
|
|
|
|
notice?: {
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* お知らせの文言(言語ごとに羅列)
|
|
|
|
|
*
|
|
|
|
|
* ```js
|
|
|
|
|
* defineAppConfig({
|
|
|
|
|
* notice: {
|
|
|
|
|
* title: {
|
|
|
|
|
* ja: '〇〇をリリースしました!',
|
|
|
|
|
* en: 'We\'ve released 〇〇!',
|
|
|
|
|
* ...
|
|
|
|
|
* },
|
|
|
|
|
* ...
|
|
|
|
|
* }
|
|
|
|
|
* });
|
|
|
|
|
* ```
|
|
|
|
|
*
|
|
|
|
|
**/
|
2023-11-12 05:21:23 +01:00
|
|
|
|
title: { ja: string; } & Partial<Record<LocaleCodes, string>>;
|
2023-09-24 12:43:14 +02:00
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* リンク先
|
|
|
|
|
* (内部パス・外部パスどちらでも指定可能)
|
|
|
|
|
*
|
|
|
|
|
* 内部リンクの場合は、**先頭の言語ディレクトリ(`/ja/`など)を除いて記入**
|
|
|
|
|
* (例: `/ja/docs/releases/` → `/docs/releases/`)
|
|
|
|
|
**/
|
|
|
|
|
to: string;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export { };
|