mirror of
https://github.com/nexu-io/open-design.git
synced 2026-06-01 03:14:35 +07:00
Fix web typecheck after localization updates
This commit is contained in:
parent
9df0e9b1dd
commit
aee78a6ca3
22 changed files with 30 additions and 2 deletions
|
|
@ -55,7 +55,7 @@ import type {
|
|||
SkillSummary,
|
||||
} from '../types';
|
||||
import { inlineMentionToken } from '../utils/inlineMentions';
|
||||
import { HomeHero, type ExampleSuggestion } from './HomeHero';
|
||||
import { HomeHero } from './HomeHero';
|
||||
import { findChip, HOME_HERO_CHIPS, type HomeHeroChip } from './home-hero/chips';
|
||||
import {
|
||||
buildHomeMediaComposer,
|
||||
|
|
@ -121,6 +121,11 @@ interface ActivePlugin {
|
|||
suppressPromptSync: boolean;
|
||||
}
|
||||
|
||||
interface ExampleSuggestion {
|
||||
plugin: InstalledPluginRecord;
|
||||
preview: string;
|
||||
}
|
||||
|
||||
interface SelectedPluginContext {
|
||||
record: InstalledPluginRecord;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -32,7 +32,8 @@ import type { IconName } from '../Icon';
|
|||
// independently of the default-binding mapping.
|
||||
export type ChipScenarioPluginId =
|
||||
| DefaultScenarioPluginId
|
||||
| 'example-hyperframes';
|
||||
| 'example-hyperframes'
|
||||
| 'example-live-artifact';
|
||||
|
||||
export type ChipAction =
|
||||
| {
|
||||
|
|
@ -96,9 +97,11 @@ export const HOME_HERO_CHIPS: ReadonlyArray<HomeHeroChip> = [
|
|||
{
|
||||
id: 'live-artifact',
|
||||
label: 'Live artifact',
|
||||
labelKey: 'homeHero.chip.liveArtifact',
|
||||
icon: 'refresh',
|
||||
group: 'create',
|
||||
hint: 'Build a refreshable artifact backed by connector or local data.',
|
||||
hintKey: 'homeHero.chip.liveArtifactHint',
|
||||
action: {
|
||||
kind: 'apply-scenario',
|
||||
pluginId: 'example-live-artifact',
|
||||
|
|
|
|||
|
|
@ -1968,6 +1968,7 @@ export const ar: Dict = {
|
|||
'pluginsHome.publishGithubAria': 'Publish {title} as a GitHub repository',
|
||||
'pluginsHome.publishGithubTitle': 'Publish plugin as a GitHub repository',
|
||||
'pluginsHome.contributeAria': 'Contribute {title} to Open Design',
|
||||
'pluginsHome.contributeTitle': 'Contribute plugin to Open Design with a pull request',
|
||||
'pluginsHome.starting': 'Starting…',
|
||||
'pluginsHome.publish': 'Publish',
|
||||
'pluginsHome.contribute': 'Contribute',
|
||||
|
|
|
|||
|
|
@ -1905,6 +1905,7 @@ export const de: Dict = {
|
|||
'pluginsHome.publishGithubAria': 'Publish {title} as a GitHub repository',
|
||||
'pluginsHome.publishGithubTitle': 'Publish plugin as a GitHub repository',
|
||||
'pluginsHome.contributeAria': 'Contribute {title} to Open Design',
|
||||
'pluginsHome.contributeTitle': 'Contribute plugin to Open Design with a pull request',
|
||||
'pluginsHome.starting': 'Starting…',
|
||||
'pluginsHome.publish': 'Publish',
|
||||
'pluginsHome.contribute': 'Contribute',
|
||||
|
|
|
|||
|
|
@ -2754,6 +2754,7 @@ export const en: Dict = {
|
|||
'pluginsHome.publishGithubAria': 'Publish {title} as a GitHub repository',
|
||||
'pluginsHome.publishGithubTitle': 'Publish plugin as a GitHub repository',
|
||||
'pluginsHome.contributeAria': 'Contribute {title} to Open Design',
|
||||
'pluginsHome.contributeTitle': 'Contribute plugin to Open Design with a pull request',
|
||||
'pluginsHome.starting': 'Starting…',
|
||||
'pluginsHome.publish': 'Publish',
|
||||
'pluginsHome.contribute': 'Contribute',
|
||||
|
|
|
|||
|
|
@ -1856,6 +1856,7 @@ export const esES: Dict = {
|
|||
'pluginsHome.publishGithubAria': 'Publish {title} as a GitHub repository',
|
||||
'pluginsHome.publishGithubTitle': 'Publish plugin as a GitHub repository',
|
||||
'pluginsHome.contributeAria': 'Contribute {title} to Open Design',
|
||||
'pluginsHome.contributeTitle': 'Contribute plugin to Open Design with a pull request',
|
||||
'pluginsHome.starting': 'Starting…',
|
||||
'pluginsHome.publish': 'Publish',
|
||||
'pluginsHome.contribute': 'Contribute',
|
||||
|
|
|
|||
|
|
@ -2010,6 +2010,7 @@ export const fa: Dict = {
|
|||
'pluginsHome.publishGithubAria': 'Publish {title} as a GitHub repository',
|
||||
'pluginsHome.publishGithubTitle': 'Publish plugin as a GitHub repository',
|
||||
'pluginsHome.contributeAria': 'Contribute {title} to Open Design',
|
||||
'pluginsHome.contributeTitle': 'Contribute plugin to Open Design with a pull request',
|
||||
'pluginsHome.starting': 'Starting…',
|
||||
'pluginsHome.publish': 'Publish',
|
||||
'pluginsHome.contribute': 'Contribute',
|
||||
|
|
|
|||
|
|
@ -2619,6 +2619,7 @@ export const fr: Dict = {
|
|||
'pluginsHome.publishGithubAria': 'Publish {title} as a GitHub repository',
|
||||
'pluginsHome.publishGithubTitle': 'Publish plugin as a GitHub repository',
|
||||
'pluginsHome.contributeAria': 'Contribute {title} to Open Design',
|
||||
'pluginsHome.contributeTitle': 'Contribute plugin to Open Design with a pull request',
|
||||
'pluginsHome.starting': 'Starting…',
|
||||
'pluginsHome.publish': 'Publish',
|
||||
'pluginsHome.contribute': 'Contribute',
|
||||
|
|
|
|||
|
|
@ -1977,6 +1977,7 @@ export const hu: Dict = {
|
|||
'pluginsHome.publishGithubAria': 'Publish {title} as a GitHub repository',
|
||||
'pluginsHome.publishGithubTitle': 'Publish plugin as a GitHub repository',
|
||||
'pluginsHome.contributeAria': 'Contribute {title} to Open Design',
|
||||
'pluginsHome.contributeTitle': 'Contribute plugin to Open Design with a pull request',
|
||||
'pluginsHome.starting': 'Starting…',
|
||||
'pluginsHome.publish': 'Publish',
|
||||
'pluginsHome.contribute': 'Contribute',
|
||||
|
|
|
|||
|
|
@ -2010,6 +2010,7 @@ export const id: Dict = {
|
|||
'pluginsHome.publishGithubAria': 'Publish {title} as a GitHub repository',
|
||||
'pluginsHome.publishGithubTitle': 'Publish plugin as a GitHub repository',
|
||||
'pluginsHome.contributeAria': 'Contribute {title} to Open Design',
|
||||
'pluginsHome.contributeTitle': 'Contribute plugin to Open Design with a pull request',
|
||||
'pluginsHome.starting': 'Starting…',
|
||||
'pluginsHome.publish': 'Publish',
|
||||
'pluginsHome.contribute': 'Contribute',
|
||||
|
|
|
|||
|
|
@ -1834,6 +1834,7 @@ export const it: Dict = {
|
|||
'pluginsHome.publishGithubAria': 'Publish {title} as a GitHub repository',
|
||||
'pluginsHome.publishGithubTitle': 'Publish plugin as a GitHub repository',
|
||||
'pluginsHome.contributeAria': 'Contribute {title} to Open Design',
|
||||
'pluginsHome.contributeTitle': 'Contribute plugin to Open Design with a pull request',
|
||||
'pluginsHome.starting': 'Starting…',
|
||||
'pluginsHome.publish': 'Publish',
|
||||
'pluginsHome.contribute': 'Contribute',
|
||||
|
|
|
|||
|
|
@ -1904,6 +1904,7 @@ export const ja: Dict = {
|
|||
'pluginsHome.publishGithubAria': 'Publish {title} as a GitHub repository',
|
||||
'pluginsHome.publishGithubTitle': 'Publish plugin as a GitHub repository',
|
||||
'pluginsHome.contributeAria': 'Contribute {title} to Open Design',
|
||||
'pluginsHome.contributeTitle': 'Contribute plugin to Open Design with a pull request',
|
||||
'pluginsHome.starting': 'Starting…',
|
||||
'pluginsHome.publish': 'Publish',
|
||||
'pluginsHome.contribute': 'Contribute',
|
||||
|
|
|
|||
|
|
@ -2017,6 +2017,7 @@ export const ko: Dict = {
|
|||
'pluginsHome.publishGithubAria': 'Publish {title} as a GitHub repository',
|
||||
'pluginsHome.publishGithubTitle': 'Publish plugin as a GitHub repository',
|
||||
'pluginsHome.contributeAria': 'Contribute {title} to Open Design',
|
||||
'pluginsHome.contributeTitle': 'Contribute plugin to Open Design with a pull request',
|
||||
'pluginsHome.starting': 'Starting…',
|
||||
'pluginsHome.publish': 'Publish',
|
||||
'pluginsHome.contribute': 'Contribute',
|
||||
|
|
|
|||
|
|
@ -1967,6 +1967,7 @@ export const pl: Dict = {
|
|||
'pluginsHome.publishGithubAria': 'Publish {title} as a GitHub repository',
|
||||
'pluginsHome.publishGithubTitle': 'Publish plugin as a GitHub repository',
|
||||
'pluginsHome.contributeAria': 'Contribute {title} to Open Design',
|
||||
'pluginsHome.contributeTitle': 'Contribute plugin to Open Design with a pull request',
|
||||
'pluginsHome.starting': 'Starting…',
|
||||
'pluginsHome.publish': 'Publish',
|
||||
'pluginsHome.contribute': 'Contribute',
|
||||
|
|
|
|||
|
|
@ -2008,6 +2008,7 @@ export const ptBR: Dict = {
|
|||
'pluginsHome.publishGithubAria': 'Publish {title} as a GitHub repository',
|
||||
'pluginsHome.publishGithubTitle': 'Publish plugin as a GitHub repository',
|
||||
'pluginsHome.contributeAria': 'Contribute {title} to Open Design',
|
||||
'pluginsHome.contributeTitle': 'Contribute plugin to Open Design with a pull request',
|
||||
'pluginsHome.starting': 'Starting…',
|
||||
'pluginsHome.publish': 'Publish',
|
||||
'pluginsHome.contribute': 'Contribute',
|
||||
|
|
|
|||
|
|
@ -2008,6 +2008,7 @@ export const ru: Dict = {
|
|||
'pluginsHome.publishGithubAria': 'Publish {title} as a GitHub repository',
|
||||
'pluginsHome.publishGithubTitle': 'Publish plugin as a GitHub repository',
|
||||
'pluginsHome.contributeAria': 'Contribute {title} to Open Design',
|
||||
'pluginsHome.contributeTitle': 'Contribute plugin to Open Design with a pull request',
|
||||
'pluginsHome.starting': 'Starting…',
|
||||
'pluginsHome.publish': 'Publish',
|
||||
'pluginsHome.contribute': 'Contribute',
|
||||
|
|
|
|||
|
|
@ -1795,6 +1795,7 @@ export const th: Dict = {
|
|||
'pluginsHome.publishGithubAria': 'Publish {title} as a GitHub repository',
|
||||
'pluginsHome.publishGithubTitle': 'Publish plugin as a GitHub repository',
|
||||
'pluginsHome.contributeAria': 'Contribute {title} to Open Design',
|
||||
'pluginsHome.contributeTitle': 'Contribute plugin to Open Design with a pull request',
|
||||
'pluginsHome.starting': 'Starting…',
|
||||
'pluginsHome.publish': 'Publish',
|
||||
'pluginsHome.contribute': 'Contribute',
|
||||
|
|
|
|||
|
|
@ -1954,6 +1954,7 @@ export const tr: Dict = {
|
|||
'pluginsHome.publishGithubAria': 'Publish {title} as a GitHub repository',
|
||||
'pluginsHome.publishGithubTitle': 'Publish plugin as a GitHub repository',
|
||||
'pluginsHome.contributeAria': 'Contribute {title} to Open Design',
|
||||
'pluginsHome.contributeTitle': 'Contribute plugin to Open Design with a pull request',
|
||||
'pluginsHome.starting': 'Starting…',
|
||||
'pluginsHome.publish': 'Publish',
|
||||
'pluginsHome.contribute': 'Contribute',
|
||||
|
|
|
|||
|
|
@ -2010,6 +2010,7 @@ export const uk: Dict = {
|
|||
'pluginsHome.publishGithubAria': 'Publish {title} as a GitHub repository',
|
||||
'pluginsHome.publishGithubTitle': 'Publish plugin as a GitHub repository',
|
||||
'pluginsHome.contributeAria': 'Contribute {title} to Open Design',
|
||||
'pluginsHome.contributeTitle': 'Contribute plugin to Open Design with a pull request',
|
||||
'pluginsHome.starting': 'Starting…',
|
||||
'pluginsHome.publish': 'Publish',
|
||||
'pluginsHome.contribute': 'Contribute',
|
||||
|
|
|
|||
|
|
@ -2731,6 +2731,7 @@ export const zhCN: Dict = {
|
|||
'pluginsHome.publishGithubAria': '将 {title} 发布为 GitHub 仓库',
|
||||
'pluginsHome.publishGithubTitle': '将插件发布为 GitHub 仓库',
|
||||
'pluginsHome.contributeAria': '将 {title} 贡献给 Open Design',
|
||||
'pluginsHome.contributeTitle': '通过拉取请求将插件贡献给 Open Design',
|
||||
'pluginsHome.starting': '启动中…',
|
||||
'pluginsHome.publish': '发布',
|
||||
'pluginsHome.contribute': '贡献',
|
||||
|
|
|
|||
|
|
@ -2288,6 +2288,7 @@ export const zhTW: Dict = {
|
|||
'pluginsHome.publishGithubAria': '將 {title} 發布為 GitHub 儲存庫',
|
||||
'pluginsHome.publishGithubTitle': '將外掛發布為 GitHub 儲存庫',
|
||||
'pluginsHome.contributeAria': '將 {title} 貢獻至 Open Design',
|
||||
'pluginsHome.contributeTitle': '透過 pull request 將外掛貢獻至 Open Design',
|
||||
'pluginsHome.starting': '啟動中…',
|
||||
'pluginsHome.publish': '發布',
|
||||
'pluginsHome.contribute': '貢獻',
|
||||
|
|
|
|||
|
|
@ -2779,6 +2779,7 @@ export interface Dict {
|
|||
'pluginsHome.publishGithubAria': string;
|
||||
'pluginsHome.publishGithubTitle': string;
|
||||
'pluginsHome.contributeAria': string;
|
||||
'pluginsHome.contributeTitle': string;
|
||||
'pluginsHome.starting': string;
|
||||
'pluginsHome.publish': string;
|
||||
'pluginsHome.contribute': string;
|
||||
|
|
|
|||
Loading…
Reference in a new issue