Skip to content

Commit

Permalink
fixed(*): 🎉 fixed typo
Browse files Browse the repository at this point in the history
  • Loading branch information
gokhangunduz committed Aug 25, 2023
1 parent a2817a7 commit 7d4abd2
Show file tree
Hide file tree
Showing 6 changed files with 73 additions and 104 deletions.
40 changes: 5 additions & 35 deletions public/css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -2207,6 +2207,11 @@ video {
padding-right: 0.75rem;
}

.px-3\.5 {
padding-left: 0.875rem;
padding-right: 0.875rem;
}

.px-4 {
padding-left: 1rem;
padding-right: 1rem;
Expand Down Expand Up @@ -2272,11 +2277,6 @@ video {
padding-bottom: 1.5rem;
}

.px-3\.5 {
padding-left: 0.875rem;
padding-right: 0.875rem;
}

.\!pb-0 {
padding-bottom: 0px !important;
}
Expand Down Expand Up @@ -2783,36 +2783,6 @@ video {
outline-style: solid;
}

.outline-2 {
outline-width: 2px;
}

.outline-4 {
outline-width: 4px;
}

.outline-layer-light-200 {
outline-color: #d6d6d6;
}

.ring-4 {
--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(4px + var(--tw-ring-offset-width)) var(--tw-ring-color);
box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);
}

.ring-2 {
--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);
box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);
}

.ring {
--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color);
box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);
}

