Skip to content

Commit d1909aa

Browse files
authored
feat(api, cluster): support in-place upgrade for clusters (#122)
1 parent e05c296 commit d1909aa

File tree

21 files changed

+1272
-8
lines changed

21 files changed

+1272
-8
lines changed

apps/main/[3]cluster/[1]instances/[-2]_clusterId/Layout.tsx

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,14 @@ import { trimTrailingSlash } from '@/utils/path'
1111

1212
const Layout: FC = ({ children }) => {
1313
const { clusterId } = useParams<{ clusterId: string }>()
14-
const { data, isLoading, isError, error } = useQueryClusterDetail({
15-
id: clusterId,
16-
})
14+
const { data, isLoading, isError, error } = useQueryClusterDetail(
15+
{
16+
id: clusterId,
17+
},
18+
{
19+
refetchOnWindowFocus: false,
20+
}
21+
)
1722

1823
const history = useHistory()
1924
const { t, i18n } = useI18n()
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
import { useI18n } from '@i18n-macro'
2+
import Header from '@/components/Header'
3+
4+
export interface HeaderBarProps {
5+
back: () => void
6+
}
7+
8+
export default function HeaderBar({ back }: HeaderBarProps) {
9+
const { t } = useI18n()
10+
11+
return <Header onBack={back} title={t('header.title')} />
12+
}
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
.panel {
2+
min-width: 800px;
3+
padding: 40px 30px 30px;
4+
margin-top: 20px;
5+
background-color: #fff;
6+
}
7+
8+
.container {
9+
width: max-content;
10+
min-width: 600px;
11+
max-width: 100%;
12+
margin: auto;
13+
}
14+
15+
.content {
16+
min-height: 400px;
17+
padding: 30px 0 20px;
18+
}
19+
20+
.hidden {
21+
display: none;
22+
}
23+
24+
.expand-icon {
25+
color: #999;
26+
}

0 commit comments

Comments
 (0)