mirror of
https://github.com/AeThex-Corporation/AeThex-OS.git
synced 2026-04-20 07:17:19 +00:00
- ModuleManager: Central tracking for installed marketplace modules - DataAnalyzerWidget: Real-time CPU/RAM/Battery/Storage widget (unlocked by Data Analyzer module) - BottomNavBar: Navigation bar for Projects/Chat/Marketplace/Settings - RootShell: Real root command execution utility - TerminalActivity: Full root shell with neofetch, sysinfo, real Linux commands - Terminal Pro module: Adds aliases (ll, la, h), command history - ArcadeActivity + SnakeGame: Pixel Arcade module unlocks retro games - fade_in/fade_out animations for smooth transitions
28 lines
588 B
TypeScript
28 lines
588 B
TypeScript
import { useEffect } from "react";
|
|
import { useLocation } from "react-router-dom";
|
|
|
|
import { setSkipAgentActive, disableSkipAgent } from "@/lib/skip-agent";
|
|
|
|
const DOCS_PATH_PREFIX = "/docs";
|
|
|
|
const SkipAgentController = () => {
|
|
const location = useLocation();
|
|
|
|
useEffect(() => {
|
|
const onDocs = location.pathname.startsWith(DOCS_PATH_PREFIX);
|
|
|
|
if (onDocs) {
|
|
disableSkipAgent();
|
|
} else {
|
|
void setSkipAgentActive(true);
|
|
}
|
|
|
|
return () => {
|
|
disableSkipAgent();
|
|
};
|
|
}, [location.pathname]);
|
|
|
|
return null;
|
|
};
|
|
|
|
export default SkipAgentController;
|