mirror of
https://github.com/Rain-kl/OpenFlare.git
synced 2026-10-11 17:56:37 +08:00
Refactor: Remove summary cards from various pages and update UI components
- Removed summary cards from Managed Domains, Nodes, Proxy Routes, TLS Certificates, Users pages to streamline UI. - Updated Nodes and Proxy Routes pages to enhance action buttons and descriptions. - Added new runtime configuration options for rate limiting in Settings page, allowing for dynamic updates. - Updated documentation to reflect new runtime configurations and their effects. - Enhanced unit tests for DashboardOverview to include mock data for comprehensive coverage.
This commit is contained in:
@@ -1,16 +1,20 @@
|
||||
import { create } from 'zustand';
|
||||
|
||||
interface AppShellState {
|
||||
isSidebarCollapsed: boolean;
|
||||
toggleSidebar: () => void;
|
||||
setSidebarCollapsed: (value: boolean) => void;
|
||||
}
|
||||
|
||||
export const useAppShellStore = create<AppShellState>((set) => ({
|
||||
isSidebarCollapsed: false,
|
||||
toggleSidebar: () =>
|
||||
set((state) => ({
|
||||
isSidebarCollapsed: !state.isSidebarCollapsed,
|
||||
})),
|
||||
setSidebarCollapsed: (value) => set({ isSidebarCollapsed: value }),
|
||||
}));
|
||||
interface AppShellState {
|
||||
isSidebarCollapsed: boolean;
|
||||
isMobileSidebarOpen: boolean;
|
||||
toggleSidebar: () => void;
|
||||
setSidebarCollapsed: (value: boolean) => void;
|
||||
setMobileSidebarOpen: (value: boolean) => void;
|
||||
}
|
||||
|
||||
export const useAppShellStore = create<AppShellState>((set) => ({
|
||||
isSidebarCollapsed: false,
|
||||
isMobileSidebarOpen: false,
|
||||
toggleSidebar: () =>
|
||||
set((state) => ({
|
||||
isSidebarCollapsed: !state.isSidebarCollapsed,
|
||||
})),
|
||||
setSidebarCollapsed: (value) => set({ isSidebarCollapsed: value }),
|
||||
setMobileSidebarOpen: (value) => set({ isMobileSidebarOpen: value }),
|
||||
}));
|
||||
|
||||
Reference in New Issue
Block a user