Skip to content

Commit

Permalink
update version shows
Browse files Browse the repository at this point in the history
  • Loading branch information
netweng committed Oct 10, 2024
1 parent b9ae1fe commit 7433dc3
Show file tree
Hide file tree
Showing 10 changed files with 31 additions and 13 deletions.
4 changes: 2 additions & 2 deletions cloudtower-api-doc/docs/sdks/support_release.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ CloudTower API SDK 支持向下兼容。即 SDK 2.9.0 最高支持至 CloudTower
| 2.17.0 | 4.3.0 | 2024.08.21 | <AddressWrapper version="2.17.0" file_version="4.3.0" node_version="2.17.0"/>|
| 2.16.0 | 4.2.0,4.2.1,4.2.2 | 2024.07.16 | <AddressWrapper version="2.16.0" file_version="4.2.0" node_version="2.16.0"/>|
| 2.15.1 | 4.1.0 | 2024.05.31 | <AddressWrapper version="2.15.1" file_version="4.1.0" node_version="2.15.0"/>|
| 2.14.0 | 3.4.1, 3.4.2, 4.0.0| 2024.01.02 | <AddressWrapper version="2.14.0" file_version="4.0.0"/>|
| 2.13.0 | 3.4.0 | 2023.11.07 | <AddressWrapper version="2.13.0" file_version="3.4.0"/>|
| 2.14.0 | 4.0.0 | 2024.01.02 | <AddressWrapper version="2.14.0" file_version="4.0.0"/>|
| 2.13.1 | 3.4.0, 3.4.1, 3.4.2, 3.4.3,3.4.4 | 2024.10.10 | <AddressWrapper version="2.13.1" file_version="3.4.4"/>|
| 2.12.0 | 3.3.0 | 2023.10.19 | <AddressWrapper version="2.12.0" file_version="3.3.0"/>|
| 2.11.0 | 3.2.0, 3.2.1 | 2023.09.01 | <AddressWrapper version="2.11.0" file_version="3.2.0"/>|
| 2.10.0 | 3.1.0 | 2023.08.01 | <AddressWrapper version="2.10.0" file_version="3.1.0"/>|
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ The following are the compatible versions when upgrading with CloudTower. Versio
| 2.17.0 | 4.3.0 | 2024.08.21 | <AddressWrapper version="2.17.0" file_version="4.3.0" node_version="2.17.0"/>|
| 2.16.0 | 4.2.0,4.2.1,4.2.2 | 2024.07.16 | <AddressWrapper version="2.16.0" file_version="4.2.0" node_version="2.16.0"/>|
| 2.15.1 | 4.1.0 | 2024.05.31 | <AddressWrapper version="2.15.1" file_version="4.1.0" node_version="2.15.0"/>|
| 2.14.0 | 3.4.1, 3.4.2, 4.0.0 | 2024.01.02 | <AddressWrapper version="2.14.0" file_version="4.0.0"/>|
| 2.13.0 | 3.4.0 | 2023.11.07 | <AddressWrapper version="2.13.0" file_version="3.4.0"/>|
| 2.14.0 | 4.0.0 | 2024.01.02 | <AddressWrapper version="2.14.0" file_version="4.0.0"/>|
| 2.13.1 | 3.4.0, 3.4.1, 3.4.2, 3.4.3,3.4.4 | 2024.10.10 | <AddressWrapper version="2.13.1" file_version="3.4.4"/>|
| 2.12.0 | 3.3.0 | 2023.10.19 | <AddressWrapper version="2.12.0" file_version="3.3.0"/>|
| 2.11.0 | 3.2.0, 3.2.1 | 2023.09.01 | <AddressWrapper version="2.11.0" file_version="3.2.0"/>|
| 2.10.0 | 3.1.0 | 2023.08.01 | <AddressWrapper version="2.10.0" file_version="3.1.0"/>|
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,12 +62,27 @@ export default function DocsVersionDropdownNavbarItem({
type: 'html',
value: `<span class="dropdown-subtitle">${i18next.t('components.historyVersion')}</span>`
},
...items.slice(1)
...items.slice(1),
// {
// type: 'html',
// value: "<hr class=\"dropdown-separator\">"
// },
// {
// label: i18next.t('components.allVersions'),
// href: "/sdks/support_release",
// }
].map(v => {
if(v.label) {
let label = v.label;
if(v.label.startsWith('3.4')) {
label = '3.4.x LTS'
}
// if(v.href) {
// return v;
// }
return {
...v,
label: i18next.t('components.version_icu', {version: v.label})
label: i18next.t('components.version_icu', {version: label })
}
}
return v;
Expand Down
3 changes: 3 additions & 0 deletions cloudtower-api-doc/src/theme/NavbarItem/styles.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,9 @@
.dropdownOverwrite {
width: 240px;
}
// .dropdownOverwrite li:last-of-type {
// padding-bottom: 6px;
// }
.dropdownTitleOverwrite {
padding: 0.4rem var(--ifm-navbar-item-padding-horizontal)
}
Expand Down
2 changes: 1 addition & 1 deletion cloudtower-api-doc/swagger/i18n.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ import en4_2API from './locales/en/4.2.0.json';
import zh4_3API from './locales/zh/4.3.0.json';
import en4_3API from './locales/en/4.3.0.json';

export const fallbackNS = ['4_3_0','4_2_0','4_1_0','4_0_0','3_4_4', '3_4_0','3_3_0', '3_2_0', '3_1_0', '3_0_0', '2_8_0', '2_7_0', '2_6_0', '2_5_0', '2_4_0', '2_3_0', '2_2_0', '2_1_0', '2_0_0', '1_10_0', '1_9_0', '1_8_0'];
export const fallbackNS = ['4_3_0','4_2_0','4_1_0','4_0_0','3_4_4','3_4_0','3_3_0', '3_2_0', '3_1_0', '3_0_0', '2_8_0', '2_7_0', '2_6_0', '2_5_0', '2_4_0', '2_3_0', '2_2_0', '2_1_0', '2_0_0', '1_10_0', '1_9_0', '1_8_0'];
export type ApiDoc = {
summary: string;
description: string;
Expand Down
2 changes: 1 addition & 1 deletion cloudtower-api-doc/swagger/locales/en/3.4.4.json
Original file line number Diff line number Diff line change
Expand Up @@ -1868,7 +1868,7 @@
"paths": {
"/create-vm-from-content-library-template-batch": {
"summary": "Batch create VMs from content library template",
"description": ""
"description": "* Support from 3.4.4"
}
}
}
4 changes: 2 additions & 2 deletions cloudtower-api-doc/swagger/locales/en/components.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
"expand": "Expand all",
"show": "show",
"send": "Send",

"server_placeholder": "add new server, http://YOUR_TOWER_URL/v2/api",
"servers": "Servers",
"filter_placeholder": "Filter By Tag, API, API Description.",
Expand Down Expand Up @@ -86,5 +85,6 @@
"candidate": "End-User License Agreement",
"version_icu": "Version {version}",
"VirtualPrivateCloudNetwork": "VPC Networking",
"DistributedFirewall": "Distributed Firewall"
"DistributedFirewall": "Distributed Firewall",
"allVersions": "All Versions"
}
2 changes: 1 addition & 1 deletion cloudtower-api-doc/swagger/locales/zh/3.4.4.json
Original file line number Diff line number Diff line change
Expand Up @@ -1868,7 +1868,7 @@
"paths": {
"/create-vm-from-content-library-template-batch": {
"summary": "批量从内容库模版创建虚拟机",
"description": ""
"description": "* 从 3.4.4 开始支持"
}
}
}
3 changes: 2 additions & 1 deletion cloudtower-api-doc/swagger/locales/zh/components.json
Original file line number Diff line number Diff line change
Expand Up @@ -84,5 +84,6 @@
"candidate": "最终用户许可协议",
"version_icu": "版本 {version}",
"VirtualPrivateCloudNetwork": "虚拟专有云网络",
"DistributedFirewall": "分布式防火墙"
"DistributedFirewall": "分布式防火墙",
"allVersions": "所有版本"
}
1 change: 0 additions & 1 deletion cloudtower-api-doc/swagger/utils/swagger.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ export const specMap = {
'4.1.0': import('../../static/specs/4.1.0-swagger.json'),
'4.0.0': import('../../static/specs/4.0.0-swagger.json'),
'3.4.4': import('../../static/specs/3.4.4-swagger.json'),
'3.4.0': import('../../static/specs/3.4.0-swagger.json'),
'3.3.0': import('../../static/specs/3.3.0-swagger.json'),
'3.2.0': import('../../static/specs/3.2.0-swagger.json'),
'3.1.0': import('../../static/specs/3.1.0-swagger.json'),
Expand Down

0 comments on commit 7433dc3

Please sign in to comment.