mirror of
https://github.com/siemens-mobile-hacks/web-devtools.git
synced 2026-11-25 23:57:40 +00:00
disable WIP sections
This commit is contained in:
parent
793ea66f39
commit
c902fba6a8
5 changed files with 18 additions and 20 deletions
|
|
@ -52,6 +52,11 @@
|
|||
color: var(--sidebar-link-active-color);
|
||||
font-weight: 400;
|
||||
}
|
||||
|
||||
&--disabled {
|
||||
color: var(--bs-gray-500);
|
||||
pointer-events: none;
|
||||
}
|
||||
}
|
||||
|
||||
&__label {
|
||||
|
|
|
|||
|
|
@ -18,15 +18,15 @@ export const Sidebar: Component<SidebarProps> = (props) => {
|
|||
title: "Functions library",
|
||||
links: [
|
||||
{ label: "Swilib analysis", href: "/swilib/analysis/summary", icon: "bi bi-activity" },
|
||||
{ label: "Check swilib.vkp", href: "/swilib/check", icon: "bi bi-file-earmark-check" },
|
||||
{ label: "Merge swilib.vkp", href: "/swilib/merge", icon: "bi bi-arrow-left-right" }
|
||||
{ label: "Check swilib.vkp", href: "/swilib/check", icon: "bi bi-file-earmark-check", disabled: true },
|
||||
{ label: "Merge swilib.vkp", href: "/swilib/merge", icon: "bi bi-arrow-left-right", disabled: true }
|
||||
]
|
||||
},
|
||||
|
||||
{
|
||||
title: "Reverse engineering",
|
||||
links: [
|
||||
{ label: "Patterns finder", href: "/re/ptr89", icon: "bi bi-search" },
|
||||
{ label: "Patterns finder", href: "/re/ptr89", icon: "bi bi-search", disabled: true },
|
||||
{ label: "Download symbols", href: "/re/symbols", icon: "bi bi-download" }
|
||||
]
|
||||
},
|
||||
|
|
@ -34,8 +34,8 @@ export const Sidebar: Component<SidebarProps> = (props) => {
|
|||
{
|
||||
title: "Database",
|
||||
links: [
|
||||
{ label: "Patches map", href: "/db/patches-map", icon: "bi bi-diagram-3" },
|
||||
{ label: "Memory map", href: "/db/memory-map", icon: "bi bi-grid-3x3-gap" }
|
||||
{ label: "Patches map", href: "/db/patches-map", icon: "bi bi-diagram-3", disabled: true },
|
||||
{ label: "Memory map", href: "/db/memory-map", icon: "bi bi-grid-3x3-gap", disabled: true }
|
||||
]
|
||||
}
|
||||
];
|
||||
|
|
|
|||
|
|
@ -7,13 +7,18 @@ export interface SidebarLinkProps {
|
|||
label: string;
|
||||
href: string;
|
||||
icon: string;
|
||||
disabled?: boolean;
|
||||
}
|
||||
|
||||
export const SidebarLink: Component<SidebarLinkProps> = (props) => {
|
||||
const match = useMatch(() => resolveURL(props.href));
|
||||
return (
|
||||
<A
|
||||
class={clsx("sidebar__link", match() && "sidebar__link--active")}
|
||||
class={clsx(
|
||||
"sidebar__link",
|
||||
match() && "sidebar__link--active",
|
||||
props.disabled && "sidebar__link--disabled"
|
||||
)}
|
||||
href={props.href}
|
||||
>
|
||||
<i class={`bi ${props.icon} sidebar__icon`}/>
|
||||
|
|
|
|||
|
|
@ -8,9 +8,10 @@ import {
|
|||
ParentComponent,
|
||||
useContext
|
||||
} from "solid-js";
|
||||
import { ThemeType } from "@/store/globalSettingsStore";
|
||||
import { makePersistedSignal } from "@/utils/makePersistedSignal";
|
||||
|
||||
type ThemeType = "light" | "dark" | "system";
|
||||
|
||||
interface ThemeContext {
|
||||
theme: Accessor<ThemeType>;
|
||||
effectiveTheme: Accessor<ThemeType>;
|
||||
|
|
|
|||
|
|
@ -1,13 +0,0 @@
|
|||
import { makePersistedStore } from "@/utils/makePersistedStore";
|
||||
import { createStore } from "solid-js/store";
|
||||
import { createRoot } from "solid-js";
|
||||
|
||||
export type ThemeType = "light" | "dark" | "system";
|
||||
|
||||
const globalSettingsStore = createRoot(() =>
|
||||
makePersistedStore(createStore({
|
||||
theme: "system" as ThemeType,
|
||||
}), { name: 'globalSettings' })
|
||||
);
|
||||
|
||||
export const useGlobalSettingsStore = () => globalSettingsStore;
|
||||
Loading…
Add table
Reference in a new issue