Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .github/workflows/build-docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ on:
branches:
- main
release:
types: [created, published] # 表示在创建新的 Release 时触发
types: [ created, published ] # 表示在创建新的 Release 时触发

# Allows you to run this workflow manually from the Actions tab
# 可以手动触发
Expand All @@ -35,7 +35,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18]
node-version: [ 18 ]
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
Expand Down Expand Up @@ -135,7 +135,7 @@ jobs:
GIT_COMMIT=${{ github.sha }}
GIT_TAG=${{ github.ref_name }}
GIT_REPOSITORY=${{ github.repository }}
VERSION=${{ env.GITHUB_REF_NAME }}
VERSION=${{ github.ref_name }}
MODEL=${{ env.OPENAI_API_MODEL }}
API_KEY=${{ secrets.OPENAI_API_KEY }}
API_URL=${{ env.OPENAI_API_URL }}
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/build-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: build and push binary to release

on:
release:
types: [created, published] # 表示在创建新的 Release 时触发
types: [ created, published ] # 表示在创建新的 Release 时触发
env:
OPENAI_API_MODEL: Qwen/Qwen2.5-7B-Instruct
OPENAI_API_URL: https://public.chatgpt.k8m.site/v1
Expand All @@ -11,7 +11,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18]
node-version: [ 18 ]
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
Expand Down Expand Up @@ -52,7 +52,7 @@ jobs:

- name: 编译后端
run: |
make build-all GIT_COMMIT=${{ github.sha }} GIT_TAG=${{ github.ref_name }} GIT_REPOSITORY=${{ github.repository }} BUILD_DATE=${{ env.BUILD_TIME }} VERSION=${{ env.GITHUB_REF_NAME }} MODEL=${{ env.OPENAI_API_MODEL }} API_KEY=${{ secrets.OPENAI_API_KEY }} API_URL=${{ env.OPENAI_API_URL }}
make build-all GIT_COMMIT=${{ github.sha }} GIT_TAG=${{ github.ref_name }} GIT_REPOSITORY=${{ github.repository }} BUILD_DATE=${{ env.BUILD_TIME }} VERSION=${{ github.ref_name }} MODEL=${{ env.OPENAI_API_MODEL }} API_KEY=${{ secrets.OPENAI_API_KEY }} API_URL=${{ env.OPENAI_API_URL }}

- name: 上传二进制
uses: svenstaro/upload-release-action@v2
Expand Down
28 changes: 25 additions & 3 deletions ui/src/components/Amis/custom/cluster/ClusterSummaryView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -274,15 +274,37 @@ const ClusterSummaryView = React.forwardRef<HTMLSpanElement, ClusterSummaryViewP
return (
<Col key={item.Resource} span={6}>
<div style={{ display: 'flex', alignItems: 'center', background: '#f6f8fa', borderRadius: 8, padding: 12 }}>
<Avatar style={{ backgroundColor: color, verticalAlign: 'middle', marginRight: 12 }} size="large">
<Avatar
style={{
backgroundColor: color,
verticalAlign: 'middle',
marginRight: 12,
width: 48,
height: 48,
display: 'flex',
alignItems: 'center',
justifyContent: 'center',
fontSize: 24,
}}
size={48}
>
{item.Resource?.[0]?.toUpperCase() || '?'}
</Avatar>
<div>
<div style={{ fontSize: 18, fontWeight: 600 }}>
<Statistic value={item.Count} formatter={formatter} />
</div>

<div style={{ fontSize: 14, color: '#888' }}>{item.Resource}({item.Version})</div>
<div
style={{
fontSize: 12,
color: '#888',
wordBreak: 'break-all',
whiteSpace: 'normal',
maxWidth: 200,
}}
>
{item.Resource}({item.Version})
</div>
</div>
</div>
</Col>
Expand Down
Loading