diff --git a/app/components/settings.tsx b/app/components/settings.tsx index ed84825b..ca971309 100644 --- a/app/components/settings.tsx +++ b/app/components/settings.tsx @@ -542,10 +542,12 @@ export function Settings() { } > + + + + + + updateConfig( + (config) => + (config.dontAddBuiltinMasks = !e.currentTarget.checked), + ) + } + > + diff --git a/app/locales/ar.ts b/app/locales/ar.ts index 6ece142b..dfdca9d7 100644 --- a/app/locales/ar.ts +++ b/app/locales/ar.ts @@ -130,8 +130,14 @@ const ar: PartialLocaleType = { SubTitle: "معاينة Markdown في فقاعة", }, Mask: { - Title: "شاشة تظهر الأقنعة", - SubTitle: "عرض شاشة تظهر الأقنعة قبل بدء الدردشة الجديدة", + Splash: { + Title: "شاشة تظهر الأقنعة", + SubTitle: "عرض شاشة تظهر الأقنعة قبل بدء الدردشة الجديدة", + }, + Builtin: { + Title: "Show Builtin Masks", + SubTitle: "Show builtin masks in mask list", + }, }, Prompt: { Disable: { diff --git a/app/locales/cn.ts b/app/locales/cn.ts index b8fa8216..c1a21da3 100644 --- a/app/locales/cn.ts +++ b/app/locales/cn.ts @@ -156,8 +156,14 @@ const cn = { SubTitle: "在预览气泡中预览 Markdown 内容", }, Mask: { - Title: "面具启动页", - SubTitle: "新建聊天时,展示面具启动页", + Splash: { + Title: "面具启动页", + SubTitle: "新建聊天时,展示面具启动页", + }, + Builtin: { + Title: "Show Builtin Masks", + SubTitle: "Show builtin masks in mask list", + }, }, Prompt: { Disable: { diff --git a/app/locales/cs.ts b/app/locales/cs.ts index 9f9afab0..d4d5e055 100644 --- a/app/locales/cs.ts +++ b/app/locales/cs.ts @@ -87,8 +87,14 @@ const cs: PartialLocaleType = { SubTitle: "Zobrazit v náhledu bubliny", }, Mask: { - Title: "Úvodní obrazovka Masek", - SubTitle: "Před zahájením nového chatu zobrazte úvodní obrazovku Masek", + Splash: { + Title: "Úvodní obrazovka Masek", + SubTitle: "Před zahájením nového chatu zobrazte úvodní obrazovku Masek", + }, + Builtin: { + Title: "Show Builtin Masks", + SubTitle: "Show builtin masks in mask list", + }, }, Prompt: { Disable: { diff --git a/app/locales/de.ts b/app/locales/de.ts index b8158c12..708fe3ec 100644 --- a/app/locales/de.ts +++ b/app/locales/de.ts @@ -87,8 +87,14 @@ const de: PartialLocaleType = { SubTitle: "Preview markdown in bubble", }, Mask: { - Title: "Mask Splash Screen", - SubTitle: "Show a mask splash screen before starting new chat", + Splash: { + Title: "Mask Splash Screen", + SubTitle: "Show a mask splash screen before starting new chat", + }, + Builtin: { + Title: "Show Builtin Masks", + SubTitle: "Show builtin masks in mask list", + }, }, Prompt: { Disable: { diff --git a/app/locales/en.ts b/app/locales/en.ts index bf2557a6..930b9f44 100644 --- a/app/locales/en.ts +++ b/app/locales/en.ts @@ -157,8 +157,14 @@ const en: LocaleType = { SubTitle: "Preview markdown in bubble", }, Mask: { - Title: "Mask Splash Screen", - SubTitle: "Show a mask splash screen before starting new chat", + Splash: { + Title: "Mask Splash Screen", + SubTitle: "Show a mask splash screen before starting new chat", + }, + Builtin: { + Title: "Show Builtin Masks", + SubTitle: "Show builtin masks in mask list", + }, }, Prompt: { Disable: { diff --git a/app/locales/es.ts b/app/locales/es.ts index e7f8cca4..d578c3e7 100644 --- a/app/locales/es.ts +++ b/app/locales/es.ts @@ -87,8 +87,14 @@ const es: PartialLocaleType = { SubTitle: "Preview markdown in bubble", }, Mask: { - Title: "Mask Splash Screen", - SubTitle: "Show a mask splash screen before starting new chat", + Splash: { + Title: "Mask Splash Screen", + SubTitle: "Show a mask splash screen before starting new chat", + }, + Builtin: { + Title: "Show Builtin Masks", + SubTitle: "Show builtin masks in mask list", + }, }, Prompt: { Disable: { diff --git a/app/locales/fr.ts b/app/locales/fr.ts index b6b8c032..57f11406 100644 --- a/app/locales/fr.ts +++ b/app/locales/fr.ts @@ -88,9 +88,15 @@ const fr: PartialLocaleType = { SubTitle: "Aperçu du Markdown dans une bulle", }, Mask: { - Title: "Écran de masque", - SubTitle: - "Afficher un écran de masque avant de démarrer une nouvelle discussion", + Splash: { + Title: "Écran de masque", + SubTitle: + "Afficher un écran de masque avant de démarrer une nouvelle discussion", + }, + Builtin: { + Title: "Show Builtin Masks", + SubTitle: "Show builtin masks in mask list", + }, }, Prompt: { Disable: { diff --git a/app/locales/it.ts b/app/locales/it.ts index 8962968a..dafb5cce 100644 --- a/app/locales/it.ts +++ b/app/locales/it.ts @@ -87,8 +87,14 @@ const it: PartialLocaleType = { SubTitle: "Preview markdown in bubble", }, Mask: { - Title: "Mask Splash Screen", - SubTitle: "Show a mask splash screen before starting new chat", + Splash: { + Title: "Mask Splash Screen", + SubTitle: "Show a mask splash screen before starting new chat", + }, + Builtin: { + Title: "Show Builtin Masks", + SubTitle: "Show builtin masks in mask list", + }, }, Prompt: { Disable: { diff --git a/app/locales/jp.ts b/app/locales/jp.ts index d2feca4d..42ec6aab 100644 --- a/app/locales/jp.ts +++ b/app/locales/jp.ts @@ -104,8 +104,14 @@ const jp: PartialLocaleType = { SubTitle: "プレビューバブルでマークダウンコンテンツをプレビュー", }, Mask: { - Title: "キャラクターページ", - SubTitle: "新規チャット作成時にキャラクターページを表示する", + Splash: { + Title: "キャラクターページ", + SubTitle: "新規チャット作成時にキャラクターページを表示する", + }, + Builtin: { + Title: "Show Builtin Masks", + SubTitle: "Show builtin masks in mask list", + }, }, Prompt: { Disable: { diff --git a/app/locales/ko.ts b/app/locales/ko.ts index a3a5f73d..0a3ec823 100644 --- a/app/locales/ko.ts +++ b/app/locales/ko.ts @@ -87,8 +87,14 @@ const ko: PartialLocaleType = { SubTitle: "버블에서 마크다운 미리 보기", }, Mask: { - Title: "마스크 시작 화면", - SubTitle: "새로운 채팅 시작 전에 마스크 시작 화면 표시", + Splash: { + Title: "마스크 시작 화면", + SubTitle: "새로운 채팅 시작 전에 마스크 시작 화면 표시", + }, + Builtin: { + Title: "Show Builtin Masks", + SubTitle: "Show builtin masks in mask list", + }, }, Prompt: { Disable: { diff --git a/app/locales/ru.ts b/app/locales/ru.ts index 9121e278..f3398d68 100644 --- a/app/locales/ru.ts +++ b/app/locales/ru.ts @@ -87,8 +87,14 @@ const ru: PartialLocaleType = { SubTitle: "Предварительный просмотр markdown в пузыре", }, Mask: { - Title: "Экран заставки маски", - SubTitle: "Показывать экран заставки маски перед началом нового чата", + Splash: { + Title: "Экран заставки маски", + SubTitle: "Показывать экран заставки маски перед началом нового чата", + }, + Builtin: { + Title: "Show Builtin Masks", + SubTitle: "Show builtin masks in mask list", + }, }, Prompt: { Disable: { diff --git a/app/locales/tr.ts b/app/locales/tr.ts index e199f115..e1a0c4d7 100644 --- a/app/locales/tr.ts +++ b/app/locales/tr.ts @@ -87,8 +87,14 @@ const tr: PartialLocaleType = { SubTitle: "Preview markdown in bubble", }, Mask: { - Title: "Mask Splash Screen", - SubTitle: "Show a mask splash screen before starting new chat", + Splash: { + Title: "Mask Splash Screen", + SubTitle: "Show a mask splash screen before starting new chat", + }, + Builtin: { + Title: "Show Builtin Masks", + SubTitle: "Show builtin masks in mask list", + }, }, Prompt: { Disable: { diff --git a/app/locales/tw.ts b/app/locales/tw.ts index cb92a81d..9282acd5 100644 --- a/app/locales/tw.ts +++ b/app/locales/tw.ts @@ -85,8 +85,14 @@ const tw: PartialLocaleType = { SubTitle: "在预览气泡中预览 Markdown 内容", }, Mask: { - Title: "面具启动页", - SubTitle: "新建聊天时,展示面具启动页", + Splash: { + Title: "面具启动页", + SubTitle: "新建聊天时,展示面具启动页", + }, + Builtin: { + Title: "Show Builtin Masks", + SubTitle: "Show builtin masks in mask list", + }, }, Prompt: { Disable: { diff --git a/app/locales/vi.ts b/app/locales/vi.ts index cc0178b1..f345d8c7 100644 --- a/app/locales/vi.ts +++ b/app/locales/vi.ts @@ -87,8 +87,14 @@ const vi: PartialLocaleType = { SubTitle: "Xem trước nội dung markdown bằng bong bóng", }, Mask: { - Title: "Mask Splash Screen", - SubTitle: "Chớp màn hình khi bắt đầu cuộc trò chuyện mới", + Splash: { + Title: "Mask Splash Screen", + SubTitle: "Chớp màn hình khi bắt đầu cuộc trò chuyện mới", + }, + Builtin: { + Title: "Show Builtin Masks", + SubTitle: "Show builtin masks in mask list", + }, }, Prompt: { Disable: { diff --git a/app/store/config.ts b/app/store/config.ts index ecf365ab..493a3687 100644 --- a/app/store/config.ts +++ b/app/store/config.ts @@ -32,6 +32,7 @@ export const DEFAULT_CONFIG = { disablePromptHint: false, dontShowMaskSplashScreen: false, // dont show splash screen when create chat + dontAddBuiltinMasks: false, // dont add builtin masks models: DEFAULT_MODELS as any as LLMModel[], diff --git a/app/store/mask.ts b/app/store/mask.ts index 6d6377c3..57e1b667 100644 --- a/app/store/mask.ts +++ b/app/store/mask.ts @@ -90,6 +90,7 @@ export const useMaskStore = create()( (a, b) => b.id - a.id, ); const config = useAppConfig.getState(); + if (config.dontAddBuiltinMasks) return userMasks; const buildinMasks = BUILTIN_MASKS.map( (m) => ({