mirror of
https://gitlab.com/soapbox-pub/shakespeare.git
synced 2026-12-06 08:37:22 +00:00
Merge remote-tracking branch 'origin/main' into electron
This commit is contained in:
28 files changed
+5982
-649
No files matched your search
@@ -13,7 +13,7 @@ export class LightningFSAdapter implements JSRuntimeFS {
|
||||
async readFile(path: string, options: string): Promise<string>;
|
||||
async readFile(path: string, options: { encoding: 'utf8' }): Promise<string>;
|
||||
async readFile(path: string, options: { encoding: string }): Promise<string>;
|
||||
async readFile(path: string, options?: string | { encoding?: string }): Promise<string | Uint8Array>;
|
||||
async readFile(path: string, options?: string | { encoding?: string }): Promise<string | Uint8Array<ArrayBuffer>>;
|
||||
async readFile(path: string, options?: string | { encoding?: string }): Promise<string | Uint8Array> {
|
||||
const encoding = typeof options === 'string' ? options : options?.encoding;
|
||||
return this.lightningFS.readFile(path, encoding);
|
||||
|
||||
@@ -88,6 +88,14 @@ export const AI_PROVIDER_PRESETS: PresetProvider[] = [
|
||||
tosURL: "https://ai.google.dev/gemini-api/terms",
|
||||
proxy: true,
|
||||
},
|
||||
{
|
||||
id: "vercel",
|
||||
name: "Vercel",
|
||||
baseURL: "https://api.v0.dev/v1",
|
||||
apiKeysURL: "https://vercel.com/account/tokens",
|
||||
tosURL: "https://vercel.com/legal/terms",
|
||||
proxy: true,
|
||||
},
|
||||
];
|
||||
|
||||
// Helper function to get a specific preset by ID
|
||||
|
||||
@@ -228,6 +228,8 @@ const resources = {
|
||||
// About Settings
|
||||
aboutShakespeare: 'About Shakespeare',
|
||||
aboutShakespeareDescription: 'Information about Shakespeare',
|
||||
mirrors: 'Mirrors',
|
||||
mirrorsDescription: 'Shakespeare is available at multiple mirror URLs for redundancy and accessibility.',
|
||||
sourceCode: 'Source Code',
|
||||
description: 'Description',
|
||||
license: 'License',
|
||||
@@ -236,6 +238,13 @@ const resources = {
|
||||
|
||||
// Data Settings
|
||||
dataSettingsDescriptionLong: 'Export files and manage local data.',
|
||||
offlineCache: 'Offline Cache',
|
||||
offlineCacheDescription: 'Shakespeare caches files locally to enable offline functionality. Clear the cache to free up space or troubleshoot issues.',
|
||||
cacheSize: 'Cache size',
|
||||
clearCache: 'Clear Cache',
|
||||
cacheClearedSuccessfully: 'Cache Cleared',
|
||||
cacheClearedDescription: 'Offline cache has been cleared successfully.',
|
||||
failedToClearCache: 'Failed to Clear Cache',
|
||||
exportFiles: 'Export Files',
|
||||
exportFilesDescription: 'Download all your projects and files as a ZIP archive. This includes all project files, settings, and data stored locally.',
|
||||
exportAllFiles: 'Export All Files',
|
||||
@@ -563,6 +572,13 @@ const resources = {
|
||||
|
||||
// Data Settings
|
||||
dataSettingsDescriptionLong: 'Exporte arquivos e gerencie dados locais.',
|
||||
offlineCache: 'Cache Offline',
|
||||
offlineCacheDescription: 'O Shakespeare armazena arquivos localmente para permitir funcionalidade offline. Limpe o cache para liberar espaço ou solucionar problemas.',
|
||||
cacheSize: 'Tamanho do cache',
|
||||
clearCache: 'Limpar Cache',
|
||||
cacheClearedSuccessfully: 'Cache Limpo',
|
||||
cacheClearedDescription: 'O cache offline foi limpo com sucesso.',
|
||||
failedToClearCache: 'Falha ao Limpar Cache',
|
||||
exportFiles: 'Exportar Arquivos',
|
||||
exportFilesDescription: 'Baixe todos os seus projetos e arquivos como um arquivo ZIP. Isso inclui todos os arquivos de projeto, configurações e dados armazenados localmente.',
|
||||
exportAllFiles: 'Exportar Todos os Arquivos',
|
||||
@@ -605,6 +621,8 @@ const resources = {
|
||||
// About Settings
|
||||
aboutShakespeare: 'Sobre o Shakespeare',
|
||||
aboutShakespeareDescription: 'Informações sobre o Shakespeare.',
|
||||
mirrors: 'Espelhos',
|
||||
mirrorsDescription: 'Shakespeare está disponível em vários URLs espelhados para redundância e acessibilidade.',
|
||||
sourceCode: 'Código-fonte',
|
||||
description: 'Descrição',
|
||||
license: 'Licença',
|
||||
@@ -899,6 +917,13 @@ const resources = {
|
||||
|
||||
// Data Settings
|
||||
dataSettingsDescriptionLong: '导出文件和管理本地数据。',
|
||||
offlineCache: '离线缓存',
|
||||
offlineCacheDescription: 'Shakespeare在本地缓存文件以启用离线功能。清除缓存以释放空间或解决问题。',
|
||||
cacheSize: '缓存大小',
|
||||
clearCache: '清除缓存',
|
||||
cacheClearedSuccessfully: '缓存已清除',
|
||||
cacheClearedDescription: '离线缓存已成功清除。',
|
||||
failedToClearCache: '清除缓存失败',
|
||||
exportFiles: '导出文件',
|
||||
exportFilesDescription: '将您的所有项目和文件下载为ZIP存档。这包括所有项目文件、设置和本地存储的数据。',
|
||||
exportAllFiles: '导出所有文件',
|
||||
@@ -941,6 +966,8 @@ const resources = {
|
||||
// About Settings
|
||||
aboutShakespeare: '关于Shakespeare',
|
||||
aboutShakespeareDescription: '关于Shakespeare的信息。',
|
||||
mirrors: '镜像',
|
||||
mirrorsDescription: 'Shakespeare可通过多个镜像URL访问,以确保冗余和可访问性。',
|
||||
sourceCode: '源代码',
|
||||
description: '描述',
|
||||
license: '许可证',
|
||||
@@ -1274,6 +1301,8 @@ const resources = {
|
||||
// About Settings
|
||||
aboutShakespeare: 'Game da Shakespeare',
|
||||
aboutShakespeareDescription: 'Bayani game da Shakespeare.',
|
||||
mirrors: 'Madubai',
|
||||
mirrorsDescription: 'Shakespeare yana samuwa a URLs masu yawa don inganci da samun dama.',
|
||||
sourceCode: 'Lambar Tushe',
|
||||
description: 'Bayanin',
|
||||
license: 'Lasisi',
|
||||
@@ -1607,6 +1636,8 @@ const resources = {
|
||||
// About Settings
|
||||
aboutShakespeare: 'Nipa Shakespeare',
|
||||
aboutShakespeareDescription: 'Alaye nipa Shakespeare.',
|
||||
mirrors: 'Awọn Digi',
|
||||
mirrorsDescription: 'Shakespeare wa ni awọn URL digi pupọ fun aredundan ati iraye si.',
|
||||
sourceCode: 'Koodu Orisun',
|
||||
description: 'Apejuwe',
|
||||
license: 'Iwe-aṣẹ',
|
||||
@@ -1935,6 +1966,8 @@ const resources = {
|
||||
// About Settings
|
||||
aboutShakespeare: 'Gbasara Shakespeare',
|
||||
aboutShakespeareDescription: 'Ozi gbasara Shakespeare.',
|
||||
mirrors: 'Enyo',
|
||||
mirrorsDescription: 'Shakespeare dị na ọtụtụ URL enyo maka nnọchi na nnweta.',
|
||||
sourceCode: 'Koodu Isi',
|
||||
description: 'Nkọwa',
|
||||
license: 'Ikike',
|
||||
|
||||
Reference in new issue
Block a user