diff --git a/gui/src/App.vue b/gui/src/App.vue index 41a0678..5fe043b 100644 --- a/gui/src/App.vue +++ b/gui/src/App.vue @@ -9,16 +9,13 @@ import consumerVariables from '../../demo/consumer-variables/config.json'; import loadBalancer from '../../demo/load-balancer/config.json'; import staticWeb from '../../demo/static-web/config.json'; import reverseProxy from '../../demo/reverse-proxy/config.json'; -import fullConfig from '../../docs/flowchart/config/config.json'; -const config = ref(fullConfig); -const configString = ref(JSON.stringify(fullConfig)); -const activeKey = ref('Config'); +const config = ref(loadBalancer); +const configString = ref(JSON.stringify(loadBalancer)); const exsamples = { 'Consumer Variables':consumerVariables, 'Load Balancer':loadBalancer, 'Static Web':staticWeb, 'Reverse Proxy':reverseProxy, - 'Full Config':fullConfig, }; watch(config, (n, o)=>{ if(JSON.stringify(n)!=configString.value){ @@ -36,6 +33,9 @@ watch(configString, (n, o)=>{ const useDemo = (key) => { config.value = exsamples[key]; } + +const docHeight = ref(document.documentElement.clientHeight - 46); + const menus = [ { key: 'exsamples', @@ -59,10 +59,6 @@ const menus = [ key: 'Reverse Proxy', label: 'Reverse Proxy', }, - { - key: 'Full Config', - label: 'Full Config', - }, ], }, { @@ -86,7 +82,7 @@ const menuClick = (e) => { diff --git a/gui/src/components/GatewayView.vue b/gui/src/components/GatewayView.vue index d5a01f7..54521c5 100644 --- a/gui/src/components/GatewayView.vue +++ b/gui/src/components/GatewayView.vue @@ -206,9 +206,9 @@ const displayMap = ref({}); HealthCheck - + More - + @@ -221,7 +221,6 @@ const displayMap = ref({}); -
Service @@ -248,15 +247,15 @@ const displayMap = ref({}); Endpoints
-
    -
  1. +
      +
    1. {{endpoint}} -
      +
      Weight:{{json.Services[service].Endpoints[endpoint].Weight}} - {{tag}}:{{json.Services[service].Endpoints[endpoint].Tags[tag]}} + {{tag}}:{{json.Services[service].Endpoints[endpoint].Tags[tag]}}
      Cert Chain @@ -356,46 +355,5 @@ const displayMap = ref({}); diff --git a/gui/src/components/index.css b/gui/src/components/index.css new file mode 100644 index 0000000..dda387e --- /dev/null +++ b/gui/src/components/index.css @@ -0,0 +1,42 @@ +.listener-block,.config-block { + border: 2px solid #00adef; + border-radius: 10px; + padding:5px; +} +.service-block{ + border: 2px solid lightseagreen; + border-radius: 10px; + padding: 10px; +} +.service-block b,.service-block div{ + padding: 5px; +} +.route-block { + border: 2px dashed #00adef; + margin: 15px 15px 15px 0; + border-radius: 10px; + padding:15px 5px 5px 5px; +} +.endpoint-block{ + border: 2px dashed lightseagreen; + border-radius: 10px; +} +.config-block b,.config-block>div{ + padding: 10px; +} +section{ + margin-bottom: 10px; +} +.block-item{ + white-space: nowrap; + background-color: #f5f5f5; + line-height: 34px; + height: 34px; + display: inline-block; + padding: 0 10px 0 5px; + border-radius: 5px; + font-weight: bold; +} +.service-block.all{ + padding-bottom: 50px !important; +} \ No newline at end of file