@infinilabs/ui-web-cli 0.0.14 → 0.0.15

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README-zh_CN.md CHANGED
@@ -31,24 +31,19 @@ import ConsoleUI from "@infinilabs/ui-web-cli";
31
31
  //...
32
32
  return (
33
33
  <ConsoleUI
34
- {...props}
34
+ clusterList={clusterList}
35
+ visible={false}
35
36
  minimize={true}
36
- resizeable={true}
37
- DataSourceSelector={ClusterSelect}
38
- newTabClick={newTabClick}
39
- renderTabBarItemIcon={(props) => {
40
- return (
41
- <SearchEngineIcon
42
- distribution={props.cluster.distribution}
43
- width="14px"
44
- height="14px"
45
- />
46
- );
37
+ onMinimizeClick={() => {
38
+ setConsoleOpen(false);
39
+ window.parent.postMessage(false, "*");
47
40
  }}
48
- tabData={localState}
49
- addTab={addTab}
50
- updateTabData={updateTabData}
51
- sendRequestToES={sendRequestToES}
41
+ clusterStatus={clusterStatus}
42
+ resizeable={true}
43
+ sendRequestToES={sendRequestPlay}
44
+ fetchDataSource={fetchDataSource}
45
+ SearchEngineIcon={SearchEngineIcon}
46
+ LogoImg={PizzaImg}
52
47
  />
53
48
  );
54
49
  //...
package/README.md CHANGED
@@ -31,25 +31,19 @@ import ConsoleUI from "@infinilabs/ui-web-cli";
31
31
  //...
32
32
  return (
33
33
  <ConsoleUI
34
- {...props}
34
+ clusterList={clusterList}
35
35
  visible={false}
36
36
  minimize={true}
37
- resizeable={true}
38
- DataSourceSelector={ClusterSelect}
39
- newTabClick={newTabClick}
40
- renderTabBarItemIcon={(props) => {
41
- return (
42
- <SearchEngineIcon
43
- distribution={props.cluster.distribution}
44
- width="14px"
45
- height="14px"
46
- />
47
- );
37
+ onMinimizeClick={() => {
38
+ setConsoleOpen(false);
39
+ window.parent.postMessage(false, "*");
48
40
  }}
49
- tabData={localState}
50
- addTab={addTab}
51
- updateTableData={updateTableData}
52
- sendRequestToES={sendRequestToES}
41
+ clusterStatus={clusterStatus}
42
+ resizeable={true}
43
+ sendRequestToES={sendRequestPlay}
44
+ fetchDataSource={fetchDataSource}
45
+ SearchEngineIcon={SearchEngineIcon}
46
+ LogoImg={PizzaImg}
53
47
  />
54
48
  );
55
49
  //...