style(console): 更新横幅按钮排序(复制→发布页→忽略)+字号统一+后两按钮灰化;复制反馈改绿并提示请在任意对话中发送;更新方法说明改白色
This commit is contained in:
@@ -197,7 +197,7 @@ export const zh = {
|
||||
'annot.latest': '已是最新版本',
|
||||
'annot.checkFail': '检查失败,请稍后再试',
|
||||
'annot.copyUpgrade': '复制升级指令',
|
||||
'annot.copied': '已复制 ✓',
|
||||
'annot.copied': '已复制 ✓ 请在任意对话中发送',
|
||||
'annot.howUpdate': '更新方法:点「复制升级指令」→ 粘贴给当前 AI 会话由它执行,完成后重启 DSH;或手动在终端运行升级命令。',
|
||||
'pane.expand': '展开窗格',
|
||||
'pane.jobsTitle': '后台任务',
|
||||
@@ -420,7 +420,7 @@ export const en = {
|
||||
'annot.latest': 'Up to date',
|
||||
'annot.checkFail': 'Check failed — try again later',
|
||||
'annot.copyUpgrade': 'Copy upgrade command',
|
||||
'annot.copied': 'Copied ✓',
|
||||
'annot.copied': 'Copied ✓ paste it in any conversation',
|
||||
'annot.howUpdate': 'How to update: click “Copy upgrade command” and paste it to your AI session to run, then restart DSH; or run the upgrade command in a terminal manually.',
|
||||
'pane.expand': 'Expand pane',
|
||||
'pane.jobsTitle': 'Background jobs',
|
||||
|
||||
@@ -1942,8 +1942,8 @@ function ConsolePane() {
|
||||
{updInfo && (
|
||||
<div className="dsh-wt_announceUpdate">
|
||||
<span className="dsh-wt_announceNewVer">{T('annot.newVer')} v{updInfo.latest}</span>
|
||||
<button type="button" className="dsh-wt_gridToggle dsh-wt_gridToggleOn" onClick={() => { try { window.open(updInfo.url, '_blank') } catch {} }}>{T('annot.gotoRelease')}</button>
|
||||
<button type="button" className="dsh-wt_announceUpg" onClick={onCopyUpgrade}>{updCopied ? T('annot.copied') : T('annot.copyUpgrade')}</button>
|
||||
<button type="button" className={'dsh-wt_announceUpg' + (updCopied ? ' dsh-wt_announceUpgOk' : '')} onClick={onCopyUpgrade}>{updCopied ? T('annot.copied') : T('annot.copyUpgrade')}</button>
|
||||
<button type="button" className="dsh-wt_announceSkip" onClick={() => { try { window.open(updInfo.url, '_blank') } catch {} }}>{T('annot.gotoRelease')}</button>
|
||||
<button type="button" className="dsh-wt_announceSkip" onClick={onSkipVersion}>{T('annot.skipVer')}</button>
|
||||
<div className="dsh-wt_announceHow">{T('annot.howUpdate')}</div>
|
||||
</div>
|
||||
|
||||
@@ -442,7 +442,9 @@ export const css = xtermCss + '\n' + [
|
||||
'.dsh-wt_announceNewVer{font-size:12px;line-height:17px;color:#7eb3ff;font-weight:600}',
|
||||
'.dsh-wt_announceUpg{flex:none;padding:3px 10px;border:none;border-radius:6px;background:rgba(79,142,247,.16);color:#7eb3ff;font:inherit;font-size:11px;line-height:16px;cursor:pointer}',
|
||||
'.dsh-wt_announceUpg:hover{background:rgba(79,142,247,.3);color:#bcd6ff}',
|
||||
'.dsh-wt_announceHow{flex:none;width:100%;font-size:11px;line-height:16px;color:var(--wt-text3);padding-top:2px}',
|
||||
'.dsh-wt_announceUpgOk{background:rgba(29,154,85,.2);color:#4ade80}',
|
||||
'.dsh-wt_announceUpgOk:hover{background:rgba(29,154,85,.3);color:#86efac}',
|
||||
'.dsh-wt_announceHow{flex:none;width:100%;font-size:11px;line-height:16px;color:var(--wt-text);padding-top:2px}',
|
||||
'.dsh-wt_announceSkip{flex:none;padding:3px 10px;border:none;border-radius:6px;background:transparent;color:var(--wt-text3);font:inherit;font-size:11px;line-height:16px;cursor:pointer}',
|
||||
'.dsh-wt_announceSkip:hover{background:rgba(244,63,94,.14);color:#f87171}',
|
||||
'.dsh-wt_announceStatus{font-size:11px;line-height:16px;color:var(--wt-text3)}',
|
||||
|
||||
Reference in New Issue
Block a user