|
@@ -53,163 +53,171 @@ exports[`App view matches snapshot 1`] = `
|
|
}
|
|
}
|
|
isClusterListFetched={true}
|
|
isClusterListFetched={true}
|
|
>
|
|
>
|
|
- <div
|
|
|
|
- className="Layout"
|
|
|
|
|
|
+ <Component
|
|
|
|
+ theme={
|
|
|
|
+ Object {
|
|
|
|
+ "buttonStyles": Object {
|
|
|
|
+ "fontSize": Object {
|
|
|
|
+ "L": "16px",
|
|
|
|
+ "M": "14px",
|
|
|
|
+ "S": "14px",
|
|
|
|
+ },
|
|
|
|
+ "height": Object {
|
|
|
|
+ "L": "40px",
|
|
|
|
+ "M": "32px",
|
|
|
|
+ "S": "24px",
|
|
|
|
+ },
|
|
|
|
+ "primary": Object {
|
|
|
|
+ "backgroundColor": Object {
|
|
|
|
+ "active": "#1414B8",
|
|
|
|
+ "hover": "#1717CF",
|
|
|
|
+ "normal": "#4F4FFF",
|
|
|
|
+ },
|
|
|
|
+ "color": "#FFFFFF",
|
|
|
|
+ "invertedColors": Object {
|
|
|
|
+ "active": "#1414B8",
|
|
|
|
+ "hover": "#1717CF",
|
|
|
|
+ "normal": "#4F4FFF",
|
|
|
|
+ },
|
|
|
|
+ },
|
|
|
|
+ "secondary": Object {
|
|
|
|
+ "backgroundColor": Object {
|
|
|
|
+ "active": "#D5DADD",
|
|
|
|
+ "hover": "#E3E6E8",
|
|
|
|
+ "normal": "#F1F2F3",
|
|
|
|
+ },
|
|
|
|
+ "color": "#171A1C",
|
|
|
|
+ "invertedColors": Object {
|
|
|
|
+ "active": "#171A1C",
|
|
|
|
+ "hover": "#454F54",
|
|
|
|
+ "normal": "#73848C",
|
|
|
|
+ },
|
|
|
|
+ },
|
|
|
|
+ },
|
|
|
|
+ }
|
|
|
|
+ }
|
|
>
|
|
>
|
|
- <nav
|
|
|
|
- aria-label="main navigation"
|
|
|
|
- className="navbar is-fixed-top is-white Layout__header"
|
|
|
|
- role="navigation"
|
|
|
|
|
|
+ <div
|
|
|
|
+ className="Layout"
|
|
>
|
|
>
|
|
- <div
|
|
|
|
- className="navbar-brand"
|
|
|
|
|
|
+ <nav
|
|
|
|
+ aria-label="main navigation"
|
|
|
|
+ className="navbar is-fixed-top is-white Layout__header"
|
|
|
|
+ role="navigation"
|
|
>
|
|
>
|
|
<div
|
|
<div
|
|
- className="navbar-burger ml-0"
|
|
|
|
- onClick={[Function]}
|
|
|
|
- onKeyDown={[Function]}
|
|
|
|
- role="button"
|
|
|
|
- tabIndex={0}
|
|
|
|
- >
|
|
|
|
- <span />
|
|
|
|
- <span />
|
|
|
|
- <span />
|
|
|
|
- </div>
|
|
|
|
- <a
|
|
|
|
- className="navbar-item title is-5 is-marginless"
|
|
|
|
- href="/ui"
|
|
|
|
- >
|
|
|
|
- UI for Apache Kafka
|
|
|
|
- </a>
|
|
|
|
- <div
|
|
|
|
- className="navbar-item"
|
|
|
|
|
|
+ className="navbar-brand"
|
|
>
|
|
>
|
|
- <Version />
|
|
|
|
|
|
+ <div
|
|
|
|
+ className="navbar-burger ml-0"
|
|
|
|
+ onClick={[Function]}
|
|
|
|
+ onKeyDown={[Function]}
|
|
|
|
+ role="button"
|
|
|
|
+ tabIndex={0}
|
|
|
|
+ >
|
|
|
|
+ <span />
|
|
|
|
+ <span />
|
|
|
|
+ <span />
|
|
|
|
+ </div>
|
|
|
|
+ <a
|
|
|
|
+ className="navbar-item title is-5 is-marginless"
|
|
|
|
+ href="/ui"
|
|
|
|
+ >
|
|
|
|
+ UI for Apache Kafka
|
|
|
|
+ </a>
|
|
|
|
+ <div
|
|
|
|
+ className="navbar-item"
|
|
|
|
+ >
|
|
|
|
+ <Version />
|
|
|
|
+ </div>
|
|
</div>
|
|
</div>
|
|
- </div>
|
|
|
|
- </nav>
|
|
|
|
- <main
|
|
|
|
- className="Layout__container"
|
|
|
|
- >
|
|
|
|
- <div
|
|
|
|
- className="Layout__sidebar has-shadow has-background-white"
|
|
|
|
|
|
+ </nav>
|
|
|
|
+ <main
|
|
|
|
+ className="Layout__container"
|
|
>
|
|
>
|
|
- <Nav
|
|
|
|
- clusters={Array []}
|
|
|
|
- isClusterListFetched={true}
|
|
|
|
|
|
+ <div
|
|
|
|
+ className="Layout__sidebar has-shadow has-background-white"
|
|
>
|
|
>
|
|
- <aside
|
|
|
|
- className="menu has-shadow has-background-white"
|
|
|
|
|
|
+ <Nav
|
|
|
|
+ clusters={Array []}
|
|
|
|
+ isClusterListFetched={true}
|
|
>
|
|
>
|
|
- <p
|
|
|
|
- className="menu-label"
|
|
|
|
- >
|
|
|
|
- General
|
|
|
|
- </p>
|
|
|
|
- <ul
|
|
|
|
- className="menu-list"
|
|
|
|
|
|
+ <aside
|
|
|
|
+ className="menu has-shadow has-background-white"
|
|
>
|
|
>
|
|
- <li>
|
|
|
|
- <NavLink
|
|
|
|
- activeClassName="is-active"
|
|
|
|
- exact={true}
|
|
|
|
- title="Dashboard"
|
|
|
|
- to="/ui"
|
|
|
|
- >
|
|
|
|
- <Link
|
|
|
|
- aria-current={null}
|
|
|
|
|
|
+ <p
|
|
|
|
+ className="menu-label"
|
|
|
|
+ >
|
|
|
|
+ General
|
|
|
|
+ </p>
|
|
|
|
+ <ul
|
|
|
|
+ className="menu-list"
|
|
|
|
+ >
|
|
|
|
+ <li>
|
|
|
|
+ <NavLink
|
|
|
|
+ activeClassName="is-active"
|
|
|
|
+ exact={true}
|
|
title="Dashboard"
|
|
title="Dashboard"
|
|
- to={
|
|
|
|
- Object {
|
|
|
|
- "hash": "",
|
|
|
|
- "pathname": "/ui",
|
|
|
|
- "search": "",
|
|
|
|
- "state": null,
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
|
|
+ to="/ui"
|
|
>
|
|
>
|
|
- <LinkAnchor
|
|
|
|
|
|
+ <Link
|
|
aria-current={null}
|
|
aria-current={null}
|
|
- href="/ui"
|
|
|
|
- navigate={[Function]}
|
|
|
|
title="Dashboard"
|
|
title="Dashboard"
|
|
|
|
+ to={
|
|
|
|
+ Object {
|
|
|
|
+ "hash": "",
|
|
|
|
+ "pathname": "/ui",
|
|
|
|
+ "search": "",
|
|
|
|
+ "state": null,
|
|
|
|
+ }
|
|
|
|
+ }
|
|
>
|
|
>
|
|
- <a
|
|
|
|
|
|
+ <LinkAnchor
|
|
aria-current={null}
|
|
aria-current={null}
|
|
href="/ui"
|
|
href="/ui"
|
|
- onClick={[Function]}
|
|
|
|
|
|
+ navigate={[Function]}
|
|
title="Dashboard"
|
|
title="Dashboard"
|
|
>
|
|
>
|
|
- Dashboard
|
|
|
|
- </a>
|
|
|
|
- </LinkAnchor>
|
|
|
|
- </Link>
|
|
|
|
- </NavLink>
|
|
|
|
- </li>
|
|
|
|
- </ul>
|
|
|
|
- <p
|
|
|
|
- className="menu-label"
|
|
|
|
- >
|
|
|
|
- Clusters
|
|
|
|
- </p>
|
|
|
|
- </aside>
|
|
|
|
- </Nav>
|
|
|
|
- </div>
|
|
|
|
- <div
|
|
|
|
- aria-hidden="true"
|
|
|
|
- className="Layout__sidebarOverlay is-overlay"
|
|
|
|
- onClick={[Function]}
|
|
|
|
- onKeyDown={[Function]}
|
|
|
|
- tabIndex={-1}
|
|
|
|
- />
|
|
|
|
- <Switch>
|
|
|
|
- <Route
|
|
|
|
- component={[Function]}
|
|
|
|
- computedMatch={
|
|
|
|
- Object {
|
|
|
|
- "isExact": true,
|
|
|
|
- "params": Object {},
|
|
|
|
- "path": "/",
|
|
|
|
- "url": "/",
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
- exact={true}
|
|
|
|
- location={
|
|
|
|
- Object {
|
|
|
|
- "hash": "",
|
|
|
|
- "pathname": "/",
|
|
|
|
- "search": "",
|
|
|
|
- "state": undefined,
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
- path={
|
|
|
|
- Array [
|
|
|
|
- "/",
|
|
|
|
- "/ui",
|
|
|
|
- "/ui/clusters",
|
|
|
|
- ]
|
|
|
|
- }
|
|
|
|
- >
|
|
|
|
- <Dashboard
|
|
|
|
- history={
|
|
|
|
|
|
+ <a
|
|
|
|
+ aria-current={null}
|
|
|
|
+ href="/ui"
|
|
|
|
+ onClick={[Function]}
|
|
|
|
+ title="Dashboard"
|
|
|
|
+ >
|
|
|
|
+ Dashboard
|
|
|
|
+ </a>
|
|
|
|
+ </LinkAnchor>
|
|
|
|
+ </Link>
|
|
|
|
+ </NavLink>
|
|
|
|
+ </li>
|
|
|
|
+ </ul>
|
|
|
|
+ <p
|
|
|
|
+ className="menu-label"
|
|
|
|
+ >
|
|
|
|
+ Clusters
|
|
|
|
+ </p>
|
|
|
|
+ </aside>
|
|
|
|
+ </Nav>
|
|
|
|
+ </div>
|
|
|
|
+ <div
|
|
|
|
+ aria-hidden="true"
|
|
|
|
+ className="Layout__sidebarOverlay is-overlay"
|
|
|
|
+ onClick={[Function]}
|
|
|
|
+ onKeyDown={[Function]}
|
|
|
|
+ tabIndex={-1}
|
|
|
|
+ />
|
|
|
|
+ <Switch>
|
|
|
|
+ <Route
|
|
|
|
+ component={[Function]}
|
|
|
|
+ computedMatch={
|
|
Object {
|
|
Object {
|
|
- "action": "POP",
|
|
|
|
- "block": [Function],
|
|
|
|
- "createHref": [Function],
|
|
|
|
- "go": [Function],
|
|
|
|
- "goBack": [Function],
|
|
|
|
- "goForward": [Function],
|
|
|
|
- "listen": [Function],
|
|
|
|
- "location": Object {
|
|
|
|
- "hash": "",
|
|
|
|
- "pathname": "/",
|
|
|
|
- "search": "",
|
|
|
|
- "state": undefined,
|
|
|
|
- },
|
|
|
|
- "push": [Function],
|
|
|
|
- "replace": [Function],
|
|
|
|
|
|
+ "isExact": true,
|
|
|
|
+ "params": Object {},
|
|
|
|
+ "path": "/",
|
|
|
|
+ "url": "/",
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
+ exact={true}
|
|
location={
|
|
location={
|
|
Object {
|
|
Object {
|
|
"hash": "",
|
|
"hash": "",
|
|
@@ -218,164 +226,201 @@ exports[`App view matches snapshot 1`] = `
|
|
"state": undefined,
|
|
"state": undefined,
|
|
}
|
|
}
|
|
}
|
|
}
|
|
- match={
|
|
|
|
- Object {
|
|
|
|
- "isExact": true,
|
|
|
|
- "params": Object {},
|
|
|
|
- "path": "/",
|
|
|
|
- "url": "/",
|
|
|
|
- }
|
|
|
|
|
|
+ path={
|
|
|
|
+ Array [
|
|
|
|
+ "/",
|
|
|
|
+ "/ui",
|
|
|
|
+ "/ui/clusters",
|
|
|
|
+ ]
|
|
}
|
|
}
|
|
- staticContext={Object {}}
|
|
|
|
>
|
|
>
|
|
- <div
|
|
|
|
- className="section"
|
|
|
|
|
|
+ <Dashboard
|
|
|
|
+ history={
|
|
|
|
+ Object {
|
|
|
|
+ "action": "POP",
|
|
|
|
+ "block": [Function],
|
|
|
|
+ "createHref": [Function],
|
|
|
|
+ "go": [Function],
|
|
|
|
+ "goBack": [Function],
|
|
|
|
+ "goForward": [Function],
|
|
|
|
+ "listen": [Function],
|
|
|
|
+ "location": Object {
|
|
|
|
+ "hash": "",
|
|
|
|
+ "pathname": "/",
|
|
|
|
+ "search": "",
|
|
|
|
+ "state": undefined,
|
|
|
|
+ },
|
|
|
|
+ "push": [Function],
|
|
|
|
+ "replace": [Function],
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ location={
|
|
|
|
+ Object {
|
|
|
|
+ "hash": "",
|
|
|
|
+ "pathname": "/",
|
|
|
|
+ "search": "",
|
|
|
|
+ "state": undefined,
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ match={
|
|
|
|
+ Object {
|
|
|
|
+ "isExact": true,
|
|
|
|
+ "params": Object {},
|
|
|
|
+ "path": "/",
|
|
|
|
+ "url": "/",
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ staticContext={Object {}}
|
|
>
|
|
>
|
|
<div
|
|
<div
|
|
- className="level"
|
|
|
|
|
|
+ className="section"
|
|
>
|
|
>
|
|
<div
|
|
<div
|
|
- className="level-item level-left"
|
|
|
|
|
|
+ className="level"
|
|
>
|
|
>
|
|
- <Breadcrumb>
|
|
|
|
- <nav
|
|
|
|
- aria-label="breadcrumbs"
|
|
|
|
- className="breadcrumb"
|
|
|
|
- >
|
|
|
|
- <ul>
|
|
|
|
- <li
|
|
|
|
- className="is-active"
|
|
|
|
- >
|
|
|
|
- <span
|
|
|
|
- className=""
|
|
|
|
|
|
+ <div
|
|
|
|
+ className="level-item level-left"
|
|
|
|
+ >
|
|
|
|
+ <Breadcrumb>
|
|
|
|
+ <nav
|
|
|
|
+ aria-label="breadcrumbs"
|
|
|
|
+ className="breadcrumb"
|
|
|
|
+ >
|
|
|
|
+ <ul>
|
|
|
|
+ <li
|
|
|
|
+ className="is-active"
|
|
>
|
|
>
|
|
- Dashboard
|
|
|
|
- </span>
|
|
|
|
- </li>
|
|
|
|
- </ul>
|
|
|
|
- </nav>
|
|
|
|
- </Breadcrumb>
|
|
|
|
|
|
+ <span
|
|
|
|
+ className=""
|
|
|
|
+ >
|
|
|
|
+ Dashboard
|
|
|
|
+ </span>
|
|
|
|
+ </li>
|
|
|
|
+ </ul>
|
|
|
|
+ </nav>
|
|
|
|
+ </Breadcrumb>
|
|
|
|
+ </div>
|
|
</div>
|
|
</div>
|
|
- </div>
|
|
|
|
- <Connect(ClustersWidget)>
|
|
|
|
- <ClustersWidget
|
|
|
|
- clusters={Array []}
|
|
|
|
- dispatch={[Function]}
|
|
|
|
- offlineClusters={Array []}
|
|
|
|
- onlineClusters={Array []}
|
|
|
|
- >
|
|
|
|
- <div>
|
|
|
|
- <h5
|
|
|
|
- className="title is-5"
|
|
|
|
- >
|
|
|
|
- Clusters
|
|
|
|
- </h5>
|
|
|
|
- <MetricsWrapper>
|
|
|
|
- <div
|
|
|
|
- className="box"
|
|
|
|
|
|
+ <Connect(ClustersWidget)>
|
|
|
|
+ <ClustersWidget
|
|
|
|
+ clusters={Array []}
|
|
|
|
+ dispatch={[Function]}
|
|
|
|
+ offlineClusters={Array []}
|
|
|
|
+ onlineClusters={Array []}
|
|
|
|
+ >
|
|
|
|
+ <div>
|
|
|
|
+ <h5
|
|
|
|
+ className="title is-5"
|
|
>
|
|
>
|
|
|
|
+ Clusters
|
|
|
|
+ </h5>
|
|
|
|
+ <MetricsWrapper>
|
|
<div
|
|
<div
|
|
- className="level"
|
|
|
|
|
|
+ className="box"
|
|
>
|
|
>
|
|
- <Indicator
|
|
|
|
- label="Online Clusters"
|
|
|
|
|
|
+ <div
|
|
|
|
+ className="level"
|
|
>
|
|
>
|
|
- <div
|
|
|
|
- className="level-item"
|
|
|
|
|
|
+ <Indicator
|
|
|
|
+ label="Online Clusters"
|
|
>
|
|
>
|
|
<div
|
|
<div
|
|
- title="Online Clusters"
|
|
|
|
|
|
+ className="level-item"
|
|
>
|
|
>
|
|
- <p
|
|
|
|
- className="heading"
|
|
|
|
|
|
+ <div
|
|
|
|
+ title="Online Clusters"
|
|
>
|
|
>
|
|
- Online Clusters
|
|
|
|
- </p>
|
|
|
|
- <p
|
|
|
|
- className="title has-text-centered"
|
|
|
|
- >
|
|
|
|
- <span
|
|
|
|
- className="tag is-success"
|
|
|
|
|
|
+ <p
|
|
|
|
+ className="heading"
|
|
|
|
+ >
|
|
|
|
+ Online Clusters
|
|
|
|
+ </p>
|
|
|
|
+ <p
|
|
|
|
+ className="title has-text-centered"
|
|
>
|
|
>
|
|
- 0
|
|
|
|
- </span>
|
|
|
|
- </p>
|
|
|
|
|
|
+ <span
|
|
|
|
+ className="tag is-success"
|
|
|
|
+ >
|
|
|
|
+ 0
|
|
|
|
+ </span>
|
|
|
|
+ </p>
|
|
|
|
+ </div>
|
|
</div>
|
|
</div>
|
|
- </div>
|
|
|
|
- </Indicator>
|
|
|
|
- <Indicator
|
|
|
|
- label="Offline Clusters"
|
|
|
|
- >
|
|
|
|
- <div
|
|
|
|
- className="level-item"
|
|
|
|
|
|
+ </Indicator>
|
|
|
|
+ <Indicator
|
|
|
|
+ label="Offline Clusters"
|
|
>
|
|
>
|
|
<div
|
|
<div
|
|
- title="Offline Clusters"
|
|
|
|
|
|
+ className="level-item"
|
|
>
|
|
>
|
|
- <p
|
|
|
|
- className="heading"
|
|
|
|
|
|
+ <div
|
|
|
|
+ title="Offline Clusters"
|
|
>
|
|
>
|
|
- Offline Clusters
|
|
|
|
- </p>
|
|
|
|
- <p
|
|
|
|
- className="title has-text-centered"
|
|
|
|
- >
|
|
|
|
- <span
|
|
|
|
- className="tag is-danger"
|
|
|
|
|
|
+ <p
|
|
|
|
+ className="heading"
|
|
|
|
+ >
|
|
|
|
+ Offline Clusters
|
|
|
|
+ </p>
|
|
|
|
+ <p
|
|
|
|
+ className="title has-text-centered"
|
|
>
|
|
>
|
|
- 0
|
|
|
|
- </span>
|
|
|
|
- </p>
|
|
|
|
|
|
+ <span
|
|
|
|
+ className="tag is-danger"
|
|
|
|
+ >
|
|
|
|
+ 0
|
|
|
|
+ </span>
|
|
|
|
+ </p>
|
|
|
|
+ </div>
|
|
</div>
|
|
</div>
|
|
- </div>
|
|
|
|
- </Indicator>
|
|
|
|
- <Indicator
|
|
|
|
- label="Hide online clusters"
|
|
|
|
- >
|
|
|
|
- <div
|
|
|
|
- className="level-item"
|
|
|
|
|
|
+ </Indicator>
|
|
|
|
+ <Indicator
|
|
|
|
+ label="Hide online clusters"
|
|
>
|
|
>
|
|
<div
|
|
<div
|
|
- title="Hide online clusters"
|
|
|
|
|
|
+ className="level-item"
|
|
>
|
|
>
|
|
- <p
|
|
|
|
- className="heading"
|
|
|
|
- >
|
|
|
|
- Hide online clusters
|
|
|
|
- </p>
|
|
|
|
- <p
|
|
|
|
- className="title has-text-centered"
|
|
|
|
|
|
+ <div
|
|
|
|
+ title="Hide online clusters"
|
|
>
|
|
>
|
|
- <input
|
|
|
|
- checked={false}
|
|
|
|
- className="switch is-rounded"
|
|
|
|
- id="switchRoundedDefault"
|
|
|
|
- name="switchRoundedDefault"
|
|
|
|
- onChange={[Function]}
|
|
|
|
- type="checkbox"
|
|
|
|
- />
|
|
|
|
- <label
|
|
|
|
- htmlFor="switchRoundedDefault"
|
|
|
|
- />
|
|
|
|
- </p>
|
|
|
|
|
|
+ <p
|
|
|
|
+ className="heading"
|
|
|
|
+ >
|
|
|
|
+ Hide online clusters
|
|
|
|
+ </p>
|
|
|
|
+ <p
|
|
|
|
+ className="title has-text-centered"
|
|
|
|
+ >
|
|
|
|
+ <input
|
|
|
|
+ checked={false}
|
|
|
|
+ className="switch is-rounded"
|
|
|
|
+ id="switchRoundedDefault"
|
|
|
|
+ name="switchRoundedDefault"
|
|
|
|
+ onChange={[Function]}
|
|
|
|
+ type="checkbox"
|
|
|
|
+ />
|
|
|
|
+ <label
|
|
|
|
+ htmlFor="switchRoundedDefault"
|
|
|
|
+ />
|
|
|
|
+ </p>
|
|
|
|
+ </div>
|
|
</div>
|
|
</div>
|
|
- </div>
|
|
|
|
- </Indicator>
|
|
|
|
|
|
+ </Indicator>
|
|
|
|
+ </div>
|
|
</div>
|
|
</div>
|
|
- </div>
|
|
|
|
- </MetricsWrapper>
|
|
|
|
- </div>
|
|
|
|
- </ClustersWidget>
|
|
|
|
- </Connect(ClustersWidget)>
|
|
|
|
- </div>
|
|
|
|
- </Dashboard>
|
|
|
|
- </Route>
|
|
|
|
- </Switch>
|
|
|
|
- </main>
|
|
|
|
- <div
|
|
|
|
- className="Layout__alerts"
|
|
|
|
- />
|
|
|
|
- </div>
|
|
|
|
|
|
+ </MetricsWrapper>
|
|
|
|
+ </div>
|
|
|
|
+ </ClustersWidget>
|
|
|
|
+ </Connect(ClustersWidget)>
|
|
|
|
+ </div>
|
|
|
|
+ </Dashboard>
|
|
|
|
+ </Route>
|
|
|
|
+ </Switch>
|
|
|
|
+ </main>
|
|
|
|
+ <div
|
|
|
|
+ className="Layout__alerts"
|
|
|
|
+ />
|
|
|
|
+ </div>
|
|
|
|
+ </Component>
|
|
</App>
|
|
</App>
|
|
</Router>
|
|
</Router>
|
|
</StaticRouter>
|
|
</StaticRouter>
|