Skip to content

Commit

Permalink
license
Browse files Browse the repository at this point in the history
  • Loading branch information
zjy365 committed Nov 15, 2023
1 parent 1907360 commit 49a1b36
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 14 deletions.
10 changes: 7 additions & 3 deletions service/license/src/components/Signin/index.tsx
Expand Up @@ -93,9 +93,13 @@ export default function SigninComponent() {
if (isAgree && selectedConfig) {
const { login } = selectedConfig;
login();
uploadConvertData([3]).then((res) => {
console.log(res);
});
uploadConvertData([3])
.then((res) => {
console.log(res);
})
.catch((err) => {
console.log(err);
});
} else {
setIsInvalid(true);
showError(t('Read and agree'));
Expand Down
10 changes: 7 additions & 3 deletions service/license/src/components/signin/index.tsx
Expand Up @@ -93,9 +93,13 @@ export default function SigninComponent() {
if (isAgree && selectedConfig) {
const { login } = selectedConfig;
login();
uploadConvertData([3]).then((res) => {
console.log(res);
});
uploadConvertData([3])
.then((res) => {
console.log(res);
})
.catch((err) => {
console.log(err);
});
} else {
setIsInvalid(true);
showError(t('Read and agree'));
Expand Down
11 changes: 3 additions & 8 deletions service/license/src/pages/cluster/components/Tutorial.tsx
Expand Up @@ -31,7 +31,6 @@ export default function Tutorial({
let { fileNameParams, bashParams, ossVersion } = useMemo(() => {
if (ossFileUrl) {
let match = /cloud-(.*?)\.tar/g.exec(ossFileUrl);
console.log(match);
return {
fileNameParams: ossFileUrl.replace('/cloud/', ''),
bashParams: match ? `--cloud-version=${match[1]}` : '--cloud-version v5.0.0-beta1',
Expand Down Expand Up @@ -102,9 +101,7 @@ export default function Tutorial({
fontSize={'14px'}
fontWeight={600}
onClick={() =>
window.open(
'https://sealos.io/zh-Hans/docs/self-hosting/installation#%E5%87%86%E5%A4%87%E5%B7%A5%E4%BD%9C'
)
window.open('https://sealos.io/zh-Hans/docs/self-hosting/sealos/installation')
}
>
详细文档
Expand Down Expand Up @@ -172,7 +169,7 @@ export default function Tutorial({
<AccordionPanel py="20px" pl="40px" gap={'12px'}>
<CodeBlock
language="bash"
code={`curl -sfL https://raw.githubusercontent.com/labring/sealos/${ossVersion}/scripts/cloud/install.sh -o /tmp/install.sh && bash /tmp/install.sh ${bashParams}`}
code={`curl -sfL https://gh-proxy.com/https://raw.githubusercontent.com/labring/sealos/main/scripts/cloud/install.sh -o /tmp/install.sh && bash /tmp/install.sh \ --image-registry=registry.cn-shanghai.aliyuncs.com --zh \ --proxy-prefix=https://gh-proxy.com`}
></CodeBlock>
<Center
borderRadius={'4px'}
Expand All @@ -185,9 +182,7 @@ export default function Tutorial({
fontSize={'14px'}
fontWeight={600}
onClick={() =>
window.open(
'https://sealos.io/zh-Hans/docs/self-hosting/installation#%E5%AE%89%E8%A3%85%E6%AD%A5%E9%AA%A4'
)
window.open('https://sealos.io/zh-Hans/docs/self-hosting/sealos/installation')
}
>
详细文档
Expand Down

0 comments on commit 49a1b36

Please sign in to comment.