diff --git a/web/public/cloud/runtime.js b/web/public/cloud/runtime.js index 578a18ff..654debba 100644 --- a/web/public/cloud/runtime.js +++ b/web/public/cloud/runtime.js @@ -911,8 +911,8 @@ function renderOfferPicker() { selectedOfferId = offerInput.value; } const header = makeElement('div', 'offer-table-head'); - ['deploy.offer.name', 'deploy.offer.cpu', 'deploy.offer.memory', 'deploy.offer.disk', 'deploy.offer.traffic'] - .forEach(key => header.append(makeElement('span', '', t(key)))); + [t('deploy.offer.name'), t('deploy.offer.cpu'), 'Memory', 'Nvme', 'Traffic'] + .forEach(label => header.append(makeElement('span', '', label))); const rows = offers.map(offer => { const button = makeElement('button', 'offer-option'); const memory = formatMemoryGiB(offer.memory_mib); diff --git a/web/public/cloud/styles.css b/web/public/cloud/styles.css index 1fedb1e0..bf0c9868 100644 --- a/web/public/cloud/styles.css +++ b/web/public/cloud/styles.css @@ -283,9 +283,9 @@ body.vu-body .ssh-key-picker-manage:hover { .offer-option-value{display:grid;gap:3px;white-space:normal} .offer-option-value::before{color:#91a0ae;font-size:9px;font-weight:800} .offer-option>:nth-child(2)::before{content:"CPU"} - .offer-option>:nth-child(3)::before{content:"内存"} - .offer-option>:nth-child(4)::before{content:"硬盘"} - .offer-option>:nth-child(5)::before{content:"每期流量"} + .offer-option>:nth-child(3)::before{content:"Memory"} + .offer-option>:nth-child(4)::before{content:"Nvme"} + .offer-option>:nth-child(5)::before{content:"Traffic"} .cloud-backup-facts{grid-template-columns:repeat(2,minmax(0,1fr))} } @media(max-width:510px){.deployment-step{padding-bottom:23px;margin-bottom:22px}.deployment-step-heading{margin-bottom:16px}.region-picker,.line-picker{grid-template-columns:1fr}.region-option{min-height:66px}.line-option{min-height:54px}.offer-option{grid-template-columns:repeat(4,minmax(0,1fr));grid-template-rows:auto auto;gap:12px 8px;min-height:108px;padding:15px 14px 14px 16px}.offer-option::after{content:"";position:absolute;top:13px;right:14px;display:grid;place-items:center;width:22px;height:22px;border:1.5px solid #bdccd4;border-radius:50%;background:#fff;color:transparent;font-size:12px;font-weight:900}.offer-option[aria-pressed="true"]{box-shadow:none}.offer-option[aria-pressed="true"]::after{content:"✓";top:13px;right:14px;width:22px;height:22px;border:1.5px solid #18a6b0;background:#18a6b0;color:#fff}.offer-option.is-sold-out::after{display:none}.offer-option-name{grid-column:1/5;grid-row:1;align-self:center;padding-right:31px;font-size:14px}.offer-option-value{display:grid;grid-row:2;gap:4px;white-space:normal}.offer-option-value::before{color:#718599;font-size:9px;font-weight:800;white-space:nowrap}.offer-option>:nth-child(2){grid-column:1}.offer-option>:nth-child(3){grid-column:2}.offer-option>:nth-child(4){grid-column:3}.offer-option>:nth-child(5){grid-column:4}.deployment-backup-source{align-items:flex-start;flex-wrap:wrap}.deployment-backup-source .button{width:100%}.template-family-card{height:140px;min-height:140px;border:1px solid #dce7ec;border-radius:12px;background:#fff;overflow:hidden;box-shadow:none}.template-family-summary{height:100%;min-height:100%;border:0;border-radius:inherit;background:transparent}.template-family-card[open]{z-index:70;border-color:#a8dadd;box-shadow:0 12px 28px rgba(30,66,82,.14)}.template-family-card.has-selection{border-color:#2eabb4;background:#f5fbfb}.template-versions{position:absolute;inset:0;z-index:80;width:auto;height:auto;max-height:none;margin:0;padding:6px 8px 40px;overflow-y:auto;border:0;border-radius:inherit;background:#fbfdfd;box-shadow:none;overscroll-behavior:contain;-webkit-overflow-scrolling:touch}.template-family-card[open] .template-family-footer{position:absolute;right:7px;bottom:7px;z-index:90;width:32px;min-height:32px;border-radius:999px;background:#eaf8f8}.template-family-card[open] .template-family-selection{display:none}.user-iso-row{align-items:flex-start;flex-direction:column}.user-iso-row .row-button{width:100%}} diff --git a/web/resources/user-copy/entries/instances-deploy.entries.php b/web/resources/user-copy/entries/instances-deploy.entries.php index 9ce004bb..fc465507 100644 --- a/web/resources/user-copy/entries/instances-deploy.entries.php +++ b/web/resources/user-copy/entries/instances-deploy.entries.php @@ -125,9 +125,6 @@ return [ $entry('deploy.offer.empty', 'deploy', 'cloud.deploy', '当前选择暂无可用实例规格。', 'empty_state'), $entry('deploy.offer.name', 'deploy', 'cloud.deploy', '名称'), $entry('deploy.offer.cpu', 'deploy', 'cloud.deploy', 'CPU'), - $entry('deploy.offer.memory', 'deploy', 'cloud.deploy', '内存'), - $entry('deploy.offer.disk', 'deploy', 'cloud.deploy', '硬盘'), - $entry('deploy.offer.traffic', 'deploy', 'cloud.deploy', '每期流量'), $entry('deploy.offer.sold_out', 'deploy', 'cloud.deploy', '暂时售罄', 'status'), $entry('deploy.offer.unlimited', 'deploy', 'cloud.deploy', '不限', 'status'), $entry('deploy.offer.select', 'deploy', 'cloud.deploy', '选择实例规格 {name},{cpu} vCPU,内存 {memory},硬盘 {disk} GB,每期流量 {traffic}', 'aria_label', ['name' => 'string', 'cpu' => 'number', 'memory' => 'string', 'disk' => 'number', 'traffic' => 'string']), diff --git a/web/resources/views/venix/cloud/pages/deploy.tpl b/web/resources/views/venix/cloud/pages/deploy.tpl index 7d5c46fd..da654517 100644 --- a/web/resources/views/venix/cloud/pages/deploy.tpl +++ b/web/resources/views/venix/cloud/pages/deploy.tpl @@ -43,7 +43,7 @@ {assign var=default_line_has_offers value=false} {foreach $cloud_deploy_offers as $offer} {if $offer.region_id == $cloud_deploy_default_region_id && $offer.line_id == $cloud_deploy_default_line_id} - {if !$default_line_has_offers}