Skip to content

Commit

Permalink
feat(version): release 0.19.0 version
Browse files Browse the repository at this point in the history
  • Loading branch information
gokhangunduz committed Nov 9, 2023
1 parent 812c6d5 commit 081437a
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 26 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<img src="https://img.shields.io/badge/nodejs-18.18.2-dgreen" alt="node">
</a>
<a href="https://github.com/robolaunch/ui/releases">
<img src="https://img.shields.io/badge/release-v0.18.9-red" alt="release">
<img src="https://img.shields.io/badge/release-v0.19.0-red" alt="release">
</a>
<a href="#">
<img src="https://img.shields.io/badge/language-typescript-blue" alt="language">
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ui",
"version": "0.18.9",
"version": "0.19.0",
"private": true,
"scripts": {
"dev": "react-scripts start",
Expand Down
2 changes: 1 addition & 1 deletion src/components/CFGpuCore/CFGpuCore.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export default function CFGpuCore({
const { robotData } = useCreateRobot();

useEffect(() => {
formik.setFieldValue("ideGpuResource", 0);
!disabled && formik.setFieldValue("ideGpuResource", 0);
// eslint-disable-next-line react-hooks/exhaustive-deps
}, [robotData.step1.ideGpuResourceType]);

Expand Down
25 changes: 2 additions & 23 deletions src/components/HiddenFrame/HiddenFrame.tsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,4 @@
import React, {
Fragment,
ReactElement,
useEffect,
useRef,
useState,
} from "react";
import React, { Fragment, ReactElement, useEffect, useState } from "react";
import useRobot from "../../hooks/useRobot";
import { useAppSelector } from "../../hooks/redux";

Expand All @@ -26,35 +20,20 @@ export default function HiddenFrame(): ReactElement {
};
}, [iframeKey]);

const frame = useRef<HTMLIFrameElement>(null);

useEffect(() => {
const test = document.getElementsByClassName("-top-[9999px]")?.[0];
console.log(test.children?.[0]?.children?.[0]?.children?.[0]);
}, [frame, iframeKey]);

return (
<Fragment>
{responseRobot?.ideIngressEndpoint && (
<iframe
ref={frame}
key={iframeKey}
title="iframe"
allow="clipboard-read"
sandbox="allow-same-origin allow-scripts allow-popups allow-forms allow-modals allow-top-navigation-by-user-activation allow-downloads"
className="absolute -top-[9999px]"
src={urls?.ide || responseRobot?.ideIngressEndpoint}
onLoad={(e) => {
onLoad={() => {
setTimeout(() => {
!isSettedCookie && setIsSettedCookie(true);
}, 2500);
}}
onLoadedData={(e) => {
console.log("onLoaded", e);
}}
onLoadedMetadata={(e) => {
console.log("onLoadedMetadata", e);
}}
/>
)}
</Fragment>
Expand Down
3 changes: 3 additions & 0 deletions src/contexts/FunctionsContext.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -1107,6 +1107,9 @@ export default ({ children }: any) => {
ideGpuResourceType:
responseEnvironment?.payload?.data[0]?.roboticsClouds[0]
?.cloudInstances[0]?.environments?.[0]?.ideGpuModelName,
ideGpuResource:
responseEnvironment?.payload?.data[0]?.roboticsClouds[0]
?.cloudInstances[0]?.environments?.[0]?.ideGpuResource,
isEnabledROS2Bridge:
responseEnvironment?.payload?.data[0]?.roboticsClouds[0]
?.cloudInstances[0]?.environments[0]?.bridgeEnabled,
Expand Down

0 comments on commit 081437a

Please sign in to comment.