Skip to content

Commit 5add0d8

Browse files
committed
feat: add backrest logo
1 parent 851bd12 commit 5add0d8

File tree

7 files changed

+21
-13
lines changed

7 files changed

+21
-13
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Backrest
1+
<img src="./webui/assets/logo-black.svg" width="400px"/>
22

33
[![Build and Test](https://github.com/garethgeorge/backrest/actions/workflows/build-and-test.yml/badge.svg)](https://github.com/garethgeorge/backrest/actions/workflows/build-and-test.yml)
44

proto/v1/service.proto

+9
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,15 @@ service Backrest {
5757
rpc PathAutocomplete (types.StringValue) returns (types.StringList) {}
5858
}
5959

60+
message LoginRequest {
61+
string username = 1;
62+
string password = 2;
63+
}
64+
65+
message LoginResponse {
66+
string jwt = 1;
67+
}
68+
6069
message ClearHistoryRequest {
6170
string repo_id = 1;
6271
string plan_id = 2;

webui/assets/logo-black.svg

+1
Loading

webui/assets/logo.svg

+1
Loading

webui/src/lib/browserutil.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
export const isMobile = () => {
22
// check if window is narrow
3-
if (window.innerWidth <= 768) {
3+
if (window.innerWidth <= 1024) {
44
return true;
55
}
66
// check if user agent is mobile

webui/src/views/App.tsx

+8-6
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ import { uiBuildVersion } from "../state/buildcfg";
2020
import { ActivityBar } from "../components/ActivityBar";
2121
import { OperationStatus } from "../../gen/ts/v1/operations_pb";
2222
import { colorForStatus, getStatusForPlan, getStatusForRepo, subscribeToOperations, unsubscribeFromOperations } from "../state/oplog";
23+
import LogoSvg from "url:../../assets/logo.svg";
2324
import _ from "lodash";
2425

2526
const { Header, Sider } = Layout;
@@ -60,16 +61,17 @@ export const App: React.FC = () => {
6061
display: "flex",
6162
alignItems: "center",
6263
width: "100vw",
64+
height: "60px",
6365
backgroundColor: "#1b232c",
6466
}}
6567
>
68+
<a
69+
style={{ color: colorTextLightSolid }}
70+
onClick={() => setContent(null, [])}
71+
>
72+
<img src={LogoSvg} style={{ height: "30px", color: "white", marginBottom: "-8px", paddingRight: "10px", }} />
73+
</a>
6674
<h1>
67-
<a
68-
style={{ color: colorTextLightSolid }}
69-
onClick={() => setContent(null, [])}
70-
>
71-
Backrest{" "}
72-
</a>
7375
<small style={{ color: "rgba(255,255,255,0.3)", fontSize: "0.6em" }}>
7476
{uiBuildVersion}
7577
</small>

webui/src/views/RepoView.tsx

-5
Original file line numberDiff line numberDiff line change
@@ -115,11 +115,6 @@ export const RepoView = ({ repo }: React.PropsWithChildren<{ repo: Repo }>) => {
115115
Index Snapshots
116116
</SpinButton>
117117
</Tooltip>
118-
<Tooltip title="Computes stats for the repository. May take some time to refresh.">
119-
<SpinButton type="default" onClickAsync={handleIndexNow}>
120-
Index Snapshots
121-
</SpinButton>
122-
</Tooltip>
123118
</Flex>
124119
<Tabs
125120
defaultActiveKey={items[0].key}

0 commit comments

Comments
 (0)