restore: 恢复 11-06~11-09 本地未提交改动

- libs: 新增 hr_sdk / hotel_report / dingtalk,更新 desktopauto
- controlplane-next: SDK 管理模块(controller/entity/migrations)与前端视图
- electron-shell: 插件同步、注册表、runner 调整
- plugins: XQ0035/XQ0041/XQ0042/XQ0045_XQ0046/XQ0048/XQ0076/XQ0078 等版本更新
- tests/tools: 新增 SDK 兼容性检查与打包工具(sdk_pack.py、sdk_compat_check.py)
This commit is contained in:
2026-11-09 17:27:10 +08:00
parent 19078629d1
commit 1664821117
327 changed files with 29670 additions and 718 deletions
@@ -7,6 +7,7 @@
<b class="sc-name">{{ plugin.name }}</b>
<span class="sc-meta">
<em class="ver">v{{ plugin.version }}</em>
<em v-if="chan" class="chan" :class="chan.kind" :title="chan.title">{{ chan.text }}</em>
<span v-if="plugin.platform" class="plat" :class="platformOnline ? 'on' : 'off'"
:title="`${platformTip} ${platformOnline ? '已登录' : '未登录,请先在运行台登录'}`">
<i class="dot"></i>{{ platformTip }} · {{ platformOnline ? '已登录' : '未登录' }}
@@ -39,6 +40,10 @@
<span class="sc-tags">
<em class="sc-tag ver">v{{ plugin.version }}</em>
<em v-if="chan" class="sc-tag chan" :class="chan.kind" :title="chan.title">{{ chan.text }}</em>
<em v-if="plugin.update_available" class="sc-tag upd" title="云端有新版本,点左栏「插件同步」可升级">
↑ v{{ plugin.cloud_version }}
</em>
<em v-if="plugin.platform" class="sc-tag plat" :class="platformOnline ? 'on' : 'off'"
:title="`${platformTip} ${platformOnline ? '已登录' : '未登录,请先在运行台登录'}`">
<i class="dot"></i><span class="tx">{{ platformText }}</span>
@@ -73,6 +78,7 @@
import { computed } from 'vue'
import { store } from '../store'
import { sceneDotColor } from '../utils/theme'
import { pluginChannelTag } from '../utils/format'
// 场景卡:首页「常用场景」(compact,无描述)与场景库(竖向卡)共用。
// 色点按插件在总清单中的位置取色,搜索/筛选/分组后颜色仍稳定。
@@ -124,6 +130,8 @@ const iconPath = computed(() => {
return hit ? hit.icon : ICON_POOL[pluginIndex.value % ICON_POOL.length]
})
const platform = computed(() => store.platforms.find((p) => p.id === props.plugin.platform) || null)
// 通道徽章(正式版/测试版):由 /api/meta 回填的 cloud channel 决定,离线时为空不显示
const chan = computed(() => pluginChannelTag(props.plugin))
const platformTip = computed(() => platform.value?.label || props.plugin.platform || '')
const platformOnline = computed(() => !!platform.value?.online)
// 已登录只留平台名(绿点即状态),未登录显式标出,避免"点进去才发现要登录"
@@ -162,6 +170,13 @@ const running = computed(() => store.running && store.selectedId === props.plugi
}
.sc-meta { display: flex; align-items: center; gap: var(--space-2); margin-top: 1px; }
.ver { font-style: normal; font: 400 10.5px/15px var(--f-num); color: var(--t4); flex-shrink: 0; }
/* 通道徽章(紧凑态):测试版=橙、正式版=绿,一眼看出当前跑的通道 */
.scene-card.compact .chan {
flex-shrink: 0; font-style: normal; font: 500 9.5px/14px var(--f-cn);
padding: 0 4px; border-radius: 3px; border: 1px solid transparent;
}
.scene-card.compact .chan.test { color: var(--warn-ink); background: var(--warn-soft); border-color: var(--warn-line); }
.scene-card.compact .chan.prod { color: var(--good-ink); background: var(--good-soft); border-color: var(--good-line); }
/* 紧凑态平台登录态(首页常用场景用):限定在 compact 内,避免污染场景库卡的标签色 */
.scene-card.compact .plat {
display: inline-flex; align-items: center; gap: 5px;
@@ -238,6 +253,10 @@ const running = computed(() => store.running && store.selectedId === props.plugi
white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.sc-tag.ver { font-family: var(--f-num); color: var(--t4); }
/* 通道徽章:测试版(橙)/ 正式版(绿);有新版时另给一个「↑ vX」提示 */
.sc-tag.chan.test { color: var(--warn-ink); background: var(--warn-soft); border-color: var(--warn-line); }
.sc-tag.chan.prod { color: var(--good-ink); background: var(--good-soft); border-color: var(--good-line); }
.sc-tag.upd { color: var(--brand-ink); background: var(--brand-soft); border-color: var(--brand-track); font-family: var(--f-num); }
.sc-tag.plat { flex-shrink: 1; min-width: 0; }
.sc-tag.plat .tx { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.sc-tag.plat .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--t5); flex-shrink: 0; }