-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
feed95f
commit 0378ae9
Showing
3 changed files
with
43 additions
and
3 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,7 +1,7 @@ | ||
import { MainPage } from "@/pages/main" | ||
|
||
function App() { | ||
return <div className="text-6xl"> | ||
Test | ||
</div> | ||
return <><MainPage /></> | ||
} | ||
|
||
export default App |
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 |
---|---|---|
@@ -0,0 +1,32 @@ | ||
import { Card, CardHeader, CardTitle, CardDescription, CardContent } from "@/components/ui/card" | ||
import { Tabs, TabsContent, TabsList, TabsTrigger } from "@/components/ui/tabs" | ||
import { SelectNet } from "./select" | ||
|
||
|
||
|
||
export const MainPage: React.FC = () => { | ||
return <> | ||
<Tabs defaultValue="overview" className="max-w-[1024px] mx-auto"> | ||
<TabsList className="grid w-full grid-cols-3"> | ||
<TabsTrigger value="overview">Overview</TabsTrigger> | ||
<TabsTrigger value="select">Select</TabsTrigger> | ||
<TabsTrigger value="connection">Connection</TabsTrigger> | ||
</TabsList> | ||
<TabsContent value="overview"> | ||
<Card> | ||
<CardHeader> | ||
<CardTitle>选择网络</CardTitle> | ||
<CardDescription>你可以在这里更改代理节点</CardDescription> | ||
</CardHeader> | ||
<CardContent className="space-y-2"> | ||
<SelectNet /> | ||
</CardContent> | ||
</Card> | ||
</TabsContent> | ||
<TabsContent value="select"> | ||
</TabsContent> | ||
<TabsContent value="connection"> | ||
</TabsContent> | ||
</Tabs> | ||
</> | ||
} |
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 |
---|---|---|
@@ -0,0 +1,8 @@ | ||
import useSWR from 'swr' | ||
|
||
export const SelectNet: React.FC = () => { | ||
|
||
return <> | ||
|
||
</> | ||
} |