From 6a5e80aee96154cd0adaf74ae2a891bd1b329a00 Mon Sep 17 00:00:00 2001 From: JP Dillingham Date: Tue, 9 Jun 2026 17:52:07 -0500 Subject: stub app footer --- src/web/src/components/App.css | 33 +++++ src/web/src/components/App.jsx | 234 ++++++++++++++++++----------------- src/web/src/components/AppFooter.jsx | 48 +++++++ 3 files changed, 202 insertions(+), 113 deletions(-) create mode 100644 src/web/src/components/AppFooter.jsx (limited to 'src/web') diff --git a/src/web/src/components/App.css b/src/web/src/components/App.css index 054fe1c4..ecadc1d5 100644 --- a/src/web/src/components/App.css +++ b/src/web/src/components/App.css @@ -123,6 +123,12 @@ body { .pushable > .pusher.app-content { min-height: calc(100% - 71px); background: var(--background-color); + display: flex; + flex-direction: column; +} + +.app-content-body { + flex: 1; } .navigation { @@ -264,4 +270,31 @@ body { .message { padding: 8px 12px 8px 12px !important; +} + +.footer.ui.menu { + position: sticky !important; + bottom: 0 !important; + margin: 0 !important; + border-radius: 0 !important; +} + +.footer-logo { + height: 14px; + width: auto; + margin-right: 6px; + vertical-align: middle; +} + +.footer-version { + margin-left: 6px; + font-family: monospace; + font-size: 11px; + opacity: 0.6; +} + +.footer-license { + margin-left: 6px; + font-size: 11px; + opacity: 0.4; } \ No newline at end of file diff --git a/src/web/src/components/App.jsx b/src/web/src/components/App.jsx index 92fe925b..8e155b8b 100644 --- a/src/web/src/components/App.jsx +++ b/src/web/src/components/App.jsx @@ -7,6 +7,7 @@ import { connect, disconnect } from '../lib/server'; import * as session from '../lib/session'; import { isPassthroughEnabled } from '../lib/token'; import AppContext from './AppContext'; +import AppFooter from './AppFooter'; import Browse from './Browse/Browse'; import Chat from './Chat/Chat'; import LoginForm from './LoginForm'; @@ -522,122 +523,129 @@ class App extends Component { - - {isAgent ? ( - - - this.withTokenCheck( - , - ) - } - /> - - - ) : ( - - - this.withTokenCheck( -
- + + {isAgent ? ( + + + this.withTokenCheck( + -
, - ) - } - /> - - this.withTokenCheck() - } - /> - - this.withTokenCheck() - } - /> - - this.withTokenCheck( - , - ) - } - /> - - this.withTokenCheck() - } - /> - - this.withTokenCheck( -
- , + ) + } + /> + + + ) : ( + + + this.withTokenCheck( +
+ +
, + ) + } + /> + + this.withTokenCheck() + } + /> + + this.withTokenCheck() + } + /> + + this.withTokenCheck( + -
, - ) - } - /> - - this.withTokenCheck( -
- , + ) + } + /> + + this.withTokenCheck() + } + /> + + this.withTokenCheck( +
+ +
, + ) + } + /> + + this.withTokenCheck( +
+ +
, + ) + } + /> + + this.withTokenCheck( + -
, - ) - } - /> - - this.withTokenCheck( - , - ) - } - /> - -
- )} -
+ options={applicationOptions} + state={applicationState} + theme={theme} + />, + ) + } + /> + + + )} + + +
{ + const { isConnected } = server; + const { username } = user; + const { current } = version; + + return ( + + + + {isConnected ? username : 'Disconnected'} + + + — + + + — + + + + + slskd + {current && {current}} + AGPL-3.0 + + + + ); +}; + +export default AppFooter; -- cgit v1.2.3