From f8e00df5bef23ae1f31b114440bca1fa1496e73f Mon Sep 17 00:00:00 2001 From: Alex Ramsdell Date: Thu, 26 Oct 2023 13:20:25 -0400 Subject: [PATCH 1/8] improve editor visibility: add faint lightgray outline to editor when theme is light. --- src/assets/styles/components/_web-ide.scss | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/assets/styles/components/_web-ide.scss b/src/assets/styles/components/_web-ide.scss index 0ba90c1e1..a7e11db8b 100644 --- a/src/assets/styles/components/_web-ide.scss +++ b/src/assets/styles/components/_web-ide.scss @@ -199,6 +199,10 @@ .light { + .editor-window { + border: 1px solid $color-lightergrey; + } + .name-input { .validation-message { From 18ffca449634bcdf25c6203cc142c3e642a168dc Mon Sep 17 00:00:00 2001 From: Alex Ramsdell Date: Thu, 26 Oct 2023 13:22:35 -0400 Subject: [PATCH 2/8] remove instance example code item from menu --- src/components/instance/routes.js | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) diff --git a/src/components/instance/routes.js b/src/components/instance/routes.js index f5a76e824..9fa104726 100644 --- a/src/components/instance/routes.js +++ b/src/components/instance/routes.js @@ -10,7 +10,6 @@ const Metrics = lazy(() => import(/* webpackChunkName: "instance-status" */ './s const Users = lazy(() => import(/* webpackChunkName: "instance-users" */ './users')); const Roles = lazy(() => import(/* webpackChunkName: "instance-roles" */ './roles')); const Functions = lazy(() => import(/* webpackChunkName: "custom-functions" */ './functions')); -const Examples = lazy(() => import(/* webpackChunkName: "instance-examples" */ './examples')); const browse = { element: , @@ -102,14 +101,6 @@ const config = { iconCode: 'f0ad', }; -const examples = { - element: , - path: `examples/:folder?/:method?`, - link: 'examples', - label: 'example code', - icon: 'code', - iconCode: 'f121', -}; const routes = ({ super_user, version=null }) => { @@ -128,9 +119,10 @@ const routes = ({ super_user, version=null }) => { } if (super_user) { - return [browse, query, users, roles, charts, cluster, supportsApplications ? applications : functions, metrics, config, examples]; + return [browse, query, users, roles, charts, cluster, supportsApplications ? applications : functions, metrics, config]; } - return [browse, query, charts, examples]; + + return [browse, query, charts]; } export default routes; From 1c592d868bec77dfd62e7ea6567453f56ee3367a Mon Sep 17 00:00:00 2001 From: Alex Ramsdell Date: Thu, 26 Oct 2023 15:43:59 -0400 Subject: [PATCH 3/8] change resources top navigation link to docs that opens to a new tab to harperdb docs when clicked. --- src/components/TopNav.js | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/src/components/TopNav.js b/src/components/TopNav.js index 93b84bb00..18afc2f77 100644 --- a/src/components/TopNav.js +++ b/src/components/TopNav.js @@ -108,12 +108,16 @@ function TopNav({ isMaintenance }) { )} - - +
  • + -  resources - - +  docs + +
  • {themes.length > 1 && (