From 5653dae529519d5ad57efc99d2dcb569bbf1e8bb Mon Sep 17 00:00:00 2001 From: mohiit1502 Date: Mon, 9 Oct 2023 01:00:18 +0530 Subject: [PATCH] misc --- package.json | 2 +- src/app/components/Editor/Editor.tsx | 4 ++-- .../SidePanel/SidePanel.component.scss | 4 ++-- src/app/components/SidePanel/SidePanel.tsx | 2 +- src/app/components/TaskViewer/TaskViewer.tsx | 4 ++-- src/app/config/api-config.ts | 16 +++++++++------- 6 files changed, 17 insertions(+), 15 deletions(-) diff --git a/package.json b/package.json index 6902912..2dd85f5 100644 --- a/package.json +++ b/package.json @@ -6,7 +6,7 @@ "author": "Armco (@restruct-corporate-advantage)", "scripts": { "dev": "vite", - "start": "vite", + "start": "NODE_ENV=production vite", "shbuild": "./build.sh", "build": "tsc && vite build", "build:publish": "vite --config vite-publish.config.ts build", diff --git a/src/app/components/Editor/Editor.tsx b/src/app/components/Editor/Editor.tsx index f47af93..dcb983b 100755 --- a/src/app/components/Editor/Editor.tsx +++ b/src/app/components/Editor/Editor.tsx @@ -1,14 +1,14 @@ import { ReactNode, useEffect, useState } from "react" import { useLocation } from "react-router-dom" import { createPortal } from "react-dom" -import { Alert, Button, Dropdown, List, Popover, Toggle } from ".." +import { Alert, Button, List, Popover, Toggle } from ".." import { FrameContentDefinition } from "../../types/entity.interface" import { FrameContentProps } from "../../types/components.interface" +import { ArButtonVariants, ArPopoverSlots } from "../../types/enums" import Helper from "../../utils/helper" import COMPONENTS from "../../config/components" import * as images from "../../static/images" import "./Editor.component.scss" -import { ArButtonVariants, ArPopoverSlots } from "../../types/enums" const children = { bg: ( diff --git a/src/app/components/SidePanel/SidePanel.component.scss b/src/app/components/SidePanel/SidePanel.component.scss index 6b6731b..869c284 100755 --- a/src/app/components/SidePanel/SidePanel.component.scss +++ b/src/app/components/SidePanel/SidePanel.component.scss @@ -10,11 +10,11 @@ max-width: 25rem; } - &.right { + &.right:not(.TaskViewer) { border-left: var(--ar-border); } - &.left { + &.left:not(.TaskViewer) { border-right: var(--ar-border); } } diff --git a/src/app/components/SidePanel/SidePanel.tsx b/src/app/components/SidePanel/SidePanel.tsx index cf40e57..241c828 100755 --- a/src/app/components/SidePanel/SidePanel.tsx +++ b/src/app/components/SidePanel/SidePanel.tsx @@ -28,7 +28,7 @@ const SidePanel = (props: SidePanelProps): JSX.Element | null => {
{header && (
diff --git a/src/app/components/TaskViewer/TaskViewer.tsx b/src/app/components/TaskViewer/TaskViewer.tsx index e0cd680..2474b7c 100755 --- a/src/app/components/TaskViewer/TaskViewer.tsx +++ b/src/app/components/TaskViewer/TaskViewer.tsx @@ -22,7 +22,7 @@ import { } from "../../types/enums" import { CronType, Task, User } from "../../types/entity.interface" import { ObjectType } from "../../types/types" -import { Helper, Network, Validator } from "../../utils" +import { Network, Validator } from "../../utils" import API_CONFIG from "../../config/api-config" import { ENDPOINTS } from "../../config/constants" import "./TaskViewer.component.scss" @@ -139,7 +139,7 @@ const TaskViewer = (props: TaskViewerProps): JSX.Element => { return (
diff --git a/src/app/config/api-config.ts b/src/app/config/api-config.ts index 3f35c36..f8f53ea 100644 --- a/src/app/config/api-config.ts +++ b/src/app/config/api-config.ts @@ -5,20 +5,22 @@ const API_CONFIG: ApiConfig = { }, STATIC_HOST: { // development: "https://static.armco.tech", - development: "http://localhost:5003/api", + development: "http://localhost:5001/api", production: "https://static.armco.tech", }, IAM: { - development: "http://localhost:8081/api", - production: "https://iam.armco.tech/api", + // development: "https://iam.armco.tech", + development: "http://localhost:5000/api", + production: "https://iam.armco.tech", }, CONFIG: { - development: "http://localhost:5004/api", - production: "https://config.armco.tech/api", + // development: "https://config.armco.tech", + development: "http://localhost:5003/api", + production: "https://config.armco.tech", }, TASKER: { - development: "http://localhost:5005/api", - production: "https://tasks.armco.tech/api", + development: "http://localhost:5002/api", + production: "https://tasks.armco.tech", }, }