2023-11-12 05:21:23 +01:00
|
|
|
|
import type { LocaleCodes } from './../nuxt.config';
|
2024-02-09 13:15:12 +01:00
|
|
|
|
import type { ComputedRef } from 'vue-demi';
|
|
|
|
|
import type { LocaleObject } from '@nuxtjs/i18n';
|
2024-03-12 02:50:24 +01:00
|
|
|
|
import { FunctionalComponent, SVGAttributes } from '#app/compat/capi';
|
|
|
|
|
|
|
|
|
|
export { };
|
2023-11-12 05:21:23 +01:00
|
|
|
|
|
2023-07-08 10:36:02 +02:00
|
|
|
|
declare module '*.svg' {
|
2024-03-12 02:50:24 +01:00
|
|
|
|
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;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2023-12-20 11:39:08 +01:00
|
|
|
|
declare module 'vue-i18n' {
|
|
|
|
|
interface ComposerCustomProperties {
|
|
|
|
|
// 厳格に定義し直す
|
|
|
|
|
locales: ComputedRef<LocaleObject[]>
|
|
|
|
|
}
|
|
|
|
|
}
|