Origem: D:/Documents/Github/OllaHub Arquivos omitidos (segredos, bancos de dados, logs, >50 MB): 0
This commit is contained in:
1 parent
a7cbd1a3b4
commit
861af0bb9f
217 files changed
+39421
-1340
No files matched your search
@@ -1,6 +1,5 @@
|
||||
'use client';
|
||||
|
||||
import { useState, useEffect, lazy, Suspense } from 'react';
|
||||
import { useState, useEffect, lazy, Suspense } from 'react';
|
||||
import { Tabs, TabsContent, TabsList, TabsTrigger } from '@/components/ui/tabs';
|
||||
import { Card, CardContent, CardDescription, CardHeader, CardTitle } from '@/components/ui/card';
|
||||
@@ -37,8 +36,6 @@ import { SourcesConfig, SourceCategory } from '@/lib/types';
|
||||
import { TitleBar } from '@/components/titlebar';
|
||||
import { useAppUpdater } from '@/hooks/use-app-updater';
|
||||
import { getVersion } from '@tauri-apps/api/app';
|
||||
import { useAppUpdater } from '@/hooks/use-app-updater';
|
||||
import { getVersion } from '@tauri-apps/api/app';
|
||||
|
||||
interface Model {
|
||||
name: string;
|
||||
@@ -67,10 +64,6 @@ export default function SettingsPage() {
|
||||
const [appVersion, setAppVersion] = useState<string>('');
|
||||
const [activeTab, setActiveTab] = useState<string>('overview');
|
||||
|
||||
const updater = useAppUpdater();
|
||||
const [appVersion, setAppVersion] = useState<string>('');
|
||||
const [activeTab, setActiveTab] = useState<string>('overview');
|
||||
|
||||
const updater = useAppUpdater();
|
||||
|
||||
// Load models, storage path, and sources config on mount
|
||||
@@ -83,11 +76,6 @@ export default function SettingsPage() {
|
||||
getVersion()
|
||||
.then(setAppVersion)
|
||||
.catch(() => setAppVersion('0.1.0'));
|
||||
|
||||
// Load app version
|
||||
getVersion()
|
||||
.then(setAppVersion)
|
||||
.catch(() => setAppVersion('0.1.0'));
|
||||
}, [settings.ollamaUrl]);
|
||||
|
||||
// Load logs periodically
|
||||
@@ -356,30 +344,6 @@ export default function SettingsPage() {
|
||||
<HardwareDashboard />
|
||||
</Suspense>
|
||||
)}
|
||||
{activeTab === 'overview' && (
|
||||
<Suspense fallback={
|
||||
<div className="space-y-4">
|
||||
<div className="grid gap-4 md:grid-cols-2 lg:grid-cols-3">
|
||||
{[1, 2, 3, 4].map((i) => (
|
||||
<Card key={i}>
|
||||
<CardHeader className="pb-3">
|
||||
<div className="flex items-center justify-between">
|
||||
<div className="h-4 w-16 bg-muted animate-pulse rounded" />
|
||||
<div className="h-5 w-12 bg-muted animate-pulse rounded" />
|
||||
</div>
|
||||
</CardHeader>
|
||||
<CardContent className="space-y-2">
|
||||
<div className="h-2 w-full bg-muted animate-pulse rounded" />
|
||||
<div className="h-3 w-24 bg-muted animate-pulse rounded" />
|
||||
</CardContent>
|
||||
</Card>
|
||||
))}
|
||||
</div>
|
||||
</div>
|
||||
}>
|
||||
<HardwareDashboard />
|
||||
</Suspense>
|
||||
)}
|
||||
</CardContent>
|
||||
</Card>
|
||||
</TabsContent>
|
||||
|
||||
Reference in new issue
Block a user