From 5841e11695b17a7fcbfa1b8b31f26b5eb4e5c55e Mon Sep 17 00:00:00 2001 From: checktheroads Date: Sun, 29 Mar 2020 20:04:24 -0700 Subject: [PATCH] developer_mode cleanup --- hyperglass/ui/components/Debugger.js | 23 +++++++++++++++++------ hyperglass/ui/nextdev.js | 3 ++- 2 files changed, 19 insertions(+), 7 deletions(-) diff --git a/hyperglass/ui/components/Debugger.js b/hyperglass/ui/components/Debugger.js index 3abcc98..02a7fe1 100644 --- a/hyperglass/ui/components/Debugger.js +++ b/hyperglass/ui/components/Debugger.js @@ -35,16 +35,15 @@ const Debugger = () => { borderWidth="1px" borderColor={borderColor[colorMode]} py={4} - mx={-4} px={4} isInline - // position="fixed" position="relative" - // bottom="10%" left={0} right={0} + bottom={0} justifyContent="center" zIndex={1000} + maxW="100%" > {colorMode.toUpperCase()} {prettyMediaSize[mediaSize]} @@ -57,7 +56,13 @@ const Debugger = () => { - + Loaded Configuration @@ -65,9 +70,15 @@ const Debugger = () => { - + - + Loaded Theme diff --git a/hyperglass/ui/nextdev.js b/hyperglass/ui/nextdev.js index 2f538d9..ec828ed 100644 --- a/hyperglass/ui/nextdev.js +++ b/hyperglass/ui/nextdev.js @@ -10,7 +10,8 @@ const { NODE_ENV: env, _HYPERGLASS_URL_: envUrl } = config; const devProxy = { "/api/query/": { target: envUrl + "api/query/", pathRewrite: { "^/api/query/": "" } }, - "/images": { target: envUrl + "images", pathRewrite: { "^/images": "" } } + "/images": { target: envUrl + "images", pathRewrite: { "^/images": "" } }, + "/custom": { target: envUrl + "custom", pathRewrite: { "^/custom": "" } } }; const port = parseInt(process.env.PORT, 10) || 3000;