mirror of
https://github.com/taylanbakircioglu/flowfish.git
synced 2026-09-12 05:48:55 +00:00
feat: display app version in sidebar footer
Made-with: Cursor
This commit is contained in:
@@ -21,6 +21,7 @@ import {
|
||||
} from '@ant-design/icons';
|
||||
import FlowfishLogo from '../FlowfishLogo';
|
||||
import type { MenuProps } from 'antd';
|
||||
import { APP_VERSION } from '../../version';
|
||||
|
||||
const { Sider } = Layout;
|
||||
|
||||
@@ -218,6 +219,8 @@ const Sidebar: React.FC<SidebarProps> = ({ collapsed }) => {
|
||||
left: 0,
|
||||
top: 0,
|
||||
bottom: 0,
|
||||
display: 'flex',
|
||||
flexDirection: 'column',
|
||||
}}
|
||||
>
|
||||
{/* Logo */}
|
||||
@@ -257,9 +260,24 @@ const Sidebar: React.FC<SidebarProps> = ({ collapsed }) => {
|
||||
items={menuItems}
|
||||
style={{
|
||||
borderRight: 0,
|
||||
flex: 1,
|
||||
}}
|
||||
/>
|
||||
|
||||
|
||||
<div
|
||||
style={{
|
||||
padding: collapsed ? '8px 0' : '8px 16px',
|
||||
textAlign: 'center',
|
||||
fontSize: 11,
|
||||
color: 'rgba(255,255,255,0.25)',
|
||||
whiteSpace: 'nowrap',
|
||||
overflow: 'hidden',
|
||||
flexShrink: 0,
|
||||
}}
|
||||
>
|
||||
{collapsed ? `v${APP_VERSION}` : `Flowfish v${APP_VERSION}`}
|
||||
</div>
|
||||
|
||||
{/* Fix for text wrapping issue on smaller screens */}
|
||||
<style>{`
|
||||
.ant-menu-item,
|
||||
|
||||
@@ -1,8 +1 @@
|
||||
// Auto-generated version file - DO NOT EDIT MANUALLY
|
||||
// Updated by CI/CD pipeline via .build-marker
|
||||
|
||||
export const APP_VERSION = '2.3.0';
|
||||
export const BUILD_NUMBER = 1;
|
||||
export const FULL_VERSION = '2.3.0-build.1';
|
||||
export const BUILD_TIMESTAMP = '2026-01-07T16:45:00Z';
|
||||
|
||||
|
||||
+1
-4
@@ -1,6 +1,3 @@
|
||||
{
|
||||
"version": "2.3.0",
|
||||
"buildNumber": 0,
|
||||
"lastUpdated": "2026-01-07T00:00:00Z"
|
||||
"version": "2.3.0"
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user