Compare commits

..

4 Commits
v0.3.1 ... main

Author SHA1 Message Date
Jonny zhang 9cbec06edb
chore: Modify get_image_distribution job parameters (#579)
Signed-off-by: yingxuan <zhanglujia.zlj@digital-engine.com>
Co-authored-by: yingxuan <zhanglujia.zlj@digital-engine.com>
2025-08-29 16:29:18 +08:00
Jonny zhang 8d8130d3bb
chore: Modify the persistent cache task API definition (#577)
Signed-off-by: yingxuan <zhanglujia.zlj@digital-engine.com>
Co-authored-by: yingxuan <zhanglujia.zlj@digital-engine.com>
2025-08-28 16:01:43 +08:00
dependabot[bot] 5022ca0e4e
chore(deps): bump actions/checkout from 4 to 5 (#568)
Bumps [actions/checkout](https://github.com/actions/checkout) from 4 to 5.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v4...v5)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-version: '5'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-08-12 14:22:35 +08:00
Jonny zhang 8b27240b0c
chore: remove typography in select menu (#567)
Signed-off-by: 瑛玄 <yingxuan@B-74K9LGQN-2326.local>
Co-authored-by: 瑛玄 <yingxuan@B-74K9LGQN-2326.local>
2025-07-30 16:26:06 +08:00
11 changed files with 51 additions and 51 deletions

View File

@ -13,7 +13,7 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Checkout code - name: Checkout code
uses: actions/checkout@v4 uses: actions/checkout@v5
- name: Check large files - name: Check large files
uses: actionsDesk/lfs-warning@v3.3 uses: actionsDesk/lfs-warning@v3.3

View File

@ -15,7 +15,7 @@ jobs:
steps: steps:
- name: Checkout code - name: Checkout code
uses: actions/checkout@v4 uses: actions/checkout@v5
- name: Setup node - name: Setup node
uses: actions/setup-node@v4 uses: actions/setup-node@v4

View File

@ -20,7 +20,7 @@ jobs:
steps: steps:
- name: Checkout code - name: Checkout code
uses: actions/checkout@v4 uses: actions/checkout@v5
- name: Initialize CodeQL - name: Initialize CodeQL
uses: github/codeql-action/init@v3 uses: github/codeql-action/init@v3

View File

@ -7,7 +7,7 @@ jobs:
runs-on: ubuntu-22.04 runs-on: ubuntu-22.04
steps: steps:
- name: Checkout - name: Checkout
uses: actions/checkout@v4 uses: actions/checkout@v5
- name: Setup node - name: Setup node
uses: actions/setup-node@v4 uses: actions/setup-node@v4

View File

@ -13,7 +13,7 @@ jobs:
steps: steps:
- name: Checkout code - name: Checkout code
uses: actions/checkout@v4 uses: actions/checkout@v5
- name: Setup node - name: Setup node
uses: actions/setup-node@v4 uses: actions/setup-node@v4

View File

@ -12,7 +12,7 @@ jobs:
steps: steps:
- name: Checkout code - name: Checkout code
uses: actions/checkout@v4 uses: actions/checkout@v5
- name: Set node version - name: Set node version
uses: actions/setup-node@v4 uses: actions/setup-node@v4

View File

@ -70,13 +70,13 @@
"used_percent": 1 "used_percent": 1
}, },
"network": { "network": {
"download_rate": 1000, "rx_bandwidth": 1000,
"download_rate_limit": 4000, "max_rx_bandwidth": 4000,
"idc": "HangZhou", "idc": "HangZhou",
"location": "HangZhou", "location": "HangZhou",
"tcp_connection_count": 2, "tcp_connection_count": 2,
"upload_rate": 1000, "tx_bandwidth": 1000,
"upload_rate_limit": 20000, "max_tx_bandwidth": 20000,
"upload_tcp_connection_count": 4 "upload_tcp_connection_count": 4
}, },
"os": "ios", "os": "ios",
@ -152,13 +152,13 @@
"used_percent": 1 "used_percent": 1
}, },
"network": { "network": {
"download_rate": 1000, "rx_bandwidth": 1000,
"download_rate_limit": 4000, "max_rx_bandwidth": 4000,
"idc": "HangZhou", "idc": "HangZhou",
"location": "HangZhou", "location": "HangZhou",
"tcp_connection_count": 2, "tcp_connection_count": 2,
"upload_rate": 1000, "tx_bandwidth": 1000,
"upload_rate_limit": 20000, "max_tx_bandwidth": 20000,
"upload_tcp_connection_count": 4 "upload_tcp_connection_count": 4
}, },
"os": "ios", "os": "ios",
@ -234,13 +234,13 @@
"used_percent": 1 "used_percent": 1
}, },
"network": { "network": {
"download_rate": 1000, "rx_bandwidth": 1000,
"download_rate_limit": 4000, "max_rx_bandwidth": 4000,
"idc": "HangZhou", "idc": "HangZhou",
"location": "HangZhou", "location": "HangZhou",
"tcp_connection_count": 2, "tcp_connection_count": 2,
"upload_rate": 1000, "tx_bandwidth": 1000,
"upload_rate_limit": 20000, "max_tx_bandwidth": 20000,
"upload_tcp_connection_count": 4 "upload_tcp_connection_count": 4
}, },
"os": "Linux", "os": "Linux",
@ -316,13 +316,13 @@
"used_percent": 1 "used_percent": 1
}, },
"network": { "network": {
"download_rate": 1000, "rx_bandwidth": 1000,
"download_rate_limit": 4000, "max_rx_bandwidth": 4000,
"idc": "HangZhou", "idc": "HangZhou",
"location": "HangZhou", "location": "HangZhou",
"tcp_connection_count": 2, "tcp_connection_count": 2,
"upload_rate": 1000, "tx_bandwidth": 1000,
"upload_rate_limit": 20000, "max_tx_bandwidth": 20000,
"upload_tcp_connection_count": 4 "upload_tcp_connection_count": 4
}, },
"os": "ios", "os": "ios",
@ -398,13 +398,13 @@
"used_percent": 1 "used_percent": 1
}, },
"network": { "network": {
"download_rate": 1000, "rx_bandwidth": 1000,
"download_rate_limit": 4000, "max_rx_bandwidth": 4000,
"idc": "HangZhou", "idc": "HangZhou",
"location": "HangZhou", "location": "HangZhou",
"tcp_connection_count": 2, "tcp_connection_count": 2,
"upload_rate": 1000, "tx_bandwidth": 1000,
"upload_rate_limit": 20000, "max_tx_bandwidth": 20000,
"upload_tcp_connection_count": 4 "upload_tcp_connection_count": 4
}, },
"os": "ios", "os": "ios",
@ -480,13 +480,13 @@
"used_percent": 1 "used_percent": 1
}, },
"network": { "network": {
"download_rate": 1000, "rx_bandwidth": 1000,
"download_rate_limit": 4000, "max_rx_bandwidth": 4000,
"idc": "HangZhou", "idc": "HangZhou",
"location": "HangZhou", "location": "HangZhou",
"tcp_connection_count": 2, "tcp_connection_count": 2,
"upload_rate": 1000, "tx_bandwidth": 1000,
"upload_rate_limit": 20000, "max_tx_bandwidth": 20000,
"upload_tcp_connection_count": 4 "upload_tcp_connection_count": 4
}, },
"os": "ios", "os": "ios",

