Compare commits

..
Author SHA1 Message Date
Alexander Holliday a924227805 Merge pull request #2964 from bluewave-labs/develop
develop -> master
2025-09-18 13:40:45 -07:00
Alexander Holliday 2144d3f8c0 Merge pull request #2962 from bluewave-labs/develop
develop -> master
2025-09-18 12:04:51 -07:00
Alexander Holliday fcd6786149 Merge pull request #2936 from bluewave-labs/develop
develop -> master
2025-09-08 20:43:21 -07:00
Alexander Holliday ea968ebf3c Merge pull request #2933 from bluewave-labs/develop
develop -> master
2025-09-08 20:33:35 -07:00
Alexander Holliday 8a7b852974 Merge pull request #2929 from bluewave-labs/develop
develop -> master
2025-09-08 07:24:16 -07:00
Alexander Holliday c8d3e3b70c Merge pull request #2921 from bluewave-labs/develop
develop -> master
2025-09-04 15:46:30 -07:00
Alexander Holliday 7a90a6f9f4 Merge pull request #2915 from bluewave-labs/develop
develop->master
2025-09-01 10:33:09 -07:00
584 changed files with 10860 additions and 12627 deletions

No files matched your search

-40
View File
@@ -1,40 +0,0 @@
name: Build Check (Client & Server)
on:
pull_request:
workflow_dispatch:
jobs:
build-client:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Node
uses: actions/setup-node@v4
with:
node-version: 22
- name: Install client dependencies
working-directory: client
run: npm install
- name: Check client build
working-directory: client
run: npm run build
build-server:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Node
uses: actions/setup-node@v4
with:
node-version: 22
- name: Install server dependencies
working-directory: server
run: npm install
- name: Check server build
working-directory: server
run: npm run build
-2
View File
@@ -1,3 +1 @@
.idea
.vscode .vscode
.VSCodeCounter
+12 -166
View File
@@ -6,7 +6,7 @@ We truly appreciate all kinds of contributions — code, ideas, translations or
Before you start, please take a moment to read the relevant section. It helps us review and accept contributions faster, and makes the whole process smoother for everyone. 💚 Before you start, please take a moment to read the relevant section. It helps us review and accept contributions faster, and makes the whole process smoother for everyone. 💚
PS: **We work closely with contributors on our [Discord channel](https://discord.com/invite/NAb6H3UTjK)**. You'll find community members, core maintainers, and first-timers helping each other out. PS: **We work closely with contributors on our [Discord channel](https://discord.com/invite/NAb6H3UTjK)**. You’ll find community members, core maintainers, and first-timers helping each other out.
--- ---
@@ -32,12 +32,12 @@ PS: **We work closely with contributors on our [Discord channel](https://discord
### Get help or ask a question? ### Get help or ask a question?
Ask anything in our [Discord server](https://discord.com/invite/NAb6H3UTjK) — we're friendly and happy to help. [Our core contributors](https://github.com/bluewave-labs/checkmate?tab=readme-ov-file#-contributing) are active and ready to support you. You can also use [GitHub Discussions](https://github.com/bluewave-labs/Checkmate/discussions) section to ask your questions. Ask anything in our [Discord server](https://discord.com/invite/NAb6H3UTjK) — we’re friendly and happy to help. [Our core contributors](https://github.com/bluewave-labs/checkmate?tab=readme-ov-file#-contributing) are active and ready to support you. You can also use [GitHub Discussions](https://github.com/bluewave-labs/Checkmate/discussions) section to ask your questions.
### Report a bug? ### Report a bug?
1. Search [existing issues](https://github.com/bluewave-labs/checkmate/issues). 1. Search [existing issues](https://github.com/bluewave-labs/checkmate/issues).
2. If it's not listed, open a **new issue**. 2. If it’s not listed, open a **new issue**.
3. Include as much detail as possible: what happened, what you expected, and steps to reproduce. Logs and screenshots help. 3. Include as much detail as possible: what happened, what you expected, and steps to reproduce. Logs and screenshots help.
### Suggest a new feature? ### Suggest a new feature?
@@ -48,175 +48,19 @@ Ask anything in our [Discord server](https://discord.com/invite/NAb6H3UTjK) —
### Set up Checkmate locally? ### Set up Checkmate locally?
#### Prerequisites Frontend & backend:
- Node.js (with npm)
- Docker
- Git
#### Step 1: Clone the Repository
```bash
git clone https://github.com/bluewave-labs/Checkmate.git
cd Checkmate
```
#### Step 2: Set Up Docker Containers (MongoDB)
Navigate to the Docker dev directory:
```bash
cd server/docker/dev
```
Build the Docker images:
```bash
./build_images.sh
```
Run MongoDB container:
```bash
docker run -d -p 27017:27017 -v $(pwd)/mongo/data:/data/db --name uptime_database_mongo uptime_database_mongo
```
Navigate back to the root directory:
```bash
cd ../../..
```
#### Step 3: Set Up the Backend (Server)
Navigate to the server directory:
```bash
cd server
```
Install dependencies:
```bash ```bash
npm install npm install
```
Create a `.env` file in the `server` directory with the following minimum required configuration:
```env
CLIENT_HOST="http://localhost:5173"
JWT_SECRET="my_secret_key_change_this"
DB_CONNECTION_STRING="mongodb://localhost:27017/uptime_db"
TOKEN_TTL="99d"
ORIGIN="localhost"
LOG_LEVEL="debug"
```
**Environment Variables Explained:**
- `CLIENT_HOST`: Frontend URL (default: http://localhost:5173)
- `JWT_SECRET`: Secret key for JWT tokens (change to something secure)
- `DB_CONNECTION_STRING`: MongoDB connection URL
- `ORIGIN`: Origin for CORS purposes
- `TOKEN_TTL`: Token time to live (in vercel/ms format)
- `LOG_LEVEL`: Debug level (debug, info, warn, error)
Start the backend server:
```bash
npm run dev npm run dev
``` ```
The server will run at `http://localhost:52345`. By default, the frontend expects the backend on `http://localhost:3001`. Update configs if needed.
#### Step 4: Set Up the Frontend (Client)
Open a new terminal window and navigate to the client directory from the root:
```bash
cd client
```
Install dependencies:
```bash
npm install
```
Create a `.env` file in the `client` directory:
```env
VITE_APP_API_BASE_URL="http://localhost:52345/api/v1"
VITE_APP_LOG_LEVEL="debug"
```
**Environment Variables Explained:**
- `VITE_APP_API_BASE_URL`: Backend API URL
- `VITE_APP_LOG_LEVEL`: Log level (none, error, warn, debug, info)
Start the frontend:
```bash
npm run dev
```
The client will run at `http://localhost:5173`.
#### Step 5: Access the Application
Open your browser and navigate to:
- **Frontend**: http://localhost:5173
- **Backend API**: http://localhost:52345
- **API Documentation**: http://localhost:52345/api-docs
#### Managing Docker Containers
Stop containers:
```bash
docker stop uptime_database_mongo
```
Start containers:
```bash
docker start uptime_database_mongo
```
Remove containers (if needed):
```bash
docker rm uptime_database_mongo
```
#### Troubleshooting
**Port already in use:**
- Check if another service is using ports 5173, 52345, 27017, or 6379
- Stop the conflicting service or change the port in `.env` files
**MongoDB connection issues:**
- Verify container is running: `docker ps`
- Check container logs: `docker logs uptime_database_mongo`
**Module not found errors:**
- Ensure you ran `npm install` in both `client` and `server` directories
**Need more help?**
- Check the [full documentation](https://docs.checkmate.so)
- Ask on [Discord](https://discord.com/invite/NAb6H3UTjK)
### Start contributing code? ### Start contributing code?
1. Pick or open an issue (check `good-first-issue`s first) 1. Pick or open an issue (check `good-first-issue`s first)
2. (optional but highly suggested) Read a detailed structure of [Checkmate](https://deepwiki.com/bluewave-labs/Checkmate) if you would like to deep dive into the architecture. 2. (optional but highly suggested) Read a detailed structure of [Checkmate](https://deepwiki.com/bluewave-labs/Checkmate) if you would like to deep dive into the architecture.
3. Ask to be assigned. If there is already someone assigned and it's been more than 7 days, you can raise the flag and ask to be assigned as well. 3. Ask to be assigned. If there is alrady someone assigned and it's been more than 7 days, you can raise the flag and ask to be assigned as well.
4. Create a branch from `develop`. 4. Create a branch from `develop`.
5. Write your code. 5. Write your code.
6. Run and test locally. 6. Run and test locally.
@@ -231,7 +75,6 @@ Docs live in [checkmate-documentation](https://github.com/bluewave-labs/checkmat
### Help with translations? ### Help with translations?
We use [PoEditor](https://poeditor.com) for translations. You can: We use [PoEditor](https://poeditor.com) for translations. You can:
- [Sign up and join your language team](https://poeditor.com/join/project/lRUoGZFCsJ). - [Sign up and join your language team](https://poeditor.com/join/project/lRUoGZFCsJ).
- Translate UI strings. - Translate UI strings.
- Ask questions on Discord in the relevant #translations channel. - Ask questions on Discord in the relevant #translations channel.
@@ -241,7 +84,6 @@ Make sure all new UI strings in code use `t('key')`.
### Submit a pull request? ### Submit a pull request?
Follow the [pull request checklist](#pull-request-checklist). Your PR should: Follow the [pull request checklist](#pull-request-checklist). Your PR should:
- Be focused on one issue. - Be focused on one issue.
- Be tested locally. - Be tested locally.
- Use our linting and translation rules. - Use our linting and translation rules.
@@ -281,6 +123,7 @@ If one or more of these are missing, we may ask you to update your pull request
## Branching model ## Branching model
- Code contributions should go to the `develop` branch. - Code contributions should go to the `develop` branch.
- `master` is used for stable releases. - `master` is used for stable releases.
- Use descriptive branch names, like `fix/login-error` or `feat/add-alerts`. - Use descriptive branch names, like `fix/login-error` or `feat/add-alerts`.
@@ -294,10 +137,13 @@ If one or more of these are missing, we may ask you to update your pull request
## Thank you ## Thank you
Thanks for making Checkmate better. We mean it. Whether it's your first pull request or your 50th, we're excited to build with you. Thanks for making Checkmate better. We mean it. Whether it’s your first pull request or your 50th, we’re excited to build with you.
PS: feel free to introduce yourself on [Discord](https://discord.gg/NAb6H3UTjK) and say hi.
PS: feel free to introduce yourself on [Discord](https://discord.gg/YOUR-DISCORD-LINK) and say hi.
-- Checkmate team -- Checkmate team
Also make sure you read the [document about how to make a good pull request](/PULLREQUESTS.md). Also make sure you read the [document about how to make a good pull request](/PULLREQUESTS.md).
@@ -1,25 +1,17 @@
apiVersion: apps/v1 apiVersion: apps/v1
kind: Deployment kind: Deployment
metadata: metadata:
name: checkmate-client name: client
spec: spec:
replicas: 1 replicas: 1
selector: selector:
matchLabels: matchLabels:
app: checkmate-client app: client
template: template:
metadata: metadata:
labels: labels:
app: checkmate-client app: client
spec: spec:
{{- with .Values.client.affinity }}
affinity:
{{- tpl ( . | toYaml) $ | nindent 8 }}
{{- end }}
{{- with .Values.client.tolerations }}
tolerations:
{{- tpl ( . | toYaml) $ | nindent 8 }}
{{- end }}
containers: containers:
- name: client - name: client
image: {{ .Values.client.image }} image: {{ .Values.client.image }}
@@ -28,17 +20,3 @@ spec:
env: env:
- name: UPTIME_APP_API_BASE_URL - name: UPTIME_APP_API_BASE_URL
value: "{{ .Values.server.protocol }}://{{ .Values.server.ingress.host }}/api/v1" value: "{{ .Values.server.protocol }}://{{ .Values.server.ingress.host }}/api/v1"
- name: UPTIME_APP_CLIENT_HOST
value: "{{ .Values.client.protocol }}://{{ .Values.client.ingress.host }}"
volumeMounts:
- name: config-volume
mountPath: /etc/nginx/conf.d/default.conf
subPath: default.conf
{{- with .Values.client.resources }}
resources:
{{- tpl ( . | toYaml) $ | nindent 12 }}
{{- end }}
volumes:
- name: config-volume
configMap:
name: checkmate-server-nginx-cm
@@ -2,15 +2,10 @@
apiVersion: networking.k8s.io/v1 apiVersion: networking.k8s.io/v1
kind: Ingress kind: Ingress
metadata: metadata:
name: checkmate-client-ingress name: client-ingress
{{- if .Values.client.ingress.annotations }}
annotations: annotations:
{{- range $key, $value := .Values.client.ingress.annotations }} nginx.ingress.kubernetes.io/rewrite-target: /
{{ $key }}: {{ $value | quote }}
{{- end }}
{{- end }}
spec: spec:
ingressClassName: {{ .Values.client.ingress.className }}
rules: rules:
- host: {{ .Values.client.ingress.host }} - host: {{ .Values.client.ingress.host }}
http: http:
@@ -19,7 +14,7 @@ spec:
pathType: Prefix pathType: Prefix
backend: backend:
service: service:
name: checkmate-client name: client
port: port:
number: {{ .Values.client.port }} number: {{ .Values.client.port }}
{{- end }} {{- end }}
@@ -1,9 +1,9 @@
apiVersion: v1 apiVersion: v1
kind: Service kind: Service
metadata: metadata:
name: checkmate-client name: client
spec: spec:
selector: selector:
app: checkmate-client app: client
ports: ports:
- port: {{ .Values.client.port }} - port: {{ .Values.client.port }}
@@ -0,0 +1,27 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: mongodb
spec:
replicas: 1
selector:
matchLabels:
app: mongodb
template:
metadata:
labels:
app: mongodb
spec:
containers:
- name: mongodb
image: {{ .Values.mongodb.image }}
ports:
- containerPort: {{ .Values.mongodb.port }}
command: ["mongod", "--quiet", "--bind_ip_all"]
volumeMounts:
- name: mongodb-data
mountPath: /data/db
volumes:
- name: mongodb-data
persistentVolumeClaim:
claimName: mongodb-pvc
@@ -0,0 +1,10 @@
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: mongodb-pvc
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: {{ .Values.persistence.mongodbSize }}
@@ -1,9 +1,9 @@
apiVersion: v1 apiVersion: v1
kind: Service kind: Service
metadata: metadata:
name: checkmate-mongodb name: mongodb
spec: spec:
selector: selector:
app: checkmate-mongodb app: mongodb
ports: ports:
- port: {{ .Values.mongodb.port }} - port: {{ .Values.mongodb.port }}
@@ -1,44 +0,0 @@
apiVersion: apps/v1
kind: StatefulSet
metadata:
name: checkmate-mongodb
spec:
replicas: 1
selector:
matchLabels:
app: checkmate-mongodb
template:
metadata:
labels:
app: checkmate-mongodb
spec:
{{- with .Values.mongodb.affinity }}
affinity:
{{- tpl ( . | toYaml) $ | nindent 8 }}
{{- end }}
{{- with .Values.mongodb.tolerations }}
tolerations:
{{- tpl ( . | toYaml) $ | nindent 8 }}
{{- end }}
containers:
- name: mongodb
image: {{ .Values.mongodb.image }}
ports:
- containerPort: {{ .Values.mongodb.port }}
command: ["mongod", "--quiet", "--bind_ip_all"]
volumeMounts:
- name: checkmate-mongo-persistent-storage
mountPath: /data/db
{{- with .Values.mongodb.resources }}
resources:
{{- tpl ( . | toYaml) $ | nindent 12 }}
{{- end }}
volumeClaimTemplates:
- metadata:
name: checkmate-mongo-persistent-storage
spec:
storageClassName: "gp3"
accessModes: ["ReadWriteOnce"]
resources:
requests:
storage: {{ .Values.persistence.mongodbSize }}
@@ -0,0 +1,26 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: redis
spec:
replicas: 1
selector:
matchLabels:
app: redis
template:
metadata:
labels:
app: redis
spec:
containers:
- name: redis
image: {{ .Values.redis.image }}
ports:
- containerPort: {{ .Values.redis.port }}
volumeMounts:
- name: redis-data
mountPath: /data
volumes:
- name: redis-data
persistentVolumeClaim:
claimName: redis-pvc
@@ -0,0 +1,10 @@
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: redis-pvc
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: {{ .Values.persistence.redisSize }}
@@ -1,11 +1,9 @@
{{- if .Values.redis.enabled }}
apiVersion: v1 apiVersion: v1
kind: Service kind: Service
metadata: metadata:
name: checkmate-redis name: redis
spec: spec:
selector: selector:
app: checkmate-redis app: redis
ports: ports:
- port: {{ .Values.redis.port }} - port: {{ .Values.redis.port }}
{{- end }}
@@ -1,33 +0,0 @@
{{- if .Values.redis.enabled }}
apiVersion: apps/v1
kind: StatefulSet
metadata:
name: checkmate-redis
spec:
replicas: 1
selector:
matchLabels:
app: checkmate-redis
template:
metadata:
labels:
app: checkmate-redis
spec:
containers:
- name: redis
image: {{ .Values.redis.image }}
ports:
- containerPort: {{ .Values.redis.port }}
volumeMounts:
- name: redis-data
mountPath: /data
volumeClaimTemplates:
- metadata:
name: checkmate-redis-persistent-storage
spec:
storageClassName: "gp3"
accessModes: ["ReadWriteOnce"]
resources:
requests:
storage: {{ .Values.persistence.redisSize }}
{{- end }}
@@ -4,6 +4,10 @@
{{- fail "secrets.JWT_SECRET must be overridden and cannot be 'change_me'" }} {{- fail "secrets.JWT_SECRET must be overridden and cannot be 'change_me'" }}
{{- end }} {{- end }}
{{- if or (not $secrets.REFRESH_TOKEN_SECRET) (eq $secrets.REFRESH_TOKEN_SECRET "change_me") }}
{{- fail "secrets.REFRESH_TOKEN_SECRET must be overridden and cannot be 'change_me'" }}
{{- end }}
apiVersion: v1 apiVersion: v1
kind: Secret kind: Secret
metadata: metadata:
@@ -1,25 +1,17 @@
apiVersion: apps/v1 apiVersion: apps/v1
kind: Deployment kind: Deployment
metadata: metadata:
name: checkmate-server name: server
spec: spec:
replicas: 1 replicas: 1
selector: selector:
matchLabels: matchLabels:
app: checkmate-server app: server
template: template:
metadata: metadata:
labels: labels:
app: checkmate-server app: server
spec: spec:
{{- with .Values.server.affinity }}
affinity:
{{- tpl ( . | toYaml) $ | nindent 8 }}
{{- end }}
{{- with .Values.server.tolerations }}
tolerations:
{{- tpl ( . | toYaml) $ | nindent 8 }}
{{- end }}
containers: containers:
- name: server - name: server
image: {{ .Values.server.image }} image: {{ .Values.server.image }}
@@ -28,10 +20,3 @@ spec:
envFrom: envFrom:
- secretRef: - secretRef:
name: checkmate-secrets name: checkmate-secrets
{{- with .Values.server.resources }}
resources:
{{- tpl ( . | toYaml) $ | nindent 12 }}
{{- end }}
env:
- name: CLIENT_HOST
value: "{{ .Values.client.protocol }}://{{ .Values.client.ingress.host }}"
@@ -2,31 +2,24 @@
apiVersion: networking.k8s.io/v1 apiVersion: networking.k8s.io/v1
kind: Ingress kind: Ingress
metadata: metadata:
name: checkmate-server-ingress name: server-ingress
{{- if .Values.server.ingress.annotations }}
annotations: annotations:
{{- range $key, $value := .Values.server.ingress.annotations }} nginx.ingress.kubernetes.io/rewrite-target: /
{{ $key }}: {{ $value | quote }} nginx.ingress.kubernetes.io/enable-cors: "true"
{{- end }} nginx.ingress.kubernetes.io/cors-allow-origin: "http://{{ .Values.client.ingress.host }},https://{{ .Values.client.ingress.host }}"
{{- end }} nginx.ingress.kubernetes.io/cors-allow-methods: "GET, PUT, POST, DELETE, PATCH, OPTIONS"
{{/*#annotations: nginx.ingress.kubernetes.io/cors-allow-headers: "DNT,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Range,Authorization"
#nginx.ingress.kubernetes.io/rewrite-target: / nginx.ingress.kubernetes.io/cors-allow-credentials: "true"
#nginx.ingress.kubernetes.io/enable-cors: "true"
#nginx.ingress.kubernetes.io/cors-allow-origin: "http://{{ .Values.client.ingress.host }},https://{{ .Values.client.ingress.host }}"
#nginx.ingress.kubernetes.io/cors-allow-methods: "GET, PUT, POST, DELETE, PATCH, OPTIONS"
#nginx.ingress.kubernetes.io/cors-allow-headers: "DNT,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Range,Authorization"
#nginx.ingress.kubernetes.io/cors-allow-credentials: "true"*/}}
spec: spec:
ingressClassName: {{ .Values.server.ingress.className }}
rules: rules:
- host: {{ .Values.server.ingress.host }} - host: {{ .Values.server.ingress.host }}
http: http:
paths: paths:
- path: /api/v1 - path: /
pathType: Prefix pathType: Prefix
backend: backend:
service: service:
name: checkmate-server name: server
port: port:
number: {{ .Values.server.port }} number: {{ .Values.server.port }}
{{- end }} {{- end }}
@@ -1,41 +0,0 @@
apiVersion: v1
kind: ConfigMap
metadata:
name: checkmate-server-nginx-cm
data:
default.conf: |
server {
listen 80;
listen [::]:80;
server_name checkmate-demo.bluewavelabs.ca;
server_tokens off;
location /.well-known/acme-challenge/ {
root /var/www/certbot;
}
location / {
root /usr/share/nginx/html;
index index.html index.htm;
try_files $uri $uri/ /index.html;
}
# location /api/ {
# proxy_pass http://{{ .Values.server.ingress.host }}:5000/api/;
# proxy_http_version 1.1;
# proxy_set_header Host $host;
# proxy_set_header X-Real-IP $remote_addr;
# proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
# proxy_set_header X-Forwarded-Proto $scheme;
# }
location /api-docs/ {
proxy_pass http://{{ .Values.server.ingress.host }}:5000/api-docs/;
proxy_http_version 1.1;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
}
}
@@ -1,9 +1,9 @@
apiVersion: v1 apiVersion: v1
kind: Service kind: Service
metadata: metadata:
name: checkmate-server name: server
spec: spec:
selector: selector:
app: checkmate-server app: server
ports: ports:
- port: {{ .Values.server.port }} - port: {{ .Values.server.port }}
+16 -23
View File
@@ -1,47 +1,40 @@
client: client:
image: ghcr.io/bluewave-labs/checkmate-client:v3.2.0 image: ghcr.io/bluewave-labs/checkmate-client:v2.3
port: 80 port: 80
protocol: http
ingress: ingress:
enabled: true enabled: true
host: change_me host: change_me
className: nginx
annotations: {}
server: server:
image: ghcr.io/bluewave-labs/checkmate-backend:v3.2.0 image: ghcr.io/bluewave-labs/checkmate-backend:v2.3
port: 52345 port: 52345
protocol: http protocol: change_me
ingress: ingress:
enabled: true enabled: true
host: change_me host: change_me
className: nginx
annotations: {}
redis: redis:
enabled: false
image: redis:7.2 image: redis:7.2
port: 6379 port: 6379
mongodb: mongodb:
image: ghcr.io/bluewave-labs/checkmate-mongo:v3.2.0 image: mongo:7.0
port: 27017 port: 27017
secrets: secrets:
JWT_SECRET: change_me JWT_SECRET: change_me
# REFRESH_TOKEN_SECRET: change_me REFRESH_TOKEN_SECRET: change_me
# SYSTEM_EMAIL_ADDRESS: test@example.com SYSTEM_EMAIL_ADDRESS: test@example.com
# SYSTEM_EMAIL_PASSWORD: change_me SYSTEM_EMAIL_PASSWORD: change_me
# SYSTEM_EMAIL_HOST: smtp.example.com SYSTEM_EMAIL_HOST: smtp.example.com
# SYSTEM_EMAIL_PORT: "587" SYSTEM_EMAIL_PORT: "587"
# PAGESPEED_API_KEY: change_me PAGESPEED_API_KEY: change_me
DB_CONNECTION_STRING: mongodb://checkmate-mongodb.namespace.svc:27017/uptime_db DB_CONNECTION_STRING: mongodb://mongodb:27017/uptime_db
CLIENT_HOST: change_me REDIS_HOST: redis
# REDIS_HOST: redis REDIS_PORT: "6379"
# REDIS_PORT: "6379" DB_TYPE: MongoDB
# DB_TYPE: MongoDB TOKEN_TTL: 99d
# TOKEN_TTL: 99d REFRESH_TOKEN_TTL: 99d
# REFRESH_TOKEN_TTL: 99d
persistence: persistence:
mongodbSize: 5Gi mongodbSize: 5Gi
-1
View File
@@ -1,4 +1,3 @@
VITE_APP_API_BASE_URL=UPTIME_APP_API_BASE_URL VITE_APP_API_BASE_URL=UPTIME_APP_API_BASE_URL
VITE_APP_API_V2_BASE_URL=UPTIME_APP_API_V2_BASE_URL
VITE_APP_CLIENT_HOST=UPTIME_APP_CLIENT_HOST VITE_APP_CLIENT_HOST=UPTIME_APP_CLIENT_HOST
VITE_APP_LOG_LEVEL=UPTIME_APP_LOG_LEVEL VITE_APP_LOG_LEVEL=UPTIME_APP_LOG_LEVEL
+1 -141
View File
@@ -11,7 +11,6 @@
"@emotion/react": "^11.13.3", "@emotion/react": "^11.13.3",
"@emotion/styled": "^11.13.0", "@emotion/styled": "^11.13.0",
"@hello-pangea/dnd": "^18.0.0", "@hello-pangea/dnd": "^18.0.0",
"@hookform/resolvers": "5.2.2",
"@mui/icons-material": "6.4.11", "@mui/icons-material": "6.4.11",
"@mui/lab": "6.0.0-dev.240424162023-9968b4889d", "@mui/lab": "6.0.0-dev.240424162023-9968b4889d",
"@mui/material": "6.4.11", "@mui/material": "6.4.11",
@@ -22,14 +21,11 @@
"dayjs": "1.11.13", "dayjs": "1.11.13",
"flag-icons": "7.3.2", "flag-icons": "7.3.2",
"html2canvas": "^1.4.1", "html2canvas": "^1.4.1",
"human-interval": "2.0.1",
"i18next": "25.4.2", "i18next": "25.4.2",
"joi": "17.13.3", "joi": "17.13.3",
"mui-color-input": "^6.0.0", "mui-color-input": "^6.0.0",
"pretty-ms": "9.3.0",
"react": "18.3.1", "react": "18.3.1",
"react-dom": "^18.2.0", "react-dom": "^18.2.0",
"react-hook-form": "7.63.0",
"react-i18next": "^15.4.0", "react-i18next": "^15.4.0",
"react-icons": "5.5.0", "react-icons": "5.5.0",
"react-redux": "9.2.0", "react-redux": "9.2.0",
@@ -38,12 +34,9 @@
"react-toastify": "^10.0.5", "react-toastify": "^10.0.5",
"recharts": "2.15.2", "recharts": "2.15.2",
"redux-persist": "6.0.0", "redux-persist": "6.0.0",
"swr": "2.3.6", "vite-plugin-svgr": "^4.2.0"
"vite-plugin-svgr": "^4.2.0",
"zod": "4.1.11"
}, },
"devDependencies": { "devDependencies": {
"@types/node": "24.5.2",
"@types/react": "^18.2.66", "@types/react": "^18.2.66",
"@types/react-dom": "^18.2.22", "@types/react-dom": "^18.2.22",
"@vitejs/plugin-react": "^4.2.1", "@vitejs/plugin-react": "^4.2.1",
@@ -52,7 +45,6 @@
"eslint-plugin-react-hooks": "^5.0.0", "eslint-plugin-react-hooks": "^5.0.0",
"eslint-plugin-react-refresh": "^0.4.6", "eslint-plugin-react-refresh": "^0.4.6",
"prettier": "^3.3.3", "prettier": "^3.3.3",
"typescript": "5.9.3",
"vite": "6.3.6" "vite": "6.3.6"
} }
}, },
@@ -661,18 +653,6 @@
"react-dom": "^18.0.0 || ^19.0.0" "react-dom": "^18.0.0 || ^19.0.0"
} }
}, },
"node_modules/@hookform/resolvers": {
"version": "5.2.2",
"resolved": "https://registry.npmjs.org/@hookform/resolvers/-/resolvers-5.2.2.tgz",
"integrity": "sha512-A/IxlMLShx3KjV/HeTcTfaMxdwy690+L/ZADoeaTltLx+CVuzkeVIPuybK3jrRfw7YZnmdKsVVHAlEPIAEUNlA==",
"license": "MIT",
"dependencies": {
"@standard-schema/utils": "^0.3.0"
},
"peerDependencies": {
"react-hook-form": "^7.55.0"
}
},
"node_modules/@humanwhocodes/config-array": { "node_modules/@humanwhocodes/config-array": {
"version": "0.13.0", "version": "0.13.0",
"resolved": "https://registry.npmjs.org/@humanwhocodes/config-array/-/config-array-0.13.0.tgz", "resolved": "https://registry.npmjs.org/@humanwhocodes/config-array/-/config-array-0.13.0.tgz",
@@ -2127,16 +2107,6 @@
"integrity": "sha512-w28IoSUCJpidD/TGviZwwMJckNESJZXFu7NBZ5YJ4mEUnNraUn9Pm8HSZm/jDF1pDWYKspWE7oVphigUPRakIQ==", "integrity": "sha512-w28IoSUCJpidD/TGviZwwMJckNESJZXFu7NBZ5YJ4mEUnNraUn9Pm8HSZm/jDF1pDWYKspWE7oVphigUPRakIQ==",
"license": "MIT" "license": "MIT"
}, },
"node_modules/@types/node": {
"version": "24.5.2",
"resolved": "https://registry.npmjs.org/@types/node/-/node-24.5.2.tgz",
"integrity": "sha512-FYxk1I7wPv3K2XBaoyH2cTnocQEu8AOZ60hPbsyukMPLv5/5qr7V1i8PLHdl6Zf87I+xZXFvPCXYjiTFq+YSDQ==",
"devOptional": true,
"license": "MIT",
"dependencies": {
"undici-types": "~7.12.0"
}
},
"node_modules/@types/parse-json": { "node_modules/@types/parse-json": {
"version": "4.0.2", "version": "4.0.2",
"resolved": "https://registry.npmjs.org/@types/parse-json/-/parse-json-4.0.2.tgz", "resolved": "https://registry.npmjs.org/@types/parse-json/-/parse-json-4.0.2.tgz",
@@ -3021,15 +2991,6 @@
"node": ">=0.4.0" "node": ">=0.4.0"
} }
}, },
"node_modules/dequal": {
"version": "2.0.3",
"resolved": "https://registry.npmjs.org/dequal/-/dequal-2.0.3.tgz",
"integrity": "sha512-0je+qPKHEMohvfRTCEo3CrPG6cAzAYgmzKyxRiYSSDkS6eGJdyVJm7WaYA5ECaAD9wLB2T4EEeymA5aFVcYXCA==",
"license": "MIT",
"engines": {
"node": ">=6"
}
},
"node_modules/doctrine": { "node_modules/doctrine": {
"version": "3.0.0", "version": "3.0.0",
"resolved": "https://registry.npmjs.org/doctrine/-/doctrine-3.0.0.tgz", "resolved": "https://registry.npmjs.org/doctrine/-/doctrine-3.0.0.tgz",
@@ -4121,15 +4082,6 @@
"node": ">=8.0.0" "node": ">=8.0.0"
} }
}, },
"node_modules/human-interval": {
"version": "2.0.1",
"resolved": "https://registry.npmjs.org/human-interval/-/human-interval-2.0.1.tgz",
"integrity": "sha512-r4Aotzf+OtKIGQCB3odUowy4GfUDTy3aTWTfLd7ZF2gBCy3XW3v/dJLRefZnOFFnjqs5B1TypvS8WarpBkYUNQ==",
"license": "MIT",
"dependencies": {
"numbered": "^1.1.0"
}
},
"node_modules/i18next": { "node_modules/i18next": {
"version": "25.4.2", "version": "25.4.2",
"resolved": "https://registry.npmjs.org/i18next/-/i18next-25.4.2.tgz", "resolved": "https://registry.npmjs.org/i18next/-/i18next-25.4.2.tgz",
@@ -4964,12 +4916,6 @@
"integrity": "sha512-xxOWJsBKtzAq7DY0J+DTzuz58K8e7sJbdgwkbMWQe8UYB6ekmsQ45q0M/tJDsGaZmbC+l7n57UV8Hl5tHxO9uw==", "integrity": "sha512-xxOWJsBKtzAq7DY0J+DTzuz58K8e7sJbdgwkbMWQe8UYB6ekmsQ45q0M/tJDsGaZmbC+l7n57UV8Hl5tHxO9uw==",
"license": "MIT" "license": "MIT"
}, },
"node_modules/numbered": {
"version": "1.1.0",
"resolved": "https://registry.npmjs.org/numbered/-/numbered-1.1.0.tgz",
"integrity": "sha512-pv/ue2Odr7IfYOO0byC1KgBI10wo5YDauLhxY6/saNzAdAs0r1SotGCPzzCLNPL0xtrAwWRialLu23AAu9xO1g==",
"license": "MIT"
},
"node_modules/object-assign": { "node_modules/object-assign": {
"version": "4.1.1", "version": "4.1.1",
"resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz", "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz",
@@ -5185,18 +5131,6 @@
"url": "https://github.com/sponsors/sindresorhus" "url": "https://github.com/sponsors/sindresorhus"
} }
}, },
"node_modules/parse-ms": {
"version": "4.0.0",
"resolved": "https://registry.npmjs.org/parse-ms/-/parse-ms-4.0.0.tgz",
"integrity": "sha512-TXfryirbmq34y8QBwgqCVLi+8oA3oWx2eAnSn62ITyEhEYaWRlVZ2DvMM9eZbMs/RfxPu/PK/aBLyGj4IrqMHw==",
"license": "MIT",
"engines": {
"node": ">=18"
},
"funding": {
"url": "https://github.com/sponsors/sindresorhus"
}
},
"node_modules/path-exists": { "node_modules/path-exists": {
"version": "4.0.0", "version": "4.0.0",
"resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz", "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz",
@@ -5324,21 +5258,6 @@
"url": "https://github.com/prettier/prettier?sponsor=1" "url": "https://github.com/prettier/prettier?sponsor=1"
} }
}, },
"node_modules/pretty-ms": {
"version": "9.3.0",
"resolved": "https://registry.npmjs.org/pretty-ms/-/pretty-ms-9.3.0.tgz",
"integrity": "sha512-gjVS5hOP+M3wMm5nmNOucbIrqudzs9v/57bWRHQWLYklXqoXKrVfYW2W9+glfGsqtPgpiz5WwyEEB+ksXIx3gQ==",
"license": "MIT",
"dependencies": {
"parse-ms": "^4.0.0"
},
"engines": {
"node": ">=18"
},
"funding": {
"url": "https://github.com/sponsors/sindresorhus"
}
},
"node_modules/prop-types": { "node_modules/prop-types": {
"version": "15.8.1", "version": "15.8.1",
"resolved": "https://registry.npmjs.org/prop-types/-/prop-types-15.8.1.tgz", "resolved": "https://registry.npmjs.org/prop-types/-/prop-types-15.8.1.tgz",
@@ -5424,22 +5343,6 @@
"react": "^18.3.1" "react": "^18.3.1"
} }
}, },
"node_modules/react-hook-form": {
"version": "7.63.0",
"resolved": "https://registry.npmjs.org/react-hook-form/-/react-hook-form-7.63.0.tgz",
"integrity": "sha512-ZwueDMvUeucovM2VjkCf7zIHcs1aAlDimZu2Hvel5C5907gUzMpm4xCrQXtRzCvsBqFjonB4m3x4LzCFI1ZKWA==",
"license": "MIT",
"engines": {
"node": ">=18.0.0"
},
"funding": {
"type": "opencollective",
"url": "https://opencollective.com/react-hook-form"
},
"peerDependencies": {
"react": "^16.8.0 || ^17 || ^18 || ^19"
}
},
"node_modules/react-i18next": { "node_modules/react-i18next": {
"version": "15.5.1", "version": "15.5.1",
"resolved": "https://registry.npmjs.org/react-i18next/-/react-i18next-15.5.1.tgz", "resolved": "https://registry.npmjs.org/react-i18next/-/react-i18next-15.5.1.tgz",
@@ -6238,19 +6141,6 @@
"integrity": "sha512-e4hG1hRwoOdRb37cIMSgzNsxyzKfayW6VOflrwvR+/bzrkyxY/31WkbgnQpgtrNp1SdpJvpUAGTa/ZoiPNDuRQ==", "integrity": "sha512-e4hG1hRwoOdRb37cIMSgzNsxyzKfayW6VOflrwvR+/bzrkyxY/31WkbgnQpgtrNp1SdpJvpUAGTa/ZoiPNDuRQ==",
"license": "MIT" "license": "MIT"
}, },
"node_modules/swr": {
"version": "2.3.6",
"resolved": "https://registry.npmjs.org/swr/-/swr-2.3.6.tgz",
"integrity": "sha512-wfHRmHWk/isGNMwlLGlZX5Gzz/uTgo0o2IRuTMcf4CPuPFJZlq0rDaKUx+ozB5nBOReNV1kiOyzMfj+MBMikLw==",
"license": "MIT",
"dependencies": {
"dequal": "^2.0.3",
"use-sync-external-store": "^1.4.0"
},
"peerDependencies": {
"react": "^16.11.0 || ^17.0.0 || ^18.0.0 || ^19.0.0"
}
},
"node_modules/text-segmentation": { "node_modules/text-segmentation": {
"version": "1.0.3", "version": "1.0.3",
"resolved": "https://registry.npmjs.org/text-segmentation/-/text-segmentation-1.0.3.tgz", "resolved": "https://registry.npmjs.org/text-segmentation/-/text-segmentation-1.0.3.tgz",
@@ -6399,20 +6289,6 @@
"url": "https://github.com/sponsors/ljharb" "url": "https://github.com/sponsors/ljharb"
} }
}, },
"node_modules/typescript": {
"version": "5.9.3",
"resolved": "https://registry.npmjs.org/typescript/-/typescript-5.9.3.tgz",
"integrity": "sha512-jl1vZzPDinLr9eUt3J/t7V6FgNEw9QjvBPdysz9KfQDD41fQrC2Y4vKQdiaUpFT4bXlb1RHhLpp8wtm6M5TgSw==",
"devOptional": true,
"license": "Apache-2.0",
"bin": {
"tsc": "bin/tsc",
"tsserver": "bin/tsserver"
},
"engines": {
"node": ">=14.17"
}
},
"node_modules/unbox-primitive": { "node_modules/unbox-primitive": {
"version": "1.1.0", "version": "1.1.0",
"resolved": "https://registry.npmjs.org/unbox-primitive/-/unbox-primitive-1.1.0.tgz", "resolved": "https://registry.npmjs.org/unbox-primitive/-/unbox-primitive-1.1.0.tgz",
@@ -6432,13 +6308,6 @@
"url": "https://github.com/sponsors/ljharb" "url": "https://github.com/sponsors/ljharb"
} }
}, },
"node_modules/undici-types": {
"version": "7.12.0",
"resolved": "https://registry.npmjs.org/undici-types/-/undici-types-7.12.0.tgz",
"integrity": "sha512-goOacqME2GYyOZZfb5Lgtu+1IDmAlAEu5xnD3+xTzS10hT0vzpf0SPjkXwAw9Jm+4n/mQGDP3LO8CPbYROeBfQ==",
"devOptional": true,
"license": "MIT"
},
"node_modules/update-browserslist-db": { "node_modules/update-browserslist-db": {
"version": "1.1.3", "version": "1.1.3",
"resolved": "https://registry.npmjs.org/update-browserslist-db/-/update-browserslist-db-1.1.3.tgz", "resolved": "https://registry.npmjs.org/update-browserslist-db/-/update-browserslist-db-1.1.3.tgz",
@@ -6770,15 +6639,6 @@
"funding": { "funding": {
"url": "https://github.com/sponsors/sindresorhus" "url": "https://github.com/sponsors/sindresorhus"
} }
},
"node_modules/zod": {
"version": "4.1.11",
"resolved": "https://registry.npmjs.org/zod/-/zod-4.1.11.tgz",
"integrity": "sha512-WPsqwxITS2tzx1bzhIKsEs19ABD5vmCVa4xBo2tq/SrV4RNZtfws1EnCWQXM6yh8bD08a1idvkB5MZSBiZsjwg==",
"license": "MIT",
"funding": {
"url": "https://github.com/sponsors/colinhacks"
}
} }
} }
} }
+11 -11
View File
@@ -5,8 +5,8 @@
"type": "module", "type": "module",
"scripts": { "scripts": {
"dev": "vite", "dev": "vite",
"build": "tsc -b && vite build", "build": "vite build",
"build-dev": "tsc -b && vite build --mode development", "build-dev": "vite build --mode development",
"lint": "eslint . --ext js,jsx --report-unused-disable-directives --max-warnings 0", "lint": "eslint . --ext js,jsx --report-unused-disable-directives --max-warnings 0",
"preview": "vite preview", "preview": "vite preview",
"format": "prettier --write .", "format": "prettier --write .",
@@ -16,7 +16,6 @@
"@emotion/react": "^11.13.3", "@emotion/react": "^11.13.3",
"@emotion/styled": "^11.13.0", "@emotion/styled": "^11.13.0",
"@hello-pangea/dnd": "^18.0.0", "@hello-pangea/dnd": "^18.0.0",
"@hookform/resolvers": "5.2.2",
"@mui/icons-material": "6.4.11", "@mui/icons-material": "6.4.11",
"@mui/lab": "6.0.0-dev.240424162023-9968b4889d", "@mui/lab": "6.0.0-dev.240424162023-9968b4889d",
"@mui/material": "6.4.11", "@mui/material": "6.4.11",
@@ -27,14 +26,11 @@
"dayjs": "1.11.13", "dayjs": "1.11.13",
"flag-icons": "7.3.2", "flag-icons": "7.3.2",
"html2canvas": "^1.4.1", "html2canvas": "^1.4.1",
"human-interval": "2.0.1",
"i18next": "25.4.2", "i18next": "25.4.2",
"joi": "17.13.3", "joi": "17.13.3",
"mui-color-input": "^6.0.0", "mui-color-input": "^6.0.0",
"pretty-ms": "9.3.0",
"react": "18.3.1", "react": "18.3.1",
"react-dom": "^18.2.0", "react-dom": "^18.2.0",
"react-hook-form": "7.63.0",
"react-i18next": "^15.4.0", "react-i18next": "^15.4.0",
"react-icons": "5.5.0", "react-icons": "5.5.0",
"react-redux": "9.2.0", "react-redux": "9.2.0",
@@ -43,12 +39,17 @@
"react-toastify": "^10.0.5", "react-toastify": "^10.0.5",
"recharts": "2.15.2", "recharts": "2.15.2",
"redux-persist": "6.0.0", "redux-persist": "6.0.0",
"swr": "2.3.6", "vite-plugin-svgr": "^4.2.0"
"vite-plugin-svgr": "^4.2.0", },
"zod": "4.1.11" "unusedDepencies": {
"@solana/wallet-adapter-base": "0.9.25",
"@solana/wallet-adapter-material-ui": "0.16.35",
"@solana/wallet-adapter-react": "0.15.37",
"@solana/wallet-adapter-react-ui": "0.9.37",
"@solana/wallet-adapter-wallets": "0.19.34",
"@solana/web3.js": "1.98.0"
}, },
"devDependencies": { "devDependencies": {
"@types/node": "24.5.2",
"@types/react": "^18.2.66", "@types/react": "^18.2.66",
"@types/react-dom": "^18.2.22", "@types/react-dom": "^18.2.22",
"@vitejs/plugin-react": "^4.2.1", "@vitejs/plugin-react": "^4.2.1",
@@ -57,7 +58,6 @@
"eslint-plugin-react-hooks": "^5.0.0", "eslint-plugin-react-hooks": "^5.0.0",
"eslint-plugin-react-refresh": "^0.4.6", "eslint-plugin-react-refresh": "^0.4.6",
"prettier": "^3.3.3", "prettier": "^3.3.3",
"typescript": "5.9.3",
"vite": "6.3.6" "vite": "6.3.6"
} }
} }
+11 -6
View File
@@ -9,7 +9,8 @@ import { CssBaseline, GlobalStyles } from "@mui/material";
import { logger } from "./Utils/Logger"; // Import the logger import { logger } from "./Utils/Logger"; // Import the logger
import { networkService } from "./main"; import { networkService } from "./main";
import { Routes } from "./Routes"; import { Routes } from "./Routes";
import AppLayout from "@/Components/v1/Layouts/AppLayout"; import WalletProvider from "./Components/WalletProvider";
import AppLayout from "./Components/Layouts/AppLayout";
function App() { function App() {
const mode = useSelector((state) => state.ui.mode); const mode = useSelector((state) => state.ui.mode);
@@ -23,12 +24,16 @@ function App() {
}, []); }, []);
return ( return (
/* Extract Themeprovider, baseline and global styles to Styles */
<ThemeProvider theme={mode === "light" ? lightTheme : darkTheme}> <ThemeProvider theme={mode === "light" ? lightTheme : darkTheme}>
<CssBaseline /> <WalletProvider>
<AppLayout> <CssBaseline />
<Routes />
</AppLayout> <AppLayout>
<ToastContainer /> <Routes />
</AppLayout>
<ToastContainer />
</WalletProvider>
</ThemeProvider> </ThemeProvider>
); );
} }
@@ -2,17 +2,17 @@
import IconButton from "@mui/material/IconButton"; import IconButton from "@mui/material/IconButton";
import Menu from "@mui/material/Menu"; import Menu from "@mui/material/Menu";
import MenuItem from "@mui/material/MenuItem"; import MenuItem from "@mui/material/MenuItem";
import Settings from "../../../assets/icons/settings-bold.svg?react"; import Settings from "../../assets/icons/settings-bold.svg?react";
import Dialog from "../Dialog/index.jsx"; import Dialog from "../../Components/Dialog";
// Utils // Utils
import { useState } from "react"; import { useState } from "react";
import { useTheme } from "@emotion/react"; import { useTheme } from "@emotion/react";
import { useNavigate } from "react-router-dom"; import { useNavigate } from "react-router-dom";
import { createToast } from "../../../Utils/toastUtils.jsx"; import { createToast } from "../../Utils/toastUtils";
import PropTypes from "prop-types"; import PropTypes from "prop-types";
import { usePauseMonitor, useDeleteMonitor } from "../../../Hooks/v1/monitorHooks.js"; import { usePauseMonitor, useDeleteMonitor } from "../../Hooks/monitorHooks";
const ActionsMenu = ({ const ActionsMenu = ({
monitor, monitor,
@@ -1,6 +1,6 @@
import LeftArrow from "../../../assets/icons/left-arrow.svg?react"; import LeftArrow from "../../assets/icons/left-arrow.svg?react";
import LeftArrowDouble from "../../../assets/icons/left-arrow-double.svg?react"; import LeftArrowDouble from "../../assets/icons/left-arrow-double.svg?react";
import LeftArrowLong from "../../../assets/icons/left-arrow-long.svg?react"; import LeftArrowLong from "../../assets/icons/left-arrow-long.svg?react";
import PropTypes from "prop-types"; import PropTypes from "prop-types";
const ArrowLeft = ({ type, color = "#667085", ...props }) => { const ArrowLeft = ({ type, color = "#667085", ...props }) => {
@@ -1,5 +1,5 @@
import RightArrow from "../../../assets/icons/right-arrow.svg?react"; import RightArrow from "../../assets/icons/right-arrow.svg?react";
import RightArrowDouble from "../../../assets/icons/right-arrow-double.svg?react"; import RightArrowDouble from "../../assets/icons/right-arrow-double.svg?react";
import PropTypes from "prop-types"; import PropTypes from "prop-types";
const ArrowRight = ({ type, color = "#667085", ...props }) => { const ArrowRight = ({ type, color = "#667085", ...props }) => {
@@ -2,7 +2,7 @@ import PropTypes from "prop-types";
import { Box, Breadcrumbs as MUIBreadcrumbs } from "@mui/material"; import { Box, Breadcrumbs as MUIBreadcrumbs } from "@mui/material";
import { useTheme } from "@emotion/react"; import { useTheme } from "@emotion/react";
import { useNavigate } from "react-router-dom"; import { useNavigate } from "react-router-dom";
import ArrowRight from "../ArrowRight/index.jsx"; import ArrowRight from "../ArrowRight";
import "./index.css"; import "./index.css";
/** /**
@@ -61,7 +61,7 @@ import {
Tooltip, Tooltip,
ResponsiveContainer, ResponsiveContainer,
} from "recharts"; } from "recharts";
import { createGradient } from "../Utils/gradientUtils.jsx"; import { createGradient } from "../Utils/gradientUtils";
import PropTypes from "prop-types"; import PropTypes from "prop-types";
import { useTheme } from "@mui/material"; import { useTheme } from "@mui/material";
import { useId } from "react"; import { useId } from "react";
@@ -1,6 +1,6 @@
import { useTheme } from "@emotion/react"; import { useTheme } from "@emotion/react";
import { Box, Stack, Tooltip, Typography } from "@mui/material"; import { Box, Stack, Tooltip, Typography } from "@mui/material";
import { formatDateWithTz } from "../../../../Utils/timeUtils.js"; import { formatDateWithTz } from "../../../Utils/timeUtils";
import { useEffect, useState } from "react"; import { useEffect, useState } from "react";
import "./index.css"; import "./index.css";
import { useSelector } from "react-redux"; import { useSelector } from "react-redux";
@@ -2,7 +2,7 @@
import { Typography, Stack } from "@mui/material"; import { Typography, Stack } from "@mui/material";
import PropTypes from "prop-types"; import PropTypes from "prop-types";
import { useTheme } from "@emotion/react"; import { useTheme } from "@emotion/react";
import IconBox from "../../IconBox/index.jsx"; import IconBox from "../../IconBox";
/** /**
* `EmptyView` is a functional React component that displays an empty state view with an optional icon, header, and message. * `EmptyView` is a functional React component that displays an empty state view with an optional icon, header, and message.
@@ -1,7 +1,7 @@
import { Stack, Typography } from "@mui/material"; import { Stack, Typography } from "@mui/material";
import { useTheme } from "@emotion/react"; import { useTheme } from "@emotion/react";
import IconBox from "../../IconBox/index.jsx"; import IconBox from "../../IconBox";
import EmptyView from "./EmptyView.jsx"; import EmptyView from "./EmptyView";
import PropTypes from "prop-types"; import PropTypes from "prop-types";
const ChartBox = ({ const ChartBox = ({
@@ -5,7 +5,7 @@ import { Stack, Box, Tooltip, Typography } from "@mui/material";
import { useTheme } from "@emotion/react"; import { useTheme } from "@emotion/react";
import { useState, useEffect } from "react"; import { useState, useEffect } from "react";
import PropTypes from "prop-types"; import PropTypes from "prop-types";
import { formatDateWithTz } from "../../../../Utils/timeUtils.js"; import { formatDateWithTz } from "../../../Utils/timeUtils";
import { useSelector } from "react-redux"; import { useSelector } from "react-redux";
const PlaceholderCheck = ({ daysToShow }) => { const PlaceholderCheck = ({ daysToShow }) => {
@@ -1,6 +1,6 @@
import { Stack, Typography } from "@mui/material"; import { Stack, Typography } from "@mui/material";
import { useTheme } from "@emotion/react"; import { useTheme } from "@emotion/react";
import IconBox from "../../IconBox/index.jsx"; import IconBox from "../../IconBox";
import PropTypes from "prop-types"; import PropTypes from "prop-types";
const LegendBox = ({ children, icon, header, sx }) => { const LegendBox = ({ children, icon, header, sx }) => {
@@ -12,11 +12,11 @@ import { Box, Stack, Typography } from "@mui/material";
import { useTheme } from "@emotion/react"; import { useTheme } from "@emotion/react";
import { useMemo, useState } from "react"; import { useMemo, useState } from "react";
import { useSelector } from "react-redux"; import { useSelector } from "react-redux";
import { formatDateWithTz } from "../../../../Utils/timeUtils.js"; import { formatDateWithTz } from "../../../Utils/timeUtils";
import { import {
tooltipDateFormatLookup, tooltipDateFormatLookup,
tickDateFormatLookup, tickDateFormatLookup,
} from "../Utils/chartUtilFunctions.js"; } from "../Utils/chartUtilFunctions";
import "./index.css"; import "./index.css";
const CustomToolTip = ({ active, payload, label, dateRange }) => { const CustomToolTip = ({ active, payload, label, dateRange }) => {
@@ -1,6 +1,6 @@
import { useTheme } from "@emotion/react"; import { useTheme } from "@emotion/react";
import { Box, Stack, Tooltip, Typography } from "@mui/material"; import { Box, Stack, Tooltip, Typography } from "@mui/material";
import { formatDateWithTz } from "../../../../Utils/timeUtils.js"; import { formatDateWithTz } from "../../../Utils/timeUtils";
import { useEffect, useState, forwardRef } from "react"; import { useEffect, useState, forwardRef } from "react";
import { useSelector } from "react-redux"; import { useSelector } from "react-redux";
import PropTypes from "prop-types"; import PropTypes from "prop-types";
@@ -2,9 +2,9 @@ import PropTypes from "prop-types";
import { useSelector } from "react-redux"; import { useSelector } from "react-redux";
import { useTheme } from "@mui/material"; import { useTheme } from "@mui/material";
import { Text } from "recharts"; import { Text } from "recharts";
import { formatDateWithTz } from "../../../../Utils/timeUtils.js"; import { formatDateWithTz } from "../../../Utils/timeUtils";
import { Box, Stack, Typography } from "@mui/material"; import { Box, Stack, Typography } from "@mui/material";
import { tickDateFormatLookup, tooltipDateFormatLookup } from "./chartUtilFunctions.js"; import { tickDateFormatLookup, tooltipDateFormatLookup } from "./chartUtilFunctions";
/** /**
* Custom tick component for rendering time with timezone. * Custom tick component for rendering time with timezone.
* *
@@ -1,7 +1,7 @@
import "./check.css"; import "./check.css";
import PropTypes from "prop-types"; import PropTypes from "prop-types";
import CheckGrey from "../../../assets/icons/check.svg?react"; import CheckGrey from "../../assets/icons/check.svg?react";
import CheckOutlined from "../../../assets/icons/check-outlined.svg?react"; import CheckOutlined from "../../assets/icons/check-outlined.svg?react";
import { Box, Stack, Typography } from "@mui/material"; import { Box, Stack, Typography } from "@mui/material";
import { useTheme } from "@emotion/react"; import { useTheme } from "@emotion/react";
@@ -10,7 +10,7 @@ import MenuItem from "@mui/material/MenuItem";
import Drawer from "@mui/material/Drawer"; import Drawer from "@mui/material/Drawer";
import MenuIcon from "@mui/icons-material/Menu"; import MenuIcon from "@mui/icons-material/Menu";
import CloseRoundedIcon from "@mui/icons-material/CloseRounded"; import CloseRoundedIcon from "@mui/icons-material/CloseRounded";
import ThemeSwitch from "../ThemeSwitch/index.jsx"; import ThemeSwitch from "../ThemeSwitch";
import { useTheme } from "@mui/material/styles"; import { useTheme } from "@mui/material/styles";
import { useSelector } from "react-redux"; import { useSelector } from "react-redux";
import { useLocation, useNavigate } from "react-router-dom"; import { useLocation, useNavigate } from "react-router-dom";
@@ -1,7 +1,7 @@
import { Box, Stack, Typography } from "@mui/material"; import { Box, Stack, Typography } from "@mui/material";
import PropTypes from "prop-types"; import PropTypes from "prop-types";
import { useTheme } from "@emotion/react"; import { useTheme } from "@emotion/react";
import ConfigBox from "../ConfigBox/index.jsx"; import ConfigBox from "../ConfigBox";
/** /**
* ConfigRow is a styled container used to layout content in a row format with specific padding, border, and spacing. * ConfigRow is a styled container used to layout content in a row format with specific padding, border, and spacing.
@@ -1,6 +1,6 @@
import PropTypes from "prop-types"; import PropTypes from "prop-types";
import { Button, Stack } from "@mui/material"; import { Button, Stack } from "@mui/material";
import { GenericDialog } from "./genericDialog.jsx"; import { GenericDialog } from "./genericDialog";
import { useTheme } from "@emotion/react"; import { useTheme } from "@emotion/react";
import { useTranslation } from "react-i18next"; import { useTranslation } from "react-i18next";
File renamed without changes.
@@ -1,8 +1,8 @@
import { useTheme } from "@emotion/react"; import { useTheme } from "@emotion/react";
import Box from "@mui/material/Box"; import Box from "@mui/material/Box";
import Background from "../../../assets/Images/background-grid.svg?react"; import Background from "../../assets/Images/background-grid.svg?react";
import OutputAnimation from "../../../assets/Animations/output.gif"; import OutputAnimation from "../../assets/Animations/output.gif";
import DarkmodeOutput from "../../../assets/Animations/darkmodeOutput.gif"; import DarkmodeOutput from "../../assets/Animations/darkmodeOutput.gif";
import { useSelector } from "react-redux"; import { useSelector } from "react-redux";
const FallbackBackground = () => { const FallbackBackground = () => {
const theme = useTheme(); const theme = useTheme();
@@ -2,7 +2,7 @@ import PropTypes from "prop-types";
import { useTheme } from "@mui/material/styles"; import { useTheme } from "@mui/material/styles";
import Box from "@mui/material/Box"; import Box from "@mui/material/Box";
import Stack from "@mui/material/Stack"; import Stack from "@mui/material/Stack";
import Check from "../Check/Check.jsx"; import Check from "../Check/Check";
const FallbackCheckList = ({ checks, type }) => { const FallbackCheckList = ({ checks, type }) => {
const theme = useTheme(); const theme = useTheme();
return ( return (
@@ -3,7 +3,7 @@ import { useTheme } from "@mui/material/styles";
import Link from "@mui/material/Link"; import Link from "@mui/material/Link";
import { Link as RouterLink } from "react-router-dom"; import { Link as RouterLink } from "react-router-dom";
import { useTranslation } from "react-i18next"; import { useTranslation } from "react-i18next";
import Alert from "../Alert/index.jsx"; import Alert from "../Alert";
import PropTypes from "prop-types"; import PropTypes from "prop-types";
const renderWarningMessage = (t) => { const renderWarningMessage = (t) => {
@@ -2,11 +2,11 @@ import PropTypes from "prop-types";
import { useTheme } from "@emotion/react"; import { useTheme } from "@emotion/react";
import { Box, Stack } from "@mui/material"; import { Box, Stack } from "@mui/material";
import "./index.css"; import "./index.css";
import FallbackTitle from "./FallbackTitle.jsx"; import FallbackTitle from "./FallbackTitle";
import FallbackCheckList from "./FallbackCheckList.jsx"; import FallbackCheckList from "./FallbackCheckList";
import FallbackActionButtons from "./FallBackActionButtons.jsx"; import FallbackActionButtons from "./FallBackActionButtons";
import FallbackBackground from "./FallbackBackground.jsx"; import FallbackBackground from "./FallbackBackground";
import FallbackContainer from "./FallbackContainer.jsx"; import FallbackContainer from "./FallbackContainer";
/** /**
* Fallback component to display a fallback UI with a title, a list of checks, and a navigation button. * Fallback component to display a fallback UI with a title, a list of checks, and a navigation button.
* *
@@ -1,8 +1,8 @@
import { useTheme } from "@emotion/react"; import { useTheme } from "@emotion/react";
import { Box, Stack } from "@mui/material"; import { Box, Stack } from "@mui/material";
import OutputAnimation from "../../../assets/Animations/output.gif"; import OutputAnimation from "../../assets/Animations/output.gif";
import DarkmodeOutput from "../../../assets/Animations/darkmodeOutput.gif"; import DarkmodeOutput from "../../assets/Animations/darkmodeOutput.gif";
import Background from "../../../assets/Images/background-grid.svg?react"; import Background from "../../assets/Images/background-grid.svg?react";
import { useSelector } from "react-redux"; import { useSelector } from "react-redux";
/** /**
@@ -1,8 +1,8 @@
import { useEffect, useState } from "react"; import { useEffect, useState } from "react";
import { useNavigate } from "react-router-dom"; import { useNavigate } from "react-router-dom";
import { logger } from "../../../Utils/Logger.js"; import { logger } from "../../Utils/Logger";
import { networkService } from "../../../main.jsx"; import { networkService } from "../../main";
const withAdminCheck = (WrappedComponent) => { const withAdminCheck = (WrappedComponent) => {
const WithAdminCheck = (props) => { const WithAdminCheck = (props) => {
@@ -1,7 +1,7 @@
import { Stack, Typography } from "@mui/material"; import { Stack, Typography } from "@mui/material";
import PropTypes from "prop-types"; import PropTypes from "prop-types";
import { useTheme } from "@emotion/react"; import { useTheme } from "@emotion/react";
import Dot from "../Dot/index.jsx"; import Dot from "../Dot";
/** /**
* Host component. * Host component.
* This subcomponent receives a params object and displays the host details. * This subcomponent receives a params object and displays the host details.
@@ -1,6 +1,6 @@
import PropTypes from "prop-types"; import PropTypes from "prop-types";
import { useTheme } from "@mui/material"; import { useTheme } from "@mui/material";
import { BaseLabel } from "../Label/index.jsx"; import { BaseLabel } from "../Label";
/** /**
* @component * @component
@@ -1,4 +1,4 @@
import i18n from "../../../Utils/i18n.js"; import i18n from "../../Utils/i18n";
import { useSelector } from "react-redux"; import { useSelector } from "react-redux";
import { useEffect } from "react"; import { useEffect } from "react";
const I18nLoader = () => { const I18nLoader = () => {
@@ -1,6 +1,6 @@
import { RowContainer } from "../StandardContainer/index.jsx"; import { RowContainer } from "../StandardContainer";
import { Stack, Typography } from "@mui/material"; import { Stack, Typography } from "@mui/material";
import Image from "../Image/index.jsx"; import Image from "../Image";
import { useTheme } from "@mui/material/styles"; import { useTheme } from "@mui/material/styles";
@@ -1,8 +1,9 @@
import PropTypes from "prop-types"; import PropTypes from "prop-types";
import { FormControlLabel, Checkbox as MuiCheckbox } from "@mui/material"; import { FormControlLabel, Checkbox as MuiCheckbox } from "@mui/material";
import { useTheme } from "@emotion/react"; import { useTheme } from "@emotion/react";
import CheckboxOutline from "../../../../assets/icons/checkbox-outline.svg?react"; import CheckboxOutline from "../../../assets/icons/checkbox-outline.svg?react";
import CheckboxFilled from "../../../../assets/icons/checkbox-filled.svg?react"; import CheckboxFilled from "../../../assets/icons/checkbox-filled.svg?react";
import "./index.css";
/** /**
* Checkbox Component * Checkbox Component
@@ -1,10 +1,10 @@
// Components // Components
import { Box, Stack, Typography } from "@mui/material"; import { Box, Stack, Typography } from "@mui/material";
import CloudUploadIcon from "@mui/icons-material/CloudUpload"; import CloudUploadIcon from "@mui/icons-material/CloudUpload";
import Image from "../../Image/index.jsx"; import Image from "../../../Components/Image";
import TextField from "@mui/material/TextField"; import TextField from "@mui/material/TextField";
import IconButton from "@mui/material/IconButton"; import IconButton from "@mui/material/IconButton";
import ProgressUpload from "../../ProgressBars/index.jsx"; import ProgressUpload from "../../ProgressBars";
import ImageIcon from "@mui/icons-material/Image"; import ImageIcon from "@mui/icons-material/Image";
// Utils // Utils
@@ -1,7 +1,7 @@
import PropTypes from "prop-types"; import PropTypes from "prop-types";
import { FormControlLabel, Radio as MUIRadio, Typography } from "@mui/material"; import { FormControlLabel, Radio as MUIRadio, Typography } from "@mui/material";
import { useTheme } from "@emotion/react"; import { useTheme } from "@emotion/react";
import RadioChecked from "../../../../assets/icons/radio-checked.svg?react"; import RadioChecked from "../../../assets/icons/radio-checked.svg?react";
import "./index.css"; import "./index.css";
/** /**
@@ -8,10 +8,10 @@ import {
Checkbox, Checkbox,
} from "@mui/material"; } from "@mui/material";
import { useTheme } from "@emotion/react"; import { useTheme } from "@emotion/react";
import SearchIcon from "../../../../assets/icons/search.svg?react"; import SearchIcon from "../../../assets/icons/search.svg?react";
import React, { useEffect } from "react"; import React, { useEffect } from "react";
import { useTranslation } from "react-i18next"; import { useTranslation } from "react-i18next";
import FieldWrapper from "../FieldWrapper/index.jsx"; import FieldWrapper from "../FieldWrapper";
/** /**
* Search component using Material UI's Autocomplete. * Search component using Material UI's Autocomplete.
@@ -2,7 +2,7 @@ import PropTypes from "prop-types";
import { useTheme } from "@emotion/react"; import { useTheme } from "@emotion/react";
import { MenuItem, Select as MuiSelect, Stack, Typography } from "@mui/material"; import { MenuItem, Select as MuiSelect, Stack, Typography } from "@mui/material";
import KeyboardArrowDownIcon from "@mui/icons-material/KeyboardArrowDown"; import KeyboardArrowDownIcon from "@mui/icons-material/KeyboardArrowDown";
import FieldWrapper from "../FieldWrapper/index.jsx"; import FieldWrapper from "../FieldWrapper";
import "./index.css"; import "./index.css";
@@ -4,7 +4,7 @@ import PropTypes from "prop-types";
import VisibilityOff from "@mui/icons-material/VisibilityOff"; import VisibilityOff from "@mui/icons-material/VisibilityOff";
import Visibility from "@mui/icons-material/Visibility"; import Visibility from "@mui/icons-material/Visibility";
import ReorderRoundedIcon from "@mui/icons-material/ReorderRounded"; import ReorderRoundedIcon from "@mui/icons-material/ReorderRounded";
import DeleteIcon from "../../../../../assets/icons/trash-bin.svg?react"; import DeleteIcon from "../../../../assets/icons/trash-bin.svg?react";
export const HttpAdornment = ({ https }) => { export const HttpAdornment = ({ https }) => {
const theme = useTheme(); const theme = useTheme();
@@ -2,7 +2,7 @@ import { Stack, TextField, Typography } from "@mui/material";
import { useTheme } from "@emotion/react"; import { useTheme } from "@emotion/react";
import { forwardRef, useState, cloneElement } from "react"; import { forwardRef, useState, cloneElement } from "react";
import PropTypes from "prop-types"; import PropTypes from "prop-types";
import FieldWrapper from "../FieldWrapper/index.jsx"; import FieldWrapper from "../FieldWrapper";
const getSx = (theme, type, maxWidth) => { const getSx = (theme, type, maxWidth) => {
const sx = { const sx = {
@@ -1,7 +1,7 @@
import Box from "@mui/material/Box"; import Box from "@mui/material/Box";
import PropTypes from "prop-types"; import PropTypes from "prop-types";
import { useTheme } from "@emotion/react"; import { useTheme } from "@emotion/react";
import BackgroundSVG from "../../../../assets/Images/background.svg"; import BackgroundSVG from "../../../assets/Images/background.svg";
import { useSelector } from "react-redux"; import { useSelector } from "react-redux";
const AppLayout = ({ children }) => { const AppLayout = ({ children }) => {
@@ -1,4 +1,4 @@
import Sidebar from "../../Sidebar/index.jsx"; import Sidebar from "../../Sidebar";
import { Outlet } from "react-router"; import { Outlet } from "react-router";
import { Stack } from "@mui/material"; import { Stack } from "@mui/material";
File renamed without changes.
File renamed without changes.
@@ -10,8 +10,8 @@ import MenuItem from "@mui/material/MenuItem";
import MenuList from "@mui/material/MenuList"; import MenuList from "@mui/material/MenuList";
import { useNavigate } from "react-router-dom"; import { useNavigate } from "react-router-dom";
import { useTranslation } from "react-i18next"; import { useTranslation } from "react-i18next";
import { createToast } from "../../../Utils/toastUtils.jsx"; import { createToast } from "../../Utils/toastUtils";
import { useExportMonitors } from "../../../Hooks/v1/monitorHooks.js"; import { useExportMonitors } from "../../Hooks/monitorHooks";
const MonitorActions = ({ isLoading }) => { const MonitorActions = ({ isLoading }) => {
const [open, setOpen] = React.useState(false); const [open, setOpen] = React.useState(false);
@@ -1,7 +1,7 @@
import { Stack, Typography } from "@mui/material"; import { Stack, Typography } from "@mui/material";
import PropTypes from "prop-types"; import PropTypes from "prop-types";
import { useTheme } from "@emotion/react"; import { useTheme } from "@emotion/react";
import SkeletonLayout from "./skeleton.jsx"; import SkeletonLayout from "./skeleton";
const MonitorCountHeader = ({ const MonitorCountHeader = ({
isLoading = false, isLoading = false,
Loaded 100 of 584 files, more files were not shown because too many files have changed in this diff. Show more