.ring-1 {
--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);
Expand Down
14 changes: 7 additions & 7 deletions src/components/CreateForms/CreateRobotFormStep1.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,10 @@ export default function CreateRobotFormStep1({
function handleGetRobot() {
getRobot(
{
organizationId: selectedState?.organization?.organizationId as string,
roboticsCloudName: selectedState?.roboticsCloud?.name as string,
organizationId: selectedState?.organization?.organizationId!,
roboticsCloudName: selectedState?.roboticsCloud?.name!,
instanceId: selectedState?.instance?.instanceId,
region: selectedState?.roboticsCloud?.region as string,
region: selectedState?.roboticsCloud?.region!,
fleetName: selectedState?.fleet?.name,
robotName: robotData?.step1?.robotName || url?.robotName,
},
Expand All @@ -64,12 +64,12 @@ export default function CreateRobotFormStep1({
function handleGetEnvironment() {
getEnvironment(
{
organizationId: selectedState?.organization?.organizationId as string,
roboticsCloudName: selectedState?.roboticsCloud?.name as string,
organizationId: selectedState?.organization?.organizationId!,
roboticsCloudName: selectedState?.roboticsCloud?.name!,
instanceId: selectedState?.instance?.instanceId,
region: selectedState?.roboticsCloud?.region as string,
region: selectedState?.roboticsCloud?.region!,
fleetName: selectedState?.fleet?.name,
environmentName: url?.robotName as string,
environmentName: url?.robotName!,
},
{
ifErrorNavigateTo404: !responseRobot,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,12 +76,12 @@ export default function DeployApplicationSelector({

await dispatch(
createRobot({
organizationId: formik.values?.organization?.organizationId as string,
roboticsCloudName: formik.values?.roboticscloud?.name as string,
instanceId: formik.values?.instance?.instanceId as string,
region: formik?.values?.roboticscloud?.region as string,
organizationId: formik.values?.organization?.organizationId!,
roboticsCloudName: formik.values?.roboticscloud?.name!,
instanceId: formik.values?.instance?.instanceId!,
region: formik?.values?.roboticscloud?.region!,
robotName: item?.acronym + "-" + handleGetRandomString(5),
fleetName: formik.values.fleet?.name as string,
fleetName: formik.values.fleet?.name!,
distributions: [item?.distro.toUpperCase()],
bridgeEnabled: item?.type === "Environment" ? false : true,
vdiEnabled: true,
Expand Down
7 changes: 3 additions & 4 deletions src/components/RosConnector/RosConnector.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import React, { Fragment, useEffect } from "react";
import React, { ReactElement, useEffect } from "react";
import { useAppSelector } from "../../hooks/redux";
import ROSLIB from "roslib";
import useRobot from "../../hooks/useRobot";
import ROSLIB from "roslib";

export default function RosConnector() {
export default function RosConnector(): ReactElement {
const { urls } = useAppSelector((state) => state.robot);

const {
Expand All @@ -18,7 +18,6 @@ export default function RosConnector() {
useEffect(() => {
if (
isSettedCookie &&
responseRobot &&
responseRobot?.bridgeIngressEndpoint?.split(":")[0] === "wss"
) {
const ros = new ROSLIB.Ros({
Expand Down
62 changes: 31 additions & 31 deletions src/contexts/RobotContext.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ export default ({ children }: any) => {
function handleGetOrganization() {
getOrganization(
{
organizationName: url?.organizationName as string,
organizationName: url?.organizationName!,
},
{
ifErrorNavigateTo404: !responseRobot,
Expand All @@ -133,8 +133,8 @@ export default ({ children }: any) => {
function handleGetRoboticsCloud() {
getRoboticsCloud(
{
organizationId: pagesState?.organization?.organizationId as string,
roboticsCloudName: url?.roboticsCloudName as string,
organizationId: pagesState?.organization?.organizationId!,
roboticsCloudName: url?.roboticsCloudName!,
},
{
ifErrorNavigateTo404: !responseRobot,
Expand All @@ -147,10 +147,10 @@ export default ({ children }: any) => {
function handleGetInstance() {
getInstance(
{
organizationId: pagesState?.organization?.organizationId as string,
roboticsCloudName: pagesState?.roboticsCloud?.name as string,
instanceName: url?.instanceName as string,
region: pagesState?.roboticsCloud?.region as string,
organizationId: pagesState?.organization?.organizationId!,
roboticsCloudName: pagesState?.roboticsCloud?.name!,
instanceName: url?.instanceName!,
region: pagesState?.roboticsCloud?.region!,
details: true,
},
{
Expand All @@ -164,11 +164,11 @@ export default ({ children }: any) => {
function handleGetFleet() {
getFleet(
{
organizationId: pagesState?.organization?.organizationId as string,
roboticsCloudName: pagesState?.roboticsCloud?.name as string,
organizationId: pagesState?.organization?.organizationId!,
roboticsCloudName: pagesState?.roboticsCloud?.name!,
instanceId: pagesState?.instance?.instanceId,
region: pagesState?.roboticsCloud?.region as string,
fleetName: url?.fleetName as string,
region: pagesState?.roboticsCloud?.region!,
fleetName: url?.fleetName!,
},
{
ifErrorNavigateTo404: !responseRobot,
Expand All @@ -181,11 +181,11 @@ export default ({ children }: any) => {
function handleGetNamespace() {
getNamespace(
{
organizationId: pagesState?.organization?.organizationId as string,
roboticsCloudName: pagesState?.roboticsCloud?.name as string,
organizationId: pagesState?.organization?.organizationId!,
roboticsCloudName: pagesState?.roboticsCloud?.name!,
instanceId: pagesState?.instance?.instanceId,
region: pagesState?.roboticsCloud?.region as string,
namespaceName: url?.fleetName as string,
region: pagesState?.roboticsCloud?.region!,
namespaceName: url?.fleetName!,
},
{
ifErrorNavigateTo404: !responseRobot,
Expand All @@ -198,12 +198,12 @@ export default ({ children }: any) => {
function handleGetRobot() {
getRobot(
{
organizationId: pagesState?.organization?.organizationId as string,
roboticsCloudName: pagesState?.roboticsCloud?.name as string,
organizationId: pagesState?.organization?.organizationId!,
roboticsCloudName: pagesState?.roboticsCloud?.name!,
instanceId: pagesState?.instance?.instanceId,
region: pagesState?.roboticsCloud?.region as string,
region: pagesState?.roboticsCloud?.region!,
fleetName: pagesState?.fleet?.name,
robotName: url?.robotName as string,
robotName: url?.robotName!,
},
{
ifErrorNavigateTo404: !responseRobot,
Expand All @@ -216,12 +216,12 @@ export default ({ children }: any) => {
function handleGetEnvironment() {
getEnvironment(
{
organizationId: pagesState?.organization?.organizationId as string,
roboticsCloudName: pagesState?.roboticsCloud?.name as string,
organizationId: pagesState?.organization?.organizationId!,
roboticsCloudName: pagesState?.roboticsCloud?.name!,
instanceId: pagesState?.instance?.instanceId,
region: pagesState?.roboticsCloud?.region as string,
region: pagesState?.roboticsCloud?.region!,
fleetName: pagesState?.fleet?.name,
environmentName: url?.robotName as string,
environmentName: url?.robotName!,
},
{
ifErrorNavigateTo404: !responseRobot,
Expand All @@ -234,12 +234,12 @@ export default ({ children }: any) => {
function handleGetBuildManager() {
getBuildManager(
{
organizationId: pagesState?.organization?.organizationId as string,
roboticsCloudName: pagesState?.roboticsCloud?.name as string,
organizationId: pagesState?.organization?.organizationId!,
roboticsCloudName: pagesState?.roboticsCloud?.name!,
instanceId: pagesState?.instance?.instanceId,
region: pagesState?.roboticsCloud?.region as string,
region: pagesState?.roboticsCloud?.region!,
fleetName: pagesState?.fleet?.name,
robotName: url?.robotName as string,
robotName: url?.robotName!,
},
{
ifErrorNavigateTo404: false,
Expand All @@ -252,12 +252,12 @@ export default ({ children }: any) => {
function handleGetLaunchManagers() {
getLaunchManagers(
{
organizationId: pagesState?.organization?.organizationId as string,
roboticsCloudName: pagesState?.roboticsCloud?.name as string,
organizationId: pagesState?.organization?.organizationId!,
roboticsCloudName: pagesState?.roboticsCloud?.name!,
instanceId: pagesState?.instance?.instanceId,
region: pagesState?.roboticsCloud?.region as string,
region: pagesState?.roboticsCloud?.region!,
fleetName: pagesState?.fleet?.name,
robotName: url?.robotName as string,
robotName: url?.robotName!,
},
{
ifErrorNavigateTo404: false,
Expand Down
44 changes: 22 additions & 22 deletions src/pages/DashboardsPage/FleetDashboardPage/FleetDashboardPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ export default function FleetDashboardPage(): ReactElement {
function handleGetOrganization() {
getOrganization(
{
organizationName: url?.organizationName as string,
organizationName: url?.organizationName!,
},
{
isSetState: true,
Expand All @@ -240,8 +240,8 @@ export default function FleetDashboardPage(): ReactElement {
function handleGetRoboticsCloud() {
getRoboticsCloud(
{
organizationId: pagesState?.organization?.organizationId as string,
roboticsCloudName: url?.roboticsCloudName as string,
organizationId: pagesState?.organization?.organizationId!,
roboticsCloudName: url?.roboticsCloudName!,
},
{
isSetState: true,
Expand All @@ -254,10 +254,10 @@ export default function FleetDashboardPage(): ReactElement {
function handleGetInstance() {
getInstance(
{
organizationId: pagesState?.organization?.organizationId as string,
roboticsCloudName: pagesState?.roboticsCloud?.name as string,
instanceName: url?.instanceName as string,
region: pagesState?.roboticsCloud?.region as string,
organizationId: pagesState?.organization?.organizationId!,
roboticsCloudName: pagesState?.roboticsCloud?.name!,
instanceName: url?.instanceName!,
region: pagesState?.roboticsCloud?.region!,
details: true,
},
{
Expand All @@ -271,11 +271,11 @@ export default function FleetDashboardPage(): ReactElement {
function handleGetFleet() {
getFleet(
{
organizationId: pagesState?.organization?.organizationId as string,
roboticsCloudName: pagesState?.roboticsCloud?.name as string,
instanceId: pagesState?.instance?.instanceId as string,
region: pagesState?.roboticsCloud?.region as string,
fleetName: url?.fleetName as string,
organizationId: pagesState?.organization?.organizationId!,
roboticsCloudName: pagesState?.roboticsCloud?.name!,
instanceId: pagesState?.instance?.instanceId!,
region: pagesState?.roboticsCloud?.region!,
fleetName: url?.fleetName!,
},
{
isSetState: true,
Expand All @@ -288,11 +288,11 @@ export default function FleetDashboardPage(): ReactElement {
function handleGetNamespace() {
getNamespace(
{
organizationId: selectedState?.organization?.organizationId as string,
roboticsCloudName: selectedState?.roboticsCloud?.name as string,
organizationId: selectedState?.organization?.organizationId!,
roboticsCloudName: selectedState?.roboticsCloud?.name!,
instanceId: selectedState?.instance?.instanceId,
region: selectedState?.instance?.region,
namespaceName: url?.fleetName as string,
namespaceName: url?.fleetName!,
},
{
isSetState: true,
Expand All @@ -305,10 +305,10 @@ export default function FleetDashboardPage(): ReactElement {
function handleGetRobots() {
getRobots(
{
organizationId: pagesState?.organization?.organizationId as string,
roboticsCloudName: pagesState?.roboticsCloud?.name as string,
instanceId: pagesState?.instance?.instanceId as string,
region: pagesState?.roboticsCloud?.region as string,
organizationId: pagesState?.organization?.organizationId!,
roboticsCloudName: pagesState?.roboticsCloud?.name!,
instanceId: pagesState?.instance?.instanceId!,
region: pagesState?.roboticsCloud?.region!,
fleetName: pagesState?.fleet?.name,
},
{
Expand All @@ -321,10 +321,10 @@ export default function FleetDashboardPage(): ReactElement {
function handleGetEnvironments() {
getEnvironments(
{
organizationId: pagesState?.organization?.organizationId as string,
roboticsCloudName: pagesState?.roboticsCloud?.name as string,
organizationId: pagesState?.organization?.organizationId!,
roboticsCloudName: pagesState?.roboticsCloud?.name!,
instanceId: pagesState?.instance?.instanceId,
region: pagesState?.roboticsCloud?.region as string,
region: pagesState?.roboticsCloud?.region!,
fleetName: pagesState?.fleet?.name,
},
{
Expand Down

0 comments on commit 7d4abd2

Please sign in to comment.