diff --git a/README.md b/README.md index 7bc1066e..2593812f 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# Backrest + [![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) diff --git a/proto/v1/service.proto b/proto/v1/service.proto index 15610366..ee3f244e 100644 --- a/proto/v1/service.proto +++ b/proto/v1/service.proto @@ -57,6 +57,15 @@ service Backrest { rpc PathAutocomplete (types.StringValue) returns (types.StringList) {} } +message LoginRequest { + string username = 1; + string password = 2; +} + +message LoginResponse { + string jwt = 1; +} + message ClearHistoryRequest { string repo_id = 1; string plan_id = 2; diff --git a/webui/assets/logo-black.svg b/webui/assets/logo-black.svg new file mode 100644 index 00000000..d96dade4 --- /dev/null +++ b/webui/assets/logo-black.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/webui/assets/logo.svg b/webui/assets/logo.svg new file mode 100644 index 00000000..70991046 --- /dev/null +++ b/webui/assets/logo.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/webui/src/lib/browserutil.ts b/webui/src/lib/browserutil.ts index 331ef317..f5731a1c 100644 --- a/webui/src/lib/browserutil.ts +++ b/webui/src/lib/browserutil.ts @@ -1,6 +1,6 @@ export const isMobile = () => { // check if window is narrow - if (window.innerWidth <= 768) { + if (window.innerWidth <= 1024) { return true; } // check if user agent is mobile diff --git a/webui/src/views/App.tsx b/webui/src/views/App.tsx index db1fb9e1..0e3efda0 100644 --- a/webui/src/views/App.tsx +++ b/webui/src/views/App.tsx @@ -20,6 +20,7 @@ import { uiBuildVersion } from "../state/buildcfg"; import { ActivityBar } from "../components/ActivityBar"; import { OperationStatus } from "../../gen/ts/v1/operations_pb"; import { colorForStatus, getStatusForPlan, getStatusForRepo, subscribeToOperations, unsubscribeFromOperations } from "../state/oplog"; +import LogoSvg from "url:../../assets/logo.svg"; import _ from "lodash"; const { Header, Sider } = Layout; @@ -60,16 +61,17 @@ export const App: React.FC = () => { display: "flex", alignItems: "center", width: "100vw", + height: "60px", backgroundColor: "#1b232c", }} > + setContent(null, [])} + > + +

- setContent(null, [])} - > - Backrest{" "} - {uiBuildVersion} diff --git a/webui/src/views/RepoView.tsx b/webui/src/views/RepoView.tsx index c6ce1230..b94ee655 100644 --- a/webui/src/views/RepoView.tsx +++ b/webui/src/views/RepoView.tsx @@ -115,11 +115,6 @@ export const RepoView = ({ repo }: React.PropsWithChildren<{ repo: Repo }>) => { Index Snapshots - - - Index Snapshots - -