Skip to content

Commit

Permalink
fix the version
Browse files Browse the repository at this point in the history
  • Loading branch information
TimothyYe committed Feb 17, 2024
1 parent df921da commit 9c14198
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion cmd/godns/godns.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ var (
optHelp = flag.Bool("h", false, "Show help")

// Version is current version of GoDNS.
Version = "0.1"
Version = "v0.1"
)

func main() {
Expand Down
2 changes: 1 addition & 1 deletion internal/utils/constants.go
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ type ProviderSetting struct {

var (
// Version is current version of GoDNS.
Version = "0.1"
Version = "v0.1"
// StartTime is the start time of GoDNS.
StartTime = time.Now().Unix()

Expand Down
2 changes: 1 addition & 1 deletion web/components/navbar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ export const Navbar = () => {
</ul> : null}
</div>
<span className="text-2xl font-bold">GoDNS</span>
<span className="text-sm mt-2">{isClient && version ? `v${version}` : ''}</span>
<span className="text-sm mt-2">{isClient && version && version !== 'v0.1' ? `${version}` : ''}</span>
</div>
<div className="navbar-center hidden lg:flex">
{
Expand Down
2 changes: 1 addition & 1 deletion web/components/stat.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export const Stat = () => {
}, [saveVersion, credentials, setCurrentPage, router]);

return (
info && info.version ? (
info ? (
<div className="flex flex-col max-w-screen-lg">
<span className="text-xl font-semibold text-neutral-500 ml-1 mb-1">Basic Info</span>
<div className="stats shadow bg-primary-content stats-vertical lg:stats-horizontal">
Expand Down

0 comments on commit 9c14198

Please sign in to comment.