1717 */
1818
1919import { useContext } from "react" ;
20- import { useLocation } from "react-router" ;
2120import { Col , Row } from "reactstrap" ;
2221
2322import ExternalLink from "~/components/ExternalLink" ;
@@ -27,12 +26,7 @@ import { Links } from "~/utils/constants/Docs";
2726import { RenkuRepositories } from "~/utils/constants/Repositories" ;
2827import AppContext from "~/utils/context/appContext" ;
2928import { DEFAULT_APP_PARAMS } from "~/utils/context/appParams.constants" ;
30- import { isRenkuLegacy } from "~/utils/helpers/HelperFunctionsV2" ;
31- import {
32- useGetCoreVersionsQuery ,
33- useGetDataServicesVersionQuery ,
34- useGetKgVersionQuery ,
35- } from "../versions/versions.api" ;
29+ import { useGetDataServicesVersionQuery } from "../versions/versions.api" ;
3630
3731function componentDocsUrl (
3832 componentUrl : string ,
@@ -75,22 +69,6 @@ function ComponentAndDevVersion({
7569 ) ;
7670}
7771
78- function CoreRelease ( ) {
79- const { data, isFetching } = useGetCoreVersionsQuery ( ) ;
80- if ( isFetching ) {
81- return < Loader inline size = { 16 } /> ;
82- }
83- const coreVersion = data ?. coreVersions [ 0 ] ;
84- const { taggedVersion, devHash } = parseChartVersion ( coreVersion ) ;
85- return (
86- < ComponentAndDevVersion
87- componentUrl = { RenkuRepositories . Python }
88- devHash = { devHash }
89- taggedVersion = { taggedVersion }
90- />
91- ) ;
92- }
93-
9472function DataServicesRelease ( ) {
9573 const { data, isFetching } = useGetDataServicesVersionQuery ( ) ;
9674 if ( isFetching ) {
@@ -107,22 +85,6 @@ function DataServicesRelease() {
10785 ) ;
10886}
10987
110- function KgRelease ( ) {
111- const { data, isFetching } = useGetKgVersionQuery ( ) ;
112- if ( isFetching ) {
113- return < Loader inline size = { 16 } /> ;
114- }
115- const kgVersion = data ?. version ;
116- const { taggedVersion, devHash } = parseChartVersion ( kgVersion ) ;
117- return (
118- < ComponentAndDevVersion
119- componentUrl = { RenkuRepositories . KnowledgeGraph }
120- devHash = { devHash }
121- taggedVersion = { taggedVersion }
122- />
123- ) ;
124- }
125-
12688function RenkuRelease ( ) {
12789 const { params } = useContext ( AppContext ) ;
12890 const chartVersion =
@@ -153,31 +115,6 @@ function UiRelease() {
153115}
154116
155117function ComponentDetails ( ) {
156- const location = useLocation ( ) ;
157- const isLegacy = isRenkuLegacy ( location . pathname ) ;
158-
159- if ( isLegacy ) {
160- return (
161- < >
162- < div className = "fw-bold" > Renku legacy component versions</ div >
163- < ul >
164- < li >
165- UI: < UiRelease />
166- </ li >
167- < li >
168- Core: < CoreRelease />
169- </ li >
170- < li >
171- Data Services: < DataServicesRelease />
172- </ li >
173- < li >
174- Knowledge Graph: < KgRelease />
175- </ li >
176- </ ul >
177- </ >
178- ) ;
179- }
180-
181118 return (
182119 < >
183120 < div className = "fw-bold" > Renku component versions</ div >
0 commit comments