-
Notifications
You must be signed in to change notification settings - Fork 121
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #142 from besscroft/v2
fix: 修复一些问题
- Loading branch information
Showing
8 changed files
with
34 additions
and
367 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,38 +1,35 @@ | ||
'use client' | ||
|
||
import { Tabs } from '~/components/aceternity/tabs' | ||
import AListTabs from '~/components/admin/settings/storages/AListTabs' | ||
import S3Tabs from '~/components/admin/settings/storages/S3Tabs' | ||
import R2Tabs from '~/components/admin/settings/storages/R2Tabs' | ||
import { | ||
Tabs, | ||
TabsContent, | ||
TabsList, | ||
TabsTrigger, | ||
} from '~/components/ui/tabs' | ||
|
||
export default function Storages() { | ||
const tabs = [ | ||
{ | ||
title: "S3 API", | ||
value: "s3", | ||
content: ( | ||
<S3Tabs /> | ||
), | ||
}, | ||
{ | ||
title: "Cloudflare R2", | ||
value: "r2", | ||
content: ( | ||
<R2Tabs /> | ||
), | ||
}, | ||
{ | ||
title: "AList API", | ||
value: "alist", | ||
content: ( | ||
<AListTabs /> | ||
), | ||
}, | ||
]; | ||
|
||
return ( | ||
<div className="flex flex-col space-y-2 h-full flex-1"> | ||
<Tabs tabs={tabs} /> | ||
<Tabs defaultValue="s3"> | ||
<TabsList className="grid w-full grid-cols-3"> | ||
<TabsTrigger value="s3">S3 API</TabsTrigger> | ||
<TabsTrigger value="r2">Cloudflare R2</TabsTrigger> | ||
<TabsTrigger value="alist">AList API</TabsTrigger> | ||
</TabsList> | ||
<TabsContent value="s3"> | ||
<S3Tabs /> | ||
</TabsContent> | ||
<TabsContent value="r2"> | ||
<R2Tabs /> | ||
</TabsContent> | ||
<TabsContent value="alist"> | ||
<AListTabs /> | ||
</TabsContent> | ||
</Tabs> | ||
</div> | ||
) | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.