fix(hermes): align channel secrets with runtime env

This commit is contained in:
晴天
2026-05-23 02:49:31 +08:00
parent 6aa7a05f36
commit f7518ae4b3
7 changed files with 361 additions and 59 deletions

View File

@@ -147,12 +147,12 @@ export default {
isGatewayForeign() { return false },
onStateChange(fn) {
_stateListeners.push(fn)
return () => { _stateListeners = _stateListeners.filter(cb => cb !== fn) }
_listeners.push(fn)
return () => { _listeners = _listeners.filter(cb => cb !== fn) }
},
onReadyChange(fn) {
_readyListeners.push(fn)
return () => { _readyListeners = _readyListeners.filter(cb => cb !== fn) }
_listeners.push(fn)
return () => { _listeners = _listeners.filter(cb => cb !== fn) }
},
isFeatureAvailable() { return true },

View File

@@ -193,7 +193,7 @@ export function render() {
<section class="hm-channel-summary" aria-label="${esc(t('engine.hermesChannelSummary'))}">
<div class="hm-channel-stat"><span>${esc(t('engine.hermesChannelEnabledCount'))}</span><strong>${enabledCount}</strong></div>
<div class="hm-channel-stat"><span>${esc(t('engine.hermesChannelConfiguredCount'))}</span><strong>${configuredCount}</strong></div>
<div class="hm-channel-stat"><span>${esc(t('engine.hermesChannelRuntimeWrite'))}</span><strong>YAML + .env</strong></div>
<div class="hm-channel-stat"><span>${esc(t('engine.hermesChannelRuntimeWrite'))}</span><strong>${esc(t('engine.hermesChannelRuntimeWriteValue'))}</strong></div>
</section>
${(error || success) ? `