forked from mirrors/thatmattlove-hyperglass
39 lines
5.1 KiB
Text
39 lines
5.1 KiB
Text
---
|
|
id: text
|
|
title: Text
|
|
sidebar_label: Text
|
|
keywords: [hyperglass, looking glass, web ui, gui, branding, text, messages]
|
|
description: Customize the text used in the web UI
|
|
---
|
|
|
|
## `text`
|
|
|
|
| Parameter | Type | Default | Description |
|
|
| :--------------- | :----: | :-------------------------------------- | :---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
| `cache_prefix` | String | `'Results cached for '` | Text displayed with the cache timeout countdown. |
|
|
| `cache_icon` | String | `'Cached Response from {time}'` | Text displayed when a user hovers over the lightning bolt icon, which is displayed when a response from the server was a cached response. `{time}` is replaced with the _original_ query's timestamp. |
|
|
| `completed_time` | String | `'Completed in {seconds}'` | Text displayed when a user hovers over the success icon for a query result. `{seconds}` will be replaced with 'n seconds' where n is the time a query took to complete. |
|
|
| `fqdn_message` | String | `'Your browser has resolved {fqdn} to'` | Text displayed when prompting a user to select a resolve IPv4 or IPv6 address for an FQDN query. |
|
|
| `fqdn_error` | String | `'Unable to resolve {fqdn}'` | Text displayed when an FQDN is not resolvable. |
|
|
| `fqdn_button` | String | `'Try Again'` | Button text used when an FQDN is not resolvable. |
|
|
| `no_communities` | String | `'No Communities'` | Shown in table output when a route has no communities. |
|
|
| `query_location` | String | `'Location'` | Query Location (router) form label. |
|
|
| `query_target` | String | `'Target'` | Query Target (IP/hostname/community/AS Path) form label. |
|
|
| `query_type` | String | `'Query Type'` | Query Type (BGP Route, Ping, Traceroute, etc.) form label. |
|
|
| `query_vrf` | String | `'Routing Table'` | Query VRF form label. |
|
|
| `subtitle` | String | `'Network Looking Glass'` | Subtitle text. |
|
|
| `title` | String | `'hyperglass'` | Title text. |
|
|
| `title_mode` | String | `'text_only'` | Set the title mode. <MiniNote>Must be <Code>text_only</Code>, <Code>logo_only</Code>, <Code>logo_subtitle</Code>, or <Code>all</Code></MiniNote> |
|
|
|
|
### Title Mode
|
|
|
|
The `title_mode` parameter behaves in the following manner:
|
|
|
|
<div className="table--full-width" />
|
|
|
|
| Mode | Behavior |
|
|
| --------------- | ----------------------------------------------------------------------- |
|
|
| `text_only` | Shows the [`title`](#text) and [`subtitle`](#text) only. |
|
|
| `logo_only` | Shows the [`logo`](ui/logo.mdx) only. |
|
|
| `logo_subtitle` | Shows the [`logo`](ui/logo.mdx) and [`subtitle`](#text) only. |
|
|
| `all` | Shows the [`logo`](ui/logo.mdx), [`title`](#text), [`subtitle`](#text). |
|