mirror of
https://github.com/OneUptime/oneuptime.git
synced 2026-04-06 00:32:12 +02:00
Rename services
This commit is contained in:
@@ -55,4 +55,4 @@ tests/coverage
|
||||
|
||||
settings.json
|
||||
|
||||
go-sdk/tester/
|
||||
GoSDK/tester/
|
||||
@@ -15,7 +15,7 @@ jobs:
|
||||
check-latest: true
|
||||
- name: Run audit
|
||||
run: |-
|
||||
cd admin-dashboard
|
||||
cd AdminDashboard
|
||||
npm install
|
||||
npm run audit
|
||||
|
||||
|
||||
@@ -15,7 +15,7 @@ jobs:
|
||||
check-latest: true
|
||||
- name: Run audit
|
||||
run: |-
|
||||
cd api-docs
|
||||
cd ApiDocs
|
||||
npm install
|
||||
npm run audit
|
||||
|
||||
|
||||
@@ -15,7 +15,7 @@ jobs:
|
||||
check-latest: true
|
||||
- name: Run audit
|
||||
run: |-
|
||||
cd application-scanner
|
||||
cd ApplicationScanner
|
||||
npm install
|
||||
npm run audit
|
||||
|
||||
|
||||
@@ -15,7 +15,7 @@ jobs:
|
||||
check-latest: true
|
||||
- name: Run audit
|
||||
run: |-
|
||||
cd common-server
|
||||
cd CommonServer
|
||||
npm install
|
||||
npm run audit
|
||||
|
||||
|
||||
@@ -15,7 +15,7 @@ jobs:
|
||||
check-latest: true
|
||||
- name: Run audit
|
||||
run: |-
|
||||
cd common-ui
|
||||
cd CommonUI
|
||||
npm install
|
||||
npm run audit
|
||||
|
||||
|
||||
@@ -15,7 +15,7 @@ jobs:
|
||||
check-latest: true
|
||||
- name: Run audit
|
||||
run: |-
|
||||
cd container-scanner
|
||||
cd ContainerScanner
|
||||
npm install
|
||||
npm run audit
|
||||
|
||||
|
||||
@@ -15,7 +15,7 @@ jobs:
|
||||
check-latest: true
|
||||
- name: Run audit
|
||||
run: |-
|
||||
cd helm-chart
|
||||
cd HelmChart
|
||||
npm install
|
||||
npm run audit
|
||||
|
||||
|
||||
@@ -15,7 +15,7 @@ jobs:
|
||||
check-latest: true
|
||||
- name: Run audit
|
||||
run: |-
|
||||
cd http-test-server
|
||||
cd HttpTestServer
|
||||
npm install
|
||||
npm run audit
|
||||
|
||||
|
||||
@@ -15,7 +15,7 @@ jobs:
|
||||
check-latest: true
|
||||
- name: Run audit
|
||||
run: |-
|
||||
cd init-script
|
||||
cd InitScript
|
||||
npm install
|
||||
npm run audit
|
||||
|
||||
|
||||
2
.github/skipped-workflows/js-sdk-audit.yaml
vendored
2
.github/skipped-workflows/js-sdk-audit.yaml
vendored
@@ -15,7 +15,7 @@ jobs:
|
||||
check-latest: true
|
||||
- name: Run audit
|
||||
run: |-
|
||||
cd js-sdk
|
||||
cd JavaScriptSDK
|
||||
npm install
|
||||
npm run audit
|
||||
|
||||
|
||||
@@ -15,7 +15,7 @@ jobs:
|
||||
check-latest: true
|
||||
- name: Run audit
|
||||
run: |-
|
||||
cd lighthouse-runner
|
||||
cd LighthouseRunner
|
||||
npm install
|
||||
npm run audit
|
||||
|
||||
|
||||
@@ -15,7 +15,7 @@ jobs:
|
||||
check-latest: true
|
||||
- name: Run audit
|
||||
run: |-
|
||||
cd probe-api
|
||||
cd ProbeAPI
|
||||
npm install
|
||||
npm run audit
|
||||
|
||||
|
||||
@@ -15,7 +15,7 @@ jobs:
|
||||
check-latest: true
|
||||
- name: Run audit
|
||||
run: |-
|
||||
cd script-runner
|
||||
cd ScriptRunner
|
||||
npm install
|
||||
npm run audit
|
||||
|
||||
|
||||
@@ -29,16 +29,16 @@ jobs:
|
||||
- run: ./ci/scripts/version-setup.sh
|
||||
|
||||
- run: sudo docker run --rm --privileged docker/binfmt:820fdd95a9972a5308930a2bdfb8573dd4447ad3
|
||||
# Build and deploy admin-dashboard.
|
||||
# Build and deploy AdminDashboard.
|
||||
- run: sudo docker login --username $DOCKERHUBUSERNAME --password $DOCKERHUBPASSWORD
|
||||
- run: sudo docker buildx create --use
|
||||
- run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/admin-dashboard:4.0.$CI_PIPELINE_ID --push -f ./admin-dashboard/Dockerfile .
|
||||
- run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/admin-dashboard:latest --push -f ./admin-dashboard/Dockerfile .
|
||||
- run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/AdminDashboard:4.0.$CI_PIPELINE_ID --push -f ./AdminDashboard/Dockerfile .
|
||||
- run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/AdminDashboard:latest --push -f ./AdminDashboard/Dockerfile .
|
||||
- run: chmod +x ./ci/scripts/deployment-setup.sh
|
||||
- run: bash ./ci/scripts/deployment-setup.sh
|
||||
- run: chmod +x ./ci/scripts/deployment-production-setup.sh
|
||||
- run: bash ./ci/scripts/deployment-production-setup.sh
|
||||
- run: kubectl set image deployment/fi-admin fi-admin=oneuptime/admin-dashboard:4.0.$CI_PIPELINE_ID
|
||||
- run: kubectl set image deployment/fi-admin fi-admin=oneuptime/AdminDashboard:4.0.$CI_PIPELINE_ID
|
||||
# Cleanup
|
||||
- run: chmod +x ./ci/scripts/deployment-cleanup.sh
|
||||
- run: ./ci/scripts/deployment-cleanup.sh
|
||||
|
||||
@@ -30,16 +30,16 @@ jobs:
|
||||
- run: chmod +x ./ci/scripts/deployment-staging-setup.sh
|
||||
- run: bash ./ci/scripts/deployment-staging-setup.sh
|
||||
- run: sudo docker run --rm --privileged docker/binfmt:820fdd95a9972a5308930a2bdfb8573dd4447ad3
|
||||
# Build and deploy admin-dashboard.
|
||||
# Build and deploy AdminDashboard.
|
||||
- run: sudo docker login --username $DOCKERHUBUSERNAME --password $DOCKERHUBPASSWORD
|
||||
- run: sudo docker buildx create --use
|
||||
- run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/admin-dashboard:4.0.$CI_PIPELINE_ID-staging --push -f ./admin-dashboard/Dockerfile .
|
||||
- run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/admin-dashboard:staging --push -f ./admin-dashboard/Dockerfile .
|
||||
- run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/AdminDashboard:4.0.$CI_PIPELINE_ID-staging --push -f ./AdminDashboard/Dockerfile .
|
||||
- run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/AdminDashboard:staging --push -f ./AdminDashboard/Dockerfile .
|
||||
- run: chmod +x ./ci/scripts/deployment-setup.sh
|
||||
- run: bash ./ci/scripts/deployment-setup.sh
|
||||
- run: chmod +x ./ci/scripts/deployment-production-setup.sh
|
||||
- run: bash ./ci/scripts/deployment-production-setup.sh
|
||||
- run: kubectl set image deployment/fi-admin fi-admin=oneuptime/admin-dashboard:4.0.$CI_PIPELINE_ID-staging
|
||||
- run: kubectl set image deployment/fi-admin fi-admin=oneuptime/AdminDashboard:4.0.$CI_PIPELINE_ID-staging
|
||||
# Cleanup
|
||||
- run: chmod +x ./ci/scripts/deployment-cleanup.sh
|
||||
- run: ./ci/scripts/deployment-cleanup.sh
|
||||
|
||||
@@ -29,16 +29,16 @@ jobs:
|
||||
- run: ./ci/scripts/version-setup.sh
|
||||
|
||||
- run: sudo docker run --rm --privileged docker/binfmt:820fdd95a9972a5308930a2bdfb8573dd4447ad3
|
||||
# Build and deploy api-docs.
|
||||
# Build and deploy ApiDocs.
|
||||
- run: sudo docker login --username $DOCKERHUBUSERNAME --password $DOCKERHUBPASSWORD
|
||||
- run: sudo docker buildx create --use
|
||||
- run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/api-docs:4.0.$CI_PIPELINE_ID --push -f ./api-docs/Dockerfile .
|
||||
- run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/api-docs:latest --push -f ./api-docs/Dockerfile .
|
||||
- run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/ApiDocs:4.0.$CI_PIPELINE_ID --push -f ./ApiDocs/Dockerfile .
|
||||
- run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/ApiDocs:latest --push -f ./ApiDocs/Dockerfile .
|
||||
- run: chmod +x ./ci/scripts/deployment-setup.sh
|
||||
- run: bash ./ci/scripts/deployment-setup.sh
|
||||
- run: chmod +x ./ci/scripts/deployment-production-setup.sh
|
||||
- run: bash ./ci/scripts/deployment-production-setup.sh
|
||||
- run: kubectl set image deployment/fi-api-docs fi-api-docs=oneuptime/api-docs:4.0.$CI_PIPELINE_ID
|
||||
- run: kubectl set image deployment/fi-ApiDocs fi-ApiDocs=oneuptime/ApiDocs:4.0.$CI_PIPELINE_ID
|
||||
# Cleanup
|
||||
- run: chmod +x ./ci/scripts/deployment-cleanup.sh
|
||||
- run: ./ci/scripts/deployment-cleanup.sh
|
||||
|
||||
@@ -30,16 +30,16 @@ jobs:
|
||||
- run: chmod +x ./ci/scripts/deployment-staging-setup.sh
|
||||
- run: bash ./ci/scripts/deployment-staging-setup.sh
|
||||
- run: sudo docker run --rm --privileged docker/binfmt:820fdd95a9972a5308930a2bdfb8573dd4447ad3
|
||||
# Build and deploy api-docs.
|
||||
# Build and deploy ApiDocs.
|
||||
- run: sudo docker login --username $DOCKERHUBUSERNAME --password $DOCKERHUBPASSWORD
|
||||
- run: sudo docker buildx create --use
|
||||
- run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/api-docs:4.0.$CI_PIPELINE_ID-staging --push -f ./api-docs/Dockerfile .
|
||||
- run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/api-docs:staging --push -f ./api-docs/Dockerfile .
|
||||
- run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/ApiDocs:4.0.$CI_PIPELINE_ID-staging --push -f ./ApiDocs/Dockerfile .
|
||||
- run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/ApiDocs:staging --push -f ./ApiDocs/Dockerfile .
|
||||
- run: chmod +x ./ci/scripts/deployment-setup.sh
|
||||
- run: bash ./ci/scripts/deployment-setup.sh
|
||||
- run: chmod +x ./ci/scripts/deployment-production-setup.sh
|
||||
- run: bash ./ci/scripts/deployment-production-setup.sh
|
||||
- run: kubectl set image deployment/fi-admin fi-admin=oneuptime/api-docs:4.0.$CI_PIPELINE_ID-staging
|
||||
- run: kubectl set image deployment/fi-admin fi-admin=oneuptime/ApiDocs:4.0.$CI_PIPELINE_ID-staging
|
||||
# Cleanup
|
||||
- run: chmod +x ./ci/scripts/deployment-cleanup.sh
|
||||
- run: ./ci/scripts/deployment-cleanup.sh
|
||||
|
||||
@@ -29,16 +29,16 @@ jobs:
|
||||
- run: ./ci/scripts/version-setup.sh
|
||||
|
||||
- run: sudo docker run --rm --privileged docker/binfmt:820fdd95a9972a5308930a2bdfb8573dd4447ad3
|
||||
# Build and deploy application-scanner.
|
||||
# Build and deploy ApplicationScanner.
|
||||
- run: sudo docker login --username $DOCKERHUBUSERNAME --password $DOCKERHUBPASSWORD
|
||||
- run: sudo docker buildx create --use
|
||||
- run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/application-scanner:4.0.$CI_PIPELINE_ID --push -f ./application-scanner/Dockerfile .
|
||||
- run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/application-scanner:latest --push -f ./application-scanner/Dockerfile .
|
||||
- run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/ApplicationScanner:4.0.$CI_PIPELINE_ID --push -f ./ApplicationScanner/Dockerfile .
|
||||
- run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/ApplicationScanner:latest --push -f ./ApplicationScanner/Dockerfile .
|
||||
- run: chmod +x ./ci/scripts/deployment-setup.sh
|
||||
- run: bash ./ci/scripts/deployment-setup.sh
|
||||
- run: chmod +x ./ci/scripts/deployment-production-setup.sh
|
||||
- run: bash ./ci/scripts/deployment-production-setup.sh
|
||||
- run: kubectl set image deployment/fi-app-scan fi-app-scan=oneuptime/application-scanner:4.0.$CI_PIPELINE_ID
|
||||
- run: kubectl set image deployment/fi-app-scan fi-app-scan=oneuptime/ApplicationScanner:4.0.$CI_PIPELINE_ID
|
||||
# Cleanup
|
||||
- run: chmod +x ./ci/scripts/deployment-cleanup.sh
|
||||
- run: ./ci/scripts/deployment-cleanup.sh
|
||||
|
||||
@@ -30,16 +30,16 @@ jobs:
|
||||
- run: chmod +x ./ci/scripts/deployment-staging-setup.sh
|
||||
- run: bash ./ci/scripts/deployment-staging-setup.sh
|
||||
- run: sudo docker run --rm --privileged docker/binfmt:820fdd95a9972a5308930a2bdfb8573dd4447ad3
|
||||
# Build and deploy application-scanner.
|
||||
# Build and deploy ApplicationScanner.
|
||||
- run: sudo docker login --username $DOCKERHUBUSERNAME --password $DOCKERHUBPASSWORD
|
||||
- run: sudo docker buildx create --use
|
||||
- run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/application-scanner:4.0.$CI_PIPELINE_ID-staging --push -f ./application-scanner/Dockerfile .
|
||||
- run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/application-scanner:staging --push -f ./application-scanner/Dockerfile .
|
||||
- run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/ApplicationScanner:4.0.$CI_PIPELINE_ID-staging --push -f ./ApplicationScanner/Dockerfile .
|
||||
- run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/ApplicationScanner:staging --push -f ./ApplicationScanner/Dockerfile .
|
||||
- run: chmod +x ./ci/scripts/deployment-setup.sh
|
||||
- run: bash ./ci/scripts/deployment-setup.sh
|
||||
- run: chmod +x ./ci/scripts/deployment-production-setup.sh
|
||||
- run: bash ./ci/scripts/deployment-production-setup.sh
|
||||
- run: kubectl set image deployment/fi-app-scan fi-app-scan=oneuptime/application-scanner:4.0.$CI_PIPELINE_ID-staging
|
||||
- run: kubectl set image deployment/fi-app-scan fi-app-scan=oneuptime/ApplicationScanner:4.0.$CI_PIPELINE_ID-staging
|
||||
# Cleanup
|
||||
- run: chmod +x ./ci/scripts/deployment-cleanup.sh
|
||||
- run: ./ci/scripts/deployment-cleanup.sh
|
||||
|
||||
@@ -29,16 +29,16 @@ jobs:
|
||||
- run: ./ci/scripts/version-setup.sh
|
||||
|
||||
- run: sudo docker run --rm --privileged docker/binfmt:820fdd95a9972a5308930a2bdfb8573dd4447ad3
|
||||
# Build and deploy container-scanner.
|
||||
# Build and deploy ContainerScanner.
|
||||
- run: sudo docker login --username $DOCKERHUBUSERNAME --password $DOCKERHUBPASSWORD
|
||||
- run: sudo docker buildx create --use
|
||||
- run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/container-scanner:4.0.$CI_PIPELINE_ID --push -f ./container-scanner/Dockerfile .
|
||||
- run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/container-scanner:latest --push -f ./container-scanner/Dockerfile .
|
||||
- run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/ContainerScanner:4.0.$CI_PIPELINE_ID --push -f ./ContainerScanner/Dockerfile .
|
||||
- run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/ContainerScanner:latest --push -f ./ContainerScanner/Dockerfile .
|
||||
- run: chmod +x ./ci/scripts/deployment-setup.sh
|
||||
- run: bash ./ci/scripts/deployment-setup.sh
|
||||
- run: chmod +x ./ci/scripts/deployment-production-setup.sh
|
||||
- run: bash ./ci/scripts/deployment-production-setup.sh
|
||||
- run: kubectl set image deployment/fi-cont-scan fi-cont-scan=oneuptime/container-scanner:4.0.$CI_PIPELINE_ID
|
||||
- run: kubectl set image deployment/fi-cont-scan fi-cont-scan=oneuptime/ContainerScanner:4.0.$CI_PIPELINE_ID
|
||||
# Cleanup
|
||||
- run: chmod +x ./ci/scripts/deployment-cleanup.sh
|
||||
- run: ./ci/scripts/deployment-cleanup.sh
|
||||
|
||||
@@ -30,16 +30,16 @@ jobs:
|
||||
- run: chmod +x ./ci/scripts/deployment-staging-setup.sh
|
||||
- run: bash ./ci/scripts/deployment-staging-setup.sh
|
||||
- run: sudo docker run --rm --privileged docker/binfmt:820fdd95a9972a5308930a2bdfb8573dd4447ad3
|
||||
# Build and deploy container-scanner.
|
||||
# Build and deploy ContainerScanner.
|
||||
- run: sudo docker login --username $DOCKERHUBUSERNAME --password $DOCKERHUBPASSWORD
|
||||
- run: sudo docker buildx create --use
|
||||
- run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/container-scanner:4.0.$CI_PIPELINE_ID-staging --push -f ./container-scanner/Dockerfile .
|
||||
- run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/container-scanner:staging --push -f ./container-scanner/Dockerfile .
|
||||
- run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/ContainerScanner:4.0.$CI_PIPELINE_ID-staging --push -f ./ContainerScanner/Dockerfile .
|
||||
- run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/ContainerScanner:staging --push -f ./ContainerScanner/Dockerfile .
|
||||
- run: chmod +x ./ci/scripts/deployment-setup.sh
|
||||
- run: bash ./ci/scripts/deployment-setup.sh
|
||||
- run: chmod +x ./ci/scripts/deployment-production-setup.sh
|
||||
- run: bash ./ci/scripts/deployment-production-setup.sh
|
||||
- run: kubectl set image deployment/fi-cont-scan fi-cont-scan=oneuptime/container-scanner:4.0.$CI_PIPELINE_ID-staging
|
||||
- run: kubectl set image deployment/fi-cont-scan fi-cont-scan=oneuptime/ContainerScanner:4.0.$CI_PIPELINE_ID-staging
|
||||
# Cleanup
|
||||
- run: chmod +x ./ci/scripts/deployment-cleanup.sh
|
||||
- run: ./ci/scripts/deployment-cleanup.sh
|
||||
|
||||
@@ -29,16 +29,16 @@ jobs:
|
||||
- run: ./ci/scripts/version-setup.sh
|
||||
|
||||
- run: sudo docker run --rm --privileged docker/binfmt:820fdd95a9972a5308930a2bdfb8573dd4447ad3
|
||||
# Build and deploy helm-chart.
|
||||
# Build and deploy HelmChart.
|
||||
- run: sudo docker login --username $DOCKERHUBUSERNAME --password $DOCKERHUBPASSWORD
|
||||
- run: sudo docker buildx create --use
|
||||
- run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/helm-chart:4.0.$CI_PIPELINE_ID --push -f ./helm-chart/Dockerfile .
|
||||
- run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/helm-chart:latest --push -f ./helm-chart/Dockerfile .
|
||||
- run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/HelmChart:4.0.$CI_PIPELINE_ID --push -f ./HelmChart/Dockerfile .
|
||||
- run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/HelmChart:latest --push -f ./HelmChart/Dockerfile .
|
||||
- run: chmod +x ./ci/scripts/deployment-setup.sh
|
||||
- run: bash ./ci/scripts/deployment-setup.sh
|
||||
- run: chmod +x ./ci/scripts/deployment-production-setup.sh
|
||||
- run: bash ./ci/scripts/deployment-production-setup.sh
|
||||
- run: kubectl set image deployment/fi-helm-chart fi-helm-chart=oneuptime/helm-chart:4.0.$CI_PIPELINE_ID
|
||||
- run: kubectl set image deployment/fi-HelmChart fi-HelmChart=oneuptime/HelmChart:4.0.$CI_PIPELINE_ID
|
||||
# Cleanup
|
||||
- run: chmod +x ./ci/scripts/deployment-cleanup.sh
|
||||
- run: ./ci/scripts/deployment-cleanup.sh
|
||||
|
||||
@@ -30,18 +30,18 @@ jobs:
|
||||
- run: chmod +x ./ci/scripts/deployment-staging-setup.sh
|
||||
- run: bash ./ci/scripts/deployment-staging-setup.sh
|
||||
- run: sudo docker run --rm --privileged docker/binfmt:820fdd95a9972a5308930a2bdfb8573dd4447ad3
|
||||
# Build and deploy helm-chart.
|
||||
# Build and deploy HelmChart.
|
||||
- run: sudo docker login --username $DOCKERHUBUSERNAME --password $DOCKERHUBPASSWORD
|
||||
- run: sudo docker buildx create --use
|
||||
- run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/helm-chart:4.0.$CI_PIPELINE_ID-staging --push -f ./helm-chart/Dockerfile .
|
||||
- run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/helm-chart:staging --push -f ./helm-chart/Dockerfile .
|
||||
- run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/HelmChart:4.0.$CI_PIPELINE_ID-staging --push -f ./HelmChart/Dockerfile .
|
||||
- run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/HelmChart:staging --push -f ./HelmChart/Dockerfile .
|
||||
- run: sudo kubectl config get-contexts
|
||||
- run: kubectl config get-contexts
|
||||
- run: chmod +x ./ci/scripts/deployment-setup.sh
|
||||
- run: bash ./ci/scripts/deployment-setup.sh
|
||||
- run: chmod +x ./ci/scripts/deployment-production-setup.sh
|
||||
- run: bash ./ci/scripts/deployment-production-setup.sh
|
||||
- run: kubectl set image deployment/fi-helm-chart fi-helm-chart=oneuptime/helm-chart:4.0.$CI_PIPELINE_ID-staging
|
||||
- run: kubectl set image deployment/fi-HelmChart fi-HelmChart=oneuptime/HelmChart:4.0.$CI_PIPELINE_ID-staging
|
||||
# Cleanup
|
||||
- run: chmod +x ./ci/scripts/deployment-cleanup.sh
|
||||
- run: ./ci/scripts/deployment-cleanup.sh
|
||||
|
||||
@@ -29,16 +29,16 @@ jobs:
|
||||
- run: ./ci/scripts/version-setup.sh
|
||||
|
||||
- run: sudo docker run --rm --privileged docker/binfmt:820fdd95a9972a5308930a2bdfb8573dd4447ad3
|
||||
# Build and deploy http-test-server.
|
||||
# Build and deploy HttpTestServer.
|
||||
- run: sudo docker login --username $DOCKERHUBUSERNAME --password $DOCKERHUBPASSWORD
|
||||
- run: sudo docker buildx create --use
|
||||
- run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/http-test-server:4.0.$CI_PIPELINE_ID --push -f ./http-test-server/Dockerfile .
|
||||
- run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/http-test-server:latest --push -f ./http-test-server/Dockerfile .
|
||||
- run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/HttpTestServer:4.0.$CI_PIPELINE_ID --push -f ./HttpTestServer/Dockerfile .
|
||||
- run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/HttpTestServer:latest --push -f ./HttpTestServer/Dockerfile .
|
||||
- run: chmod +x ./ci/scripts/deployment-setup.sh
|
||||
- run: bash ./ci/scripts/deployment-setup.sh
|
||||
- run: chmod +x ./ci/scripts/deployment-production-setup.sh
|
||||
- run: bash ./ci/scripts/deployment-production-setup.sh
|
||||
- run: kubectl set image deployment/fi-test fi-test=oneuptime/http-test-server:4.0.$CI_PIPELINE_ID
|
||||
- run: kubectl set image deployment/fi-test fi-test=oneuptime/HttpTestServer:4.0.$CI_PIPELINE_ID
|
||||
# Cleanup
|
||||
- run: chmod +x ./ci/scripts/deployment-cleanup.sh
|
||||
- run: ./ci/scripts/deployment-cleanup.sh
|
||||
|
||||
@@ -30,16 +30,16 @@ jobs:
|
||||
- run: chmod +x ./ci/scripts/deployment-staging-setup.sh
|
||||
- run: bash ./ci/scripts/deployment-staging-setup.sh
|
||||
- run: sudo docker run --rm --privileged docker/binfmt:820fdd95a9972a5308930a2bdfb8573dd4447ad3
|
||||
# Build and deploy http-test-server.
|
||||
# Build and deploy HttpTestServer.
|
||||
- run: sudo docker login --username $DOCKERHUBUSERNAME --password $DOCKERHUBPASSWORD
|
||||
- run: sudo docker buildx create --use
|
||||
- run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/http-test-server:4.0.$CI_PIPELINE_ID-staging --push -f ./http-test-server/Dockerfile .
|
||||
- run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/http-test-server:staging --push -f ./http-test-server/Dockerfile .
|
||||
- run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/HttpTestServer:4.0.$CI_PIPELINE_ID-staging --push -f ./HttpTestServer/Dockerfile .
|
||||
- run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/HttpTestServer:staging --push -f ./HttpTestServer/Dockerfile .
|
||||
- run: chmod +x ./ci/scripts/deployment-setup.sh
|
||||
- run: bash ./ci/scripts/deployment-setup.sh
|
||||
- run: chmod +x ./ci/scripts/deployment-production-setup.sh
|
||||
- run: bash ./ci/scripts/deployment-production-setup.sh
|
||||
- run: kubectl set image deployment/fi-test fi-test=oneuptime/http-test-server:4.0.$CI_PIPELINE_ID-staging
|
||||
- run: kubectl set image deployment/fi-test fi-test=oneuptime/HttpTestServer:4.0.$CI_PIPELINE_ID-staging
|
||||
# Cleanup
|
||||
- run: chmod +x ./ci/scripts/deployment-cleanup.sh
|
||||
- run: ./ci/scripts/deployment-cleanup.sh
|
||||
|
||||
@@ -29,16 +29,16 @@ jobs:
|
||||
- run: ./ci/scripts/version-setup.sh
|
||||
|
||||
- run: sudo docker run --rm --privileged docker/binfmt:820fdd95a9972a5308930a2bdfb8573dd4447ad3
|
||||
# Build and deploy init-script.
|
||||
# Build and deploy InitScript.
|
||||
- run: sudo docker login --username $DOCKERHUBUSERNAME --password $DOCKERHUBPASSWORD
|
||||
- run: sudo docker buildx create --use
|
||||
- run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/init-script:4.0.$CI_PIPELINE_ID --push -f ./init-script/Dockerfile .
|
||||
- run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/init-script:latest --push -f ./init-script/Dockerfile .
|
||||
- run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/InitScript:4.0.$CI_PIPELINE_ID --push -f ./InitScript/Dockerfile .
|
||||
- run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/InitScript:latest --push -f ./InitScript/Dockerfile .
|
||||
- run: chmod +x ./ci/scripts/deployment-setup.sh
|
||||
- run: bash ./ci/scripts/deployment-setup.sh
|
||||
- run: chmod +x ./ci/scripts/deployment-production-setup.sh
|
||||
- run: bash ./ci/scripts/deployment-production-setup.sh
|
||||
- run: kubectl set image deployment/fi-init-script fi-init-script=oneuptime/init-script:4.0.$CI_PIPELINE_ID
|
||||
- run: kubectl set image deployment/fi-InitScript fi-InitScript=oneuptime/InitScript:4.0.$CI_PIPELINE_ID
|
||||
# Cleanup
|
||||
- run: chmod +x ./ci/scripts/deployment-cleanup.sh
|
||||
- run: ./ci/scripts/deployment-cleanup.sh
|
||||
|
||||
@@ -30,13 +30,13 @@ jobs:
|
||||
- run: chmod +x ./ci/scripts/deployment-staging-setup.sh
|
||||
- run: bash ./ci/scripts/deployment-staging-setup.sh
|
||||
- run: sudo docker run --rm --privileged docker/binfmt:820fdd95a9972a5308930a2bdfb8573dd4447ad3
|
||||
# Build and deploy init-script.
|
||||
# Build and deploy InitScript.
|
||||
- run: sudo docker login --username $DOCKERHUBUSERNAME --password $DOCKERHUBPASSWORD
|
||||
- run: sudo docker buildx create --use
|
||||
- run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/init-script:4.0.$CI_PIPELINE_ID-staging --push -f ./init-script/Dockerfile .
|
||||
- run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/init-script:staging --push -f ./init-script/Dockerfile .
|
||||
- run: sudo kubectl delete job fi-init-script || echo "Job not found"
|
||||
- run: sudo helm upgrade --reuse-values fi ./helm-chart/public/oneuptime
|
||||
- run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/InitScript:4.0.$CI_PIPELINE_ID-staging --push -f ./InitScript/Dockerfile .
|
||||
- run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/InitScript:staging --push -f ./InitScript/Dockerfile .
|
||||
- run: sudo kubectl delete job fi-InitScript || echo "Job not found"
|
||||
- run: sudo helm upgrade --reuse-values fi ./HelmChart/public/oneuptime
|
||||
|
||||
# Cleanup
|
||||
- run: chmod +x ./ci/scripts/deployment-cleanup.sh
|
||||
|
||||
@@ -21,7 +21,7 @@ jobs:
|
||||
NPM_AUTH_TOKEN: ${{secrets.NPM_AUTH_TOKEN}}
|
||||
defaults:
|
||||
run:
|
||||
working-directory: ./js-sdk
|
||||
working-directory: ./JavaScriptSDK
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/setup-node@v2
|
||||
|
||||
2
.github/workflows/js-sdk-staging-deploy.yaml
vendored
2
.github/workflows/js-sdk-staging-deploy.yaml
vendored
@@ -19,7 +19,7 @@ jobs:
|
||||
NPM_AUTH_TOKEN: ${{secrets.NPM_AUTH_TOKEN}}
|
||||
defaults:
|
||||
run:
|
||||
working-directory: ./js-sdk
|
||||
working-directory: ./JavaScriptSDK
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/setup-node@v2
|
||||
|
||||
@@ -30,16 +30,16 @@ jobs:
|
||||
- run: ./ci/scripts/version-setup.sh
|
||||
|
||||
- run: sudo docker run --rm --privileged docker/binfmt:820fdd95a9972a5308930a2bdfb8573dd4447ad3
|
||||
# Build and deploy lighthouse-runner.
|
||||
# Build and deploy LighthouseRunner.
|
||||
- run: sudo docker login --username $DOCKERHUBUSERNAME --password $DOCKERHUBPASSWORD
|
||||
- run: sudo docker buildx create --use
|
||||
- run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/lighthouse-runner:4.0.$CI_PIPELINE_ID --push -f ./lighthouse-runner/Dockerfile .
|
||||
- run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/lighthouse-runner:latest --push -f ./lighthouse-runner/Dockerfile .
|
||||
- run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/LighthouseRunner:4.0.$CI_PIPELINE_ID --push -f ./LighthouseRunner/Dockerfile .
|
||||
- run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/LighthouseRunner:latest --push -f ./LighthouseRunner/Dockerfile .
|
||||
- run: chmod +x ./ci/scripts/deployment-setup.sh
|
||||
- run: bash ./ci/scripts/deployment-setup.sh
|
||||
- run: chmod +x ./ci/scripts/deployment-production-setup.sh
|
||||
- run: bash ./ci/scripts/deployment-production-setup.sh
|
||||
- run: kubectl set image deployment/fi-lighthouse fi-lighthouse=oneuptime/lighthouse-runner:4.0.$CI_PIPELINE_ID
|
||||
- run: kubectl set image deployment/fi-lighthouse fi-lighthouse=oneuptime/LighthouseRunner:4.0.$CI_PIPELINE_ID
|
||||
# Cleanup
|
||||
- run: chmod +x ./ci/scripts/deployment-cleanup.sh
|
||||
- run: ./ci/scripts/deployment-cleanup.sh
|
||||
|
||||
@@ -31,16 +31,16 @@ jobs:
|
||||
- run: chmod +x ./ci/scripts/deployment-staging-setup.sh
|
||||
- run: bash ./ci/scripts/deployment-staging-setup.sh
|
||||
- run: sudo docker run --rm --privileged docker/binfmt:820fdd95a9972a5308930a2bdfb8573dd4447ad3
|
||||
# Build and deploy lighthouse-runner.
|
||||
# Build and deploy LighthouseRunner.
|
||||
- run: sudo docker login --username $DOCKERHUBUSERNAME --password $DOCKERHUBPASSWORD
|
||||
- run: sudo docker buildx create --use
|
||||
- run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/lighthouse-runner:4.0.$CI_PIPELINE_ID-staging --push -f ./lighthouse-runner/Dockerfile .
|
||||
- run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/lighthouse-runner:staging --push -f ./lighthouse-runner/Dockerfile .
|
||||
- run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/LighthouseRunner:4.0.$CI_PIPELINE_ID-staging --push -f ./LighthouseRunner/Dockerfile .
|
||||
- run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/LighthouseRunner:staging --push -f ./LighthouseRunner/Dockerfile .
|
||||
- run: chmod +x ./ci/scripts/deployment-setup.sh
|
||||
- run: bash ./ci/scripts/deployment-setup.sh
|
||||
- run: chmod +x ./ci/scripts/deployment-production-setup.sh
|
||||
- run: bash ./ci/scripts/deployment-production-setup.sh
|
||||
- run: kubectl set image deployment/fi-lighthouse fi-lighthouse=oneuptime/lighthouse-runner:4.0.$CI_PIPELINE_ID-staging
|
||||
- run: kubectl set image deployment/fi-lighthouse fi-lighthouse=oneuptime/LighthouseRunner:4.0.$CI_PIPELINE_ID-staging
|
||||
# Cleanup
|
||||
- run: chmod +x ./ci/scripts/deployment-cleanup.sh
|
||||
- run: ./ci/scripts/deployment-cleanup.sh
|
||||
|
||||
@@ -29,7 +29,7 @@ jobs:
|
||||
- run: chmod +x ./ci/scripts/version-setup.sh
|
||||
- run: ./ci/scripts/version-setup.sh
|
||||
- run: sudo docker run --rm --privileged docker/binfmt:820fdd95a9972a5308930a2bdfb8573dd4447ad3
|
||||
# Build and deploy lighthouse-runner.
|
||||
# Build and deploy LighthouseRunner.
|
||||
- run: sudo docker login --username $DOCKERHUBUSERNAME --password $DOCKERHUBPASSWORD
|
||||
- run: sudo docker buildx create --use
|
||||
- run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/nginx:4.0.$CI_PIPELINE_ID --push -f ./nginx/Dockerfile .
|
||||
|
||||
@@ -30,16 +30,16 @@ jobs:
|
||||
- run: ./ci/scripts/version-setup.sh
|
||||
|
||||
- run: sudo docker run --rm --privileged docker/binfmt:820fdd95a9972a5308930a2bdfb8573dd4447ad3
|
||||
# Build and deploy probe-api.
|
||||
# Build and deploy ProbeAPI.
|
||||
- run: sudo docker login --username $DOCKERHUBUSERNAME --password $DOCKERHUBPASSWORD
|
||||
- run: sudo docker buildx create --use
|
||||
- run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/probe-api:4.0.$CI_PIPELINE_ID --push -f ./probe-api/Dockerfile .
|
||||
- run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/probe-api:latest --push -f ./probe-api/Dockerfile .
|
||||
- run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/ProbeAPI:4.0.$CI_PIPELINE_ID --push -f ./ProbeAPI/Dockerfile .
|
||||
- run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/ProbeAPI:latest --push -f ./ProbeAPI/Dockerfile .
|
||||
- run: chmod +x ./ci/scripts/deployment-setup.sh
|
||||
- run: bash ./ci/scripts/deployment-setup.sh
|
||||
- run: chmod +x ./ci/scripts/deployment-production-setup.sh
|
||||
- run: bash ./ci/scripts/deployment-production-setup.sh
|
||||
- run: kubectl set image deployment/fi-probe-api fi-probe-api=oneuptime/probe-api:4.0.$CI_PIPELINE_ID
|
||||
- run: kubectl set image deployment/fi-ProbeAPI fi-ProbeAPI=oneuptime/ProbeAPI:4.0.$CI_PIPELINE_ID
|
||||
# Cleanup
|
||||
- run: chmod +x ./ci/scripts/deployment-cleanup.sh
|
||||
- run: ./ci/scripts/deployment-cleanup.sh
|
||||
|
||||
@@ -31,16 +31,16 @@ jobs:
|
||||
- run: chmod +x ./ci/scripts/deployment-staging-setup.sh
|
||||
- run: bash ./ci/scripts/deployment-staging-setup.sh
|
||||
- run: sudo docker run --rm --privileged docker/binfmt:820fdd95a9972a5308930a2bdfb8573dd4447ad3
|
||||
# Build and deploy probe-api.
|
||||
# Build and deploy ProbeAPI.
|
||||
- run: sudo docker login --username $DOCKERHUBUSERNAME --password $DOCKERHUBPASSWORD
|
||||
- run: sudo docker buildx create --use
|
||||
- run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/probe-api:4.0.$CI_PIPELINE_ID-staging --push -f ./probe-api/Dockerfile .
|
||||
- run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/probe-api:staging --push -f ./probe-api/Dockerfile .
|
||||
- run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/ProbeAPI:4.0.$CI_PIPELINE_ID-staging --push -f ./ProbeAPI/Dockerfile .
|
||||
- run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/ProbeAPI:staging --push -f ./ProbeAPI/Dockerfile .
|
||||
- run: chmod +x ./ci/scripts/deployment-setup.sh
|
||||
- run: bash ./ci/scripts/deployment-setup.sh
|
||||
- run: chmod +x ./ci/scripts/deployment-production-setup.sh
|
||||
- run: bash ./ci/scripts/deployment-production-setup.sh
|
||||
- run: kubectl set image deployment/fi-probe-api fi-probe-api=oneuptime/probe-api:4.0.$CI_PIPELINE_ID-staging
|
||||
- run: kubectl set image deployment/fi-ProbeAPI fi-ProbeAPI=oneuptime/ProbeAPI:4.0.$CI_PIPELINE_ID-staging
|
||||
# Cleanup
|
||||
- run: chmod +x ./ci/scripts/deployment-cleanup.sh
|
||||
- run: ./ci/scripts/deployment-cleanup.sh
|
||||
|
||||
@@ -30,16 +30,16 @@ jobs:
|
||||
- run: ./ci/scripts/version-setup.sh
|
||||
|
||||
- run: sudo docker run --rm --privileged docker/binfmt:820fdd95a9972a5308930a2bdfb8573dd4447ad3
|
||||
# Build and deploy script-runner.
|
||||
# Build and deploy ScriptRunner.
|
||||
- run: sudo docker login --username $DOCKERHUBUSERNAME --password $DOCKERHUBPASSWORD
|
||||
- run: sudo docker buildx create --use
|
||||
- run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/script-runner:4.0.$CI_PIPELINE_ID --push -f ./script-runner/Dockerfile .
|
||||
- run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/script-runner:latest --push -f ./script-runner/Dockerfile .
|
||||
- run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/ScriptRunner:4.0.$CI_PIPELINE_ID --push -f ./ScriptRunner/Dockerfile .
|
||||
- run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/ScriptRunner:latest --push -f ./ScriptRunner/Dockerfile .
|
||||
- run: chmod +x ./ci/scripts/deployment-setup.sh
|
||||
- run: bash ./ci/scripts/deployment-setup.sh
|
||||
- run: chmod +x ./ci/scripts/deployment-production-setup.sh
|
||||
- run: bash ./ci/scripts/deployment-production-setup.sh
|
||||
- run: kubectl set image deployment/fi-script fi-script=oneuptime/script-runner:4.0.$CI_PIPELINE_ID
|
||||
- run: kubectl set image deployment/fi-script fi-script=oneuptime/ScriptRunner:4.0.$CI_PIPELINE_ID
|
||||
# Cleanup
|
||||
- run: chmod +x ./ci/scripts/deployment-cleanup.sh
|
||||
- run: ./ci/scripts/deployment-cleanup.sh
|
||||
|
||||
@@ -31,16 +31,16 @@ jobs:
|
||||
- run: chmod +x ./ci/scripts/deployment-staging-setup.sh
|
||||
- run: bash ./ci/scripts/deployment-staging-setup.sh
|
||||
- run: sudo docker run --rm --privileged docker/binfmt:820fdd95a9972a5308930a2bdfb8573dd4447ad3
|
||||
# Build and deploy script-runner.
|
||||
# Build and deploy ScriptRunner.
|
||||
- run: sudo docker login --username $DOCKERHUBUSERNAME --password $DOCKERHUBPASSWORD
|
||||
- run: sudo docker buildx create --use
|
||||
- run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/script-runner:4.0.$CI_PIPELINE_ID-staging --push -f ./script-runner/Dockerfile .
|
||||
- run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/script-runner:staging --push -f ./script-runner/Dockerfile .
|
||||
- run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/ScriptRunner:4.0.$CI_PIPELINE_ID-staging --push -f ./ScriptRunner/Dockerfile .
|
||||
- run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/ScriptRunner:staging --push -f ./ScriptRunner/Dockerfile .
|
||||
- run: chmod +x ./ci/scripts/deployment-setup.sh
|
||||
- run: bash ./ci/scripts/deployment-setup.sh
|
||||
- run: chmod +x ./ci/scripts/deployment-production-setup.sh
|
||||
- run: bash ./ci/scripts/deployment-production-setup.sh
|
||||
- run: kubectl set image deployment/fi-script fi-script=oneuptime/script-runner:4.0.$CI_PIPELINE_ID-staging
|
||||
- run: kubectl set image deployment/fi-script fi-script=oneuptime/ScriptRunner:4.0.$CI_PIPELINE_ID-staging
|
||||
# Cleanup
|
||||
- run: chmod +x ./ci/scripts/deployment-cleanup.sh
|
||||
- run: ./ci/scripts/deployment-cleanup.sh
|
||||
|
||||
@@ -30,16 +30,16 @@ jobs:
|
||||
- run: ./ci/scripts/version-setup.sh
|
||||
|
||||
- run: sudo docker run --rm --privileged docker/binfmt:820fdd95a9972a5308930a2bdfb8573dd4447ad3
|
||||
# Build and deploy status-page.
|
||||
# Build and deploy StatusPage.
|
||||
- run: sudo docker login --username $DOCKERHUBUSERNAME --password $DOCKERHUBPASSWORD
|
||||
- run: sudo docker buildx create --use
|
||||
- run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/status-page:4.0.$CI_PIPELINE_ID --push -f ./status-page/Dockerfile .
|
||||
- run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/status-page:latest --push -f ./status-page/Dockerfile .
|
||||
- run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/StatusPage:4.0.$CI_PIPELINE_ID --push -f ./StatusPage/Dockerfile .
|
||||
- run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/StatusPage:latest --push -f ./StatusPage/Dockerfile .
|
||||
- run: chmod +x ./ci/scripts/deployment-setup.sh
|
||||
- run: bash ./ci/scripts/deployment-setup.sh
|
||||
- run: chmod +x ./ci/scripts/deployment-production-setup.sh
|
||||
- run: bash ./ci/scripts/deployment-production-setup.sh
|
||||
- run: kubectl set image deployment/fi-status fi-status=oneuptime/status-page:4.0.$CI_PIPELINE_ID
|
||||
- run: kubectl set image deployment/fi-status fi-status=oneuptime/StatusPage:4.0.$CI_PIPELINE_ID
|
||||
# Cleanup
|
||||
- run: chmod +x ./ci/scripts/deployment-cleanup.sh
|
||||
- run: ./ci/scripts/deployment-cleanup.sh
|
||||
|
||||
@@ -31,16 +31,16 @@ jobs:
|
||||
- run: chmod +x ./ci/scripts/deployment-staging-setup.sh
|
||||
- run: bash ./ci/scripts/deployment-staging-setup.sh
|
||||
- run: sudo docker run --rm --privileged docker/binfmt:820fdd95a9972a5308930a2bdfb8573dd4447ad3
|
||||
# Build and deploy status-page.
|
||||
# Build and deploy StatusPage.
|
||||
- run: sudo docker login --username $DOCKERHUBUSERNAME --password $DOCKERHUBPASSWORD
|
||||
- run: sudo docker buildx create --use
|
||||
- run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/status-page:4.0.$CI_PIPELINE_ID-staging --push -f ./status-page/Dockerfile .
|
||||
- run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/status-page:staging --push -f ./status-page/Dockerfile .
|
||||
- run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/StatusPage:4.0.$CI_PIPELINE_ID-staging --push -f ./StatusPage/Dockerfile .
|
||||
- run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/StatusPage:staging --push -f ./StatusPage/Dockerfile .
|
||||
- run: chmod +x ./ci/scripts/deployment-setup.sh
|
||||
- run: bash ./ci/scripts/deployment-setup.sh
|
||||
- run: chmod +x ./ci/scripts/deployment-production-setup.sh
|
||||
- run: bash ./ci/scripts/deployment-production-setup.sh
|
||||
- run: kubectl set image deployment/fi-status fi-status=oneuptime/status-page:4.0.$CI_PIPELINE_ID-staging
|
||||
- run: kubectl set image deployment/fi-status fi-status=oneuptime/StatusPage:4.0.$CI_PIPELINE_ID-staging
|
||||
# Cleanup
|
||||
- run: chmod +x ./ci/scripts/deployment-cleanup.sh
|
||||
- run: ./ci/scripts/deployment-cleanup.sh
|
||||
|
||||
2
.gitignore
vendored
2
.gitignore
vendored
@@ -56,4 +56,4 @@ tests/coverage
|
||||
|
||||
settings.json
|
||||
|
||||
go-sdk/tester/
|
||||
GoSDK/tester/
|
||||
106
.gitlab-ci.yml
106
.gitlab-ci.yml
@@ -24,14 +24,14 @@ include:
|
||||
- '/ci/spec/accounts/lighthouse.yaml'
|
||||
|
||||
# ADMIN DASHBOARD
|
||||
- '/ci/spec/admin-dashboard/audit.yaml'
|
||||
- '/ci/spec/admin-dashboard/deploy.yaml'
|
||||
- '/ci/spec/admin-dashboard/rollback.yaml'
|
||||
- '/ci/spec/AdminDashboard/audit.yaml'
|
||||
- '/ci/spec/AdminDashboard/deploy.yaml'
|
||||
- '/ci/spec/AdminDashboard/rollback.yaml'
|
||||
|
||||
# API-DOCS DASHBOARD
|
||||
- '/ci/spec/api-docs/audit.yaml'
|
||||
- '/ci/spec/api-docs/deploy.yaml'
|
||||
- '/ci/spec/api-docs/rollback.yaml'
|
||||
# ApiDocs DASHBOARD
|
||||
- '/ci/spec/ApiDocs/audit.yaml'
|
||||
- '/ci/spec/ApiDocs/deploy.yaml'
|
||||
- '/ci/spec/ApiDocs/rollback.yaml'
|
||||
|
||||
# BACKEND
|
||||
- '/ci/spec/backend/audit.yaml'
|
||||
@@ -44,11 +44,11 @@ include:
|
||||
- '/ci/spec/dashboard/deploy.yaml'
|
||||
- '/ci/spec/dashboard/rollback.yaml'
|
||||
|
||||
# HELM-CHART
|
||||
- '/ci/spec/helm-chart/audit.yaml'
|
||||
- '/ci/spec/helm-chart/build-n-test.yaml'
|
||||
- '/ci/spec/helm-chart/deploy.yaml'
|
||||
- '/ci/spec/helm-chart/rollback.yaml'
|
||||
# HelmChart
|
||||
- '/ci/spec/HelmChart/audit.yaml'
|
||||
- '/ci/spec/HelmChart/build-n-test.yaml'
|
||||
- '/ci/spec/HelmChart/deploy.yaml'
|
||||
- '/ci/spec/HelmChart/rollback.yaml'
|
||||
|
||||
# HOME
|
||||
- '/ci/spec/home/audit.yaml'
|
||||
@@ -56,18 +56,18 @@ include:
|
||||
- '/ci/spec/home/rollback.yaml'
|
||||
- '/ci/spec/home/lighthouse.yaml'
|
||||
|
||||
# HTTP-TEST-SERVER
|
||||
- '/ci/spec/http-test-server/audit.yaml'
|
||||
- '/ci/spec/http-test-server/deploy.yaml'
|
||||
- '/ci/spec/http-test-server/rollback.yaml'
|
||||
# HttpTestServer
|
||||
- '/ci/spec/HttpTestServer/audit.yaml'
|
||||
- '/ci/spec/HttpTestServer/deploy.yaml'
|
||||
- '/ci/spec/HttpTestServer/rollback.yaml'
|
||||
|
||||
# INIT-SCRIPT
|
||||
- '/ci/spec/init-script/audit.yaml'
|
||||
- '/ci/spec/init-script/deploy.yaml'
|
||||
# InitScript
|
||||
- '/ci/spec/InitScript/audit.yaml'
|
||||
- '/ci/spec/InitScript/deploy.yaml'
|
||||
|
||||
# LIGHTHOUSE RUNNER
|
||||
- '/ci/spec/lighthouse-runner/audit.yaml'
|
||||
- '/ci/spec/lighthouse-runner/deploy.yaml'
|
||||
- '/ci/spec/LighthouseRunner/audit.yaml'
|
||||
- '/ci/spec/LighthouseRunner/deploy.yaml'
|
||||
|
||||
# LICENSING
|
||||
- '/ci/spec/licensing/audit.yaml'
|
||||
@@ -80,10 +80,10 @@ include:
|
||||
- '/ci/spec/probe/deploy.yaml'
|
||||
- '/ci/spec/probe/rollback.yaml'
|
||||
|
||||
# STATUS-PAGE
|
||||
- '/ci/spec/status-page/audit.yaml'
|
||||
- '/ci/spec/status-page/deploy.yaml'
|
||||
- '/ci/spec/status-page/rollback.yaml'
|
||||
# StatusPage
|
||||
- '/ci/spec/StatusPage/audit.yaml'
|
||||
- '/ci/spec/StatusPage/deploy.yaml'
|
||||
- '/ci/spec/StatusPage/rollback.yaml'
|
||||
|
||||
# ZAPIER
|
||||
- '/ci/spec/zapier/audit.yaml'
|
||||
@@ -99,25 +99,25 @@ include:
|
||||
- '/ci/spec/tests/staging.yaml'
|
||||
- '/ci/spec/tests/production.yaml'
|
||||
|
||||
# JS-SDK
|
||||
- '/ci/spec/js-sdk/audit.yaml'
|
||||
- '/ci/spec/js-sdk/build-n-test.yaml'
|
||||
- '/ci/spec/js-sdk/deploy.yaml'
|
||||
# JavaScriptSDK
|
||||
- '/ci/spec/JavaScriptSDK/audit.yaml'
|
||||
- '/ci/spec/JavaScriptSDK/build-n-test.yaml'
|
||||
- '/ci/spec/JavaScriptSDK/deploy.yaml'
|
||||
|
||||
# PHP-SDK
|
||||
- '/ci/spec/php-sdk/audit.yaml'
|
||||
- '/ci/spec/php-sdk/build-n-test.yaml'
|
||||
- '/ci/spec/php-sdk/deploy.yaml'
|
||||
# PhpSDK
|
||||
- '/ci/spec/PhpSDK/audit.yaml'
|
||||
- '/ci/spec/PhpSDK/build-n-test.yaml'
|
||||
- '/ci/spec/PhpSDK/deploy.yaml'
|
||||
|
||||
# JAVA-SDK
|
||||
- '/ci/spec/java-sdk/audit.yaml'
|
||||
- '/ci/spec/java-sdk/build-n-test.yaml'
|
||||
- '/ci/spec/java-sdk/deploy.yaml'
|
||||
# JavaSDK
|
||||
- '/ci/spec/JavaSDK/audit.yaml'
|
||||
- '/ci/spec/JavaSDK/build-n-test.yaml'
|
||||
- '/ci/spec/JavaSDK/deploy.yaml'
|
||||
|
||||
# PYTHON-SDK
|
||||
- '/ci/spec/python-sdk/audit.yaml'
|
||||
- '/ci/spec/python-sdk/build-n-test.yaml'
|
||||
- '/ci/spec/python-sdk/deploy.yaml'
|
||||
# PythonSDK
|
||||
- '/ci/spec/PythonSDK/audit.yaml'
|
||||
- '/ci/spec/PythonSDK/build-n-test.yaml'
|
||||
- '/ci/spec/PythonSDK/deploy.yaml'
|
||||
|
||||
# RUBY-SDK
|
||||
- '/ci/spec/ruby-sdk/audit.yaml'
|
||||
@@ -137,14 +137,14 @@ include:
|
||||
- '/ci/spec/oneuptime-gl-manager/deploy.yaml'
|
||||
|
||||
# Application Scanner
|
||||
- '/ci/spec/application-scanner/deploy.yaml'
|
||||
- '/ci/spec/ApplicationScanner/deploy.yaml'
|
||||
|
||||
# Script Runner
|
||||
- '/ci/spec/script-runner/audit.yaml'
|
||||
- '/ci/spec/script-runner/deploy.yaml'
|
||||
- '/ci/spec/ScriptRunner/audit.yaml'
|
||||
- '/ci/spec/ScriptRunner/deploy.yaml'
|
||||
|
||||
# Container Scanner
|
||||
- '/ci/spec/container-scanner/deploy.yaml'
|
||||
- '/ci/spec/ContainerScanner/deploy.yaml'
|
||||
|
||||
# realtime
|
||||
- '/ci/spec/realtime/audit.yaml'
|
||||
@@ -156,12 +156,12 @@ include:
|
||||
- '/ci/spec/data-ingestor/deploy.yaml'
|
||||
- '/ci/spec/data-ingestor/rollback.yaml'
|
||||
|
||||
# probe-api
|
||||
- '/ci/spec/probe-api/audit.yaml'
|
||||
- '/ci/spec/probe-api/deploy.yaml'
|
||||
- '/ci/spec/probe-api/rollback.yaml'
|
||||
# ProbeAPI
|
||||
- '/ci/spec/ProbeAPI/audit.yaml'
|
||||
- '/ci/spec/ProbeAPI/deploy.yaml'
|
||||
- '/ci/spec/ProbeAPI/rollback.yaml'
|
||||
|
||||
# # GO-SDK
|
||||
# - '/ci/spec/go-sdk/audit.yaml'
|
||||
# - '/ci/spec/go-sdk/build-n-test.yaml'
|
||||
# - '/ci/spec/go-sdk/deploy.yaml'
|
||||
# # GoSDK
|
||||
# - '/ci/spec/GoSDK/audit.yaml'
|
||||
# - '/ci/spec/GoSDK/build-n-test.yaml'
|
||||
# - '/ci/spec/GoSDK/deploy.yaml'
|
||||
|
||||
@@ -51,5 +51,5 @@ LICENSE
|
||||
marketing/*/*
|
||||
licenses/*
|
||||
certifications/*
|
||||
api-docs/public/assets/*
|
||||
js-sdk/src/cli/server-monitor/out/scripts/prettify/*
|
||||
ApiDocs/public/assets/*
|
||||
JavaScriptSDK/src/cli/server-monitor/out/scripts/prettify/*
|
||||
6
.vscode/launch.json
vendored
6
.vscode/launch.json
vendored
@@ -48,7 +48,7 @@
|
||||
},
|
||||
{
|
||||
"address": "0.0.0.0",
|
||||
"localRoot": "${workspaceFolder}/probe-api",
|
||||
"localRoot": "${workspaceFolder}/ProbeAPI",
|
||||
"name": "Probe API: Debug with Docker",
|
||||
"port": 9251,
|
||||
"remoteRoot": "/usr/src/app",
|
||||
@@ -72,7 +72,7 @@
|
||||
},
|
||||
{
|
||||
"address": "0.0.0.0",
|
||||
"localRoot": "${workspaceFolder}/http-test-server",
|
||||
"localRoot": "${workspaceFolder}/HttpTestServer",
|
||||
"name": "HTTP Test Server: Debug with Docker",
|
||||
"port": 9234,
|
||||
"remoteRoot": "/usr/src/app",
|
||||
@@ -108,7 +108,7 @@
|
||||
},
|
||||
{
|
||||
"address": "0.0.0.0",
|
||||
"localRoot": "${workspaceFolder}/init-script",
|
||||
"localRoot": "${workspaceFolder}/InitScript",
|
||||
"name": "Init Script: Debug with Docker",
|
||||
"port": 9237,
|
||||
"remoteRoot": "/usr/src/app",
|
||||
|
||||
@@ -55,4 +55,4 @@ tests/coverage
|
||||
|
||||
settings.json
|
||||
|
||||
go-sdk/tester/
|
||||
GoSDK/tester/
|
||||
@@ -21,21 +21,21 @@ RUN npm install
|
||||
COPY ./common /usr/src/common
|
||||
RUN npm compile
|
||||
|
||||
# Install common-server
|
||||
RUN mkdir /usr/src/common-server
|
||||
WORKDIR /usr/src/common-server
|
||||
COPY ./common-server/package*.json /usr/src/common-server/
|
||||
# Install CommonServer
|
||||
RUN mkdir /usr/src/CommonServer
|
||||
WORKDIR /usr/src/CommonServer
|
||||
COPY ./CommonServer/package*.json /usr/src/CommonServer/
|
||||
RUN npm install
|
||||
COPY ./common-server /usr/src/common-server
|
||||
COPY ./CommonServer /usr/src/CommonServer
|
||||
RUN npm compile
|
||||
|
||||
|
||||
# Install common-ui
|
||||
RUN mkdir /usr/src/common-ui
|
||||
WORKDIR /usr/src/common-ui
|
||||
COPY ./common-ui/package*.json /usr/src/common-ui/
|
||||
# Install CommonUI
|
||||
RUN mkdir /usr/src/CommonUI
|
||||
WORKDIR /usr/src/CommonUI
|
||||
COPY ./CommonUI/package*.json /usr/src/CommonUI/
|
||||
RUN npm install
|
||||
COPY ./common-ui /usr/src/common-ui
|
||||
COPY ./CommonUI /usr/src/CommonUI
|
||||
RUN npm compile
|
||||
|
||||
|
||||
|
||||
@@ -21,21 +21,21 @@ RUN npm install
|
||||
COPY ./common /usr/src/common
|
||||
RUN npm compile
|
||||
|
||||
# Install common-server
|
||||
RUN mkdir /usr/src/common-server
|
||||
WORKDIR /usr/src/common-server
|
||||
COPY ./common-server/package*.json /usr/src/common-server/
|
||||
# Install CommonServer
|
||||
RUN mkdir /usr/src/CommonServer
|
||||
WORKDIR /usr/src/CommonServer
|
||||
COPY ./CommonServer/package*.json /usr/src/CommonServer/
|
||||
RUN npm install
|
||||
COPY ./common-server /usr/src/common-server
|
||||
COPY ./CommonServer /usr/src/CommonServer
|
||||
RUN npm compile
|
||||
|
||||
|
||||
# Install common-ui
|
||||
RUN mkdir /usr/src/common-ui
|
||||
WORKDIR /usr/src/common-ui
|
||||
COPY ./common-ui/package*.json /usr/src/common-ui/
|
||||
# Install CommonUI
|
||||
RUN mkdir /usr/src/CommonUI
|
||||
WORKDIR /usr/src/CommonUI
|
||||
COPY ./CommonUI/package*.json /usr/src/CommonUI/
|
||||
RUN npm install
|
||||
COPY ./common-ui /usr/src/common-ui
|
||||
COPY ./CommonUI /usr/src/CommonUI
|
||||
RUN npm compile
|
||||
|
||||
|
||||
|
||||
22
Accounts/package-lock.json
generated
22
Accounts/package-lock.json
generated
@@ -18,7 +18,7 @@
|
||||
"redux-logger": "^3.0.6",
|
||||
"compression": "^1.7.4",
|
||||
"redux-thunk": "^2.4.1",
|
||||
"common-ui": "file:../common-ui",
|
||||
"CommonUI": "file:../CommonUI",
|
||||
"redux": "^4.1.2",
|
||||
"faker": "^6.6.6",
|
||||
"@types/compression": "^1.7.2",
|
||||
@@ -3149,8 +3149,8 @@
|
||||
"url": "https://github.com/chalk/ansi-styles?sponsor=1"
|
||||
}
|
||||
},
|
||||
"node_modules/common-ui": {
|
||||
"resolved": "../common-ui",
|
||||
"node_modules/CommonUI": {
|
||||
"resolved": "../CommonUI",
|
||||
"link": true
|
||||
},
|
||||
"node_modules/@babel/plugin-transform-runtime/node_modules/semver": {
|
||||
@@ -14139,7 +14139,7 @@
|
||||
"node": ">=6.9.0"
|
||||
}
|
||||
},
|
||||
"../common-server": {
|
||||
"../CommonServer": {
|
||||
"version": "1.0.0",
|
||||
"license": "ISC",
|
||||
"dependencies": {
|
||||
@@ -15688,8 +15688,8 @@
|
||||
"@babel/core": "^7.0.0-0"
|
||||
}
|
||||
},
|
||||
"node_modules/common-server": {
|
||||
"resolved": "../common-server",
|
||||
"node_modules/CommonServer": {
|
||||
"resolved": "../CommonServer",
|
||||
"link": true
|
||||
},
|
||||
"node_modules/co": {
|
||||
@@ -16395,7 +16395,7 @@
|
||||
"node": ">= 0.10"
|
||||
}
|
||||
},
|
||||
"../common-ui": {
|
||||
"../CommonUI": {
|
||||
"version": "1.0.0",
|
||||
"license": "ISC",
|
||||
"dependencies": {
|
||||
@@ -21955,8 +21955,8 @@
|
||||
"resolved": "https://registry.npmjs.org/common-path-prefix/-/common-path-prefix-3.0.0.tgz",
|
||||
"integrity": "sha512-QE33hToZseCH3jS0qN96O/bSh3kaw/h+Tq7ngyY9eWDUnTlTNUyqfqvCXioLe5Na5jFsL78ra/wuBU4iuEgd4w=="
|
||||
},
|
||||
"common-server": {
|
||||
"version": "file:../common-server",
|
||||
"CommonServer": {
|
||||
"version": "file:../CommonServer",
|
||||
"requires": {
|
||||
"@elastic/elasticsearch": "^8.1.0",
|
||||
"@types/cors": "^2.8.12",
|
||||
@@ -21986,8 +21986,8 @@
|
||||
"resolved": "https://registry.npmjs.org/common-tags/-/common-tags-1.8.2.tgz",
|
||||
"integrity": "sha512-gk/Z852D2Wtb//0I+kRFNKKE9dIIVirjoqPoA1wJU+XePVXZfGeBpk45+A1rKO4Q43prqWBNY/MiIeRLbPWUaA=="
|
||||
},
|
||||
"common-ui": {
|
||||
"version": "file:../common-ui",
|
||||
"CommonUI": {
|
||||
"version": "file:../CommonUI",
|
||||
"requires": {
|
||||
"@fortawesome/fontawesome-svg-core": "^6.1.0",
|
||||
"@fortawesome/free-regular-svg-icons": "^6.1.0",
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
"cli-table": "^0.3.11",
|
||||
"Common": "file:../Common",
|
||||
"CommonServer": "file:../CommonServer",
|
||||
"common-ui": "file:../common-ui",
|
||||
"CommonUI": "file:../CommonUI",
|
||||
"compression": "^1.7.4",
|
||||
"express": "^4.17.3",
|
||||
"faker": "^6.6.6",
|
||||
|
||||
@@ -55,4 +55,4 @@ tests/coverage
|
||||
|
||||
settings.json
|
||||
|
||||
go-sdk/tester/
|
||||
GoSDK/tester/
|
||||
@@ -1,5 +1,5 @@
|
||||
#
|
||||
# OneUptime-admin-dashboard Dockerfile
|
||||
# OneUptime-AdminDashboard Dockerfile
|
||||
#
|
||||
|
||||
# Pull base image nodejs image.
|
||||
@@ -34,37 +34,37 @@ RUN npm install
|
||||
COPY ./common /usr/src/common
|
||||
RUN npm compile
|
||||
|
||||
# Install common-server
|
||||
RUN mkdir /usr/src/common-server
|
||||
WORKDIR /usr/src/common-server
|
||||
COPY ./common-server/package*.json /usr/src/common-server/
|
||||
# Install CommonServer
|
||||
RUN mkdir /usr/src/CommonServer
|
||||
WORKDIR /usr/src/CommonServer
|
||||
COPY ./CommonServer/package*.json /usr/src/CommonServer/
|
||||
RUN npm install
|
||||
COPY ./common-server /usr/src/common-server
|
||||
COPY ./CommonServer /usr/src/CommonServer
|
||||
RUN npm compile
|
||||
|
||||
# Install common-ui
|
||||
RUN mkdir /usr/src/common-ui
|
||||
WORKDIR /usr/src/common-ui
|
||||
COPY ./common-ui/package*.json /usr/src/common-ui/
|
||||
# Install CommonUI
|
||||
RUN mkdir /usr/src/CommonUI
|
||||
WORKDIR /usr/src/CommonUI
|
||||
COPY ./CommonUI/package*.json /usr/src/CommonUI/
|
||||
RUN npm install
|
||||
COPY ./common-ui /usr/src/common-ui
|
||||
COPY ./CommonUI /usr/src/CommonUI
|
||||
RUN npm compile
|
||||
|
||||
WORKDIR /usr/src/app
|
||||
|
||||
# Install app dependencies
|
||||
COPY ./admin-dashboard/package*.json /usr/src/app/
|
||||
COPY ./AdminDashboard/package*.json /usr/src/app/
|
||||
RUN npm install
|
||||
RUN npm install -g ts-node
|
||||
|
||||
# Copy app source
|
||||
COPY ./admin-dashboard /usr/src/app
|
||||
COPY ./AdminDashboard /usr/src/app
|
||||
|
||||
# Bundle app source
|
||||
RUN npm run build
|
||||
|
||||
# Expose ports.
|
||||
# - 3100: OneUptime-admin-dashboard
|
||||
# - 3100: OneUptime-AdminDashboard
|
||||
EXPOSE 3100
|
||||
|
||||
#Run the app
|
||||
|
||||
@@ -27,20 +27,20 @@ RUN npm install
|
||||
COPY ./common /usr/src/common
|
||||
RUN npm compile
|
||||
|
||||
# Install common-server
|
||||
RUN mkdir /usr/src/common-server
|
||||
WORKDIR /usr/src/common-server
|
||||
COPY ./common-server/package*.json /usr/src/common-server/
|
||||
# Install CommonServer
|
||||
RUN mkdir /usr/src/CommonServer
|
||||
WORKDIR /usr/src/CommonServer
|
||||
COPY ./CommonServer/package*.json /usr/src/CommonServer/
|
||||
RUN npm install
|
||||
COPY ./common-server /usr/src/common-server
|
||||
COPY ./CommonServer /usr/src/CommonServer
|
||||
RUN npm compile
|
||||
|
||||
# Install common-ui
|
||||
RUN mkdir /usr/src/common-ui
|
||||
WORKDIR /usr/src/common-ui
|
||||
COPY ./common-ui/package*.json /usr/src/common-ui/
|
||||
# Install CommonUI
|
||||
RUN mkdir /usr/src/CommonUI
|
||||
WORKDIR /usr/src/CommonUI
|
||||
COPY ./CommonUI/package*.json /usr/src/CommonUI/
|
||||
RUN npm install
|
||||
COPY ./common-ui /usr/src/common-ui
|
||||
COPY ./CommonUI /usr/src/CommonUI
|
||||
RUN npm compile
|
||||
|
||||
|
||||
@@ -55,8 +55,8 @@ ENV NODE_OPTIONS=--openssl-legacy-provider
|
||||
WORKDIR /usr/src/app
|
||||
|
||||
# Copy package.json files
|
||||
COPY ./admin-dashboard/package.json /usr/src/app/package.json
|
||||
COPY ./admin-dashboard/package-lock.json /usr/src/app/package-lock.json
|
||||
COPY ./AdminDashboard/package.json /usr/src/app/package.json
|
||||
COPY ./AdminDashboard/package-lock.json /usr/src/app/package-lock.json
|
||||
|
||||
# Install app dependencies
|
||||
RUN npm install
|
||||
@@ -66,7 +66,7 @@ RUN npm install
|
||||
RUN mkdir -p node_modules/.cache && chmod -R 777 node_modules/.cache
|
||||
|
||||
# Expose ports.
|
||||
# - 3100: OneUptime-admin-dashboard
|
||||
# - 3100: OneUptime-AdminDashboard
|
||||
EXPOSE 3100
|
||||
|
||||
#Run the app
|
||||
|
||||
@@ -1 +1 @@
|
||||
# oneuptime-admin-dashboard
|
||||
# oneuptime-AdminDashboard
|
||||
|
||||
@@ -2,9 +2,9 @@ import {
|
||||
ExpressRequest,
|
||||
ExpressResponse,
|
||||
ExpressStatic,
|
||||
} from 'Common-server/Utils/Express';
|
||||
} from 'CommonServer/utils/Express';
|
||||
import path from 'path';
|
||||
import app from 'Common-server/utils/StartServer';
|
||||
import app from 'CommonServer/utils/StartServer';
|
||||
|
||||
app.get(
|
||||
['/env.js', '/admin/env.js'],
|
||||
@@ -32,7 +32,7 @@ app.get(
|
||||
JSON.stringify({
|
||||
status: 200,
|
||||
message: 'Service Status - OK',
|
||||
serviceType: 'oneuptime-admin-dashboard',
|
||||
serviceType: 'oneuptime-AdminDashboard',
|
||||
})
|
||||
);
|
||||
}
|
||||
|
||||
26
AdminDashboard/package-lock.json
generated
26
AdminDashboard/package-lock.json
generated
@@ -1,11 +1,11 @@
|
||||
{
|
||||
"name": "oneuptime-admin-dashboard",
|
||||
"name": "oneuptime-AdminDashboard",
|
||||
"version": "3.0.0",
|
||||
"lockfileVersion": 2,
|
||||
"requires": true,
|
||||
"packages": {
|
||||
"": {
|
||||
"name": "oneuptime-admin-dashboard",
|
||||
"name": "oneuptime-AdminDashboard",
|
||||
"version": "3.0.0",
|
||||
"hasInstallScript": true,
|
||||
"dependencies": {
|
||||
@@ -15,7 +15,7 @@
|
||||
"clipboard": "^2.0.10",
|
||||
"redux-logger": "^3.0.6",
|
||||
"redux-thunk": "^2.4.1",
|
||||
"common-ui": "file:../common-ui",
|
||||
"CommonUI": "file:../CommonUI",
|
||||
"redux": "^4.1.2",
|
||||
"react-widgets": "^5.8.3",
|
||||
"react-select": "^5.2.2",
|
||||
@@ -2989,8 +2989,8 @@
|
||||
"url": "https://github.com/chalk/ansi-styles?sponsor=1"
|
||||
}
|
||||
},
|
||||
"node_modules/common-ui": {
|
||||
"resolved": "../common-ui",
|
||||
"node_modules/CommonUI": {
|
||||
"resolved": "../CommonUI",
|
||||
"link": true
|
||||
},
|
||||
"node_modules/@babel/plugin-transform-runtime/node_modules/semver": {
|
||||
@@ -13190,7 +13190,7 @@
|
||||
"node": ">=6.9.0"
|
||||
}
|
||||
},
|
||||
"../common-server": {
|
||||
"../CommonServer": {
|
||||
"version": "1.0.0",
|
||||
"license": "ISC",
|
||||
"dependencies": {
|
||||
@@ -14673,8 +14673,8 @@
|
||||
"@babel/core": "^7.0.0-0"
|
||||
}
|
||||
},
|
||||
"node_modules/common-server": {
|
||||
"resolved": "../common-server",
|
||||
"node_modules/CommonServer": {
|
||||
"resolved": "../CommonServer",
|
||||
"link": true
|
||||
},
|
||||
"node_modules/co": {
|
||||
@@ -15360,7 +15360,7 @@
|
||||
"node": ">= 0.10"
|
||||
}
|
||||
},
|
||||
"../common-ui": {
|
||||
"../CommonUI": {
|
||||
"version": "1.0.0",
|
||||
"license": "ISC",
|
||||
"dependencies": {
|
||||
@@ -20389,8 +20389,8 @@
|
||||
"resolved": "https://registry.npmjs.org/common-path-prefix/-/common-path-prefix-3.0.0.tgz",
|
||||
"integrity": "sha512-QE33hToZseCH3jS0qN96O/bSh3kaw/h+Tq7ngyY9eWDUnTlTNUyqfqvCXioLe5Na5jFsL78ra/wuBU4iuEgd4w=="
|
||||
},
|
||||
"common-server": {
|
||||
"version": "file:../common-server",
|
||||
"CommonServer": {
|
||||
"version": "file:../CommonServer",
|
||||
"requires": {
|
||||
"@elastic/elasticsearch": "^8.1.0",
|
||||
"@types/cors": "^2.8.12",
|
||||
@@ -20410,8 +20410,8 @@
|
||||
"resolved": "https://registry.npmjs.org/common-tags/-/common-tags-1.8.2.tgz",
|
||||
"integrity": "sha512-gk/Z852D2Wtb//0I+kRFNKKE9dIIVirjoqPoA1wJU+XePVXZfGeBpk45+A1rKO4Q43prqWBNY/MiIeRLbPWUaA=="
|
||||
},
|
||||
"common-ui": {
|
||||
"version": "file:../common-ui",
|
||||
"CommonUI": {
|
||||
"version": "file:../CommonUI",
|
||||
"requires": {
|
||||
"@fortawesome/fontawesome-svg-core": "^6.1.0",
|
||||
"@fortawesome/free-regular-svg-icons": "^6.1.0",
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
{
|
||||
"name": "oneuptime-admin-dashboard",
|
||||
"name": "oneuptime-AdminDashboard",
|
||||
"version": "3.0.0",
|
||||
"private": true,
|
||||
"type": "module",
|
||||
"dependencies": {
|
||||
"CommonServer": "file:../CommonServer",
|
||||
"Common": "file:../Common",
|
||||
"common-ui": "file:../common-ui",
|
||||
"CommonUI": "file:../CommonUI",
|
||||
"axios": "^0.26.1",
|
||||
"card-validator": "^8.1.1",
|
||||
"clipboard": "^2.0.10",
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import BackendAPI from 'CommonUI/src/utils/api/backend';
|
||||
import HelmAPI from 'CommonUI/src/utils/api/helm';
|
||||
import APiDocsAPI from 'CommonUI/src/utils/api/api-docs';
|
||||
import APiDocsAPI from 'CommonUI/src/utils/api/ApiDocs';
|
||||
import DashboardAPI from 'CommonUI/src/utils/api/dashboard';
|
||||
|
||||
import * as types from '../constants/version';
|
||||
|
||||
@@ -136,7 +136,7 @@ class About extends Component<ComponentProps> {
|
||||
<td>
|
||||
<span
|
||||
className="Text-color--inherit Text-display--inline Text-fontSize--14 Text-fontWeight--regular Text-lineHeight--24 Text-typeface--base Text-wrap--wrap"
|
||||
id="admin-dashboard-version"
|
||||
id="AdminDashboard-version"
|
||||
>
|
||||
Admin Dashboard Version
|
||||
</span>
|
||||
@@ -149,7 +149,7 @@ class About extends Component<ComponentProps> {
|
||||
className="Text-color--inherit Text-display--inline Text-fontSize--14 Text-fontWeight--regular Text-lineHeight--24 Text-typeface--base Text-wrap--wrap"
|
||||
>
|
||||
{versions.adminDashboard ? (
|
||||
<strong id="admin-dashboard-version">
|
||||
<strong id="AdminDashboard-version">
|
||||
{
|
||||
versions.adminDashboard
|
||||
}
|
||||
|
||||
@@ -55,4 +55,4 @@ tests/coverage
|
||||
|
||||
settings.json
|
||||
|
||||
go-sdk/tester/
|
||||
GoSDK/tester/
|
||||
@@ -17,12 +17,12 @@ RUN npm install
|
||||
COPY ./common /usr/src/common
|
||||
RUN npm compile
|
||||
|
||||
# Install common-server
|
||||
RUN mkdir /usr/src/common-server
|
||||
WORKDIR /usr/src/common-server
|
||||
COPY ./common-server/package*.json /usr/src/common-server/
|
||||
# Install CommonServer
|
||||
RUN mkdir /usr/src/CommonServer
|
||||
WORKDIR /usr/src/CommonServer
|
||||
COPY ./CommonServer/package*.json /usr/src/CommonServer/
|
||||
RUN npm install
|
||||
COPY ./common-server /usr/src/common-server
|
||||
COPY ./CommonServer /usr/src/CommonServer
|
||||
RUN npm compile
|
||||
|
||||
ENV PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=true
|
||||
@@ -32,12 +32,12 @@ RUN mkdir /usr/src/app
|
||||
WORKDIR /usr/src/app
|
||||
|
||||
# Install app dependencies
|
||||
COPY ./api-docs/package*.json /usr/src/app/
|
||||
COPY ./ApiDocs/package*.json /usr/src/app/
|
||||
RUN npm install
|
||||
RUN npm install -g ts-node
|
||||
|
||||
# Bundle app source
|
||||
COPY ./api-docs /usr/src/app
|
||||
COPY ./ApiDocs /usr/src/app
|
||||
|
||||
# Expose ports.
|
||||
# - 1445: OneUptime Docs
|
||||
|
||||
@@ -21,12 +21,12 @@ RUN npm install
|
||||
COPY ./common /usr/src/common
|
||||
RUN npm compile
|
||||
|
||||
# Install common-server
|
||||
RUN mkdir /usr/src/common-server
|
||||
WORKDIR /usr/src/common-server
|
||||
COPY ./common-server/package*.json /usr/src/common-server/
|
||||
# Install CommonServer
|
||||
RUN mkdir /usr/src/CommonServer
|
||||
WORKDIR /usr/src/CommonServer
|
||||
COPY ./CommonServer/package*.json /usr/src/CommonServer/
|
||||
RUN npm install
|
||||
COPY ./common-server /usr/src/common-server
|
||||
COPY ./CommonServer /usr/src/CommonServer
|
||||
RUN npm compile
|
||||
|
||||
#SET ENV Variables
|
||||
@@ -39,8 +39,8 @@ ENV PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=true
|
||||
WORKDIR /usr/src/app
|
||||
|
||||
# Copy package.json files
|
||||
COPY ./api-docs/package.json /usr/src/app/package.json
|
||||
COPY ./api-docs/package-lock.json /usr/src/app/package-lock.json
|
||||
COPY ./ApiDocs/package.json /usr/src/app/package.json
|
||||
COPY ./ApiDocs/package-lock.json /usr/src/app/package-lock.json
|
||||
|
||||
|
||||
# Install app dependencies
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
# OneUptime API Documentation
|
||||
|
||||
[](https://travis-ci.org/OneUptime/api-docs)
|
||||
[](https://travis-ci.org/OneUptime/ApiDocs)
|
||||
|
||||
This is the API Reference for OneUptime which is hosted at [https://oneuptime.com/docs](https://oneuptime.com/docs).
|
||||
|
||||
|
||||
14
ApiDocs/package-lock.json
generated
14
ApiDocs/package-lock.json
generated
@@ -1,11 +1,11 @@
|
||||
{
|
||||
"name": "oneuptime-api-docs",
|
||||
"name": "oneuptime-ApiDocs",
|
||||
"version": "3.0.0",
|
||||
"lockfileVersion": 2,
|
||||
"requires": true,
|
||||
"packages": {
|
||||
"": {
|
||||
"name": "oneuptime-api-docs",
|
||||
"name": "oneuptime-ApiDocs",
|
||||
"version": "3.0.0",
|
||||
"hasInstallScript": true,
|
||||
"license": "ISC",
|
||||
@@ -2389,7 +2389,7 @@
|
||||
"node": ">= 0.10.0"
|
||||
}
|
||||
},
|
||||
"../common-server": {
|
||||
"../CommonServer": {
|
||||
"version": "1.0.0",
|
||||
"license": "ISC",
|
||||
"dependencies": {
|
||||
@@ -2673,8 +2673,8 @@
|
||||
"resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz",
|
||||
"integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA=="
|
||||
},
|
||||
"node_modules/common-server": {
|
||||
"resolved": "../common-server",
|
||||
"node_modules/CommonServer": {
|
||||
"resolved": "../CommonServer",
|
||||
"link": true
|
||||
},
|
||||
"node_modules/braces": {
|
||||
@@ -3484,8 +3484,8 @@
|
||||
"@types/node": "^17.0.22"
|
||||
}
|
||||
},
|
||||
"common-server": {
|
||||
"version": "file:../common-server",
|
||||
"CommonServer": {
|
||||
"version": "file:../CommonServer",
|
||||
"requires": {
|
||||
"@elastic/elasticsearch": "^8.1.0",
|
||||
"@types/cors": "^2.8.12",
|
||||
|
||||
@@ -1,18 +1,18 @@
|
||||
{
|
||||
"name": "oneuptime-api-docs",
|
||||
"name": "oneuptime-ApiDocs",
|
||||
"version": "3.0.0",
|
||||
"description": "oneuptime api refernce",
|
||||
"main": "Gruntfile.js",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://github.com/OneUptime/api-docs.git"
|
||||
"url": "git+https://github.com/OneUptime/ApiDocs.git"
|
||||
},
|
||||
"author": "HackerBay, Inc.",
|
||||
"license": "ISC",
|
||||
"bugs": {
|
||||
"url": "https://github.com/oneuptime/api-docs/issues"
|
||||
"url": "https://github.com/oneuptime/ApiDocs/issues"
|
||||
},
|
||||
"homepage": "https://github.com/oneuptime/api-docs#readme",
|
||||
"homepage": "https://github.com/oneuptime/ApiDocs#readme",
|
||||
"type": "module",
|
||||
"dependencies": {
|
||||
"chai": "^4.3.6",
|
||||
|
||||
@@ -1673,60 +1673,60 @@ div#about div#additional div.col.secondary {
|
||||
margin-left: 60px;
|
||||
}
|
||||
|
||||
body.api-docs {
|
||||
body.ApiDocs {
|
||||
-webkit-font-smoothing: antialiased;
|
||||
background: #fff;
|
||||
}
|
||||
|
||||
body.api-docs .clearfix {
|
||||
body.ApiDocs .clearfix {
|
||||
clear: both;
|
||||
display: block;
|
||||
height: 0;
|
||||
visibility: hidden;
|
||||
}
|
||||
|
||||
body.api-docs .lang-curl,body.api-docs .lang-java,body.api-docs .lang-php,body.api-docs .lang-python,body.api-docs .lang-ruby,body.api-docs .lang-go,body.api-docs .lang-node {
|
||||
body.ApiDocs .lang-curl,body.ApiDocs .lang-java,body.ApiDocs .lang-php,body.ApiDocs .lang-python,body.ApiDocs .lang-ruby,body.ApiDocs .lang-go,body.ApiDocs .lang-node {
|
||||
display: none;
|
||||
}
|
||||
|
||||
body.api-docs.curl .lang-curl,body.api-docs.java .lang-java,body.api-docs.php .lang-php,body.api-docs.python .lang-python,body.api-docs.ruby .lang-ruby,body.api-docs.go .lang-go,body.api-docs.node .lang-node {
|
||||
body.ApiDocs.curl .lang-curl,body.ApiDocs.java .lang-java,body.ApiDocs.php .lang-php,body.ApiDocs.python .lang-python,body.ApiDocs.ruby .lang-ruby,body.ApiDocs.go .lang-go,body.ApiDocs.node .lang-node {
|
||||
display: inline;
|
||||
}
|
||||
|
||||
body.api-docs .prompt:after {
|
||||
body.ApiDocs .prompt:after {
|
||||
content: '$ ';
|
||||
color: #777;
|
||||
}
|
||||
|
||||
body.api-docs.curl .prompt:after {
|
||||
body.ApiDocs.curl .prompt:after {
|
||||
content: '$ ';
|
||||
}
|
||||
|
||||
body.api-docs.ruby .prompt:after {
|
||||
body.ApiDocs.ruby .prompt:after {
|
||||
content: '>> ';
|
||||
}
|
||||
|
||||
body.api-docs.python .prompt:after {
|
||||
body.ApiDocs.python .prompt:after {
|
||||
content: '>>> ';
|
||||
}
|
||||
|
||||
body.api-docs.php .prompt:after {
|
||||
body.ApiDocs.php .prompt:after {
|
||||
content: 'php > ';
|
||||
}
|
||||
|
||||
body.api-docs.java .prompt:after {
|
||||
body.ApiDocs.java .prompt:after {
|
||||
content: '';
|
||||
}
|
||||
|
||||
body.api-docs.node .prompt:after {
|
||||
body.ApiDocs.node .prompt:after {
|
||||
content: '';
|
||||
}
|
||||
|
||||
body.api-docs.go .prompt:after {
|
||||
body.ApiDocs.go .prompt:after {
|
||||
content: '';
|
||||
}
|
||||
|
||||
body.api-docs div#guide {
|
||||
body.ApiDocs div#guide {
|
||||
background: white;
|
||||
border-right: 1px solid #dadfe5;
|
||||
bottom: 0;
|
||||
@@ -1741,40 +1741,40 @@ body.api-docs div#guide {
|
||||
-webkit-perspective: 1000;
|
||||
}
|
||||
|
||||
body.api-docs div#guide:before {
|
||||
body.ApiDocs div#guide:before {
|
||||
content: "";
|
||||
display: block;
|
||||
height: 24px;
|
||||
}
|
||||
|
||||
body.api-docs div#guide:after {
|
||||
body.ApiDocs div#guide:after {
|
||||
content: "";
|
||||
display: block;
|
||||
height: 24px;
|
||||
}
|
||||
|
||||
body.api-docs div#guide.stick {
|
||||
body.ApiDocs div#guide.stick {
|
||||
left: 0;
|
||||
position: fixed;
|
||||
top: 0;
|
||||
}
|
||||
|
||||
body.api-docs div#guide p.ref-title {
|
||||
body.ApiDocs div#guide p.ref-title {
|
||||
color: #7a8e99;
|
||||
font-size: 11px;
|
||||
font-weight: bold;
|
||||
padding: 24px 20px 6px;
|
||||
}
|
||||
|
||||
body.api-docs div#guide p.ref-title:first-child {
|
||||
body.ApiDocs div#guide p.ref-title:first-child {
|
||||
padding-top: 0;
|
||||
}
|
||||
|
||||
body.api-docs div#guide ul.ref-list {
|
||||
body.ApiDocs div#guide ul.ref-list {
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
body.api-docs div#guide ul.ref-list li.section a {
|
||||
body.ApiDocs div#guide ul.ref-list li.section a {
|
||||
border: 1px solid transparent;
|
||||
border-left: 0;
|
||||
display: block;
|
||||
@@ -1788,7 +1788,7 @@ body.api-docs div#guide ul.ref-list li.section a {
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
body.api-docs div#guide ul.ref-list li.section a.viewing {
|
||||
body.ApiDocs div#guide ul.ref-list li.section a.viewing {
|
||||
background: -webkit-linear-gradient(#4f9fef,#3577d0);
|
||||
background: -moz-linear-gradient(#4f9fef,#3577d0);
|
||||
background: -ms-linear-gradient(#4f9fef,#3577d0);
|
||||
@@ -1805,23 +1805,23 @@ body.api-docs div#guide ul.ref-list li.section a.viewing {
|
||||
text-shadow: 0 -1px 0 rgba(0,0,0,0.45);
|
||||
}
|
||||
|
||||
body.api-docs div#guide ul.ref-list li.section .children {
|
||||
body.ApiDocs div#guide ul.ref-list li.section .children {
|
||||
display: none;
|
||||
padding-bottom: 6px;
|
||||
}
|
||||
|
||||
body.api-docs div#guide ul.ref-list li.section .children a {
|
||||
body.ApiDocs div#guide ul.ref-list li.section .children a {
|
||||
font-weight: normal;
|
||||
height: 20px;
|
||||
line-height: 20px;
|
||||
padding-left: 30px;
|
||||
}
|
||||
|
||||
body.api-docs div#guide ul.ref-list li.section.active .children {
|
||||
body.ApiDocs div#guide ul.ref-list li.section.active .children {
|
||||
display: block;
|
||||
}
|
||||
|
||||
body.api-docs div#header {
|
||||
body.ApiDocs div#header {
|
||||
background: -webkit-linear-gradient(rgba(255,255,255,0),#f0f2f6 95%,#e5e8ee);
|
||||
background: -moz-linear-gradient(rgba(255,255,255,0),#f0f2f6 95%,#e5e8ee);
|
||||
background: -ms-linear-gradient(rgba(255,255,255,0),#f0f2f6 95%,#e5e8ee);
|
||||
@@ -1839,7 +1839,7 @@ body.api-docs div#header {
|
||||
width: auto;
|
||||
}
|
||||
|
||||
body.api-docs div#header:after {
|
||||
body.ApiDocs div#header:after {
|
||||
background: -webkit-linear-gradient(#98a4b8,rgba(171,182,201,0.48),rgba(139,154,179,0.02));
|
||||
background: -moz-linear-gradient(#98a4b8,rgba(171,182,201,0.48),rgba(139,154,179,0.02));
|
||||
background: -ms-linear-gradient(#98a4b8,rgba(171,182,201,0.48),rgba(139,154,179,0.02));
|
||||
@@ -1855,7 +1855,7 @@ body.api-docs div#header:after {
|
||||
z-index: 50;
|
||||
}
|
||||
|
||||
body.api-docs div#header div.burger-button {
|
||||
body.ApiDocs div#header div.burger-button {
|
||||
-webkit-border-radius: 4px;
|
||||
-moz-border-radius: 4px;
|
||||
-ms-border-radius: 4px;
|
||||
@@ -1881,13 +1881,13 @@ body.api-docs div#header div.burger-button {
|
||||
width: 28px;
|
||||
}
|
||||
|
||||
body.api-docs div#header div.burger-button div.lines {
|
||||
body.ApiDocs div#header div.burger-button div.lines {
|
||||
height: 14px;
|
||||
margin: 7px auto 0;
|
||||
width: 14px;
|
||||
}
|
||||
|
||||
body.api-docs div#header div.burger-button div.lines span {
|
||||
body.ApiDocs div#header div.burger-button div.lines span {
|
||||
-webkit-border-radius: 3px;
|
||||
-moz-border-radius: 3px;
|
||||
-ms-border-radius: 3px;
|
||||
@@ -1905,18 +1905,18 @@ body.api-docs div#header div.burger-button div.lines span {
|
||||
width: 14px;
|
||||
}
|
||||
|
||||
body.api-docs div#header div.burger-button:hover {
|
||||
body.ApiDocs div#header div.burger-button:hover {
|
||||
background: -webkit-linear-gradient(bottom,#d0d6db,#dfe5eb 30%,#f0f3f7);
|
||||
background: -moz-linear-gradient(bottom,#d0d6db,#dfe5eb 30%,#f0f3f7);
|
||||
background: -o-linear-gradient(bottom,#d0d6db,#dfe5eb 30%,#f0f3f7);
|
||||
background: linear-gradient(top,#d0d6db,#dfe5eb 30%,#f0f3f7);
|
||||
}
|
||||
|
||||
body.api-docs div#header div.burger-button:hover div.lines span {
|
||||
body.ApiDocs div#header div.burger-button:hover div.lines span {
|
||||
background-color: #7e848c;
|
||||
}
|
||||
|
||||
body.api-docs div#header div.burger-button:active {
|
||||
body.ApiDocs div#header div.burger-button:active {
|
||||
-webkit-box-shadow: rgba(0,0,0,0.05) 0 1px 1px inset,white 0 1px 0;
|
||||
-moz-box-shadow: rgba(0,0,0,0.05) 0 1px 1px inset,white 0 1px 0;
|
||||
-ms-box-shadow: rgba(0,0,0,0.05) 0 1px 1px inset,white 0 1px 0;
|
||||
@@ -1928,43 +1928,43 @@ body.api-docs div#header div.burger-button:active {
|
||||
background: linear-gradient(top,#dfe5eb,#d8dee3);
|
||||
}
|
||||
|
||||
body.api-docs div#header div.burger-button:active div.lines span {
|
||||
body.ApiDocs div#header div.burger-button:active div.lines span {
|
||||
background-color: #7e848c;
|
||||
}
|
||||
|
||||
body.api-docs div#header h1 {
|
||||
body.ApiDocs div#header h1 {
|
||||
margin: 11px 0 0 20px;
|
||||
}
|
||||
|
||||
body.api-docs div#header div.navigation {
|
||||
body.ApiDocs div#header div.navigation {
|
||||
padding: 14px 10px 0 0;
|
||||
}
|
||||
|
||||
body.api-docs div#header div.navigation div.account-dropdown-view {
|
||||
body.ApiDocs div#header div.navigation div.account-dropdown-view {
|
||||
margin-right: 0;
|
||||
width: 125px;
|
||||
}
|
||||
|
||||
body.api-docs div#header div.navigation div.signin {
|
||||
body.ApiDocs div#header div.navigation div.signin {
|
||||
margin-right: 10px;
|
||||
}
|
||||
|
||||
body.api-docs div#api-docs {
|
||||
body.ApiDocs div#ApiDocs {
|
||||
background: white;
|
||||
margin-left: 200px;
|
||||
min-width: 750px;
|
||||
}
|
||||
|
||||
body.api-docs div#api-docs a.section-anchor {
|
||||
body.ApiDocs div#ApiDocs a.section-anchor {
|
||||
display: block;
|
||||
height: 0;
|
||||
}
|
||||
|
||||
body.api-docs div#api-docs.view-guide div#guide {
|
||||
body.ApiDocs div#ApiDocs.view-guide div#guide {
|
||||
margin-left: 0;
|
||||
}
|
||||
|
||||
body.api-docs div#api-docs .border {
|
||||
body.ApiDocs div#ApiDocs .border {
|
||||
-webkit-box-shadow: rgba(0,0,0,0.3) 0 1px 1px;
|
||||
-moz-box-shadow: rgba(0,0,0,0.3) 0 1px 1px;
|
||||
-ms-box-shadow: rgba(0,0,0,0.3) 0 1px 1px;
|
||||
@@ -1979,7 +1979,7 @@ body.api-docs div#api-docs .border {
|
||||
z-index: 100;
|
||||
}
|
||||
|
||||
body.api-docs div#api-docs div#methods {
|
||||
body.ApiDocs div#ApiDocs div#methods {
|
||||
-webkit-box-shadow: #0f131a -1px 0 0,rgba(0,0,0,0.05) 1px 0 2px inset;
|
||||
-moz-box-shadow: #0f131a -1px 0 0,rgba(0,0,0,0.05) 1px 0 2px inset;
|
||||
-ms-box-shadow: #0f131a -1px 0 0,rgba(0,0,0,0.05) 1px 0 2px inset;
|
||||
@@ -1991,12 +1991,12 @@ body.api-docs div#api-docs div#methods {
|
||||
}
|
||||
|
||||
@media all and (min-width:1700px) {
|
||||
body.api-docs div#api-docs div#methods {
|
||||
body.ApiDocs div#ApiDocs div#methods {
|
||||
margin-left: 750px;
|
||||
}
|
||||
}
|
||||
|
||||
body.api-docs div#api-docs div#methods #language {
|
||||
body.ApiDocs div#ApiDocs div#methods #language {
|
||||
background: -webkit-linear-gradient(#3e4145,#292e33);
|
||||
background: -moz-linear-gradient(#3e4145,#292e33);
|
||||
background: -ms-linear-gradient(#3e4145,#292e33);
|
||||
@@ -2020,7 +2020,7 @@ body.api-docs div#api-docs div#methods #language {
|
||||
-webkit-perspective: 1000;
|
||||
}
|
||||
|
||||
body.api-docs div#api-docs div#methods #language a {
|
||||
body.ApiDocs div#ApiDocs div#methods #language a {
|
||||
-webkit-border-radius: 18px;
|
||||
-moz-border-radius: 18px;
|
||||
-ms-border-radius: 18px;
|
||||
@@ -2038,7 +2038,7 @@ body.api-docs div#api-docs div#methods #language a {
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
body.api-docs div#api-docs div#methods #language a.selected {
|
||||
body.ApiDocs div#ApiDocs div#methods #language a.selected {
|
||||
background: -webkit-linear-gradient(#14171a,#2a2f34);
|
||||
background: -moz-linear-gradient(#14171a,#2a2f34);
|
||||
background: -ms-linear-gradient(#14171a,#2a2f34);
|
||||
@@ -2054,35 +2054,35 @@ body.api-docs div#api-docs div#methods #language a.selected {
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
body.api-docs div#api-docs div#methods #language.stick {
|
||||
body.ApiDocs div#ApiDocs div#methods #language.stick {
|
||||
position: fixed;
|
||||
top: 0;
|
||||
}
|
||||
|
||||
@media all and (min-width:1700px) {
|
||||
body.api-docs div#api-docs div#methods #language.stick {
|
||||
body.ApiDocs div#ApiDocs div#methods #language.stick {
|
||||
left: 951px;
|
||||
}
|
||||
}
|
||||
|
||||
body.api-docs div#api-docs div#methods .method {
|
||||
body.ApiDocs div#ApiDocs div#methods .method {
|
||||
padding-top: 45px;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
body.api-docs div#api-docs div#methods .method:nth-child(3) {
|
||||
body.ApiDocs div#ApiDocs div#methods .method:nth-child(3) {
|
||||
padding-top: 0;
|
||||
}
|
||||
|
||||
body.api-docs div#api-docs div#methods .method:nth-child(3) .method-section .method-description:before,body.api-docs div#api-docs div#methods .method:nth-child(3) .method-section .method-example:before,body.api-docs div#api-docs div#methods .method:nth-child(3) .method-section .method-example:after {
|
||||
body.ApiDocs div#ApiDocs div#methods .method:nth-child(3) .method-section .method-description:before,body.ApiDocs div#ApiDocs div#methods .method:nth-child(3) .method-section .method-example:before,body.ApiDocs div#ApiDocs div#methods .method:nth-child(3) .method-section .method-example:after {
|
||||
display: none;
|
||||
}
|
||||
|
||||
body.api-docs div#api-docs div#methods .method:last-child .method-section .method-example {
|
||||
body.ApiDocs div#ApiDocs div#methods .method:last-child .method-section .method-example {
|
||||
padding-bottom: 45px;
|
||||
}
|
||||
|
||||
body.api-docs div#api-docs div#methods .method-section {
|
||||
body.ApiDocs div#ApiDocs div#methods .method-section {
|
||||
clear: left;
|
||||
font-size: 13px;
|
||||
line-height: 1.9em;
|
||||
@@ -2091,7 +2091,7 @@ body.api-docs div#api-docs div#methods .method-section {
|
||||
position: relative;
|
||||
}
|
||||
|
||||
body.api-docs div#api-docs div#methods .method-section:after {
|
||||
body.ApiDocs div#ApiDocs div#methods .method-section:after {
|
||||
clear: both;
|
||||
content: "";
|
||||
display: block;
|
||||
@@ -2101,16 +2101,16 @@ body.api-docs div#api-docs div#methods .method-section:after {
|
||||
}
|
||||
|
||||
@media all and (min-width:1700px) {
|
||||
body.api-docs div#api-docs div#methods .method-section {
|
||||
body.ApiDocs div#ApiDocs div#methods .method-section {
|
||||
margin-left: -750px;
|
||||
}
|
||||
}
|
||||
|
||||
body.api-docs div#api-docs div#methods .method-section:nth-child(2) .method-description:before,body.api-docs div#api-docs div#methods .method-section:nth-child(2) .method-description:after,body.api-docs div#api-docs div#methods .method-section:nth-child(2) .method-example:before,body.api-docs div#api-docs div#methods .method-section:nth-child(2) .method-example:after {
|
||||
body.ApiDocs div#ApiDocs div#methods .method-section:nth-child(2) .method-description:before,body.ApiDocs div#ApiDocs div#methods .method-section:nth-child(2) .method-description:after,body.ApiDocs div#ApiDocs div#methods .method-section:nth-child(2) .method-example:before,body.ApiDocs div#ApiDocs div#methods .method-section:nth-child(2) .method-example:after {
|
||||
display: block;
|
||||
}
|
||||
|
||||
body.api-docs div#api-docs div#methods .method-section h1,body.api-docs div#api-docs div#methods .method-section h2,body.api-docs div#api-docs div#methods .method-section h3,body.api-docs div#api-docs div#methods .method-section h4,body.api-docs div#api-docs div#methods .method-section h5,body.api-docs div#api-docs div#methods .method-section h6 {
|
||||
body.ApiDocs div#ApiDocs div#methods .method-section h1,body.ApiDocs div#ApiDocs div#methods .method-section h2,body.ApiDocs div#ApiDocs div#methods .method-section h3,body.ApiDocs div#ApiDocs div#methods .method-section h4,body.ApiDocs div#ApiDocs div#methods .method-section h5,body.ApiDocs div#ApiDocs div#methods .method-section h6 {
|
||||
font-family: "proxima-nova","Helvetica Neue",Helvetica,Arial,sans-serif;
|
||||
color: #111;
|
||||
display: block;
|
||||
@@ -2119,34 +2119,34 @@ body.api-docs div#api-docs div#methods .method-section h1,body.api-docs div#api-
|
||||
line-height: 1.5em;
|
||||
}
|
||||
|
||||
body.api-docs div#api-docs div#methods .method-section h2 {
|
||||
body.ApiDocs div#ApiDocs div#methods .method-section h2 {
|
||||
font-size: 20px;
|
||||
}
|
||||
|
||||
body.api-docs div#api-docs div#methods .method-section h3 {
|
||||
body.ApiDocs div#ApiDocs div#methods .method-section h3 {
|
||||
font-size: 18px;
|
||||
}
|
||||
|
||||
body.api-docs div#api-docs div#methods .method-section h4 {
|
||||
body.ApiDocs div#ApiDocs div#methods .method-section h4 {
|
||||
font-size: 16px;
|
||||
}
|
||||
|
||||
body.api-docs div#api-docs div#methods .method-section h5 {
|
||||
body.ApiDocs div#ApiDocs div#methods .method-section h5 {
|
||||
font-size: 14px;
|
||||
}
|
||||
|
||||
body.api-docs div#api-docs div#methods .method-section h6 {
|
||||
body.ApiDocs div#ApiDocs div#methods .method-section h6 {
|
||||
font-size: 13px;
|
||||
}
|
||||
|
||||
body.api-docs div#api-docs div#methods .method-section p {
|
||||
body.ApiDocs div#ApiDocs div#methods .method-section p {
|
||||
color: #444;
|
||||
font-size: 13px;
|
||||
line-height: 1.9em;
|
||||
padding: 10px 0;
|
||||
}
|
||||
|
||||
body.api-docs div#api-docs div#methods .method-section .method-description {
|
||||
body.ApiDocs div#ApiDocs div#methods .method-section .method-description {
|
||||
box-sizing: border-box;
|
||||
-webkit-box-sizing: border-box;
|
||||
-moz-box-sizing: border-box;
|
||||
@@ -2158,7 +2158,7 @@ body.api-docs div#api-docs div#methods .method-section .method-description {
|
||||
z-index: 15;
|
||||
}
|
||||
|
||||
body.api-docs div#api-docs div#methods .method-section .method-description:before {
|
||||
body.ApiDocs div#ApiDocs div#methods .method-section .method-description:before {
|
||||
background-color: #e4e8eb;
|
||||
content: "";
|
||||
display: none;
|
||||
@@ -2170,12 +2170,12 @@ body.api-docs div#api-docs div#methods .method-section .method-description:befor
|
||||
}
|
||||
|
||||
@media all and (min-width:1700px) {
|
||||
body.api-docs div#api-docs div#methods .method-section .method-description {
|
||||
body.ApiDocs div#ApiDocs div#methods .method-section .method-description {
|
||||
width: 750px;
|
||||
}
|
||||
}
|
||||
|
||||
body.api-docs div#api-docs div#methods .method-section .method-description code,body.api-docs div#api-docs div#methods .method-section .method-description tt {
|
||||
body.ApiDocs div#ApiDocs div#methods .method-section .method-description code,body.ApiDocs div#ApiDocs div#methods .method-section .method-description tt {
|
||||
-webkit-border-radius: 4px;
|
||||
-moz-border-radius: 4px;
|
||||
-ms-border-radius: 4px;
|
||||
@@ -2187,18 +2187,18 @@ body.api-docs div#api-docs div#methods .method-section .method-description code,
|
||||
padding: 0 3px;
|
||||
}
|
||||
|
||||
body.api-docs div#api-docs div#methods .method-section .method-description div.method-list {
|
||||
body.ApiDocs div#ApiDocs div#methods .method-section .method-description div.method-list {
|
||||
border-bottom: 1px solid #eee;
|
||||
margin-bottom: 45px;
|
||||
padding: 45px 0 16px;
|
||||
}
|
||||
|
||||
body.api-docs div#api-docs div#methods .method-section .method-description div.method-list h6 {
|
||||
body.ApiDocs div#ApiDocs div#methods .method-section .method-description div.method-list h6 {
|
||||
border-bottom: 1px solid #eee;
|
||||
padding-bottom: 8px;
|
||||
}
|
||||
|
||||
body.api-docs div#api-docs div#methods .method-section .method-description div.method-list dl:after {
|
||||
body.ApiDocs div#ApiDocs div#methods .method-section .method-description div.method-list dl:after {
|
||||
clear: both;
|
||||
content: "";
|
||||
display: block;
|
||||
@@ -2207,7 +2207,7 @@ body.api-docs div#api-docs div#methods .method-section .method-description div.m
|
||||
visibility: hidden;
|
||||
}
|
||||
|
||||
body.api-docs div#api-docs div#methods .method-section .method-description div.method-list dl dt {
|
||||
body.ApiDocs div#ApiDocs div#methods .method-section .method-description div.method-list dl dt {
|
||||
float: left;
|
||||
font-weight: bold;
|
||||
margin-right: -165px;
|
||||
@@ -2220,15 +2220,15 @@ body.api-docs div#api-docs div#methods .method-section .method-description div.m
|
||||
z-index: 50;
|
||||
}
|
||||
|
||||
body.api-docs div#api-docs div#methods .method-section .method-description div.method-list dl dt span {
|
||||
body.ApiDocs div#ApiDocs div#methods .method-section .method-description div.method-list dl dt span {
|
||||
font-weight: bold !important;
|
||||
}
|
||||
|
||||
body.api-docs div#api-docs div#methods .method-section .method-description div.method-list dl dt:after {
|
||||
body.ApiDocs div#ApiDocs div#methods .method-section .method-description div.method-list dl dt:after {
|
||||
content: ":";
|
||||
}
|
||||
|
||||
body.api-docs div#api-docs div#methods .method-section .method-description div.method-list dl dd {
|
||||
body.ApiDocs div#ApiDocs div#methods .method-section .method-description div.method-list dl dd {
|
||||
box-sizing: border-box;
|
||||
-webkit-box-sizing: border-box;
|
||||
-moz-box-sizing: border-box;
|
||||
@@ -2240,7 +2240,7 @@ body.api-docs div#api-docs div#methods .method-section .method-description div.m
|
||||
z-index: 25;
|
||||
}
|
||||
|
||||
body.api-docs div#api-docs div#methods .method-section .method-description div.method-list dl dd:before {
|
||||
body.ApiDocs div#ApiDocs div#methods .method-section .method-description div.method-list dl dd:before {
|
||||
clear: both;
|
||||
content: "";
|
||||
display: block;
|
||||
@@ -2249,7 +2249,7 @@ body.api-docs div#api-docs div#methods .method-section .method-description div.m
|
||||
visibility: hidden;
|
||||
}
|
||||
|
||||
body.api-docs div#api-docs div#methods .method-section .method-description div.method-list dl dd.expandable:after {
|
||||
body.ApiDocs div#ApiDocs div#methods .method-section .method-description div.method-list dl dd.expandable:after {
|
||||
-webkit-border-radius: 4px;
|
||||
-moz-border-radius: 4px;
|
||||
-ms-border-radius: 4px;
|
||||
@@ -2264,28 +2264,28 @@ body.api-docs div#api-docs div#methods .method-section .method-description div.m
|
||||
padding: 0 5px;
|
||||
}
|
||||
|
||||
body.api-docs div#api-docs div#methods .method-section .method-description div.method-list dl dd p,body.api-docs div#api-docs div#methods .method-section .method-description div.method-list dl dd span,body.api-docs div#api-docs div#methods .method-section .method-description div.method-list dl dd em {
|
||||
body.ApiDocs div#ApiDocs div#methods .method-section .method-description div.method-list dl dd p,body.ApiDocs div#ApiDocs div#methods .method-section .method-description div.method-list dl dd span,body.ApiDocs div#ApiDocs div#methods .method-section .method-description div.method-list dl dd em {
|
||||
font-weight: normal;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
body.api-docs div#api-docs div#methods .method-section .method-description div.method-list dl dd span:not(.lang) {
|
||||
body.ApiDocs div#ApiDocs div#methods .method-section .method-description div.method-list dl dd span:not(.lang) {
|
||||
display: block;
|
||||
padding-top: 2px;
|
||||
}
|
||||
|
||||
body.api-docs div#api-docs div#methods .method-section .method-description div.method-list dl dd em {
|
||||
body.ApiDocs div#ApiDocs div#methods .method-section .method-description div.method-list dl dd em {
|
||||
font-style: italic;
|
||||
}
|
||||
|
||||
body.api-docs div#api-docs div#methods .method-section .method-description div.method-list dl dd .method-list {
|
||||
body.ApiDocs div#ApiDocs div#methods .method-section .method-description div.method-list dl dd .method-list {
|
||||
border-bottom: 0;
|
||||
margin-bottom: 0;
|
||||
font-size: 12px;
|
||||
padding: 10px 0 0;
|
||||
}
|
||||
|
||||
body.api-docs div#api-docs div#methods .method-section .method-description div.method-list dl dd .method-list dl {
|
||||
body.ApiDocs div#ApiDocs div#methods .method-section .method-description div.method-list dl dd .method-list dl {
|
||||
-webkit-border-radius: 4px;
|
||||
-moz-border-radius: 4px;
|
||||
-ms-border-radius: 4px;
|
||||
@@ -2297,7 +2297,7 @@ body.api-docs div#api-docs div#methods .method-section .method-description div.m
|
||||
position: relative;
|
||||
}
|
||||
|
||||
body.api-docs div#api-docs div#methods .method-section .method-description div.method-list dl dd .method-list dl:before {
|
||||
body.ApiDocs div#ApiDocs div#methods .method-section .method-description div.method-list dl dd .method-list dl:before {
|
||||
display: block;
|
||||
height: 0;
|
||||
width: 0;
|
||||
@@ -2311,7 +2311,7 @@ body.api-docs div#api-docs div#methods .method-section .method-description div.m
|
||||
top: -6px;
|
||||
}
|
||||
|
||||
body.api-docs div#api-docs div#methods .method-section .method-description div.method-list dl dd .method-list dl .show-parameters {
|
||||
body.ApiDocs div#ApiDocs div#methods .method-section .method-description div.method-list dl dd .method-list dl .show-parameters {
|
||||
color: #444;
|
||||
display: none;
|
||||
font-size: 12px;
|
||||
@@ -2319,74 +2319,74 @@ body.api-docs div#api-docs div#methods .method-section .method-description div.m
|
||||
padding-left: 175px;
|
||||
}
|
||||
|
||||
body.api-docs div#api-docs div#methods .method-section .method-description div.method-list dl dd .method-list dl:hover .show-parameters {
|
||||
body.ApiDocs div#ApiDocs div#methods .method-section .method-description div.method-list dl dd .method-list dl:hover .show-parameters {
|
||||
color: #111;
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
body.api-docs div#api-docs div#methods .method-section .method-description div.method-list dl dd .method-list dl dt {
|
||||
body.ApiDocs div#ApiDocs div#methods .method-section .method-description div.method-list dl dd .method-list dl dt {
|
||||
margin-right: -133px;
|
||||
width: 133px;
|
||||
}
|
||||
|
||||
body.api-docs div#api-docs div#methods .method-section .method-description div.method-list dl dd .method-list dl dd {
|
||||
body.ApiDocs div#ApiDocs div#methods .method-section .method-description div.method-list dl dd .method-list dl dd {
|
||||
padding-left: 143px;
|
||||
}
|
||||
|
||||
body.api-docs div#api-docs div#methods .method-section .method-description div.method-list dl dd .method-list dl .method-list dl {
|
||||
body.ApiDocs div#ApiDocs div#methods .method-section .method-description div.method-list dl dd .method-list dl .method-list dl {
|
||||
margin-left: -143px;
|
||||
}
|
||||
|
||||
body.api-docs div#api-docs div#methods .method-section .method-description div.method-list dl dd .method-list dl .method-list dl:before {
|
||||
body.ApiDocs div#ApiDocs div#methods .method-section .method-description div.method-list dl dd .method-list dl .method-list dl:before {
|
||||
left: 143px;
|
||||
}
|
||||
|
||||
body.api-docs div#api-docs div#methods .method-section .method-description div.method-list dl dd .method-list.collapsed {
|
||||
body.ApiDocs div#ApiDocs div#methods .method-section .method-description div.method-list dl dd .method-list.collapsed {
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
body.api-docs div#api-docs div#methods .method-section .method-description div.method-list dl dd .method-list.collapsed dl {
|
||||
body.ApiDocs div#ApiDocs div#methods .method-section .method-description div.method-list dl dd .method-list.collapsed dl {
|
||||
padding: 6px 0;
|
||||
}
|
||||
|
||||
body.api-docs div#api-docs div#methods .method-section .method-description div.method-list dl dd .method-list.collapsed dl .show-parameters {
|
||||
body.ApiDocs div#ApiDocs div#methods .method-section .method-description div.method-list dl dd .method-list.collapsed dl .show-parameters {
|
||||
display: block;
|
||||
}
|
||||
|
||||
body.api-docs div#api-docs div#methods .method-section .method-description div.method-list dl dd .method-list.collapsed dl dt,body.api-docs div#api-docs div#methods .method-section .method-description div.method-list dl dd .method-list.collapsed dl dd {
|
||||
body.ApiDocs div#ApiDocs div#methods .method-section .method-description div.method-list dl dd .method-list.collapsed dl dt,body.ApiDocs div#ApiDocs div#methods .method-section .method-description div.method-list dl dd .method-list.collapsed dl dd {
|
||||
display: none;
|
||||
}
|
||||
|
||||
body.api-docs div#api-docs div#methods .method-section .method-description div.method-list.event-types dl dt {
|
||||
body.ApiDocs div#ApiDocs div#methods .method-section .method-description div.method-list.event-types dl dt {
|
||||
margin-right: -230px;
|
||||
width: 230px;
|
||||
}
|
||||
|
||||
body.api-docs div#api-docs div#methods .method-section .method-description div.method-list.event-types dl dd {
|
||||
body.ApiDocs div#ApiDocs div#methods .method-section .method-description div.method-list.event-types dl dd {
|
||||
padding-left: 240px;
|
||||
}
|
||||
|
||||
body.api-docs div#api-docs div#methods .method-section .method-description div.method-list.failure-codes dl dt {
|
||||
body.ApiDocs div#ApiDocs div#methods .method-section .method-description div.method-list.failure-codes dl dt {
|
||||
margin-right: -230px;
|
||||
width: 230px;
|
||||
}
|
||||
|
||||
body.api-docs div#api-docs div#methods .method-section .method-description div.method-list.failure-codes dl dd {
|
||||
body.ApiDocs div#ApiDocs div#methods .method-section .method-description div.method-list.failure-codes dl dd {
|
||||
padding-left: 240px;
|
||||
}
|
||||
|
||||
body.api-docs div#api-docs div#methods .method-section .method-description div.method-list.list-empty dl dt {
|
||||
body.ApiDocs div#ApiDocs div#methods .method-section .method-description div.method-list.list-empty dl dt {
|
||||
font-style: italic;
|
||||
margin-right: 0;
|
||||
text-align: center;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
body.api-docs div#api-docs div#methods .method-section .method-description div.method-list.list-empty dl dt:after {
|
||||
body.ApiDocs div#ApiDocs div#methods .method-section .method-description div.method-list.list-empty dl dt:after {
|
||||
display: none;
|
||||
}
|
||||
|
||||
body.api-docs div#api-docs div#methods .method-section .method-example {
|
||||
body.ApiDocs div#ApiDocs div#methods .method-section .method-example {
|
||||
box-sizing: border-box;
|
||||
-webkit-box-sizing: border-box;
|
||||
-moz-box-sizing: border-box;
|
||||
@@ -2397,7 +2397,7 @@ body.api-docs div#api-docs div#methods .method-section .method-example {
|
||||
width: 50%;
|
||||
}
|
||||
|
||||
body.api-docs div#api-docs div#methods .method-section .method-example:before,body.api-docs div#api-docs div#methods .method-section .method-example:after {
|
||||
body.ApiDocs div#ApiDocs div#methods .method-section .method-example:before,body.ApiDocs div#ApiDocs div#methods .method-section .method-example:after {
|
||||
background: -webkit-linear-gradient(left,#0f131a,rgba(15,19,26,0));
|
||||
background: -moz-linear-gradient(left,#0f131a,rgba(15,19,26,0));
|
||||
background: -o-linear-gradient(left,#0f131a,rgba(15,19,26,0));
|
||||
@@ -2411,7 +2411,7 @@ body.api-docs div#api-docs div#methods .method-section .method-example:before,bo
|
||||
top: -45px;
|
||||
}
|
||||
|
||||
body.api-docs div#api-docs div#methods .method-section .method-example:after {
|
||||
body.ApiDocs div#ApiDocs div#methods .method-section .method-example:after {
|
||||
background: -webkit-linear-gradient(left,#45494c,rgba(69,73,76,0));
|
||||
background: -moz-linear-gradient(left,#45494c,rgba(69,73,76,0));
|
||||
background: -o-linear-gradient(left,#45494c,rgba(69,73,76,0));
|
||||
@@ -2420,53 +2420,53 @@ body.api-docs div#api-docs div#methods .method-section .method-example:after {
|
||||
}
|
||||
|
||||
@media all and (min-width:1700px) {
|
||||
body.api-docs div#api-docs div#methods .method-section .method-example {
|
||||
body.ApiDocs div#ApiDocs div#methods .method-section .method-example {
|
||||
margin-left: 751px;
|
||||
width: auto;
|
||||
}
|
||||
}
|
||||
|
||||
body.api-docs div#api-docs div#methods .method-section .method-example .hide {
|
||||
body.ApiDocs div#ApiDocs div#methods .method-section .method-example .hide {
|
||||
display: none;
|
||||
}
|
||||
|
||||
body.api-docs div#api-docs div#methods .method-section .method-example .part+.part {
|
||||
body.ApiDocs div#ApiDocs div#methods .method-section .method-example .part+.part {
|
||||
padding-top: 45px;
|
||||
}
|
||||
|
||||
body.api-docs div#api-docs div#methods .method-section .method-example h1,body.api-docs div#api-docs div#methods .method-section .method-example h2,body.api-docs div#api-docs div#methods .method-section .method-example h3,body.api-docs div#api-docs div#methods .method-section .method-example h4,body.api-docs div#api-docs div#methods .method-section .method-example h5,body.api-docs div#api-docs div#methods .method-section .method-example h6 {
|
||||
body.ApiDocs div#ApiDocs div#methods .method-section .method-example h1,body.ApiDocs div#ApiDocs div#methods .method-section .method-example h2,body.ApiDocs div#ApiDocs div#methods .method-section .method-example h3,body.ApiDocs div#ApiDocs div#methods .method-section .method-example h4,body.ApiDocs div#ApiDocs div#methods .method-section .method-example h5,body.ApiDocs div#ApiDocs div#methods .method-section .method-example h6 {
|
||||
color: white;
|
||||
padding-top: 38px;
|
||||
}
|
||||
|
||||
body.api-docs div#api-docs div#methods .method-section .method-example h1 code,body.api-docs div#api-docs div#methods .method-section .method-example h2 code,body.api-docs div#api-docs div#methods .method-section .method-example h3 code,body.api-docs div#api-docs div#methods .method-section .method-example h4 code,body.api-docs div#api-docs div#methods .method-section .method-example h5 code,body.api-docs div#api-docs div#methods .method-section .method-example h6 code {
|
||||
body.ApiDocs div#ApiDocs div#methods .method-section .method-example h1 code,body.ApiDocs div#ApiDocs div#methods .method-section .method-example h2 code,body.ApiDocs div#ApiDocs div#methods .method-section .method-example h3 code,body.ApiDocs div#ApiDocs div#methods .method-section .method-example h4 code,body.ApiDocs div#ApiDocs div#methods .method-section .method-example h5 code,body.ApiDocs div#ApiDocs div#methods .method-section .method-example h6 code {
|
||||
display: inline-block;
|
||||
}
|
||||
|
||||
body.api-docs div#api-docs div#methods .method-section .method-example h1:first-child,body.api-docs div#api-docs div#methods .method-section .method-example h2:first-child,body.api-docs div#api-docs div#methods .method-section .method-example h3:first-child,body.api-docs div#api-docs div#methods .method-section .method-example h4:first-child,body.api-docs div#api-docs div#methods .method-section .method-example h5:first-child,body.api-docs div#api-docs div#methods .method-section .method-example h6:first-child {
|
||||
body.ApiDocs div#ApiDocs div#methods .method-section .method-example h1:first-child,body.ApiDocs div#ApiDocs div#methods .method-section .method-example h2:first-child,body.ApiDocs div#ApiDocs div#methods .method-section .method-example h3:first-child,body.ApiDocs div#ApiDocs div#methods .method-section .method-example h4:first-child,body.ApiDocs div#ApiDocs div#methods .method-section .method-example h5:first-child,body.ApiDocs div#ApiDocs div#methods .method-section .method-example h6:first-child {
|
||||
padding-top: 0;
|
||||
}
|
||||
|
||||
body.api-docs div#api-docs div#methods .method-section .method-example h6 {
|
||||
body.ApiDocs div#ApiDocs div#methods .method-section .method-example h6 {
|
||||
padding-top: 26px;
|
||||
}
|
||||
|
||||
body.api-docs div#api-docs div#methods .method-section .method-example a {
|
||||
body.ApiDocs div#ApiDocs div#methods .method-section .method-example a {
|
||||
color: #80b2ff;
|
||||
}
|
||||
|
||||
body.api-docs div#api-docs div#methods .method-section .method-example a:hover {
|
||||
body.ApiDocs div#ApiDocs div#methods .method-section .method-example a:hover {
|
||||
color: #ccd8e8;
|
||||
}
|
||||
|
||||
body.api-docs div#api-docs div#methods .method-section .method-example div.switcher {
|
||||
body.ApiDocs div#ApiDocs div#methods .method-section .method-example div.switcher {
|
||||
text-align: center;
|
||||
position: relative;
|
||||
height: 22px;
|
||||
margin: -1px 0 20px;
|
||||
}
|
||||
|
||||
body.api-docs div#api-docs div#methods .method-section .method-example div.switcher a {
|
||||
body.ApiDocs div#ApiDocs div#methods .method-section .method-example div.switcher a {
|
||||
position: relative;
|
||||
z-index: 3;
|
||||
display: inline-block;
|
||||
@@ -2481,19 +2481,19 @@ body.api-docs div#api-docs div#methods .method-section .method-example div.switc
|
||||
background: rgba(151,166,174,0);
|
||||
}
|
||||
|
||||
body.api-docs div#api-docs div#methods .method-section .method-example div.switcher a:hover {
|
||||
body.ApiDocs div#ApiDocs div#methods .method-section .method-example div.switcher a:hover {
|
||||
text-decoration: none;
|
||||
color: #dae4f2;
|
||||
background: rgba(151,166,174,0.07);
|
||||
}
|
||||
|
||||
body.api-docs div#api-docs div#methods .method-section .method-example div.switcher a.selected {
|
||||
body.ApiDocs div#ApiDocs div#methods .method-section .method-example div.switcher a.selected {
|
||||
color: #dae4f2;
|
||||
pointer-events: none;
|
||||
background: rgba(151,166,174,0.14);
|
||||
}
|
||||
|
||||
body.api-docs div#api-docs div#methods .method-section .method-example div.switcher:after {
|
||||
body.ApiDocs div#ApiDocs div#methods .method-section .method-example div.switcher:after {
|
||||
content: '';
|
||||
display: block;
|
||||
position: absolute;
|
||||
@@ -2505,7 +2505,7 @@ body.api-docs div#api-docs div#methods .method-section .method-example div.switc
|
||||
z-index: 1;
|
||||
}
|
||||
|
||||
body.api-docs div#api-docs div#methods .method-section .method-example div.switcher:before {
|
||||
body.ApiDocs div#ApiDocs div#methods .method-section .method-example div.switcher:before {
|
||||
content: '';
|
||||
display: block;
|
||||
position: absolute;
|
||||
@@ -2519,7 +2519,7 @@ body.api-docs div#api-docs div#methods .method-section .method-example div.switc
|
||||
z-index: 2;
|
||||
}
|
||||
|
||||
body.api-docs div#api-docs div#methods .method-section .method-example code {
|
||||
body.ApiDocs div#ApiDocs div#methods .method-section .method-example code {
|
||||
color: #dae4f2;
|
||||
display: block;
|
||||
font-family: Monaco,Consolas,"Lucida Console",monospace;
|
||||
@@ -2532,104 +2532,104 @@ body.api-docs div#api-docs div#methods .method-section .method-example code {
|
||||
word-break: break-word;
|
||||
}
|
||||
|
||||
body.api-docs div#api-docs div#methods .method-section .method-example code strong {
|
||||
body.ApiDocs div#ApiDocs div#methods .method-section .method-example code strong {
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
body.api-docs div#api-docs div#methods .method-section .method-example code .no,body.api-docs div#api-docs div#methods .method-section .method-example code .line-numbers {
|
||||
body.ApiDocs div#ApiDocs div#methods .method-section .method-example code .no,body.ApiDocs div#ApiDocs div#methods .method-section .method-example code .line-numbers {
|
||||
display: none;
|
||||
}
|
||||
|
||||
body.api-docs div#api-docs div#methods .method-section .method-example code:before {
|
||||
body.ApiDocs div#ApiDocs div#methods .method-section .method-example code:before {
|
||||
content: "";
|
||||
color: #acb9bf;
|
||||
display: block;
|
||||
padding-bottom: 4px;
|
||||
}
|
||||
|
||||
body.api-docs div#api-docs div#methods .method-section .method-example code.method-error:before {
|
||||
body.ApiDocs div#ApiDocs div#methods .method-section .method-example code.method-error:before {
|
||||
content: "EXAMPLE ERROR";
|
||||
}
|
||||
|
||||
body.api-docs div#api-docs div#methods .method-section .method-example code.method-declaration:before {
|
||||
body.ApiDocs div#ApiDocs div#methods .method-section .method-example code.method-declaration:before {
|
||||
content: "DEFINITION";
|
||||
}
|
||||
|
||||
body.api-docs div#api-docs div#methods .method-section .method-example code.method-request:before {
|
||||
body.ApiDocs div#ApiDocs div#methods .method-section .method-example code.method-request:before {
|
||||
content: "SAMPLE CODE";
|
||||
}
|
||||
|
||||
body.api-docs div#api-docs div#methods .method-section .method-example code.method-response:before {
|
||||
body.ApiDocs div#ApiDocs div#methods .method-section .method-example code.method-response:before {
|
||||
content: "EXAMPLE RESPONSE";
|
||||
}
|
||||
|
||||
body.api-docs div#api-docs div#methods .method-section .method-example code.method-object:before {
|
||||
body.ApiDocs div#ApiDocs div#methods .method-section .method-example code.method-object:before {
|
||||
content: "EXAMPLE OBJECT";
|
||||
}
|
||||
|
||||
body.api-docs div#api-docs div#methods .method-section .method-example code.expected-result:before {
|
||||
body.ApiDocs div#ApiDocs div#methods .method-section .method-example code.expected-result:before {
|
||||
content: "RESULT";
|
||||
}
|
||||
|
||||
body.api-docs div#api-docs div#methods .method-section .method-example code+code {
|
||||
body.ApiDocs div#ApiDocs div#methods .method-section .method-example code+code {
|
||||
margin-top: 26px;
|
||||
}
|
||||
|
||||
body.api-docs div#api-docs div#methods .method-section .method-example code .prompt:after {
|
||||
body.ApiDocs div#ApiDocs div#methods .method-section .method-example code .prompt:after {
|
||||
color: #ccd8e8;
|
||||
}
|
||||
|
||||
body.api-docs div#api-docs div#methods .method-section .method-example p {
|
||||
body.ApiDocs div#ApiDocs div#methods .method-section .method-example p {
|
||||
color: #dae4f2;
|
||||
font-style: italic;
|
||||
max-width: 700px;
|
||||
}
|
||||
|
||||
body.api-docs div#api-docs div#methods .method-section .method-example span.highlight_js .constant,body.api-docs div#api-docs div#methods .method-section .method-example span.highlight_js .title,body.api-docs div#api-docs div#methods .method-section .method-example span.highlight_js .keyword {
|
||||
body.ApiDocs div#ApiDocs div#methods .method-section .method-example span.highlight_js .constant,body.ApiDocs div#ApiDocs div#methods .method-section .method-example span.highlight_js .title,body.ApiDocs div#ApiDocs div#methods .method-section .method-example span.highlight_js .keyword {
|
||||
color: #f92672;
|
||||
}
|
||||
|
||||
body.api-docs div#api-docs div#methods .method-section .method-example span.highlight_js .symbol,body.api-docs div#api-docs div#methods .method-section .method-example span.highlight_js .literal {
|
||||
body.ApiDocs div#ApiDocs div#methods .method-section .method-example span.highlight_js .symbol,body.ApiDocs div#ApiDocs div#methods .method-section .method-example span.highlight_js .literal {
|
||||
color: #f92672;
|
||||
}
|
||||
|
||||
body.api-docs div#api-docs div#methods .method-section .method-example span.highlight_js .string,body.api-docs div#api-docs div#methods .method-section .method-example span.highlight_js .attribute,body.api-docs div#api-docs div#methods .method-section .method-example span.highlight_js.xml .value {
|
||||
body.ApiDocs div#ApiDocs div#methods .method-section .method-example span.highlight_js .string,body.ApiDocs div#ApiDocs div#methods .method-section .method-example span.highlight_js .attribute,body.ApiDocs div#ApiDocs div#methods .method-section .method-example span.highlight_js.xml .value {
|
||||
color: #e5da78;
|
||||
}
|
||||
|
||||
body.api-docs div#api-docs div#methods .method-section .method-example span.highlight_js .comment {
|
||||
body.ApiDocs div#ApiDocs div#methods .method-section .method-example span.highlight_js .comment {
|
||||
color: #adbfd9;
|
||||
}
|
||||
|
||||
body.api-docs div#api-docs div#methods .method-section .method-example span.highlight_js.xml .attribute {
|
||||
body.ApiDocs div#ApiDocs div#methods .method-section .method-example span.highlight_js.xml .attribute {
|
||||
color: #f92672;
|
||||
}
|
||||
|
||||
body.api-docs div#api-docs div#methods .method-section .method-example ul {
|
||||
body.ApiDocs div#ApiDocs div#methods .method-section .method-example ul {
|
||||
padding: 4px 0;
|
||||
}
|
||||
|
||||
body.api-docs div#api-docs div#methods .method-section .method-example ul li {
|
||||
body.ApiDocs div#ApiDocs div#methods .method-section .method-example ul li {
|
||||
color: #dae4f2;
|
||||
font-family: Monaco,Consolas,"Lucida Console",monospace;
|
||||
font-size: 12px;
|
||||
padding: 4px 0;
|
||||
}
|
||||
|
||||
body.api-docs div#api-docs div#methods .method-section .method-example .table {
|
||||
body.ApiDocs div#ApiDocs div#methods .method-section .method-example .table {
|
||||
padding-top: 32px;
|
||||
}
|
||||
|
||||
body.api-docs div#api-docs div#methods .method-section .method-example .table h6 {
|
||||
body.ApiDocs div#ApiDocs div#methods .method-section .method-example .table h6 {
|
||||
padding-bottom: 4px;
|
||||
}
|
||||
|
||||
body.api-docs div#api-docs div#methods .method-section .method-example .table table {
|
||||
body.ApiDocs div#ApiDocs div#methods .method-section .method-example .table table {
|
||||
color: #dae4f2;
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
body.api-docs div#api-docs div#methods .method-section .method-example .table table td {
|
||||
body.ApiDocs div#ApiDocs div#methods .method-section .method-example .table table td {
|
||||
font-family: Monaco,Consolas,"Lucida Console",monospace;
|
||||
font-size: 12px;
|
||||
line-height: 1.5em;
|
||||
@@ -2637,43 +2637,43 @@ body.api-docs div#api-docs div#methods .method-section .method-example .table ta
|
||||
vertical-align: top;
|
||||
}
|
||||
|
||||
body.api-docs div#api-docs div#methods .method-section .method-example .table table td:last-child {
|
||||
body.ApiDocs div#ApiDocs div#methods .method-section .method-example .table table td:last-child {
|
||||
padding-left: 16px;
|
||||
}
|
||||
|
||||
body.api-docs div#api-docs div#methods .method-section .method-example .table table thead td {
|
||||
body.ApiDocs div#ApiDocs div#methods .method-section .method-example .table table thead td {
|
||||
font-family: "Helvetica Neue",Helvetica,Arial,sans-serif;
|
||||
font-size: 12px;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
body.api-docs div#api-docs div#methods .method-section .method-example .method-name {
|
||||
body.ApiDocs div#ApiDocs div#methods .method-section .method-example .method-name {
|
||||
font-family: Monaco,Consolas,"Lucida Console",monospace;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
body.api-docs div#api-docs div#methods .method-section .method-example .notification-request:before {
|
||||
body.ApiDocs div#ApiDocs div#methods .method-section .method-example .notification-request:before {
|
||||
content: "EXAMPLE NOTIFICATION";
|
||||
color: #9b9bb9;
|
||||
display: block;
|
||||
}
|
||||
|
||||
body.api-docs div#api-docs div#methods .method-section .method-example .notification-event:before {
|
||||
body.ApiDocs div#ApiDocs div#methods .method-section .method-example .notification-event:before {
|
||||
content: "EVENT";
|
||||
color: #9b9bb9;
|
||||
display: block;
|
||||
}
|
||||
|
||||
body.api-docs div#api-docs div#methods a#dispute_evidence_object+.method-section .method-description div.method-list dl dt {
|
||||
body.ApiDocs div#ApiDocs div#methods a#dispute_evidence_object+.method-section .method-description div.method-list dl dt {
|
||||
width: 215px;
|
||||
margin-right: -215px;
|
||||
}
|
||||
|
||||
body.api-docs div#api-docs div#methods a#dispute_evidence_object+.method-section .method-description div.method-list dl dd {
|
||||
body.ApiDocs div#ApiDocs div#methods a#dispute_evidence_object+.method-section .method-description div.method-list dl dd {
|
||||
padding-left: 225px;
|
||||
}
|
||||
|
||||
body.api-docs .footer {
|
||||
body.ApiDocs .footer {
|
||||
display: none;
|
||||
}
|
||||
|
||||
|
||||
@@ -1,2 +1,2 @@
|
||||
|
||||
(function(){"use strict";var e=["curl","ruby","python","php","java","node","go"];$(document).delegate("#language a.language","click",function(this: $TSFixMe, e: $TSFixMe) {var t=$(this);e.preventDefault(),$.isReady||$(document).ready(function(){t.click()})}).ready(function(){function u(n: $TSFixMe){a(function(){for(var r=e.length;r--;)t.removeClass(e[r]);t.addClass(n)})}function a(e: $TSFixMe){s.waypoint("disable"),e(),location.hash&&$(location.hash)[0].scrollIntoView(!0),s.waypoint("enable"),$.waypoints("refresh")}function f(e: $TSFixMe){a(function(){o.find(".switcher a").removeClass("selected"),o.find(".switcher a."+e).addClass("selected"),o.find(".specific-method-example").addClass("hide"),o.find(".specific-method-example."+e).removeClass("hide")})}var t=$("body"),n=$("#api-docs"),r=$("#guide"),i=$("#language"),s=$("#methods a.section-anchor"),o=$(".method-example.cards");n.waypoint(function(){$("body").find("#guide").toggleClass("stick"),$("body").find("#language").toggleClass("stick")}),r.on("click",".section",function(this: $TSFixMe) {r.find(".section.active").removeClass("active"),$(this).addClass("active")}),r.on("click","a.parent, a.child",function(this: $TSFixMe) {r.find("a.viewing").removeClass("viewing"),$(this).addClass("viewing")}),r.on("click","a.parent, a.child",function(){s.waypoint("disable"),setTimeout(function(){s.waypoint("enable")},200)}),o.on("click",".switcher a",function(e: $TSFixMe){e.preventDefault();var t=$(e.currentTarget).attr("class");t.indexOf("selected")===-1&&(f(t),$.cookie("cardType",t,{expires:1825,path:"/",domain:".stripe.com",secure:!0}))}),i.find("a.language").on("click",function(this: $TSFixMe, e: $TSFixMe) {e.preventDefault();var t=$(e.currentTarget).attr("href");window.history&&window.history.replaceState&&history.replaceState({},document.title,t+window.location.hash),i.find("a.selected").removeClass("selected"),$(this).addClass("selected");var n=t.split("https://stripe.com/"),r=n[n.length-1];u(r),$.cookie("lang",r,{expires:1825,path:"/",domain:".stripe.com",secure:!0})}),$("a.show-parameters").on("click",function(e: $TSFixMe){$(e.currentTarget).parent().parent().removeClass("collapsed")}),$(window).trigger("scroll"),s.waypoint({continuous:!1,handler:function(e: $TSFixMe){var t=$(this),n=t.attr("name");window.history&&window.history.replaceState&&history.replaceState({},"","#"+n),$("#guide").find("a[href=#"+n+"], a[data-target~="+n+"]").click()}})})})();
|
||||
(function(){"use strict";var e=["curl","ruby","python","php","java","node","go"];$(document).delegate("#language a.language","click",function(this: $TSFixMe, e: $TSFixMe) {var t=$(this);e.preventDefault(),$.isReady||$(document).ready(function(){t.click()})}).ready(function(){function u(n: $TSFixMe){a(function(){for(var r=e.length;r--;)t.removeClass(e[r]);t.addClass(n)})}function a(e: $TSFixMe){s.waypoint("disable"),e(),location.hash&&$(location.hash)[0].scrollIntoView(!0),s.waypoint("enable"),$.waypoints("refresh")}function f(e: $TSFixMe){a(function(){o.find(".switcher a").removeClass("selected"),o.find(".switcher a."+e).addClass("selected"),o.find(".specific-method-example").addClass("hide"),o.find(".specific-method-example."+e).removeClass("hide")})}var t=$("body"),n=$("#ApiDocs"),r=$("#guide"),i=$("#language"),s=$("#methods a.section-anchor"),o=$(".method-example.cards");n.waypoint(function(){$("body").find("#guide").toggleClass("stick"),$("body").find("#language").toggleClass("stick")}),r.on("click",".section",function(this: $TSFixMe) {r.find(".section.active").removeClass("active"),$(this).addClass("active")}),r.on("click","a.parent, a.child",function(this: $TSFixMe) {r.find("a.viewing").removeClass("viewing"),$(this).addClass("viewing")}),r.on("click","a.parent, a.child",function(){s.waypoint("disable"),setTimeout(function(){s.waypoint("enable")},200)}),o.on("click",".switcher a",function(e: $TSFixMe){e.preventDefault();var t=$(e.currentTarget).attr("class");t.indexOf("selected")===-1&&(f(t),$.cookie("cardType",t,{expires:1825,path:"/",domain:".stripe.com",secure:!0}))}),i.find("a.language").on("click",function(this: $TSFixMe, e: $TSFixMe) {e.preventDefault();var t=$(e.currentTarget).attr("href");window.history&&window.history.replaceState&&history.replaceState({},document.title,t+window.location.hash),i.find("a.selected").removeClass("selected"),$(this).addClass("selected");var n=t.split("https://stripe.com/"),r=n[n.length-1];u(r),$.cookie("lang",r,{expires:1825,path:"/",domain:".stripe.com",secure:!0})}),$("a.show-parameters").on("click",function(e: $TSFixMe){$(e.currentTarget).parent().parent().removeClass("collapsed")}),$(window).trigger("scroll"),s.waypoint({continuous:!1,handler:function(e: $TSFixMe){var t=$(this),n=t.attr("name");window.history&&window.history.replaceState&&history.replaceState({},"","#"+n),$("#guide").find("a[href=#"+n+"], a[data-target~="+n+"]").click()}})})})();
|
||||
@@ -345,7 +345,7 @@
|
||||
</section>
|
||||
</article>
|
||||
|
||||
<article id="get-all-status-page-scheduled-events" class="cf-grid-container dev-doc-item-container">
|
||||
<article id="get-all-StatusPage-scheduled-events" class="cf-grid-container dev-doc-item-container">
|
||||
<section class="col-lg-half col-md-half dev-doc-item">
|
||||
<h3>Get All Status Page Scheduled Events<span class="requestType">GET</span></h3>
|
||||
<p>
|
||||
|
||||
@@ -82,7 +82,7 @@
|
||||
</li>
|
||||
<li class="category-list">
|
||||
<a title="Scheduled Event"
|
||||
class="scheduled-event create-scheduled-event get-all-scheduled-events get-all-status-page-scheduled-events edit-scheduled-event delete-scheduled-event menu-link"
|
||||
class="scheduled-event create-scheduled-event get-all-scheduled-events get-all-StatusPage-scheduled-events edit-scheduled-event delete-scheduled-event menu-link"
|
||||
href="#scheduled-event">Scheduled Event</a>
|
||||
</li>
|
||||
|
||||
@@ -98,8 +98,8 @@
|
||||
</li>
|
||||
<li class="category-list">
|
||||
<a title="Status Page"
|
||||
class="status-page create-status-page get-all-status-pages get-all-subprojects-status-pages get-status-page edit-status-page delete-status-page get-status-page-rss get-status-page-notes get-status-page-monitor-notes get-status-page-scheduled-events get-status-page-monitor-scheduled-events get-all-monitor-statuses get-all-probes menu-link"
|
||||
href="#status-page">Status Page</a>
|
||||
class="StatusPage create-StatusPage get-all-StatusPages get-all-subprojects-StatusPages get-StatusPage edit-StatusPage delete-StatusPage get-StatusPage-rss get-StatusPage-notes get-StatusPage-monitor-notes get-StatusPage-scheduled-events get-StatusPage-monitor-scheduled-events get-all-monitor-statuses get-all-probes menu-link"
|
||||
href="#StatusPage">Status Page</a>
|
||||
</li>
|
||||
|
||||
<li class="category-list">
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
<article id="status-page" class="cf-grid-container dev-doc-item-container">
|
||||
<article id="StatusPage" class="cf-grid-container dev-doc-item-container">
|
||||
<section class="col-lg-half col-md-half dev-doc-item">
|
||||
<b>
|
||||
<h1>Status Page</h1>
|
||||
@@ -15,7 +15,7 @@
|
||||
<div class="cf-grid-row">
|
||||
<div class="col-full">
|
||||
<div class="item-title">
|
||||
<span>https://oneuptime.com/api/status-page/</span>
|
||||
<span>https://oneuptime.com/api/StatusPage/</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -30,7 +30,7 @@
|
||||
</section>
|
||||
</article>
|
||||
|
||||
<article id="create-status-page" class="cf-grid-container dev-doc-item-container">
|
||||
<article id="create-StatusPage" class="cf-grid-container dev-doc-item-container">
|
||||
<section class="col-lg-half col-md-half dev-doc-item">
|
||||
<h3>Create Status Page<span class="requestType">POST</span></h3>
|
||||
<p>
|
||||
@@ -45,7 +45,7 @@
|
||||
<div class="cf-grid-row">
|
||||
<div class="col-full">
|
||||
<div class="item-title">
|
||||
<span>https://oneuptime.com/api/status-page/:projectId</span>
|
||||
<span>https://oneuptime.com/api/StatusPage/:projectId</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -256,7 +256,7 @@
|
||||
|
||||
<div class="example-code example-response">
|
||||
<p>Request URL</p>
|
||||
<p class="url">https://oneuptime.com/api/status-page/5e2ecf45516aae26b133f354</p>
|
||||
<p class="url">https://oneuptime.com/api/StatusPage/5e2ecf45516aae26b133f354</p>
|
||||
|
||||
<p>Request Body</p>
|
||||
<pre>
|
||||
@@ -337,7 +337,7 @@
|
||||
</section>
|
||||
</article>
|
||||
|
||||
<article id="get-all-status-pages" class="cf-grid-container dev-doc-item-container">
|
||||
<article id="get-all-StatusPages" class="cf-grid-container dev-doc-item-container">
|
||||
<section class="col-lg-half col-md-half dev-doc-item">
|
||||
<h3>Get All Status Pages<span class="requestType">GET</span></h3>
|
||||
<p>
|
||||
@@ -352,7 +352,7 @@
|
||||
<div class="cf-grid-row">
|
||||
<div class="col-full">
|
||||
<div class="item-title">
|
||||
<span>https://oneuptime.com/api/status-page/:projectId/dashboard</span>
|
||||
<span>https://oneuptime.com/api/StatusPage/:projectId/dashboard</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -427,7 +427,7 @@
|
||||
|
||||
<div class="example-code example-response">
|
||||
<p>Request URL</p>
|
||||
<p class="url">https://oneuptime.com/api/status-page/5e2ecf45516aae26b133f354/dashboard?skip=0&limit=5</p>
|
||||
<p class="url">https://oneuptime.com/api/StatusPage/5e2ecf45516aae26b133f354/dashboard?skip=0&limit=5</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -582,7 +582,7 @@
|
||||
</section>
|
||||
</article>
|
||||
|
||||
<article id="get-all-status-pages" class="cf-grid-container dev-doc-item-container">
|
||||
<article id="get-all-StatusPages" class="cf-grid-container dev-doc-item-container">
|
||||
<section class="col-lg-half col-md-half dev-doc-item">
|
||||
<h3>Get All Status Pages<span class="requestType">GET</span></h3>
|
||||
<p>
|
||||
@@ -597,7 +597,7 @@
|
||||
<div class="cf-grid-row">
|
||||
<div class="col-full">
|
||||
<div class="item-title">
|
||||
<span>https://oneuptime.com/api/status-page/:projectId/statuspage</span>
|
||||
<span>https://oneuptime.com/api/StatusPage/:projectId/statuspage</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -672,7 +672,7 @@
|
||||
|
||||
<div class="example-code example-response">
|
||||
<p>Request URL</p>
|
||||
<p class="url">https://oneuptime.com/api/status-page/5e2ecf45516aae26b133f354/statuspage?skip=0&limit=5</p>
|
||||
<p class="url">https://oneuptime.com/api/StatusPage/5e2ecf45516aae26b133f354/statuspage?skip=0&limit=5</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -828,7 +828,7 @@
|
||||
</section>
|
||||
</article>
|
||||
|
||||
<article id="get-all-subprojects-status-pages" class="cf-grid-container dev-doc-item-container">
|
||||
<article id="get-all-subprojects-StatusPages" class="cf-grid-container dev-doc-item-container">
|
||||
<section class="col-lg-half col-md-half dev-doc-item">
|
||||
<h3>Get All SubProjects Status Pages<span class="requestType">GET</span></h3>
|
||||
<p>
|
||||
@@ -843,7 +843,7 @@
|
||||
<div class="cf-grid-row">
|
||||
<div class="col-full">
|
||||
<div class="item-title">
|
||||
<span>https://oneuptime.com/api/status-page/:projectId/statuspages</span>
|
||||
<span>https://oneuptime.com/api/StatusPage/:projectId/statuspages</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -881,7 +881,7 @@
|
||||
|
||||
<div class="example-code example-response">
|
||||
<p>Request URL</p>
|
||||
<p class="url">https://oneuptime.com/api/status-page/5e2ecf45516aae26b133f354/statuspages</p>
|
||||
<p class="url">https://oneuptime.com/api/StatusPage/5e2ecf45516aae26b133f354/statuspages</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -1047,7 +1047,7 @@
|
||||
</section>
|
||||
</article>
|
||||
|
||||
<article id="get-status-page" class="cf-grid-container dev-doc-item-container">
|
||||
<article id="get-StatusPage" class="cf-grid-container dev-doc-item-container">
|
||||
<section class="col-lg-half col-md-half dev-doc-item">
|
||||
<h3>Get Status Page<span class="requestType">GET</span></h3>
|
||||
<p>
|
||||
@@ -1062,7 +1062,7 @@
|
||||
<div class="cf-grid-row">
|
||||
<div class="col-full">
|
||||
<div class="item-title">
|
||||
<span>https://oneuptime.com/api/status-page/:statusPageId</span>
|
||||
<span>https://oneuptime.com/api/StatusPage/:statusPageId</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -1122,7 +1122,7 @@
|
||||
|
||||
<div class="example-code example-response">
|
||||
<p>Request URL</p>
|
||||
<p class="url">https://oneuptime.com/api/status-page/5e3bfa83de29ed659247259d</p>
|
||||
<p class="url">https://oneuptime.com/api/StatusPage/5e3bfa83de29ed659247259d</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -1196,7 +1196,7 @@
|
||||
</section>
|
||||
</article>
|
||||
|
||||
<article id="edit-status-page" class="cf-grid-container dev-doc-item-container">
|
||||
<article id="edit-StatusPage" class="cf-grid-container dev-doc-item-container">
|
||||
<section class="col-lg-half col-md-half dev-doc-item">
|
||||
<h3>Edit Status Page<span class="requestType">PUT</span></h3>
|
||||
<p>
|
||||
@@ -1211,7 +1211,7 @@
|
||||
<div class="cf-grid-row">
|
||||
<div class="col-full">
|
||||
<div class="item-title">
|
||||
<span>https://oneuptime.com/api/status-page/:projectId</span>
|
||||
<span>https://oneuptime.com/api/StatusPage/:projectId</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -1422,7 +1422,7 @@
|
||||
|
||||
<div class="example-code example-response">
|
||||
<p>Request URL</p>
|
||||
<p class="url">https://oneuptime.com/api/status-page/5e2ecf45516aae26b133f354</p>
|
||||
<p class="url">https://oneuptime.com/api/StatusPage/5e2ecf45516aae26b133f354</p>
|
||||
|
||||
<p>Request Body</p>
|
||||
<pre>
|
||||
@@ -1525,7 +1525,7 @@
|
||||
</section>
|
||||
</article>
|
||||
|
||||
<article id="delete-status-page" class="cf-grid-container dev-doc-item-container">
|
||||
<article id="delete-StatusPage" class="cf-grid-container dev-doc-item-container">
|
||||
<section class="col-lg-half col-md-half dev-doc-item">
|
||||
<h3>Delete Status Page<span class="requestType">DELETE</span></h3>
|
||||
<p>
|
||||
@@ -1540,7 +1540,7 @@
|
||||
<div class="cf-grid-row">
|
||||
<div class="col-full">
|
||||
<div class="item-title">
|
||||
<span>https://oneuptime.com/api/status-page/:projectId/:statusPageId</span>
|
||||
<span>https://oneuptime.com/api/StatusPage/:projectId/:statusPageId</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -1593,7 +1593,7 @@
|
||||
|
||||
<div class="example-code example-response">
|
||||
<p>Request URL</p>
|
||||
<p class="url">https://oneuptime.com/api/status-page/5e2ecf45516aae26b133f354/5e3bfa83de29ed659247259d</p>
|
||||
<p class="url">https://oneuptime.com/api/StatusPage/5e2ecf45516aae26b133f354/5e3bfa83de29ed659247259d</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -1690,7 +1690,7 @@
|
||||
</section>
|
||||
</article>
|
||||
|
||||
<article id="get-status-page-rss" class="cf-grid-container dev-doc-item-container">
|
||||
<article id="get-StatusPage-rss" class="cf-grid-container dev-doc-item-container">
|
||||
<section class="col-lg-half col-md-half dev-doc-item">
|
||||
<h3>Get Status Page RSS<span class="requestType">GET</span></h3>
|
||||
<p>
|
||||
@@ -1705,7 +1705,7 @@
|
||||
<div class="cf-grid-row">
|
||||
<div class="col-full">
|
||||
<div class="item-title">
|
||||
<span>https://oneuptime.com/api/status-page/:statusPageId/rss</span>
|
||||
<span>https://oneuptime.com/api/StatusPage/:statusPageId/rss</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -1765,7 +1765,7 @@
|
||||
|
||||
<div class="example-code example-response">
|
||||
<p>Request URL</p>
|
||||
<p class="url">https://oneuptime.com/api/status-page/5e3bfa83de29ed659247259d/rss</p>
|
||||
<p class="url">https://oneuptime.com/api/StatusPage/5e3bfa83de29ed659247259d/rss</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -1780,7 +1780,7 @@
|
||||
<rss version="2.0">
|
||||
<Title>Incidents for status page Zenith</Title>
|
||||
<Description>RSS feed for all incidents related to monitors attached to status page</Description>
|
||||
<Link>http://localhost:3002/status-page/rss</Link>
|
||||
<Link>http://localhost:3002/StatusPage/rss</Link>
|
||||
<LastBuildDate>Thu Feb 06 2020 12:44:44 GMT+0100 (West Africa Standard Time)</LastBuildDate>
|
||||
<Language>en</Language>
|
||||
<Incidents>
|
||||
@@ -1883,7 +1883,7 @@
|
||||
</section>
|
||||
</article>
|
||||
|
||||
<article id="get-status-page-notes" class="cf-grid-container dev-doc-item-container">
|
||||
<article id="get-StatusPage-notes" class="cf-grid-container dev-doc-item-container">
|
||||
<section class="col-lg-half col-md-half dev-doc-item">
|
||||
<h3>Get Status Page Notes<span class="requestType">GET</span></h3>
|
||||
<p>
|
||||
@@ -1899,7 +1899,7 @@
|
||||
<div class="cf-grid-row">
|
||||
<div class="col-full">
|
||||
<div class="item-title">
|
||||
<span>https://oneuptime.com/api/status-page/:projectId/:statusPageId/notes</span>
|
||||
<span>https://oneuptime.com/api/StatusPage/:projectId/:statusPageId/notes</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -1990,7 +1990,7 @@
|
||||
<div class="example-code example-response">
|
||||
<p>Request URL</p>
|
||||
<p class="url">
|
||||
https://oneuptime.com/api/status-page/5e2ecf45516aae26b133f354/5e3bfa83de29ed659247259d/notes?skip=0&limit=5</p>
|
||||
https://oneuptime.com/api/StatusPage/5e2ecf45516aae26b133f354/5e3bfa83de29ed659247259d/notes?skip=0&limit=5</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -2227,7 +2227,7 @@
|
||||
</section>
|
||||
</article>
|
||||
|
||||
<article id="get-status-page-monitor-notes" class="cf-grid-container dev-doc-item-container">
|
||||
<article id="get-StatusPage-monitor-notes" class="cf-grid-container dev-doc-item-container">
|
||||
<section class="col-lg-half col-md-half dev-doc-item">
|
||||
<h3>Get Status Page Monitor Notes<span class="requestType">GET</span></h3>
|
||||
<p>
|
||||
@@ -2243,7 +2243,7 @@
|
||||
<div class="cf-grid-row">
|
||||
<div class="col-full">
|
||||
<div class="item-title">
|
||||
<span>https://oneuptime.com/api/status-page/:projectId/:monitorId/individualnotes</span>
|
||||
<span>https://oneuptime.com/api/StatusPage/:projectId/:monitorId/individualnotes</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -2334,7 +2334,7 @@
|
||||
<div class="example-code example-response">
|
||||
<p>Request URL</p>
|
||||
<p class="url">
|
||||
https://oneuptime.com/api/status-page/5e2ecf45516aae26b133f354/5e321f87542c6f61d1292a83/individualnotes?skip=0&limit=5
|
||||
https://oneuptime.com/api/StatusPage/5e2ecf45516aae26b133f354/5e321f87542c6f61d1292a83/individualnotes?skip=0&limit=5
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
@@ -2412,7 +2412,7 @@
|
||||
</section>
|
||||
</article>
|
||||
|
||||
<article id="get-status-page-scheduled-events" class="cf-grid-container dev-doc-item-container">
|
||||
<article id="get-StatusPage-scheduled-events" class="cf-grid-container dev-doc-item-container">
|
||||
<section class="col-lg-half col-md-half dev-doc-item">
|
||||
<h3>Get Status Page Scheduled Events<span class="requestType">GET</span></h3>
|
||||
<p>
|
||||
@@ -2428,7 +2428,7 @@
|
||||
<div class="cf-grid-row">
|
||||
<div class="col-full">
|
||||
<div class="item-title">
|
||||
<span>https://oneuptime.com/api/status-page/:projectId/:statusPageId/events</span>
|
||||
<span>https://oneuptime.com/api/StatusPage/:projectId/:statusPageId/events</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -2519,7 +2519,7 @@
|
||||
<div class="example-code example-response">
|
||||
<p>Request URL</p>
|
||||
<p class="url">
|
||||
https://oneuptime.com/api/status-page/5e8cda4eac92233bf1e4645a/5e8cdb19ac92233bf1e464d6/events?skip=0&limit=5</p>
|
||||
https://oneuptime.com/api/StatusPage/5e8cda4eac92233bf1e4645a/5e8cdb19ac92233bf1e464d6/events?skip=0&limit=5</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -2651,7 +2651,7 @@
|
||||
</section>
|
||||
</article>
|
||||
|
||||
<article id="get-status-page-monitor-scheduled-events" class="cf-grid-container dev-doc-item-container">
|
||||
<article id="get-StatusPage-monitor-scheduled-events" class="cf-grid-container dev-doc-item-container">
|
||||
<section class="col-lg-half col-md-half dev-doc-item">
|
||||
<h3>Get Status Page Monitor Scheduled Events<span class="requestType">GET</span></h3>
|
||||
<p>
|
||||
@@ -2666,7 +2666,7 @@
|
||||
<div class="cf-grid-row">
|
||||
<div class="col-full">
|
||||
<div class="item-title">
|
||||
<span>https://oneuptime.com/api/status-page/:projectId/:monitorId/individualevents</span>
|
||||
<span>https://oneuptime.com/api/StatusPage/:projectId/:monitorId/individualevents</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -2742,7 +2742,7 @@
|
||||
<div class="example-code example-response">
|
||||
<p>Request URL</p>
|
||||
<p class="url">
|
||||
https://oneuptime.com/api/status-page/5e8cda4eac92233bf1e4645a/5e8cdaebac92233bf1e4649a/individualevents?date=2020-04-09T21:22:08.845Z
|
||||
https://oneuptime.com/api/StatusPage/5e8cda4eac92233bf1e4645a/5e8cdaebac92233bf1e4649a/individualevents?date=2020-04-09T21:22:08.845Z
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
@@ -2888,7 +2888,7 @@
|
||||
<div class="cf-grid-row">
|
||||
<div class="col-full">
|
||||
<div class="item-title">
|
||||
<span>https://oneuptime.com/api/status-page/:projectId/:monitorId/monitorStatuses</span>
|
||||
<span>https://oneuptime.com/api/StatusPage/:projectId/:monitorId/monitorStatuses</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -2979,7 +2979,7 @@
|
||||
<div class="example-code example-response">
|
||||
<p>Request URL</p>
|
||||
<p class="url">
|
||||
https://oneuptime.com/api/status-page/5e2ecf45516aae26b133f354d/5e321f87542c6f61d1292a83/monitorStatuses</p>
|
||||
https://oneuptime.com/api/StatusPage/5e2ecf45516aae26b133f354d/5e321f87542c6f61d1292a83/monitorStatuses</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -3044,7 +3044,7 @@
|
||||
<div class="cf-grid-row">
|
||||
<div class="col-full">
|
||||
<div class="item-title">
|
||||
<span>https://oneuptime.com/api/status-page/:projectId/probes</span>
|
||||
<span>https://oneuptime.com/api/StatusPage/:projectId/probes</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -3119,7 +3119,7 @@
|
||||
|
||||
<div class="example-code example-response">
|
||||
<p>Request URL</p>
|
||||
<p class="url">https://oneuptime.com/api/status-page/5e2ecf45516aae26b133f354/probes?skip=0&limit=5</p>
|
||||
<p class="url">https://oneuptime.com/api/StatusPage/5e2ecf45516aae26b133f354/probes?skip=0&limit=5</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
#
|
||||
# application-scanner Dockerfile
|
||||
# ApplicationScanner Dockerfile
|
||||
#
|
||||
|
||||
# Pull base image nodejs image.
|
||||
@@ -21,12 +21,12 @@ RUN npm install
|
||||
COPY ./common /usr/src/common
|
||||
RUN npm compile
|
||||
|
||||
# Install common-server
|
||||
RUN mkdir /usr/src/common-server
|
||||
WORKDIR /usr/src/common-server
|
||||
COPY ./common-server/package*.json /usr/src/common-server/
|
||||
# Install CommonServer
|
||||
RUN mkdir /usr/src/CommonServer
|
||||
WORKDIR /usr/src/CommonServer
|
||||
COPY ./CommonServer/package*.json /usr/src/CommonServer/
|
||||
RUN npm install
|
||||
COPY ./common-server /usr/src/common-server
|
||||
COPY ./CommonServer /usr/src/CommonServer
|
||||
RUN npm compile
|
||||
|
||||
#SET ENV Variables
|
||||
@@ -38,12 +38,12 @@ RUN mkdir /usr/src/app
|
||||
WORKDIR /usr/src/app
|
||||
|
||||
# Install app dependencies
|
||||
COPY ./application-scanner/package*.json /usr/src/app/
|
||||
COPY ./ApplicationScanner/package*.json /usr/src/app/
|
||||
RUN npm install
|
||||
RUN npm install -g ts-node
|
||||
|
||||
# Bundle app source
|
||||
COPY ./application-scanner /usr/src/app
|
||||
COPY ./ApplicationScanner /usr/src/app
|
||||
|
||||
# Expose ports.
|
||||
# - 3005: Application Scanner
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
#
|
||||
# application-scanner Dockerfile
|
||||
# ApplicationScanner Dockerfile
|
||||
#
|
||||
|
||||
# Pull base image nodejs image.
|
||||
@@ -21,12 +21,12 @@ RUN npm install
|
||||
COPY ./common /usr/src/common
|
||||
RUN npm compile
|
||||
|
||||
# Install common-server
|
||||
RUN mkdir /usr/src/common-server
|
||||
WORKDIR /usr/src/common-server
|
||||
COPY ./common-server/package*.json /usr/src/common-server/
|
||||
# Install CommonServer
|
||||
RUN mkdir /usr/src/CommonServer
|
||||
WORKDIR /usr/src/CommonServer
|
||||
COPY ./CommonServer/package*.json /usr/src/CommonServer/
|
||||
RUN npm install
|
||||
COPY ./common-server /usr/src/common-server
|
||||
COPY ./CommonServer /usr/src/CommonServer
|
||||
RUN npm compile
|
||||
|
||||
WORKDIR /usr/src/app
|
||||
@@ -35,8 +35,8 @@ WORKDIR /usr/src/app
|
||||
RUN cd /usr/src/app
|
||||
|
||||
# Copy package.json files
|
||||
COPY ./application-scanner/package.json /usr/src/app/package.json
|
||||
COPY ./application-scanner/package-lock.json /usr/src/app/package-lock.json
|
||||
COPY ./ApplicationScanner/package.json /usr/src/app/package.json
|
||||
COPY ./ApplicationScanner/package-lock.json /usr/src/app/package-lock.json
|
||||
|
||||
|
||||
RUN npm install
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { ExpressRequest, ExpressResponse } from 'Common-server/Utils/Express';
|
||||
import { ExpressRequest, ExpressResponse } from 'CommonServer/utils/Express';
|
||||
|
||||
import app from 'Common-server/utils/StartServer';
|
||||
import app from 'CommonServer/utils/StartServer';
|
||||
|
||||
import Main from './worker/main';
|
||||
|
||||
@@ -16,7 +16,7 @@ app.get(
|
||||
JSON.stringify({
|
||||
status: 200,
|
||||
message: 'Service Status - OK',
|
||||
serviceType: 'oneuptime-application-scanner',
|
||||
serviceType: 'oneuptime-ApplicationScanner',
|
||||
})
|
||||
);
|
||||
}
|
||||
|
||||
10
ApplicationScanner/package-lock.json
generated
10
ApplicationScanner/package-lock.json
generated
@@ -41,7 +41,7 @@
|
||||
"@types/node": "^17.0.22"
|
||||
}
|
||||
},
|
||||
"../common-server": {
|
||||
"../CommonServer": {
|
||||
"version": "1.0.0",
|
||||
"license": "ISC",
|
||||
"dependencies": {
|
||||
@@ -837,8 +837,8 @@
|
||||
"resolved": "../common",
|
||||
"link": true
|
||||
},
|
||||
"node_modules/common-server": {
|
||||
"resolved": "../common-server",
|
||||
"node_modules/CommonServer": {
|
||||
"resolved": "../CommonServer",
|
||||
"link": true
|
||||
},
|
||||
"node_modules/concat-map": {
|
||||
@@ -4114,8 +4114,8 @@
|
||||
"axios": "^0.26.1"
|
||||
}
|
||||
},
|
||||
"common-server": {
|
||||
"version": "file:../common-server",
|
||||
"CommonServer": {
|
||||
"version": "file:../CommonServer",
|
||||
"requires": {
|
||||
"@elastic/elasticsearch": "^8.1.0",
|
||||
"@types/cors": "^2.8.12",
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import crypto from 'crypto';
|
||||
import logger from 'Common-server/Utils/Logger';
|
||||
import logger from 'CommonServer/utils/Logger';
|
||||
import EncryptionKeys from './encryptionKeys';
|
||||
const algorithm = EncryptionKeys.algorithm;
|
||||
const key = EncryptionKeys.key;
|
||||
|
||||
@@ -55,4 +55,4 @@ tests/coverage
|
||||
|
||||
settings.json
|
||||
|
||||
go-sdk/tester/
|
||||
GoSDK/tester/
|
||||
@@ -25,12 +25,12 @@ RUN npm install
|
||||
COPY ./common /usr/src/common
|
||||
RUN npm compile
|
||||
|
||||
# Install common-server
|
||||
RUN mkdir /usr/src/common-server
|
||||
WORKDIR /usr/src/common-server
|
||||
COPY ./common-server/package*.json /usr/src/common-server/
|
||||
# Install CommonServer
|
||||
RUN mkdir /usr/src/CommonServer
|
||||
WORKDIR /usr/src/CommonServer
|
||||
COPY ./CommonServer/package*.json /usr/src/CommonServer/
|
||||
RUN npm install
|
||||
COPY ./common-server /usr/src/common-server
|
||||
COPY ./CommonServer /usr/src/CommonServer
|
||||
RUN npm compile
|
||||
|
||||
#SET ENV Variables
|
||||
|
||||
@@ -25,12 +25,12 @@ RUN npm install
|
||||
COPY ./common /usr/src/common
|
||||
RUN npm compile
|
||||
|
||||
# Install common-server
|
||||
RUN mkdir /usr/src/common-server
|
||||
WORKDIR /usr/src/common-server
|
||||
COPY ./common-server/package*.json /usr/src/common-server/
|
||||
# Install CommonServer
|
||||
RUN mkdir /usr/src/CommonServer
|
||||
WORKDIR /usr/src/CommonServer
|
||||
COPY ./CommonServer/package*.json /usr/src/CommonServer/
|
||||
RUN npm install
|
||||
COPY ./common-server /usr/src/common-server
|
||||
COPY ./CommonServer /usr/src/CommonServer
|
||||
RUN npm compile
|
||||
|
||||
#SET ENV Variables
|
||||
|
||||
@@ -15,7 +15,7 @@ import ClusterKeyAuthorization from 'CommonServer/middleware/ClusterKeyAuthoriza
|
||||
|
||||
const router = express.getRouter();
|
||||
|
||||
// get all script monitors for script-runner
|
||||
// get all script monitors for ScriptRunner
|
||||
router.get(
|
||||
'/monitors',
|
||||
ClusterKeyAuthorization.isAuthorizedService,
|
||||
|
||||
@@ -71,7 +71,7 @@ ApiBase({
|
||||
isResourceInProject: true,
|
||||
service: StatusPageService,
|
||||
friendlyResourceName: 'Status Page',
|
||||
resourceName: 'status-page',
|
||||
resourceName: 'StatusPage',
|
||||
});
|
||||
|
||||
//fetch tweets from user twitter handle
|
||||
@@ -837,7 +837,7 @@ router.get(
|
||||
);
|
||||
|
||||
router.get(
|
||||
'/:projectId/status-pages',
|
||||
'/:projectId/StatusPages',
|
||||
getUser,
|
||||
isAuthorized,
|
||||
async function (req, res) {
|
||||
@@ -1058,7 +1058,7 @@ router.get(
|
||||
item: {
|
||||
title: incident.title,
|
||||
|
||||
guid: `${global.apiHost}/status-page/${statusPageId}/rss/${incident._id}`,
|
||||
guid: `${global.apiHost}/StatusPage/${statusPageId}/rss/${incident._id}`,
|
||||
pubDate: new Date(incident.createdAt).toUTCString(),
|
||||
description: `<![CDATA[Description: ${
|
||||
incident.description
|
||||
@@ -1097,7 +1097,7 @@ router.get(
|
||||
'RSS feed for all incidents related to monitors attached to status page',
|
||||
},
|
||||
{
|
||||
link: `${global.apiHost}/status-page/${statusPageId}/rss`,
|
||||
link: `${global.apiHost}/StatusPage/${statusPageId}/rss`,
|
||||
},
|
||||
{
|
||||
lastBuildDate: () => new Date().toUTCString(),
|
||||
@@ -1737,7 +1737,7 @@ router.get(
|
||||
);
|
||||
|
||||
router.post(
|
||||
'/:projectId/createExternalstatus-page/:statusPageId',
|
||||
'/:projectId/createExternalStatusPage/:statusPageId',
|
||||
checkUser,
|
||||
async (req: ExpressRequest, res: ExpressResponse) => {
|
||||
try {
|
||||
@@ -1850,7 +1850,7 @@ router.post(
|
||||
);
|
||||
|
||||
router.post(
|
||||
'/:projectId/updateExternalstatus-page/:externalStatusPageId',
|
||||
'/:projectId/updateExternalStatusPage/:externalStatusPageId',
|
||||
checkUser,
|
||||
async (req: ExpressRequest, res: ExpressResponse) => {
|
||||
try {
|
||||
@@ -1978,7 +1978,7 @@ router.get(
|
||||
);
|
||||
|
||||
router.post(
|
||||
'/:projectId/deleteExternalstatus-page/:externalStatusPageId',
|
||||
'/:projectId/deleteExternalStatusPage/:externalStatusPageId',
|
||||
checkUser,
|
||||
async (req: ExpressRequest, res: ExpressResponse) => {
|
||||
try {
|
||||
|
||||
@@ -153,7 +153,7 @@ app.use(['/schedule', '/api/schedule'], ScheduleAPI);
|
||||
|
||||
app.use(['/monitor', '/api/monitor'], MonitorAPI);
|
||||
|
||||
app.use(['/status-page', '/api/status-page'], StatusPageAPI);
|
||||
app.use(['/StatusPage', '/api/StatusPage'], StatusPageAPI);
|
||||
|
||||
app.use(['/file', '/api/file'], FileAPI);
|
||||
|
||||
@@ -264,7 +264,7 @@ app.use(['/monitorSla', '/api/monitorSla'], MonitorSlaAPI);
|
||||
|
||||
app.use(['/incoming-request', '/api/incoming-request'], IncomingRequestAPI);
|
||||
|
||||
app.use(['/script-runner', '/api/script-runner'], ScriptRunnerAPI);
|
||||
app.use(['/ScriptRunner', '/api/ScriptRunner'], ScriptRunnerAPI);
|
||||
|
||||
app.use(['/customField', '/api/customField'], CustomFieldAPI);
|
||||
|
||||
|
||||
10
Backend/package-lock.json
generated
10
Backend/package-lock.json
generated
@@ -6784,7 +6784,7 @@
|
||||
"node": ">=8.0"
|
||||
}
|
||||
},
|
||||
"../common-server": {
|
||||
"../CommonServer": {
|
||||
"version": "1.0.0",
|
||||
"license": "ISC",
|
||||
"dependencies": {
|
||||
@@ -7540,8 +7540,8 @@
|
||||
"resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz",
|
||||
"integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA=="
|
||||
},
|
||||
"node_modules/common-server": {
|
||||
"resolved": "../common-server",
|
||||
"node_modules/CommonServer": {
|
||||
"resolved": "../CommonServer",
|
||||
"link": true
|
||||
},
|
||||
"node_modules/http-signature": {
|
||||
@@ -10034,8 +10034,8 @@
|
||||
"axios": "^0.26.1"
|
||||
}
|
||||
},
|
||||
"common-server": {
|
||||
"version": "file:../common-server",
|
||||
"CommonServer": {
|
||||
"version": "file:../CommonServer",
|
||||
"requires": {
|
||||
"@elastic/elasticsearch": "^8.1.0",
|
||||
"@types/cors": "^2.8.12",
|
||||
|
||||
@@ -175,7 +175,7 @@ describe('Status API', function () {
|
||||
it('should not add status page if the page name is missing', function (done: $TSFixMe) {
|
||||
const authorization = `Basic ${token}`;
|
||||
request
|
||||
.post(`/status-page/${projectId}`)
|
||||
.post(`/StatusPage/${projectId}`)
|
||||
.set('Authorization', authorization)
|
||||
.send({
|
||||
links: [],
|
||||
@@ -194,7 +194,7 @@ describe('Status API', function () {
|
||||
it('should add status page', function (done: $TSFixMe) {
|
||||
const authorization = `Basic ${token}`;
|
||||
request
|
||||
.post(`/status-page/${projectId}`)
|
||||
.post(`/StatusPage/${projectId}`)
|
||||
.set('Authorization', authorization)
|
||||
.send({
|
||||
name: 'Status Page',
|
||||
@@ -229,7 +229,7 @@ describe('Status API', function () {
|
||||
it('should add private status page', function (done: $TSFixMe) {
|
||||
const authorization = `Basic ${token}`;
|
||||
request
|
||||
.post(`/status-page/${projectId}`)
|
||||
.post(`/StatusPage/${projectId}`)
|
||||
.set('Authorization', authorization)
|
||||
.send({
|
||||
name: 'Private Status Page',
|
||||
@@ -267,7 +267,7 @@ describe('Status API', function () {
|
||||
it('should get private status page for authorized user', function (done: $TSFixMe) {
|
||||
const authorization = `Basic ${token}`;
|
||||
request
|
||||
.get(`/status-page/${privateStatusPageId}`)
|
||||
.get(`/StatusPage/${privateStatusPageId}`)
|
||||
.set('Authorization', authorization)
|
||||
.end(function (err: $TSFixMe, res: $TSFixMe) {
|
||||
if (err) throw err;
|
||||
@@ -280,7 +280,7 @@ describe('Status API', function () {
|
||||
it('should get valid private status page rss for authorized user', function (done: $TSFixMe) {
|
||||
const authorization = `Basic ${token}`;
|
||||
request
|
||||
.get(`/status-page/${privateStatusPageId}/rss`)
|
||||
.get(`/StatusPage/${privateStatusPageId}/rss`)
|
||||
.set('Authorization', authorization)
|
||||
.end(function (err: $TSFixMe, res: $TSFixMe) {
|
||||
if (err) throw err;
|
||||
@@ -291,7 +291,7 @@ describe('Status API', function () {
|
||||
|
||||
it('should not get private status page for unauthorized user', function (done: $TSFixMe) {
|
||||
request
|
||||
.get(`/status-page/${privateStatusPageId}`)
|
||||
.get(`/StatusPage/${privateStatusPageId}`)
|
||||
.end(function (err: $TSFixMe, res: $TSFixMe) {
|
||||
if (err) throw err;
|
||||
expect(res).to.have.status(401);
|
||||
@@ -302,7 +302,7 @@ describe('Status API', function () {
|
||||
it('should not update status page settings when domain is not string', function (done: $TSFixMe) {
|
||||
const authorization = `Basic ${token}`;
|
||||
request
|
||||
.put(`/status-page/${projectId}/${statusPageId}/domain`)
|
||||
.put(`/StatusPage/${projectId}/${statusPageId}/domain`)
|
||||
.set('Authorization', authorization)
|
||||
.send({
|
||||
domain: 5,
|
||||
@@ -317,7 +317,7 @@ describe('Status API', function () {
|
||||
it('should not update status page settings when domain is not valid', function (done: $TSFixMe) {
|
||||
const authorization = `Basic ${token}`;
|
||||
request
|
||||
.put(`/status-page/${projectId}/${statusPageId}/domain`)
|
||||
.put(`/StatusPage/${projectId}/${statusPageId}/domain`)
|
||||
.set('Authorization', authorization)
|
||||
.send({
|
||||
domain: 'wwwtest',
|
||||
@@ -332,7 +332,7 @@ describe('Status API', function () {
|
||||
it('should update status page settings', function (done: $TSFixMe) {
|
||||
const authorization = `Basic ${token}`;
|
||||
request
|
||||
.put(`/status-page/${projectId}`)
|
||||
.put(`/StatusPage/${projectId}`)
|
||||
.set('Authorization', authorization)
|
||||
.send({
|
||||
_id: statusPageId,
|
||||
@@ -366,7 +366,7 @@ describe('Status API', function () {
|
||||
it('should return monitor category with monitors in status page data', function (done: $TSFixMe) {
|
||||
const authorization = `Basic ${token}`;
|
||||
request
|
||||
.get(`/status-page/${statusPageId}`)
|
||||
.get(`/StatusPage/${statusPageId}`)
|
||||
.set('Authorization', authorization)
|
||||
.send()
|
||||
.end(function (err: $TSFixMe, res: $TSFixMe) {
|
||||
@@ -390,7 +390,7 @@ describe('Status API', function () {
|
||||
it('should get list of scheduled events', function (done: $TSFixMe) {
|
||||
const authorization = `Basic ${token}`;
|
||||
request
|
||||
.get(`/status-page/${projectId}/${statusPageId}/events`)
|
||||
.get(`/StatusPage/${projectId}/${statusPageId}/events`)
|
||||
.set('Authorization', authorization)
|
||||
.send()
|
||||
.end(function (err: $TSFixMe, res: $TSFixMe) {
|
||||
@@ -410,7 +410,7 @@ describe('Status API', function () {
|
||||
const authorization = `Basic ${token}`;
|
||||
request
|
||||
.get(
|
||||
`/status-page/${projectId}/${monitorId}/individualevents?date=${today}`
|
||||
`/StatusPage/${projectId}/${monitorId}/individualevents?date=${today}`
|
||||
)
|
||||
.set('Authorization', authorization)
|
||||
.send()
|
||||
@@ -439,7 +439,7 @@ describe('Status API', function () {
|
||||
})
|
||||
.then(() => {
|
||||
request
|
||||
.post(`/status-page/${projectId}/${monitorId}/monitorLogs`)
|
||||
.post(`/StatusPage/${projectId}/${monitorId}/monitorLogs`)
|
||||
.set('Authorization', authorization)
|
||||
.send({
|
||||
responseTime: true,
|
||||
@@ -459,7 +459,7 @@ describe('Status API', function () {
|
||||
const authorization = `Basic ${token}`;
|
||||
const data = { domain: 'oneuptimeapp.com' };
|
||||
request
|
||||
.put(`/status-page/${projectId}/${statusPageId}/domain`)
|
||||
.put(`/StatusPage/${projectId}/${statusPageId}/domain`)
|
||||
.set('Authorization', authorization)
|
||||
.send(data)
|
||||
.end(function (err: $TSFixMe, res: $TSFixMe) {
|
||||
@@ -473,7 +473,7 @@ describe('Status API', function () {
|
||||
const authorization = `Basic ${token}`;
|
||||
const data = { domain: 'status.oneuptimeapp.com' };
|
||||
request
|
||||
.put(`/status-page/${projectId}/${statusPageId}/domain`)
|
||||
.put(`/StatusPage/${projectId}/${statusPageId}/domain`)
|
||||
.set('Authorization', authorization)
|
||||
.send(data)
|
||||
.end(function (err: $TSFixMe, res: $TSFixMe) {
|
||||
@@ -512,7 +512,7 @@ describe('Status API', function () {
|
||||
const authorization = `Basic ${token}`;
|
||||
const data = { domain: 'status.x.com' };
|
||||
request
|
||||
.put(`/status-page/${projectId}/${statusPageId}/domain`)
|
||||
.put(`/StatusPage/${projectId}/${statusPageId}/domain`)
|
||||
.set('Authorization', authorization)
|
||||
.send(data)
|
||||
.end(function (err: $TSFixMe, res: $TSFixMe) {
|
||||
@@ -525,7 +525,7 @@ describe('Status API', function () {
|
||||
{ verified: true }
|
||||
).then(function () {
|
||||
request
|
||||
.get(`/status-page/null?url=${domain}`)
|
||||
.get(`/StatusPage/null?url=${domain}`)
|
||||
.send()
|
||||
.end(function (err: $TSFixMe, res: $TSFixMe) {
|
||||
if (err) throw err;
|
||||
@@ -541,7 +541,7 @@ describe('Status API', function () {
|
||||
const authorization = `Basic ${token}`;
|
||||
const data = { domain: 'status.y.com' };
|
||||
request
|
||||
.put(`/status-page/${projectId}/${statusPageId}/domain`)
|
||||
.put(`/StatusPage/${projectId}/${statusPageId}/domain`)
|
||||
.set('Authorization', authorization)
|
||||
.send(data)
|
||||
.end(function (err: $TSFixMe, res: $TSFixMe) {
|
||||
@@ -549,7 +549,7 @@ describe('Status API', function () {
|
||||
expect(res).to.have.status(200);
|
||||
const domain = 'status.y.com';
|
||||
request
|
||||
.get(`/status-page/null?url=${domain}`)
|
||||
.get(`/StatusPage/null?url=${domain}`)
|
||||
.send()
|
||||
.end(function (err: $TSFixMe, res: $TSFixMe) {
|
||||
if (err) throw err;
|
||||
@@ -623,7 +623,7 @@ describe('Status API', function () {
|
||||
const authorization = `Basic ${token}`;
|
||||
const data = { domain: 'status.oneuptime.hackerbay' };
|
||||
request
|
||||
.put(`/status-page/${projectId}/${statusPageId}/domain`)
|
||||
.put(`/StatusPage/${projectId}/${statusPageId}/domain`)
|
||||
.set('Authorization', authorization)
|
||||
.send(data)
|
||||
.end(function (err: $TSFixMe, res: $TSFixMe) {
|
||||
@@ -645,7 +645,7 @@ describe('Status API', function () {
|
||||
],
|
||||
};
|
||||
request
|
||||
.put(`/status-page/${projectId}/${statusPageId}/domain`)
|
||||
.put(`/StatusPage/${projectId}/${statusPageId}/domain`)
|
||||
.set('Authorization', authorization)
|
||||
.send(data)
|
||||
.end(function (err: $TSFixMe, res: $TSFixMe) {
|
||||
@@ -667,7 +667,7 @@ describe('Status API', function () {
|
||||
],
|
||||
};
|
||||
request
|
||||
.put(`/status-page/${projectId}/${statusPageId}/domain`)
|
||||
.put(`/StatusPage/${projectId}/${statusPageId}/domain`)
|
||||
.set('Authorization', authorization)
|
||||
.send(data)
|
||||
.end(function (err: $TSFixMe, res: $TSFixMe) {
|
||||
@@ -681,7 +681,7 @@ describe('Status API', function () {
|
||||
const authorization = `Basic ${token}`;
|
||||
const data = { domain: 'oneuptime.com' };
|
||||
request
|
||||
.put(`/status-page/${projectId}/${statusPageId}/domain`)
|
||||
.put(`/StatusPage/${projectId}/${statusPageId}/domain`)
|
||||
.set('Authorization', authorization)
|
||||
.send(data)
|
||||
.end(function (err: $TSFixMe, res: $TSFixMe) {
|
||||
@@ -695,7 +695,7 @@ describe('Status API', function () {
|
||||
const authorization = `Basic ${token}`;
|
||||
const data = { domain: 'status.oneuptimeapp.com' };
|
||||
request
|
||||
.put(`/status-page/${projectId}/${statusPageId}/domain`)
|
||||
.put(`/StatusPage/${projectId}/${statusPageId}/domain`)
|
||||
.set('Authorization', authorization)
|
||||
.send(data)
|
||||
.end(function (err: $TSFixMe, res: $TSFixMe) {
|
||||
@@ -719,7 +719,7 @@ describe('Status API', function () {
|
||||
if (err) throw err;
|
||||
const newProjectId = res.body._id;
|
||||
request
|
||||
.post(`/status-page/${newProjectId}`)
|
||||
.post(`/StatusPage/${newProjectId}`)
|
||||
.set('Authorization', authorization)
|
||||
.send({
|
||||
name: 'Status Page name',
|
||||
@@ -735,7 +735,7 @@ describe('Status API', function () {
|
||||
const newStatusPageId = res.body._id;
|
||||
request
|
||||
.put(
|
||||
`/status-page/${newProjectId}/${newStatusPageId}/domain`
|
||||
`/StatusPage/${newProjectId}/${newStatusPageId}/domain`
|
||||
)
|
||||
.set('Authorization', authorization)
|
||||
.send(data)
|
||||
@@ -765,7 +765,7 @@ describe('Status API', function () {
|
||||
if (err) throw err;
|
||||
const newProjectId = res.body._id;
|
||||
request
|
||||
.post(`/status-page/${newProjectId}`)
|
||||
.post(`/StatusPage/${newProjectId}`)
|
||||
.set('Authorization', authorization)
|
||||
.send({
|
||||
name: 'Status Page name',
|
||||
@@ -781,7 +781,7 @@ describe('Status API', function () {
|
||||
const newStatusPageId = res.body._id;
|
||||
request
|
||||
.put(
|
||||
`/status-page/${newProjectId}/${newStatusPageId}/domain`
|
||||
`/StatusPage/${newProjectId}/${newStatusPageId}/domain`
|
||||
)
|
||||
.set('Authorization', authorization)
|
||||
.send(data)
|
||||
@@ -810,7 +810,7 @@ describe('Status API', function () {
|
||||
|
||||
const { _id: domainId } = statusPage.domains[0];
|
||||
request
|
||||
.put(`/status-page/${projectId}/${statusPageId}/${domainId}`)
|
||||
.put(`/StatusPage/${projectId}/${statusPageId}/${domainId}`)
|
||||
.send(data)
|
||||
.set('Authorization', authorization)
|
||||
.end((err: $TSFixMe, res: $TSFixMe) => {
|
||||
@@ -830,7 +830,7 @@ describe('Status API', function () {
|
||||
|
||||
const { _id: domainId } = statusPage.domains[0];
|
||||
request
|
||||
.put(`/status-page/${projectId}/${statusPageId}/${domainId}`)
|
||||
.put(`/StatusPage/${projectId}/${statusPageId}/${domainId}`)
|
||||
.send(data)
|
||||
.set('Authorization', authorization)
|
||||
.end((err: $TSFixMe, res: $TSFixMe) => {
|
||||
@@ -850,7 +850,7 @@ describe('Status API', function () {
|
||||
|
||||
const { _id: domainId } = statusPage.domains[0];
|
||||
request
|
||||
.put(`/status-page/${projectId}/${statusPageId}/${domainId}`)
|
||||
.put(`/StatusPage/${projectId}/${statusPageId}/${domainId}`)
|
||||
.send(data)
|
||||
.set('Authorization', authorization)
|
||||
.end((err: $TSFixMe, res: $TSFixMe) => {
|
||||
@@ -872,7 +872,7 @@ describe('Status API', function () {
|
||||
// provide a random object id
|
||||
const statusPageId = '5ea70eb4be9f4b177a1719ad';
|
||||
request
|
||||
.put(`/status-page/${projectId}/${statusPageId}/${domainId}`)
|
||||
.put(`/StatusPage/${projectId}/${statusPageId}/${domainId}`)
|
||||
.send(data)
|
||||
.set('Authorization', authorization)
|
||||
.end((err: $TSFixMe, res: $TSFixMe) => {
|
||||
@@ -890,7 +890,7 @@ describe('Status API', function () {
|
||||
|
||||
const { _id: domainId } = statusPage.domains[0];
|
||||
request
|
||||
.delete(`/status-page/${projectId}/${statusPageId}/${domainId}`)
|
||||
.delete(`/StatusPage/${projectId}/${statusPageId}/${domainId}`)
|
||||
.set('Authorization', authorization)
|
||||
.end((err: $TSFixMe, res: $TSFixMe) => {
|
||||
if (err) throw err;
|
||||
@@ -909,7 +909,7 @@ describe('Status API', function () {
|
||||
// create random status page id
|
||||
const statusPageId = '5ea70eb4be9f4b177a1719ad';
|
||||
request
|
||||
.delete(`/status-page/${projectId}/${statusPageId}/${domainId}`)
|
||||
.delete(`/StatusPage/${projectId}/${statusPageId}/${domainId}`)
|
||||
.set('Authorization', authorization)
|
||||
.end((err: $TSFixMe, res: $TSFixMe) => {
|
||||
if (err) throw err;
|
||||
@@ -998,7 +998,7 @@ describe('StatusPage API with Sub-Projects', function () {
|
||||
anotherUserToken = res.body.tokens.jwtAccessToken;
|
||||
const authorization = `Basic ${anotherUserToken}`;
|
||||
request
|
||||
.post(`/status-page/${projectId}`)
|
||||
.post(`/StatusPage/${projectId}`)
|
||||
.set('Authorization', authorization)
|
||||
.send({
|
||||
links: [],
|
||||
@@ -1035,7 +1035,7 @@ describe('StatusPage API with Sub-Projects', function () {
|
||||
it('should not get private status page for authorized user that is not in project', function (done: $TSFixMe) {
|
||||
const authorization = `Basic ${newUserToken}`;
|
||||
request
|
||||
.get(`/status-page/${privateStatusPageId}`)
|
||||
.get(`/StatusPage/${privateStatusPageId}`)
|
||||
.set('Authorization', authorization)
|
||||
.end(function (err: $TSFixMe, res: $TSFixMe) {
|
||||
if (err) throw err;
|
||||
@@ -1047,7 +1047,7 @@ describe('StatusPage API with Sub-Projects', function () {
|
||||
it('should not create a statusPage for user that is not `admin` in sub-project.', function (done: $TSFixMe) {
|
||||
const authorization = `Basic ${newUserToken}`;
|
||||
request
|
||||
.post(`/status-page/${subProjectId}`)
|
||||
.post(`/StatusPage/${subProjectId}`)
|
||||
.set('Authorization', authorization)
|
||||
.send({
|
||||
links: [],
|
||||
@@ -1082,7 +1082,7 @@ describe('StatusPage API with Sub-Projects', function () {
|
||||
it('should create a statusPage in parent project by valid admin.', function (done: $TSFixMe) {
|
||||
const authorization = `Basic ${token}`;
|
||||
request
|
||||
.post(`/status-page/${projectId}`)
|
||||
.post(`/StatusPage/${projectId}`)
|
||||
.set('Authorization', authorization)
|
||||
.send({
|
||||
links: [],
|
||||
@@ -1118,7 +1118,7 @@ describe('StatusPage API with Sub-Projects', function () {
|
||||
it('should create a statusPage in sub-project by valid admin.', function (done: $TSFixMe) {
|
||||
const authorization = `Basic ${token}`;
|
||||
request
|
||||
.post(`/status-page/${subProjectId}`)
|
||||
.post(`/StatusPage/${subProjectId}`)
|
||||
.set('Authorization', authorization)
|
||||
.send({
|
||||
links: [],
|
||||
@@ -1153,7 +1153,7 @@ describe('StatusPage API with Sub-Projects', function () {
|
||||
it("should get only sub-project's statuspages for valid sub-project user", function (done: $TSFixMe) {
|
||||
const authorization = `Basic ${newUserToken}`;
|
||||
request
|
||||
.get(`/status-page/${subProjectId}/statuspage`)
|
||||
.get(`/StatusPage/${subProjectId}/statuspage`)
|
||||
.set('Authorization', authorization)
|
||||
.end(function (err: $TSFixMe, res: $TSFixMe) {
|
||||
if (err) throw err;
|
||||
@@ -1169,7 +1169,7 @@ describe('StatusPage API with Sub-Projects', function () {
|
||||
it('should get both project and sub-project statuspage for valid parent project user.', function (done: $TSFixMe) {
|
||||
const authorization = `Basic ${token}`;
|
||||
request
|
||||
.get(`/status-page/${projectId}/statuspages`)
|
||||
.get(`/StatusPage/${projectId}/statuspages`)
|
||||
.set('Authorization', authorization)
|
||||
.end(function (err: $TSFixMe, res: $TSFixMe) {
|
||||
if (err) throw err;
|
||||
@@ -1195,7 +1195,7 @@ describe('StatusPage API with Sub-Projects', function () {
|
||||
})
|
||||
.end(function () {
|
||||
request
|
||||
.get(`/status-page/${subProjectStatusPageId}`)
|
||||
.get(`/StatusPage/${subProjectStatusPageId}`)
|
||||
.set('Authorization', authorization)
|
||||
.end(function (err: $TSFixMe, res: $TSFixMe) {
|
||||
if (err) throw err;
|
||||
@@ -1210,7 +1210,7 @@ describe('StatusPage API with Sub-Projects', function () {
|
||||
it('should not delete a status page for user that is not `admin` in sub-project.', function (done: $TSFixMe) {
|
||||
const authorization = `Basic ${newUserToken}`;
|
||||
request
|
||||
.delete(`/status-page/${subProjectId}/${subProjectStatusPageId}`)
|
||||
.delete(`/StatusPage/${subProjectId}/${subProjectStatusPageId}`)
|
||||
.set('Authorization', authorization)
|
||||
.end(function (err: $TSFixMe, res: $TSFixMe) {
|
||||
if (err) throw err;
|
||||
@@ -1225,7 +1225,7 @@ describe('StatusPage API with Sub-Projects', function () {
|
||||
it('should delete sub-project status page', function (done: $TSFixMe) {
|
||||
const authorization = `Basic ${token}`;
|
||||
request
|
||||
.delete(`/status-page/${subProjectId}/${subProjectStatusPageId}`)
|
||||
.delete(`/StatusPage/${subProjectId}/${subProjectStatusPageId}`)
|
||||
.set('Authorization', authorization)
|
||||
.end(function (err: $TSFixMe, res: $TSFixMe) {
|
||||
if (err) throw err;
|
||||
@@ -1237,7 +1237,7 @@ describe('StatusPage API with Sub-Projects', function () {
|
||||
it('should delete parent project status page', function (done: $TSFixMe) {
|
||||
const authorization = `Basic ${token}`;
|
||||
request
|
||||
.delete(`/status-page/${projectId}/${statusPageId}`)
|
||||
.delete(`/StatusPage/${projectId}/${statusPageId}`)
|
||||
.set('Authorization', authorization)
|
||||
.end(function (err: $TSFixMe, res: $TSFixMe) {
|
||||
if (err) throw err;
|
||||
|
||||
@@ -119,7 +119,7 @@ describe('Subscriber API', function () {
|
||||
);
|
||||
request
|
||||
.post(
|
||||
`/status-page/${projectId}`
|
||||
`/StatusPage/${projectId}`
|
||||
)
|
||||
.set(
|
||||
'Authorization',
|
||||
|
||||
@@ -7,17 +7,17 @@
|
||||
#UPDATE: Any update to this file should also be accompanied with ../test.yaml
|
||||
#########
|
||||
|
||||
########-INIT-SCRIPT-##########
|
||||
########-InitScript-##########
|
||||
apiVersion: batch/v1
|
||||
kind: Job
|
||||
metadata:
|
||||
name: init-script
|
||||
name: InitScript
|
||||
spec:
|
||||
template:
|
||||
spec:
|
||||
containers:
|
||||
- name: init-script
|
||||
image: localhost:32000/init-script:staging
|
||||
- name: InitScript
|
||||
image: localhost:32000/InitScript:staging
|
||||
imagePullPolicy: Always
|
||||
env:
|
||||
- name: MONGO_URL
|
||||
|
||||
@@ -18,12 +18,12 @@ clean_install dashboard
|
||||
clean_install accounts
|
||||
clean_install backend
|
||||
clean_install home
|
||||
clean_install status-page
|
||||
clean_install api-docs
|
||||
clean_install StatusPage
|
||||
clean_install ApiDocs
|
||||
clean_install probe
|
||||
clean_install admin-dashboard
|
||||
clean_install init-script
|
||||
clean_install AdminDashboard
|
||||
clean_install InitScript
|
||||
clean_install licensing
|
||||
clean_install helm-chart
|
||||
clean_install js-sdk
|
||||
clean_install HelmChart
|
||||
clean_install JavaScriptSDK
|
||||
clean_install .
|
||||
@@ -34,21 +34,21 @@ build dashboard $1
|
||||
build accounts $1
|
||||
build backend $1
|
||||
build home $1
|
||||
build status-page $1
|
||||
build api-docs $1
|
||||
build StatusPage $1
|
||||
build ApiDocs $1
|
||||
build probe $1
|
||||
build admin-dashboard $1
|
||||
build init-script $1
|
||||
build AdminDashboard $1
|
||||
build InitScript $1
|
||||
build slack $1
|
||||
build licensing $1
|
||||
build helm-chart $1
|
||||
build lighthouse-runner $1
|
||||
build script-runner $1
|
||||
build container-scanner $1
|
||||
build application-scanner $1
|
||||
build HelmChart $1
|
||||
build LighthouseRunner $1
|
||||
build ScriptRunner $1
|
||||
build ContainerScanner $1
|
||||
build ApplicationScanner $1
|
||||
build data-ingestor $1
|
||||
build realtime $1
|
||||
build haraka $1
|
||||
build http-test-server $1
|
||||
build HttpTestServer $1
|
||||
|
||||
cd $DIR
|
||||
@@ -2,7 +2,7 @@ sudo sed -i '/accounts/c\' /etc/hosts
|
||||
ACCOUNTS_IP=`sudo k describe svc oneuptime-accounts | grep Endpoints | cut -d ":" -f 2`
|
||||
echo $ACCOUNTS_IP' accounts.app.local' | sudo tee -a /etc/hosts
|
||||
|
||||
sudo sed -i '/admin-dashboard/c\' /etc/hosts
|
||||
sudo sed -i '/AdminDashboard/c\' /etc/hosts
|
||||
ADMIN_DASHBOARD_IP=`sudo k describe svc oneuptime-admin | grep Endpoints | cut -d ":" -f 2`
|
||||
echo $ADMIN_DASHBOARD_IP' admin.app.local' | sudo tee -a /etc/hosts
|
||||
|
||||
@@ -18,13 +18,13 @@ sudo sed -i '/home/c\' /etc/hosts
|
||||
HOME_IP=`sudo k describe svc oneuptime-home | grep Endpoints | cut -d ":" -f 2`
|
||||
echo $HOME_IP' home.app.local' | sudo tee -a /etc/hosts
|
||||
|
||||
sudo sed -i '/status-page/c\' /etc/hosts
|
||||
sudo sed -i '/StatusPage/c\' /etc/hosts
|
||||
STATUSPAGE_IP=`sudo k describe svc oneuptime-status | grep Endpoints | cut -d ":" -f 2`
|
||||
echo $STATUSPAGE_IP' status.app.local' | sudo tee -a /etc/hosts
|
||||
|
||||
sudo sed -i '/api-docs/c\' /etc/hosts
|
||||
APIDOCS_IP=`sudo k describe svc oneuptime-api-docs | grep Endpoints | cut -d ":" -f 2`
|
||||
echo $APIDOCS_IP' api-docs.app.local' | sudo tee -a /etc/hosts
|
||||
sudo sed -i '/ApiDocs/c\' /etc/hosts
|
||||
APIDOCS_IP=`sudo k describe svc oneuptime-ApiDocs | grep Endpoints | cut -d ":" -f 2`
|
||||
echo $APIDOCS_IP' ApiDocs.app.local' | sudo tee -a /etc/hosts
|
||||
|
||||
sudo sed -i '/licensing/c\' /etc/hosts
|
||||
LICENSING_IP=`sudo k describe svc oneuptime-licensing | grep Endpoints | cut -d ":" -f 2`
|
||||
|
||||
@@ -25,12 +25,12 @@ function check {
|
||||
rollback accounts
|
||||
rollback backend
|
||||
rollback home
|
||||
rollback status-page
|
||||
rollback api-docs
|
||||
rollback StatusPage
|
||||
rollback ApiDocs
|
||||
rollback probe
|
||||
rollback admin-dashboard
|
||||
rollback AdminDashboard
|
||||
rollback licensing
|
||||
rollback helm-chart
|
||||
rollback HelmChart
|
||||
rollback slack
|
||||
exit 1
|
||||
else
|
||||
@@ -42,12 +42,12 @@ check dashboard
|
||||
check accounts
|
||||
check backend
|
||||
check home
|
||||
check status-page
|
||||
check api-docs
|
||||
check StatusPage
|
||||
check ApiDocs
|
||||
check probe-1
|
||||
check probe-2
|
||||
check admin-dashboard
|
||||
check AdminDashboard
|
||||
check licensing
|
||||
check init-script
|
||||
check InitScript
|
||||
check slack
|
||||
check helm-chart
|
||||
check HelmChart
|
||||
@@ -10,10 +10,10 @@ echo "RUNNING COMMAND: ./ci/cleanup.sh"
|
||||
./ci/scripts/cleanup.sh
|
||||
|
||||
# Setup Machine.
|
||||
echo "RUNNING COMMAND: chmod +x ./helm-chart/public/install.sh"
|
||||
chmod +x ./helm-chart/public/install.sh
|
||||
echo "RUNNING COMMAND: ./helm-chart/public/install.sh"
|
||||
./helm-chart/public/install.sh ci-install $1
|
||||
echo "RUNNING COMMAND: chmod +x ./HelmChart/public/install.sh"
|
||||
chmod +x ./HelmChart/public/install.sh
|
||||
echo "RUNNING COMMAND: ./HelmChart/public/install.sh"
|
||||
./HelmChart/public/install.sh ci-install $1
|
||||
|
||||
# For dpkg interruption
|
||||
sudo dpkg --configure -a
|
||||
@@ -31,12 +31,12 @@ function check {
|
||||
rollback accounts
|
||||
rollback backend
|
||||
rollback home
|
||||
rollback status-page
|
||||
rollback api-docs
|
||||
rollback StatusPage
|
||||
rollback ApiDocs
|
||||
rollback probe
|
||||
rollback admin-dashboard
|
||||
rollback AdminDashboard
|
||||
rollback licensing
|
||||
rollback helm-chart
|
||||
rollback HelmChart
|
||||
rollback slack
|
||||
exit 1
|
||||
else
|
||||
@@ -48,11 +48,11 @@ check dashboard
|
||||
check accounts
|
||||
check backend
|
||||
check home
|
||||
check status-page
|
||||
check api-docs
|
||||
check StatusPage
|
||||
check ApiDocs
|
||||
check probe-1
|
||||
check probe-2
|
||||
check admin-dashboard
|
||||
check AdminDashboard
|
||||
check licensing
|
||||
check slack
|
||||
check helm-chart
|
||||
check HelmChart
|
||||
@@ -15,21 +15,21 @@ version dashboard
|
||||
version accounts
|
||||
version backend
|
||||
version home
|
||||
version status-page
|
||||
version api-docs
|
||||
version StatusPage
|
||||
version ApiDocs
|
||||
version probe
|
||||
version admin-dashboard
|
||||
version init-script
|
||||
version AdminDashboard
|
||||
version InitScript
|
||||
version licensing
|
||||
version helm-chart
|
||||
version js-sdk
|
||||
version HelmChart
|
||||
version JavaScriptSDK
|
||||
version oneuptime-le-store
|
||||
version oneuptime-acme-http-01
|
||||
version lighthouse-runner
|
||||
version script-runner
|
||||
version container-scanner
|
||||
version application-scanner
|
||||
version LighthouseRunner
|
||||
version ScriptRunner
|
||||
version ContainerScanner
|
||||
version ApplicationScanner
|
||||
version data-ingestor
|
||||
version realtime
|
||||
version probe-api
|
||||
version ProbeAPI
|
||||
version .
|
||||
@@ -1,23 +1,23 @@
|
||||
##ADMINDASHBOARD
|
||||
audit_admin-dashboard:
|
||||
audit_AdminDashboard:
|
||||
stage: BuildAndTest
|
||||
allow_failure: true
|
||||
script:
|
||||
- chmod +x ./ci/scripts/checkhash.sh
|
||||
- export next_stage=`./ci/scripts/checkhash.sh audit_admin-dashboard admin-dashboard`
|
||||
- export next_stage=`./ci/scripts/checkhash.sh audit_AdminDashboard AdminDashboard`
|
||||
- if [[ $next_stage == *"skip"* ]]; then exit ${CI_JOB_SKIP_EXIT_CODE:-0}; fi
|
||||
- sudo apt-get update
|
||||
- sudo apt-get install -y curl gcc
|
||||
- sudo apt-get install -y build-essential
|
||||
- curl -sL https://deb.nodesource.com/setup_15.x | sudo -E bash -
|
||||
- sudo apt-get install -y nodejs
|
||||
- cd admin-dashboard
|
||||
- cd AdminDashboard
|
||||
- npm install
|
||||
- npm run audit
|
||||
- npm run dep-check
|
||||
- cd ..
|
||||
- chmod +x ./ci/scripts/storehash.sh
|
||||
- ./ci/scripts/storehash.sh audit_admin-dashboard admin-dashboard
|
||||
- ./ci/scripts/storehash.sh audit_AdminDashboard AdminDashboard
|
||||
- chmod +x ./ci/scripts/cleanup.sh
|
||||
- ./ci/scripts/cleanup.sh
|
||||
only:
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
production_rollback_admin-dashboard:
|
||||
production_rollback_AdminDashboard:
|
||||
stage: RollbackIfTestsFail
|
||||
script:
|
||||
- chmod +x ./ci/scripts/deployment-setup.sh
|
||||
- bash ./ci/scripts/deployment-setup.sh
|
||||
- chmod +x ./ci/scripts/deployment-production-setup.sh
|
||||
- bash ./ci/scripts/deployment-production-setup.sh
|
||||
# Rollback admin-dashboard
|
||||
# Rollback AdminDashboard
|
||||
- chmod +x ./ci/scripts/job-status.sh
|
||||
- export smoke_test_production_status=`./ci/scripts/job-status.sh smoke_test_production`
|
||||
- if [[ $smoke_test_production_status == \"success\" ]]; then exit 0; fi
|
||||
@@ -16,14 +16,14 @@ production_rollback_admin-dashboard:
|
||||
refs:
|
||||
- release
|
||||
|
||||
staging_rollback_admin-dashboard:
|
||||
staging_rollback_AdminDashboard:
|
||||
stage: RollbackIfTestsFail
|
||||
script:
|
||||
- chmod +x ./ci/scripts/deployment-setup.sh
|
||||
- bash ./ci/scripts/deployment-setup.sh
|
||||
- chmod +x ./ci/scripts/deployment-staging-setup.sh
|
||||
- bash ./ci/scripts/deployment-staging-setup.sh
|
||||
# Rollback admin-dashboard
|
||||
# Rollback AdminDashboard
|
||||
- chmod +x ./ci/scripts/job-status.sh
|
||||
- export smoke_test_staging_status=`./ci/scripts/job-status.sh smoke_test_staging`
|
||||
- if [[ $smoke_test_staging_status == \"success\" ]]; then exit 0; fi
|
||||
|
||||
@@ -1,23 +1,23 @@
|
||||
## ACCOUNTS
|
||||
audit_api-docs:
|
||||
audit_ApiDocs:
|
||||
stage: BuildAndTest
|
||||
allow_failure: true
|
||||
script:
|
||||
- chmod +x ./ci/scripts/checkhash.sh
|
||||
- export next_stage=`./ci/scripts/checkhash.sh audit_api-docs api-docs`
|
||||
- export next_stage=`./ci/scripts/checkhash.sh audit_ApiDocs ApiDocs`
|
||||
- if [[ $next_stage == *"skip"* ]]; then exit ${CI_JOB_SKIP_EXIT_CODE:-0}; fi
|
||||
- sudo apt-get update
|
||||
- sudo apt-get install -y curl gcc
|
||||
- sudo apt-get install -y build-essential
|
||||
- curl -sL https://deb.nodesource.com/setup_15.x | sudo -E bash -
|
||||
- sudo apt-get install -y nodejs
|
||||
- cd api-docs
|
||||
- cd ApiDocs
|
||||
- npm install
|
||||
- npm run audit
|
||||
- npm run dep-check
|
||||
- cd ..
|
||||
- chmod +x ./ci/scripts/storehash.sh
|
||||
- ./ci/scripts/storehash.sh audit_api-docs api-docs
|
||||
- ./ci/scripts/storehash.sh audit_ApiDocs ApiDocs
|
||||
- chmod +x ./ci/scripts/cleanup.sh
|
||||
- ./ci/scripts/cleanup.sh
|
||||
only:
|
||||
|
||||
@@ -1,15 +1,15 @@
|
||||
staging_rollback_api-docs:
|
||||
staging_rollback_ApiDocs:
|
||||
stage: RollbackIfTestsFail
|
||||
script:
|
||||
- chmod +x ./ci/scripts/deployment-setup.sh
|
||||
- bash ./ci/scripts/deployment-setup.sh
|
||||
- chmod +x ./ci/scripts/deployment-staging-setup.sh
|
||||
- bash ./ci/scripts/deployment-staging-setup.sh
|
||||
# Rollback api-docs
|
||||
# Rollback ApiDocs
|
||||
- chmod +x ./ci/scripts/job-status.sh
|
||||
- export smoke_test_staging_status=`./ci/scripts/job-status.sh smoke_test_staging`
|
||||
- if [[ $smoke_test_staging_status == \"success\" ]]; then exit 0; fi
|
||||
- sudo kubectl rollout undo deployment/fi-api-docs
|
||||
- sudo kubectl rollout undo deployment/fi-ApiDocs
|
||||
- chmod +x ./ci/scripts/cleanup.sh
|
||||
- ./ci/scripts/cleanup.sh
|
||||
only:
|
||||
@@ -18,18 +18,18 @@ staging_rollback_api-docs:
|
||||
except:
|
||||
- $STAGING_SMOKE_TEST_STATUS
|
||||
|
||||
production_rollback_api-docs:
|
||||
production_rollback_ApiDocs:
|
||||
stage: RollbackIfTestsFail
|
||||
script:
|
||||
- chmod +x ./ci/scripts/deployment-setup.sh
|
||||
- bash ./ci/scripts/deployment-setup.sh
|
||||
- chmod +x ./ci/scripts/deployment-production-setup.sh
|
||||
- bash ./ci/scripts/deployment-production-setup.sh
|
||||
# Rollback api-docs
|
||||
# Rollback ApiDocs
|
||||
- chmod +x ./ci/scripts/job-status.sh
|
||||
- export smoke_test_production_status=`./ci/scripts/job-status.sh smoke_test_production`
|
||||
- if [[ $smoke_test_production_status == \"success\" ]]; then exit 0; fi
|
||||
- sudo kubectl rollout undo deployment/fi-api-docs
|
||||
- sudo kubectl rollout undo deployment/fi-ApiDocs
|
||||
- chmod +x ./ci/scripts/cleanup.sh
|
||||
- ./ci/scripts/cleanup.sh
|
||||
only:
|
||||
|
||||
@@ -1,23 +1,23 @@
|
||||
## application-scanner
|
||||
audit_application-scanner:
|
||||
## ApplicationScanner
|
||||
audit_ApplicationScanner:
|
||||
stage: BuildAndTest
|
||||
allow_failure: true
|
||||
script:
|
||||
- chmod +x ./ci/scripts/checkhash.sh
|
||||
- export next_stage=`./ci/scripts/checkhash.sh audit_application-scanner application-scanner`
|
||||
- export next_stage=`./ci/scripts/checkhash.sh audit_ApplicationScanner ApplicationScanner`
|
||||
- if [[ $next_stage == *"skip"* ]]; then exit ${CI_JOB_SKIP_EXIT_CODE:-0}; fi
|
||||
- sudo apt-get update
|
||||
- sudo apt-get install -y curl gcc
|
||||
- sudo apt-get install -y build-essential
|
||||
- curl -sL https://deb.nodesource.com/setup_15.x | sudo -E bash -
|
||||
- sudo apt-get install -y nodejs
|
||||
- cd application-scanner
|
||||
- cd ApplicationScanner
|
||||
- npm install
|
||||
- npm run audit
|
||||
- npm run dep-check
|
||||
- cd ..
|
||||
- chmod +x ./ci/scripts/storehash.sh
|
||||
- ./ci/scripts/storehash.sh audit_application-scanner application-scanner
|
||||
- ./ci/scripts/storehash.sh audit_ApplicationScanner ApplicationScanner
|
||||
- chmod +x ./ci/scripts/cleanup.sh
|
||||
- ./ci/scripts/cleanup.sh
|
||||
only:
|
||||
|
||||
@@ -2,7 +2,7 @@ test_backend:
|
||||
stage: BuildAndTest
|
||||
script:
|
||||
- chmod +x ./ci/scripts/checkhash.sh
|
||||
- export next_stage=`./ci/scripts/checkhash.sh test_backend backend init-script probe http-test-server`
|
||||
- export next_stage=`./ci/scripts/checkhash.sh test_backend backend InitScript probe HttpTestServer`
|
||||
- if [[ $next_stage == *"skip"* ]]; then exit ${CI_JOB_SKIP_EXIT_CODE:-0}; fi
|
||||
- chmod +x ./ci/scripts/docker-install.sh
|
||||
- ./ci/scripts/docker-install.sh
|
||||
@@ -18,13 +18,13 @@ test_backend:
|
||||
- sudo docker run --name redis -p 6379:6379 -d redis:5.0.7 redis-server
|
||||
- sudo docker run --name realtime --env-file ./realtime/.env -e PORT=3300 --net=host -d oneuptime/realtime:latest
|
||||
- sudo docker run --name=samlIdp -p 9876:8080 -p 8443:8443 -e SIMPLESAMLPHP_SP_ENTITY_ID=hackerbay.io -e SIMPLESAMLPHP_SP_ASSERTION_CONSUMER_SERVICE=http://localhost:3002/api/user/sso/callback -e SIMPLESAMLPHP_SP_SINGLE_LOGOUT_SERVICE=http://localhost/simplesaml/module.php/saml/sp/saml2-logout.php/test-sp -v $PWD/saml/users.php:/var/www/simplesamlphp/config/authsources.php -d kristophjunge/test-saml-idp
|
||||
- sudo docker build -t oneuptime/init-script:4.0.$CI_PIPELINE_ID ./init-script
|
||||
- sudo docker run -e NODE_ENV=development -e IS_SAAS_SERVICE=true -e IS_TESTING=true --net=host -d oneuptime/init-script:4.0.$CI_PIPELINE_ID
|
||||
- sudo docker build -t oneuptime/InitScript:4.0.$CI_PIPELINE_ID ./InitScript
|
||||
- sudo docker run -e NODE_ENV=development -e IS_SAAS_SERVICE=true -e IS_TESTING=true --net=host -d oneuptime/InitScript:4.0.$CI_PIPELINE_ID
|
||||
- sudo docker build -t oneuptime/probe:4.0.$CI_PIPELINE_ID ./probe
|
||||
- sudo docker run --name probe-1 --env-file ./probe/.env -e PORT=3024 -e SERVER_URL=http://localhost:3020 -e PROBE_NAME='Probe 1' -e PROBE_KEY=test-key --net=host -d oneuptime/probe:4.0.$CI_PIPELINE_ID
|
||||
- sudo docker run --name probe-2 --env-file ./probe/.env -e PORT=3025 -e SERVER_URL=http://localhost:3020 -e PROBE_NAME='Probe 2' -e PROBE_KEY=test-key --net=host -d oneuptime/probe:4.0.$CI_PIPELINE_ID
|
||||
- sudo docker build -t oneuptime/http-test-server:4.0.$CI_PIPELINE_ID ./http-test-server
|
||||
- sudo docker run -p 3010:3010 -d oneuptime/http-test-server:4.0.$CI_PIPELINE_ID
|
||||
- sudo docker build -t oneuptime/HttpTestServer:4.0.$CI_PIPELINE_ID ./HttpTestServer
|
||||
- sudo docker run -p 3010:3010 -d oneuptime/HttpTestServer:4.0.$CI_PIPELINE_ID
|
||||
- sudo docker ps
|
||||
- curl -sL https://deb.nodesource.com/setup_15.x | sudo -E bash -
|
||||
- sudo apt-get install -y nodejs
|
||||
@@ -33,7 +33,7 @@ test_backend:
|
||||
- ENCRYPTION_KEY=$ENCRYPTION_KEY TEST_EMAIL_SMTP_PORT=$TEST_EMAIL_SMTP_PORT TEST_EMAIL_SMTP_SERVER=$TEST_EMAIL_SMTP_SERVER TEST_EMAIL=$TEST_EMAIL TEST_EMAIL_NAME=$TEST_EMAIL TEST_EMAIL_PASSWORD=$TEST_EMAIL_PASSWORD IS_SAAS_SERVICE=true IS_TESTING=true DOCKER_UNMASKED_USERNAME=$DOCKER_UNMASKED_USERNAME DOCKER_UNMASKED_PASSWORD=$DOCKER_UNMASKED_PASSWORD DOCKER_SECURITY_SCAN_REGISTRY_URL=$DOCKER_SECURITY_SCAN_REGISTRY_URL DOCKER_SECURITY_SCAN_IMAGE_PATH=$DOCKER_SECURITY_SCAN_IMAGE_PATH DOCKER_SECURITY_SCAN_IMAGE_TAGS=$DOCKER_SECURITY_SCAN_IMAGE_TAGS GITHUB_UNMASKED_USERNAME=$GITHUB_UNMASKED_USERNAME GITHUB_UNMASKED_PASSWORD=$GITHUB_UNMASKED_PASSWORD GITHUB_SECURITY_SCAN_REPOSITORY_URL=$GITHUB_SECURITY_SCAN_REPOSITORY_URL npm test
|
||||
- cd ..
|
||||
- chmod +x ./ci/scripts/storehash.sh
|
||||
- ./ci/scripts/storehash.sh test_backend backend init-script probe http-test-server
|
||||
- ./ci/scripts/storehash.sh test_backend backend InitScript probe HttpTestServer
|
||||
- chmod +x ./ci/scripts/cleanup.sh
|
||||
- ./ci/scripts/cleanup.sh
|
||||
artifacts:
|
||||
|
||||
@@ -1,23 +1,23 @@
|
||||
## container-scanner
|
||||
audit_container-scanner:
|
||||
## ContainerScanner
|
||||
audit_ContainerScanner:
|
||||
stage: BuildAndTest
|
||||
allow_failure: true
|
||||
script:
|
||||
- chmod +x ./ci/scripts/checkhash.sh
|
||||
- export next_stage=`./ci/scripts/checkhash.sh audit_container-scanner container-scanner`
|
||||
- export next_stage=`./ci/scripts/checkhash.sh audit_ContainerScanner ContainerScanner`
|
||||
- if [[ $next_stage == *"skip"* ]]; then exit ${CI_JOB_SKIP_EXIT_CODE:-0}; fi
|
||||
- sudo apt-get update
|
||||
- sudo apt-get install -y curl gcc
|
||||
- sudo apt-get install -y build-essential
|
||||
- curl -sL https://deb.nodesource.com/setup_15.x | sudo -E bash -
|
||||
- sudo apt-get install -y nodejs
|
||||
- cd container-scanner
|
||||
- cd ContainerScanner
|
||||
- npm install
|
||||
- npm run audit
|
||||
- npm run dep-check
|
||||
- cd ..
|
||||
- chmod +x ./ci/scripts/storehash.sh
|
||||
- ./ci/scripts/storehash.sh audit_container-scanner container-scanner
|
||||
- ./ci/scripts/storehash.sh audit_ContainerScanner ContainerScanner
|
||||
- chmod +x ./ci/scripts/cleanup.sh
|
||||
- ./ci/scripts/cleanup.sh
|
||||
only:
|
||||
|
||||
@@ -12,7 +12,7 @@ e2e_microk8s_test:
|
||||
- export ADMIN_DASHBOARD_URL=http://localhost/admin
|
||||
- export DASHBOARD_URL=http://localhost/dashboard
|
||||
- export BACKEND_URL=http://localhost/api
|
||||
- export STATUSPAGE_URL=http://localhost/status-page
|
||||
- export STATUSPAGE_URL=http://localhost/StatusPage
|
||||
- export APIDOCS_URL=http://localhost/docs
|
||||
- export LICENSING_URL=http://localhost/license
|
||||
- cd tests
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
## GO SDK
|
||||
audit_go-sdk:
|
||||
audit_GoSDK:
|
||||
stage: BuildAndTest
|
||||
allow_failure: true
|
||||
script:
|
||||
- chmod +x ./ci/scripts/checkhash.sh
|
||||
- export next_stage=`./ci/scripts/checkhash.sh audit_go-sdk go-sdk`
|
||||
- export next_stage=`./ci/scripts/checkhash.sh audit_GoSDK GoSDK`
|
||||
- if [[ $next_stage == *"skip"* ]]; then exit ${CI_JOB_SKIP_EXIT_CODE:-0}; fi
|
||||
- sudo apt --fix-broken -y install
|
||||
- sudo apt-get update
|
||||
@@ -15,18 +15,18 @@ audit_go-sdk:
|
||||
- tar -xvf go1.16.4.linux-amd64.tar.gz
|
||||
- sudo mv go /usr/local || true # just continue is go already exist in the location
|
||||
- export GOROOT=/usr/local/go
|
||||
- export GOPATH=$HOME/go-sdk/oneuptime
|
||||
- export GOPATH=$HOME/GoSDK/oneuptime
|
||||
- export PATH=$GOPATH/bin:$GOROOT/bin:$PATH
|
||||
- go version
|
||||
- cd go-sdk
|
||||
- cd GoSDK
|
||||
- go build
|
||||
- cd ..
|
||||
- chmod +x ./ci/scripts/storehash.sh
|
||||
- ./ci/scripts/storehash.sh audit_go-sdk go-sdk
|
||||
- ./ci/scripts/storehash.sh audit_GoSDK GoSDK
|
||||
- chmod +x ./ci/scripts/cleanup.sh
|
||||
- ./ci/scripts/cleanup.sh
|
||||
only:
|
||||
refs:
|
||||
- master
|
||||
- release
|
||||
- feature-go-sdk
|
||||
- feature-GoSDK
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
test_go-sdk:
|
||||
test_GoSDK:
|
||||
stage: BuildAndTest
|
||||
script:
|
||||
- chmod +x ./ci/scripts/checkhash.sh
|
||||
- export next_stage=`./ci/scripts/checkhash.sh test_go-sdk go-sdk backend`
|
||||
- export next_stage=`./ci/scripts/checkhash.sh test_GoSDK GoSDK backend`
|
||||
- if [[ $next_stage == *"skip"* ]]; then exit ${CI_JOB_SKIP_EXIT_CODE:-0}; fi
|
||||
- sudo apt-get update
|
||||
- sudo apt-get install -y curl gcc
|
||||
@@ -21,17 +21,17 @@ test_go-sdk:
|
||||
- sudo tar -xvf go1.16.4.linux-amd64.tar.gz
|
||||
- sudo mv go /usr/local || true # just continue is go already exist in the location
|
||||
- export GOROOT=/usr/local/go
|
||||
- export GOPATH=$HOME/go-sdk/oneuptime
|
||||
- export GOPATH=$HOME/GoSDK/oneuptime
|
||||
- export PATH=$GOPATH/bin:$GOROOT/bin:$PATH
|
||||
- go version
|
||||
- cd go-sdk
|
||||
- cd GoSDK
|
||||
- go get -d ./...
|
||||
- go test -v
|
||||
# - go test -coverprofile=cover.txt
|
||||
# - go tool cover -html=cover.txt -o cover.html
|
||||
- cd ..
|
||||
- chmod +x ./ci/scripts/storehash.sh
|
||||
- ./ci/scripts/storehash.sh test_go-sdk go-sdk backend
|
||||
- ./ci/scripts/storehash.sh test_GoSDK GoSDK backend
|
||||
- chmod +x ./ci/scripts/cleanup.sh
|
||||
- ./ci/scripts/cleanup.sh
|
||||
except:
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user