View File

@ -22,7 +22,7 @@
{ {
"ip": "172.18.0.4", "ip": "172.18.0.4",
"hostname": "kind-worker1", "hostname": "kind-worker1",
"layers": [ "cached_layers": [
{ {
"url": "https://ghcr.io/v2/dragonflyoss/scheduler/blobs/sha256:f1ffc4b5459e82dc8e7ddd1d1a2ec469e85a1f076090c22851a1f2ce6f71e1a6?format=json" "url": "https://ghcr.io/v2/dragonflyoss/scheduler/blobs/sha256:f1ffc4b5459e82dc8e7ddd1d1a2ec469e85a1f076090c22851a1f2ce6f71e1a6?format=json"
}, },
@ -38,7 +38,7 @@
{ {
"ip": "172.18.0.4", "ip": "172.18.0.4",
"hostname": "kind-worker2", "hostname": "kind-worker2",
"layers": [ "cached_layers": [
{ {
"url": "https://ghcr.io/v2/dragonflyoss/scheduler/blobs/sha256:f1f1039835051ecc04909f939530e86a20f02d2ce5ad7a81c0fa3616f7303944" "url": "https://ghcr.io/v2/dragonflyoss/scheduler/blobs/sha256:f1f1039835051ecc04909f939530e86a20f02d2ce5ad7a81c0fa3616f7303944"
}, },
@ -51,7 +51,7 @@
{ {
"ip": "172.18.0.4", "ip": "172.18.0.4",
"hostname": "kind-worker3", "hostname": "kind-worker3",
"layers": [ "cached_layers": [
{ {
"url": "https://ghcr.io/v2/dragonflyoss/scheduler/blobs/sha256:f1ffc4b5459e82dc8e7ddd1d1a2ec469e85a1f076090c22851a1f2ce6f71e1a6" "url": "https://ghcr.io/v2/dragonflyoss/scheduler/blobs/sha256:f1ffc4b5459e82dc8e7ddd1d1a2ec469e85a1f076090c22851a1f2ce6f71e1a6"
}, },
@ -64,7 +64,7 @@
{ {
"ip": "172.18.0.4", "ip": "172.18.0.4",
"hostname": "kind-worker4", "hostname": "kind-worker4",
"layers": [ "cached_layers": [
{ {
"url": "https://ghcr.io/v2/dragonflyoss/scheduler/blobs/sha256:f1f1039835051ecc04909f939530e86a20f02d2ce5ad7a81c0fa3616f7303944" "url": "https://ghcr.io/v2/dragonflyoss/scheduler/blobs/sha256:f1f1039835051ecc04909f939530e86a20f02d2ce5ad7a81c0fa3616f7303944"
}, },
@ -77,7 +77,7 @@
{ {
"ip": "172.18.0.4", "ip": "172.18.0.4",
"hostname": "kind-worker5", "hostname": "kind-worker5",
"layers": [ "cached_layers": [
{ {
"url": "https://ghcr.io/v2/dragonflyoss/scheduler/blobs/sha256:f1ffc4b5459e82dc8e7ddd1d1a2ec469e85a1f076090c22851a1f2ce6f71e1a6" "url": "https://ghcr.io/v2/dragonflyoss/scheduler/blobs/sha256:f1ffc4b5459e82dc8e7ddd1d1a2ec469e85a1f076090c22851a1f2ce6f71e1a6"
}, },
@ -90,7 +90,7 @@
{ {
"ip": "172.18.0.4", "ip": "172.18.0.4",
"hostname": "kind-worker6", "hostname": "kind-worker6",
"layers": [ "cached_layers": [
{ {
"url": "https://ghcr.io/v2/dragonflyoss/scheduler/blobs/sha256:f1f1039835051ecc04909f939530e86a20f02d2ce5ad7a81c0fa3616f7303944" "url": "https://ghcr.io/v2/dragonflyoss/scheduler/blobs/sha256:f1f1039835051ecc04909f939530e86a20f02d2ce5ad7a81c0fa3616f7303944"
}, },
@ -103,7 +103,7 @@
{ {
"ip": "172.18.0.3", "ip": "172.18.0.3",
"hostname": "kind-worker7", "hostname": "kind-worker7",
"layers": [ "cached_layers": [
{ {
"url": "https://ghcr.io/v2/dragonflyoss/scheduler/blobs/sha256:f1f1039835051ecc04909f939530e86a20f02d2ce5ad7a81c0fa3616f7303944" "url": "https://ghcr.io/v2/dragonflyoss/scheduler/blobs/sha256:f1f1039835051ecc04909f939530e86a20f02d2ce5ad7a81c0fa3616f7303944"
}, },
@ -116,7 +116,7 @@
{ {
"ip": "172.18.0.3", "ip": "172.18.0.3",
"hostname": "kind-worker8", "hostname": "kind-worker8",
"layers": [ "cached_layers": [
{ {
"url": "https://ghcr.io/v2/dragonflyoss/scheduler/blobs/sha256:f1f1039835051ecc04909f939530e86a20f02d2ce5ad7a81c0fa3616f7303944" "url": "https://ghcr.io/v2/dragonflyoss/scheduler/blobs/sha256:f1f1039835051ecc04909f939530e86a20f02d2ce5ad7a81c0fa3616f7303944"
}, },

View File

@ -16,7 +16,7 @@ import {
TextField, TextField,
} from '@mui/material'; } from '@mui/material';
import SearchIcon from '@mui/icons-material/Search'; import SearchIcon from '@mui/icons-material/Search';
import { SetStateAction, useCallback, useEffect, useMemo, useRef, useState } from 'react'; import { SetStateAction, useCallback, useEffect, useMemo, useState } from 'react';
import styles from './index.module.css'; import styles from './index.module.css';
import { DEFAULT_PAGE_SIZE, MAX_PAGE_SIZE } from '../../lib/constants'; import { DEFAULT_PAGE_SIZE, MAX_PAGE_SIZE } from '../../lib/constants';
import { auditLogsResponse, getAuditLogs, getUsers, getUsersResponse } from '../../lib/api'; import { auditLogsResponse, getAuditLogs, getUsers, getUsersResponse } from '../../lib/api';
@ -256,7 +256,7 @@ export default function AuditLogs() {
value={item.name} value={item.name}
id={item.name} id={item.name}
> >
<Typography variant="body2">{item.lable}</Typography> {item.lable}
</MenuItem> </MenuItem>
))} ))}
</Select> </Select>
@ -286,7 +286,7 @@ export default function AuditLogs() {
value={item.name} value={item.name}
id={item.name} id={item.name}
> >
<Typography variant="body2">{item.lable}</Typography> {item.lable}
</MenuItem> </MenuItem>
))} ))}
</Select> </Select>
@ -316,7 +316,7 @@ export default function AuditLogs() {
value={item.name} value={item.name}
id={item.name} id={item.name}
> >
<Typography variant="body2">{item.lable}</Typography> {item.lable}
</MenuItem> </MenuItem>
))} ))}
</Select> </Select>

View File

@ -90,7 +90,7 @@ type Image = {
type OriginalPeer = { type OriginalPeer = {
ip: string; ip: string;
hostname: string; hostname: string;
layers: Layers[]; cached_layers: Layers[];
scheduler_cluster_id?: number; scheduler_cluster_id?: number;
}; };
@ -117,7 +117,7 @@ const transformImages = (images: createGetImageDistributionJobResponse): Transfo
const cleanedPeer = { const cleanedPeer = {
ip: peer.ip, ip: peer.ip,
hostname: peer.hostname, hostname: peer.hostname,
layers: peer.layers, cached_layers: peer.cached_layers,
}; };
clusters.get(clusterId)!.push(cleanedPeer); clusters.get(clusterId)!.push(cleanedPeer);
@ -1478,7 +1478,7 @@ export default function Clear() {
fontFamily="mabry-bold" fontFamily="mabry-bold"
className={styles.bolbProportionText} className={styles.bolbProportionText}
> >
{`${((items?.layers?.length / layer) * 100).toFixed(2) || 0}%`} {`${((items?.cached_layers?.length / layer) * 100).toFixed(2) || 0}%`}
</Typography> </Typography>
</Box> </Box>
</Box> </Box>
@ -1500,7 +1500,7 @@ export default function Clear() {
</Typography> </Typography>
</Box> </Box>
<Box className={styles.cardCantainer}> <Box className={styles.cardCantainer}>
{items?.layers.map((item: any, bolbIndex: any) => ( {items?.cached_layers.map((item: any, bolbIndex: any) => (
<Box key={bolbIndex} className={styles.urlsWrapper}> <Box key={bolbIndex} className={styles.urlsWrapper}>
<Tooltip title={extractSHA256Regex(item?.url || '-') || '-'} placement="top"> <Tooltip title={extractSHA256Regex(item?.url || '-') || '-'} placement="top">
<Typography <Typography

View File

@ -994,7 +994,7 @@ interface layers {
interface ImageDistributionpeers { interface ImageDistributionpeers {
ip: string; ip: string;
hostname: string; hostname: string;
layers: layers[]; cached_layers: layers[];
scheduler_cluster_id: number; scheduler_cluster_id: number;
} }
@ -1186,13 +1186,13 @@ export interface persistentCacheTasksPeersResponse {
used_percent: number; used_percent: number;
}; };
network: { network: {
download_rate: number; rx_bandwidth: number;
download_rate_limit: number; max_rx_bandwidth: number;
idc: string; idc: string;
location: string; location: string;
tcp_connection_count: number; tcp_connection_count: number;
upload_rate: number; tx_bandwidth: number;
upload_rate_limit: number; max_tx_bandwidth: number;
upload_tcp_connection_count: number; upload_tcp_connection_count: number;
}; };
os: string; os: string;