Skip to content
This repository has been archived by the owner on May 30, 2024. It is now read-only.

Commit

Permalink
Merge branch 'main' of github.com:/gitploy-io/gitploy
Browse files Browse the repository at this point in the history
  • Loading branch information
noah committed Oct 3, 2021
2 parents 4472757 + ff6aa21 commit 2035ca1
Show file tree
Hide file tree
Showing 9 changed files with 49 additions and 5 deletions.
Binary file added docs/images/favicon.ico
Binary file not shown.
17 changes: 17 additions & 0 deletions docs/images/logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 0 additions & 2 deletions internal/server/router.go
Original file line number Diff line number Diff line change
Expand Up @@ -240,8 +240,6 @@ func NewRouter(c *RouterConfig) *gin.Engine {
// Static files
// Files in ui/public
r.StaticFile("/favicon.ico", "./favicon.ico")
r.StaticFile("/logo192.png", "./logo192.png")
r.StaticFile("/logo512.png", "./logo512.png")
r.StaticFile("/manifest.json", "./manifest.json")
r.StaticFile("/robots.txt", "./robots.txt")
r.Static("/static", "./static")
Expand Down
2 changes: 2 additions & 0 deletions mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ theme:
palette:
primary: deep purple
accent: deep purple
logo: images/logo.svg
favicon: images/favicon.ico
icon:
repo: fontawesome/brands/github
nav:
Expand Down
Binary file modified ui/public/favicon.ico
Binary file not shown.
Binary file removed ui/public/logo192.png
Binary file not shown.
Binary file removed ui/public/logo512.png
Binary file not shown.
27 changes: 26 additions & 1 deletion ui/src/logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 4 additions & 2 deletions ui/src/views/Main.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ import { subscribeEvents } from "../apis"
import RecentActivities from "../components/RecentActivities"
import LicenseFooter from "../components/LicenseFooter"

import Logo from "../logo.svg"

const { Header, Content, Footer } = Layout

// eslint-disable-next-line
Expand Down Expand Up @@ -86,8 +88,8 @@ export default function Main(props: any) {
<Header>
<Row>
<Col span="16">
<Menu theme="dark" mode="horizontal" defaultActiveFirst>
<Menu.Item key={0}>Gitploy</Menu.Item>
<Menu theme="dark" mode="horizontal" >
<Menu.Item key={0}><a href="/"><img src={Logo} style={{width: 62}}/></a></Menu.Item>
<Menu.Item key={1}><a href="/">Home</a></Menu.Item>
{(user?.admin)? <Menu.Item key={2}><a href="/members">Members</a></Menu.Item>: null}
</Menu>
Expand Down

0 comments on commit 2035ca1

Please sign in to comment.