-
Notifications
You must be signed in to change notification settings - Fork 669
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Innei <i@innei.in>
- Loading branch information
Showing
3 changed files
with
50 additions
and
0 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,40 @@ | ||
import { repository } from "@pkg" | ||
import { Logo } from "@renderer/components/icons/logo" | ||
import { StyledButton } from "@renderer/components/ui/button" | ||
|
||
export const SettingAbout = () => ( | ||
<div> | ||
<section> | ||
<div className="my-4 font-medium text-theme-foreground/60"> | ||
Version | ||
</div> | ||
<div className="flex gap-3"> | ||
<Logo className="size-[52px]" /> | ||
|
||
<div className="flex grow flex-col"> | ||
<div className="text-lg font-bold"> | ||
{APP_NAME} | ||
{" "} | ||
{!import.meta.env.PROD ? `(${import.meta.env.MODE})` : ""} | ||
</div> | ||
<div> | ||
<span className="rounded bg-muted px-2 py-1 text-xs"> | ||
{APP_VERSION} | ||
</span> | ||
</div> | ||
</div> | ||
|
||
<div className="shrink-0"> | ||
<StyledButton | ||
variant="outline" | ||
onClick={() => { | ||
window.open(`${repository.url}/releases`, "_blank") | ||
}} | ||
> | ||
Changelog | ||
</StyledButton> | ||
</div> | ||
</div> | ||
</section> | ||
</div> | ||
) |
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,9 @@ | ||
import { SettingAbout } from "@renderer/modules/settings/tabs/about" | ||
import { defineSettingPage } from "@renderer/modules/settings/utils" | ||
|
||
export const loader = defineSettingPage({ | ||
iconName: "i-mgc-information-cute-re", | ||
name: "About", | ||
priority: 9999, | ||
}) | ||
export const Component = () => <SettingAbout /> |