From c874acbff38e4e8ab5318ba6355a69bd6e6d7a02 Mon Sep 17 00:00:00 2001 From: typescreep Date: Mon, 15 Sep 2025 11:31:23 +0300 Subject: [PATCH] search wip --- package-lock.json | 8 +-- package.json | 2 +- src/components/organisms/Search/Search.tsx | 70 +--------------------- src/components/organisms/Search/styled.ts | 13 ---- 4 files changed, 8 insertions(+), 85 deletions(-) delete mode 100644 src/components/organisms/Search/styled.ts diff --git a/package-lock.json b/package-lock.json index 92ee462..4d567c6 100644 --- a/package-lock.json +++ b/package-lock.json @@ -11,7 +11,7 @@ "@ant-design/icons": "5.6.0", "@monaco-editor/react": "4.6.0", "@originjs/vite-plugin-federation": "1.3.6", - "@prorobotech/openapi-k8s-toolkit": "^0.0.1-alpha.115", + "@prorobotech/openapi-k8s-toolkit": "^0.0.1-alpha.116", "@readme/openapi-parser": "4.0.0", "@reduxjs/toolkit": "2.2.5", "@tanstack/react-query": "5.62.2", @@ -2802,9 +2802,9 @@ } }, "node_modules/@prorobotech/openapi-k8s-toolkit": { - "version": "0.0.1-alpha.115", - "resolved": "https://registry.npmjs.org/@prorobotech/openapi-k8s-toolkit/-/openapi-k8s-toolkit-0.0.1-alpha.115.tgz", - "integrity": "sha512-bg/6DUQ385VcZIN4hT6Rf5X3DCvV3iVDpndT0liI3IoHbia5CmEn5ECwyZpqejFrfmxAQMONN53wWZ8CCx5+gg==", + "version": "0.0.1-alpha.116", + "resolved": "https://registry.npmjs.org/@prorobotech/openapi-k8s-toolkit/-/openapi-k8s-toolkit-0.0.1-alpha.116.tgz", + "integrity": "sha512-hVpOtBA4aOFg71gPO1mxTXApL3Y7oba9LYzVRs83SocmknmQd6ZfZqT8JXqbiYXYVC2iKWIdmXb2fhP0sJXQMA==", "license": "MIT", "dependencies": { "@monaco-editor/react": "4.6.0", diff --git a/package.json b/package.json index 25e5f14..0a2ca4c 100644 --- a/package.json +++ b/package.json @@ -20,7 +20,7 @@ "@ant-design/icons": "5.6.0", "@monaco-editor/react": "4.6.0", "@originjs/vite-plugin-federation": "1.3.6", - "@prorobotech/openapi-k8s-toolkit": "0.0.1-alpha.115", + "@prorobotech/openapi-k8s-toolkit": "0.0.1-alpha.116", "@readme/openapi-parser": "4.0.0", "@reduxjs/toolkit": "2.2.5", "@tanstack/react-query": "5.62.2", diff --git a/src/components/organisms/Search/Search.tsx b/src/components/organisms/Search/Search.tsx index 93c2b33..e0f8f3d 100644 --- a/src/components/organisms/Search/Search.tsx +++ b/src/components/organisms/Search/Search.tsx @@ -1,75 +1,11 @@ /* eslint-disable max-lines-per-function */ -import React, { FC, useState, useEffect } from 'react' -import { theme, Typography } from 'antd' -import { getKinds, getSortedKinds, TKindIndex, TKindWithVersion } from '@prorobotech/openapi-k8s-toolkit' +import React, { FC } from 'react' +import { Search as PackageSearch } from '@prorobotech/openapi-k8s-toolkit' import { useSelector } from 'react-redux' import { RootState } from 'store/store' -import { Styled } from './styled' export const Search: FC = () => { - const { token } = theme.useToken() const cluster = useSelector((state: RootState) => state.cluster.cluster) - // eslint-disable-next-line @typescript-eslint/no-unused-vars - const [kindIndex, setKindIndex] = useState() - const [kindWithVersion, setKindWithVersion] = useState() - - useEffect(() => { - getKinds({ - clusterName: cluster, - }).then(data => { - setKindIndex(data) - setKindWithVersion(getSortedKinds(data)) - }) - }, [cluster]) - - console.log(kindWithVersion) - - return ( - - - - - - - - - - - - To Be Done - - ) + return } diff --git a/src/components/organisms/Search/styled.ts b/src/components/organisms/Search/styled.ts deleted file mode 100644 index 66db554..0000000 --- a/src/components/organisms/Search/styled.ts +++ /dev/null @@ -1,13 +0,0 @@ -import styled from 'styled-components' - -export const CatContainer = styled.div` - display: flex; - justify-content: center; - align-items: center; - flex-flow: column; - margin: auto; -` - -export const Styled = { - CatContainer, -}