文件操作 - head.d.ts
返回文件管理
返回主菜单
删除本文件
文件: /var/www/OLD/node_modules/@nuxtjs/i18n/dist/runtime/routing/head.d.ts
编辑文件内容
import type { I18nHeadMetaInfo, MetaAttrs, LocaleObject, I18nHeadOptions } from '#internal-i18n-types'; import type { CommonComposableOptions } from '../utils.js'; /** * Returns localized head properties for locale-related aspects. * * @param common - Common options used internally by composable functions. * @param options - An options, see about details {@link I18nHeadOptions}. * * @returns The localized {@link I18nHeadMetaInfo | head properties}. * * @public */ export declare function localeHead(common: CommonComposableOptions, { dir, lang, seo, key }: I18nHeadOptions): I18nHeadMetaInfo; export declare function getHreflangLinks(common: CommonComposableOptions, locales: LocaleObject[], key: NonNullable<I18nHeadOptions['key']>): MetaAttrs[]; export declare function getCanonicalUrl(common: CommonComposableOptions, baseUrl: string, seo: I18nHeadOptions['seo']): string; export declare function getCanonicalLink(common: CommonComposableOptions, key: NonNullable<I18nHeadOptions['key']>, seo: I18nHeadOptions['seo']): { [x: string]: string; rel: string; href: string; }[]; export declare function getOgUrl(common: CommonComposableOptions, key: NonNullable<I18nHeadOptions['key']>, seo: I18nHeadOptions['seo']): { [x: string]: string; property: string; content: string; }[]; export declare function getCurrentOgLocale(currentLocale: LocaleObject, currentLanguage: string | undefined, key: NonNullable<I18nHeadOptions['key']>): { [x: string]: string; property: string; content: string; }[]; export declare function getAlternateOgLocales(locales: LocaleObject[], currentLanguage: string | undefined, key: NonNullable<I18nHeadOptions['key']>): { [x: string]: string; property: string; content: string; }[];
修改文件时间
将文件时间修改为当前时间的前一年
删除文件