mirror of
https://gitlab.com/soapbox-pub/shakespeare.git
synced 2026-12-05 16:23:36 +00:00
Data -> Storage
This commit is contained in:
5 files changed
+28
-28
No files matched your search
+2
-2
@@ -10,7 +10,7 @@ import NostrSettings from "./pages/NostrSettings";
|
||||
import AISettings from "./pages/AISettings";
|
||||
import GitSettings from "./pages/GitSettings";
|
||||
import SystemSettings from "./pages/SystemSettings";
|
||||
import DataSettings from "./pages/DataSettings";
|
||||
import StorageSettings from "./pages/StorageSettings";
|
||||
import AboutSettings from "./pages/AboutSettings";
|
||||
|
||||
import GitHubOAuth from "./pages/GitHubOAuth";
|
||||
@@ -35,7 +35,7 @@ export function AppRouter() {
|
||||
<Route path="ai" element={<AISettings />} />
|
||||
<Route path="git" element={<GitSettings />} />
|
||||
<Route path="system" element={<SystemSettings />} />
|
||||
<Route path="data" element={<DataSettings />} />
|
||||
<Route path="storage" element={<StorageSettings />} />
|
||||
<Route path="about" element={<AboutSettings />} />
|
||||
</Route>
|
||||
<Route path="/project/:projectId" element={<ProjectView />} />
|
||||
|
||||
+12
-12
@@ -83,8 +83,8 @@ const resources = {
|
||||
gitSettingsDescription: 'Configure Git credentials for HTTP authentication',
|
||||
nostrSettings: 'Nostr Settings',
|
||||
nostrSettingsDescription: 'Configure relay connections and Nostr preferences',
|
||||
dataSettings: 'Data',
|
||||
dataSettingsDescription: 'Export files and manage local data',
|
||||
storageSettings: 'Storage',
|
||||
storageSettingsDescription: 'Export files and manage local data',
|
||||
emailUpdates: 'Email Updates',
|
||||
emailUpdatesDescription: 'Subscribe to Shakespeare updates and resources',
|
||||
|
||||
@@ -400,8 +400,8 @@ const resources = {
|
||||
gitSettingsDescription: 'Configure credenciais do Git para autenticação HTTP',
|
||||
nostrSettings: 'Configurações do Nostr',
|
||||
nostrSettingsDescription: 'Configure conexões de relay e preferências do Nostr',
|
||||
dataSettings: 'Dados',
|
||||
dataSettingsDescription: 'Exporte arquivos e gerencie dados locais',
|
||||
storageSettings: 'Armazenamento',
|
||||
storageSettingsDescription: 'Exporte arquivos e gerencie dados locais',
|
||||
emailUpdates: 'Atualizações por Email',
|
||||
emailUpdatesDescription: 'Inscreva-se para receber atualizações e recursos do Shakespeare',
|
||||
|
||||
@@ -717,8 +717,8 @@ const resources = {
|
||||
gitSettingsDescription: '配置HTTP身份验证的Git凭据',
|
||||
nostrSettings: 'Nostr设置',
|
||||
nostrSettingsDescription: '配置中继连接和Nostr偏好',
|
||||
dataSettings: '数据',
|
||||
dataSettingsDescription: '导出文件和管理本地数据',
|
||||
storageSettings: '存储',
|
||||
storageSettingsDescription: '导出文件和管理本地数据',
|
||||
emailUpdates: '邮件更新',
|
||||
emailUpdatesDescription: '订阅Shakespeare更新和资源',
|
||||
|
||||
@@ -1034,8 +1034,8 @@ const resources = {
|
||||
gitSettingsDescription: 'Saita bayanan shaidar Git don tabbatar da HTTP',
|
||||
nostrSettings: 'Saitunan Nostr',
|
||||
nostrSettingsDescription: 'Saita haɗin relay da zaɓuɓɓukan Nostr',
|
||||
dataSettings: 'Bayanai',
|
||||
dataSettingsDescription: 'Fitar da fayiloli da sarrafa bayanan gida',
|
||||
storageSettings: 'Ajiya',
|
||||
storageSettingsDescription: 'Fitar da fayiloli da sarrafa bayanan gida',
|
||||
emailUpdates: 'Sabuntawar Imel',
|
||||
emailUpdatesDescription: 'Yi rajista don karbar sabuntawar Shakespeare da albarkatu',
|
||||
|
||||
@@ -1351,8 +1351,8 @@ const resources = {
|
||||
gitSettingsDescription: 'Tunto awọn ẹri Git fun ijẹrisi HTTP',
|
||||
nostrSettings: 'Awọn eto Nostr',
|
||||
nostrSettingsDescription: 'Tunto awọn asopọ relay ati awọn ayanfẹ Nostr',
|
||||
dataSettings: 'Data',
|
||||
dataSettingsDescription: 'Gbe awọn faili jade ati ṣakoso data agbegbe',
|
||||
storageSettings: 'Ibi ipamọ',
|
||||
storageSettingsDescription: 'Gbe awọn faili jade ati ṣakoso data agbegbe',
|
||||
emailUpdates: 'Awọn Imudojuiwọn Imeeli',
|
||||
emailUpdatesDescription: 'Forukọsilẹ fun awọn imudojuiwọn Shakespeare ati awọn ohun elo',
|
||||
|
||||
@@ -1663,8 +1663,8 @@ const resources = {
|
||||
gitSettingsDescription: 'Hazie nzere Git maka nkwenye HTTP',
|
||||
nostrSettings: 'Ntọala Nostr',
|
||||
nostrSettingsDescription: 'Hazie njikọ relay na nhọrọ Nostr',
|
||||
dataSettings: 'Data',
|
||||
dataSettingsDescription: 'Bupụta faịlụ na jikwaa data mpaghara',
|
||||
storageSettings: 'Nchekwa',
|
||||
storageSettingsDescription: 'Bupụta faịlụ na jikwaa data mpaghara',
|
||||
emailUpdates: 'Nmelite Email',
|
||||
emailUpdatesDescription: 'Debanye aha maka nmelite Shakespeare na akụrụngwa',
|
||||
|
||||
|
||||
@@ -43,11 +43,11 @@ export const getSettingsItems = (t: (key: string) => string): SettingsItem[] =>
|
||||
href: '/settings/nostr',
|
||||
},
|
||||
{
|
||||
id: 'data',
|
||||
title: t('dataSettings'),
|
||||
description: t('dataSettingsDescription'),
|
||||
id: 'storage',
|
||||
title: t('storageSettings'),
|
||||
description: t('storageSettingsDescription'),
|
||||
icon: Database,
|
||||
href: '/settings/data',
|
||||
href: '/settings/storage',
|
||||
},
|
||||
{
|
||||
id: 'system',
|
||||
|
||||
@@ -1,18 +1,18 @@
|
||||
import { describe, it, expect } from 'vitest';
|
||||
import { render, screen } from '@testing-library/react';
|
||||
import { TestApp } from '@/test/TestApp';
|
||||
import DataSettings from './DataSettings';
|
||||
import StorageSettings from './StorageSettings';
|
||||
|
||||
describe('DataSettings', () => {
|
||||
it('renders the data settings page correctly', () => {
|
||||
describe('StorageSettings', () => {
|
||||
it('renders the storage settings page correctly', () => {
|
||||
render(
|
||||
<TestApp>
|
||||
<DataSettings />
|
||||
<StorageSettings />
|
||||
</TestApp>
|
||||
);
|
||||
|
||||
// Check for main heading
|
||||
expect(screen.getByText('Data')).toBeInTheDocument();
|
||||
expect(screen.getByText('Storage')).toBeInTheDocument();
|
||||
|
||||
// Check for description
|
||||
expect(screen.getByText('Export files and manage local data.')).toBeInTheDocument();
|
||||
@@ -32,7 +32,7 @@ describe('DataSettings', () => {
|
||||
it('shows persist data toggle, export and clear buttons', () => {
|
||||
render(
|
||||
<TestApp>
|
||||
<DataSettings />
|
||||
<StorageSettings />
|
||||
</TestApp>
|
||||
);
|
||||
|
||||
@@ -31,7 +31,7 @@ interface StorageInfo {
|
||||
usageDetails?: StorageUsageDetails;
|
||||
}
|
||||
|
||||
export function DataSettings() {
|
||||
export function StorageSettings() {
|
||||
const { t } = useTranslation();
|
||||
const [isExporting, setIsExporting] = useState(false);
|
||||
const [isClearing, setIsClearing] = useState(false);
|
||||
@@ -280,7 +280,7 @@ export function DataSettings() {
|
||||
<div className="space-y-2">
|
||||
<h1 className="text-2xl font-bold flex items-center gap-3">
|
||||
<Database className="h-6 w-6 text-primary" />
|
||||
{t('dataSettings')}
|
||||
{t('storageSettings')}
|
||||
</h1>
|
||||
<p className="text-muted-foreground">
|
||||
{t('dataSettingsDescriptionLong')}
|
||||
@@ -293,7 +293,7 @@ export function DataSettings() {
|
||||
<div className="space-y-2">
|
||||
<h1 className="text-2xl font-bold flex items-center gap-3">
|
||||
<Database className="h-6 w-6 text-primary" />
|
||||
{t('dataSettings')}
|
||||
{t('storageSettings')}
|
||||
</h1>
|
||||
<p className="text-muted-foreground">
|
||||
{t('dataSettingsDescriptionLong')}
|
||||
@@ -463,4 +463,4 @@ export function DataSettings() {
|
||||
);
|
||||
}
|
||||
|
||||
export default DataSettings;
|
||||
export default StorageSettings;
|
||||
Reference in new issue
Block a user