-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(version): release 0.18.2 version
- Loading branch information
1 parent
e0f42dc
commit 8eae94a
Showing
31 changed files
with
280 additions
and
317 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,86 @@ | ||
pipeline { | ||
agent { | ||
kubernetes { | ||
yaml ''' | ||
apiVersion: v1 | ||
kind: Pod | ||
metadata: | ||
name: kube-pod | ||
spec: | ||
containers: | ||
- name: docker | ||
image: docker:latest | ||
imagePullPolicy: Always | ||
command: | ||
- cat | ||
tty: true | ||
securityContext: | ||
privileged: true | ||
runAsUser: 0 | ||
volumeMounts: | ||
- mountPath: /var/run/docker.sock | ||
name: docker-sock | ||
- name: ubuntu | ||
image: robolaunchio/build-image:1.0 | ||
imagePullPolicy: Always | ||
command: | ||
- cat | ||
tty: true | ||
env: | ||
- name: CI | ||
value: false | ||
volumes: | ||
- name: docker-sock | ||
hostPath: | ||
path: /var/run/docker.sock | ||
''' | ||
} | ||
} | ||
stages { | ||
stage('Install Node') { | ||
steps { | ||
container('ubuntu') { | ||
sh 'npm install -g n' | ||
sh 'n latest' | ||
} | ||
} | ||
} | ||
stage('Git Clone') { | ||
steps { | ||
container('ubuntu') { | ||
git branch: 'main', credentialsId: '7322b7d8-a45e-4594-9bd8-fa1952a7aaad', url: '[email protected]:robolaunch/ui.git' | ||
sh """export VER=`grep '"version":' package.json | awk '{print \$2}' | sed 's/"//g' | sed 's/,//'` && echo \$VER > version.txt""" | ||
script { | ||
env.VER = readFile('version.txt').trim() | ||
} | ||
} | ||
} | ||
} | ||
stage('Install Depends && Build') { | ||
steps { | ||
container('ubuntu') { | ||
withCredentials([file(credentialsId: 'frontend-private-robolaunch-env', variable: 'text')]) { | ||
writeFile file:'./.env', text: readFile(text) | ||
} | ||
sh 'npm i --force' | ||
sh 'npm run build' | ||
sh "tar -zcvf ui-${env.VER}-${env.BUILD_NUMBER}.tar.gz build" | ||
withCredentials([usernamePassword(credentialsId: '7fadeb6b-976b-40ed-8c7c-20e157b4f81a', passwordVariable: 'password', usernameVariable: 'username')]) { | ||
sh "curl --fail -u $username:$password --upload-file ui-${env.VER}-${env.BUILD_NUMBER}.tar.gz https://nexus.robolaunch.cloud/repository/ui/" | ||
} | ||
} | ||
} | ||
} | ||
stage('Docker Build && Push') { | ||
steps { | ||
container('docker') { | ||
sh "docker build -t robolaunchio/frontend-private-robolaunch-httpd:${env.VER} ." | ||
withCredentials([usernamePassword(credentialsId: 'dockerhub-robolaunchio', passwordVariable: 'password', usernameVariable: 'username')]) { | ||
sh 'docker login -u $username -p $password' | ||
} | ||
sh "docker push robolaunchio/frontend-private-robolaunch-httpd:${env.VER}" | ||
} | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
import React, { ReactElement } from "react"; | ||
import useRobot from "../../hooks/useRobot"; | ||
import { envOnPremiseRobot } from "../../helpers/envProvider"; | ||
import ContentLoader from "react-content-loader"; | ||
|
||
export default function ColorLabel(): ReactElement { | ||
const { responseRobot } = useRobot(); | ||
|
||
return ( | ||
<div className="w-fit rounded-lg bg-layer-primary-100 px-2 py-1 text-[0.58rem] font-medium capitalize text-layer-primary-500"> | ||
{responseRobot?.robotClusters?.length === 1 | ||
? `Virtual ${envOnPremiseRobot ? "Application" : "Robot"}` | ||
: (responseRobot?.robotClusters?.length === 2 && | ||
`Physical ${envOnPremiseRobot ? "Application" : "Robot"}`) || ( | ||
<ContentLoader | ||
speed={1} | ||
width={64} | ||
height={18} | ||
backgroundColor="#f5e5ff" | ||
foregroundColor="#fbf4ff" | ||
> | ||
<rect width="64" height="18" /> | ||
</ContentLoader> | ||
)} | ||
</div> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
import { Fragment, ReactElement } from "react"; | ||
import { RxOpenInNewWindow } from "react-icons/rx"; | ||
|
||
interface IConnectionLabel { | ||
label: string; | ||
url: string; | ||
} | ||
|
||
export default function ConnectionLabel({ | ||
label, | ||
url, | ||
}: IConnectionLabel): ReactElement { | ||
return ( | ||
<Fragment> | ||
{!url ? ( | ||
<span className="text-xs font-semibold">{label}:</span> | ||
) : ( | ||
<a className="flex gap-1" href={url} target="_blank" rel="noreferrer"> | ||
<RxOpenInNewWindow size={14} /> | ||
<span className="text-xs font-semibold">{label}:</span> | ||
</a> | ||
)} | ||
</Fragment> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
import React, { ReactElement, useEffect } from "react"; | ||
import useRobot from "../../hooks/useRobot"; | ||
import StateCell from "../TableInformationCells/StateCell"; | ||
import ConnectionLabel from "../ConnectionLabel/ConnectionLabel"; | ||
|
||
export default function Connections(): ReactElement { | ||
const { responseRobot, isSettedCookie } = useRobot(); | ||
|
||
useEffect(() => { | ||
console.log("isSettedCookie", isSettedCookie); | ||
}, [isSettedCookie]); | ||
|
||
return ( | ||
<div className="flex gap-4"> | ||
<div className="flex gap-1" id="ide"> | ||
<ConnectionLabel label="IDE" url={responseRobot?.ideIngressEndpoint} /> | ||
<StateCell | ||
state={ | ||
isSettedCookie === null | ||
? "Waiting" | ||
: isSettedCookie | ||
? "Connected" | ||
: "Warning" | ||
} | ||
/> | ||
</div> | ||
<div className="flex gap-1" id="vdi"> | ||
<ConnectionLabel | ||
label="VDI" | ||
url={"https://" + responseRobot?.vdiIngressEndpoint?.split("//")[1]} | ||
/> | ||
<StateCell | ||
state={ | ||
isSettedCookie === null | ||
? "Waiting" | ||
: isSettedCookie | ||
? "Connected" | ||
: "Warning" | ||
} | ||
/> | ||
</div> | ||
</div> | ||
); | ||
} |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.