文件操作 - types.ts
返回文件管理
返回主菜单
删除本文件
文件: /usr/share/grafana/public/app/plugins/panel/gettingstarted/types.ts
编辑文件内容
import { IconName } from '@grafana/ui'; export type CardType = 'tutorial' | 'docs' | 'other'; export interface Card { title: string; type: CardType; icon: IconName; href: string; check: () => Promise<boolean>; done: boolean; heading: string; learnHref?: string; } export interface TutorialCardType extends Card { info?: string; // For local storage key: string; } export interface SetupStep { heading: string; subheading: string; title: string; info: string; cards: (Card | TutorialCardType)[]; done: boolean; }
修改文件时间
将文件时间修改为当前时间的前一年
删除文件