From 5bfcfcc5610761036dd6e56c71b569a683a955da Mon Sep 17 00:00:00 2001 From: nxtcoder36 Date: Mon, 4 Mar 2024 19:34:39 +0530 Subject: [PATCH] note added for public and private environmets --- .../console/page-components/new-scope.tsx | 48 +++++++------------ .../$environment+/settings+/general/route.tsx | 47 +++++++----------- .../environments/clone-environment.tsx | 47 +++++++----------- 3 files changed, 54 insertions(+), 88 deletions(-) diff --git a/src/apps/console/page-components/new-scope.tsx b/src/apps/console/page-components/new-scope.tsx index a39198983..20a5947a8 100644 --- a/src/apps/console/page-components/new-scope.tsx +++ b/src/apps/console/page-components/new-scope.tsx @@ -9,7 +9,7 @@ import Yup from '~/root/lib/server/helpers/yup'; import { handleError } from '~/root/lib/utils/common'; import { Switch } from '~/components/atoms/switch'; import { Checkbox } from '~/components/atoms/checkbox'; -import { InfoLabel } from '~/console/components/commons'; +import Banner from '~/components/molecule/banner'; import { IDialog } from '../components/types.d'; import { useConsoleApi } from '../server/gql/api-provider'; import { DIALOG_TYPE } from '../utils/commons'; @@ -149,35 +149,23 @@ const HandleScope = ({ show, setShow }: IDialog) => { nameErrorLabel="isNameError" isUpdate={show?.type !== DIALOG_TYPE.ADD} /> -
- { - handleChange('environmentRoutingMode')(dummyEvent(val)); - }} - /> - -
-
Public
-

- Public environments will expose services to the public - internet. -

-
-
-
Private
-

- Private environments will be accessible when Kloudlite - VPN is active. -

-
-
- } - /> - + { + handleChange('environmentRoutingMode')(dummyEvent(val)); + }} + /> + + Public environments will expose services to the public + internet. Private environments will be accessible when + Kloudlite VPN is active. + + } + /> diff --git a/src/apps/console/routes/_main+/$account+/$project+/$environment+/settings+/general/route.tsx b/src/apps/console/routes/_main+/$account+/$project+/$environment+/settings+/general/route.tsx index a34f56eb2..7aaee2d2d 100644 --- a/src/apps/console/routes/_main+/$account+/$project+/$environment+/settings+/general/route.tsx +++ b/src/apps/console/routes/_main+/$account+/$project+/$environment+/settings+/general/route.tsx @@ -21,6 +21,7 @@ import { useReload } from '~/root/lib/client/helpers/reloader'; import Wrapper from '~/console/components/wrapper'; import { Checkbox } from '~/components/atoms/checkbox'; import { InfoLabel } from '~/console/components/commons'; +import Banner from '~/components/molecule/banner'; import { IEnvironmentContext } from '../../_layout'; const EnvironmentSettingsGeneral = () => { @@ -129,35 +130,23 @@ const EnvironmentSettingsGeneral = () => { value={values.displayName} onChange={handleChange('displayName')} /> -
- { - handleChange('environmentRoutingMode')(dummyEvent(checked)); - }} - /> - -
-
Public
-

- Public environments will expose services to the public - internet. -

-
-
-
Private
-

- Private environments will be accessible when Kloudlite VPN - is active. -

-
-
- } - /> - + { + handleChange('environmentRoutingMode')(dummyEvent(checked)); + }} + /> + + Public environments will expose services to the public internet. + Private environments will be accessible when Kloudlite VPN is + active. + + } + />
>; @@ -87,35 +88,23 @@ const Root = (props: IDialog) => { handleChange={handleChange} nameErrorLabel="isNameError" /> -
- { - handleChange('environmentRoutingMode')(dummyEvent(val)); - }} - /> - -
-
Public
-

- Public environments will expose services to the public - internet. -

-
-
-
Private
-

- Private environments will be accessible when Kloudlite VPN - is active. -

-
-
- } - /> -
+ { + handleChange('environmentRoutingMode')(dummyEvent(val)); + }} + /> + + Public environments will expose services to the public internet. + Private environments will be accessible when Kloudlite VPN is + active. + + } + />