feat(scheduler): per-source cadence + source-health log with failure diagnosis + UI copy
This commit is contained in:
1 parent
105ab86bf6
commit
14b2aeff7c
7 files changed
+363
-32
No files matched your search
-18
@@ -1,18 +0,0 @@
|
||||
(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const l of document.querySelectorAll('link[rel="modulepreload"]'))n(l);new MutationObserver(l=>{for(const i of l)if(i.type==="childList")for(const r of i.addedNodes)r.tagName==="LINK"&&r.rel==="modulepreload"&&n(r)}).observe(document,{childList:!0,subtree:!0});function s(l){const i={};return l.integrity&&(i.integrity=l.integrity),l.referrerPolicy&&(i.referrerPolicy=l.referrerPolicy),l.crossOrigin==="use-credentials"?i.credentials="include":l.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function n(l){if(l.ep)return;l.ep=!0;const i=s(l);fetch(l.href,i)}})();/**
|
||||
* @vue/shared v3.5.41
|
||||
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
||||
* @license MIT
|
||||
**/function bn(e){const t=Object.create(null);for(const s of e.split(","))t[s]=1;return s=>s in t}const ee={},Ft=[],qe=()=>{},yl=()=>!1,Ds=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),Ns=e=>e.startsWith("onUpdate:"),be=Object.assign,yn=(e,t)=>{const s=e.indexOf(t);s>-1&&e.splice(s,1)},Ri=Object.prototype.hasOwnProperty,J=(e,t)=>Ri.call(e,t),L=Array.isArray,Dt=e=>as(e)==="[object Map]",Ht=e=>as(e)==="[object Set]",Hn=e=>as(e)==="[object Date]",j=e=>typeof e=="function",re=e=>typeof e=="string",Je=e=>typeof e=="symbol",Z=e=>e!==null&&typeof e=="object",xl=e=>(Z(e)||j(e))&&j(e.then)&&j(e.catch),wl=Object.prototype.toString,as=e=>wl.call(e),Mi=e=>as(e).slice(8,-1),Sl=e=>as(e)==="[object Object]",xn=e=>re(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Gt=bn(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Ls=e=>{const t=Object.create(null);return(s=>t[s]||(t[s]=e(s)))},Ii=/-\w/g,Ie=Ls(e=>e.replace(Ii,t=>t.slice(1).toUpperCase())),Fi=/\B([A-Z])/g,Ot=Ls(e=>e.replace(Fi,"-$1").toLowerCase()),Cl=Ls(e=>e.charAt(0).toUpperCase()+e.slice(1)),Ys=Ls(e=>e?`on${Cl(e)}`:""),Ke=(e,t)=>!Object.is(e,t),Cs=(e,...t)=>{for(let s=0;s<e.length;s++)e[s](...t)},Tl=(e,t,s,n=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:n,value:s})},js=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let Bn;const Vs=()=>Bn||(Bn=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function $s(e){if(L(e)){const t={};for(let s=0;s<e.length;s++){const n=e[s],l=re(n)?ji(n):$s(n);if(l)for(const i in l)t[i]=l[i]}return t}else if(re(e)||Z(e))return e}const Di=/;(?![^(]*\))/g,Ni=/:([^]+)/,Li=/\/\*[^]*?\*\//g;function ji(e){const t={};return e.replace(Li,"").split(Di).forEach(s=>{if(s){const n=s.split(Ni);n.length>1&&(t[n[0].trim()]=n[1].trim())}}),t}function Q(e){let t="";if(re(e))t=e;else if(L(e))for(let s=0;s<e.length;s++){const n=Q(e[s]);n&&(t+=n+" ")}else if(Z(e))for(const s in e)e[s]&&(t+=s+" ");return t.trim()}const Vi="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",$i=bn(Vi);function kl(e){return!!e||e===""}function Hi(e,t){if(e.length!==t.length)return!1;let s=!0;for(let n=0;s&&n<e.length;n++)s=Bt(e[n],t[n]);return s}function Bt(e,t){if(e===t)return!0;let s=Hn(e),n=Hn(t);if(s||n)return s&&n?e.getTime()===t.getTime():!1;if(s=Je(e),n=Je(t),s||n)return e===t;if(s=L(e),n=L(t),s||n)return s&&n?Hi(e,t):!1;if(s=Z(e),n=Z(t),s||n){if(!s||!n)return!1;const l=Object.keys(e).length,i=Object.keys(t).length;if(l!==i)return!1;for(const r in e){const a=e.hasOwnProperty(r),u=t.hasOwnProperty(r);if(a&&!u||!a&&u||!Bt(e[r],t[r]))return!1}}return String(e)===String(t)}function wn(e,t){return e.findIndex(s=>Bt(s,t))}const El=e=>!!(e&&e.__v_isRef===!0),_=e=>re(e)?e:e==null?"":L(e)||Z(e)&&(e.toString===wl||!j(e.toString))?El(e)?_(e.value):JSON.stringify(e,Ol,2):String(e),Ol=(e,t)=>El(t)?Ol(e,t.value):Dt(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((s,[n,l],i)=>(s[Xs(n,i)+" =>"]=l,s),{})}:Ht(t)?{[`Set(${t.size})`]:[...t.values()].map(s=>Xs(s))}:Je(t)?Xs(t):Z(t)&&!L(t)&&!Sl(t)?String(t):t,Xs=(e,t="")=>{var s;return Je(e)?`Symbol(${(s=e.description)!=null?s:t})`:e};/**
|
||||
* @vue/reactivity v3.5.41
|
||||
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
||||
* @license MIT
|
||||
**/let ge;class Bi{constructor(t=!1){this.detached=t,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this._warnOnRun=!0,this.__v_skip=!0,!t&&ge&&(ge.active?(this.parent=ge,this.index=(ge.scopes||(ge.scopes=[])).push(this)-1):(this._active=!1,this._warnOnRun=!1))}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,s;if(this.scopes){const n=this.scopes.slice();for(t=0,s=n.length;t<s;t++)n[t].pause()}for(t=0,s=this.effects.length;t<s;t++)this.effects[t].pause()}}resume(){if(this._active&&this._isPaused){this._isPaused=!1;let t,s;if(this.scopes){const l=this.scopes.slice();for(t=0,s=l.length;t<s;t++)l[t].resume()}const n=this.effects.slice();for(t=0,s=n.length;t<s;t++)n[t].resume()}}run(t){if(this._active){const s=ge;try{return ge=this,t()}finally{ge=s}}}on(){++this._on===1&&(this.prevScope=ge,ge=this)}off(){if(this._on>0&&--this._on===0){if(ge===this)ge=this.prevScope;else{let t=ge;for(;t;){if(t.prevScope===this){t.prevScope=this.prevScope;break}t=t.prevScope}}this.prevScope=void 0}}stop(t){if(this._active){this._active=!1;let s,n;for(s=0,n=this.effects.length;s<n;s++)this.effects[s].stop();for(this.effects.length=0,s=0,n=this.cleanups.length;s<n;s++)this.cleanups[s]();if(this.cleanups.length=0,this.scopes){const l=this.scopes.slice();for(s=0,n=l.length;s<n;s++)l[s].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!t){const l=this.parent.scopes.pop();l&&l!==this&&(this.parent.scopes[this.index]=l,l.index=this.index)}this.parent=void 0}}}function Ui(){return ge}let te;const Zs=new WeakSet;class Pl{constructor(t){this.fn=t,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.next=void 0,this.cleanup=void 0,this.scheduler=void 0,ge&&(ge.active?ge.effects.push(this):this.flags&=-2)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,Zs.has(this)&&(Zs.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||Rl(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,Un(this),Ml(this);const t=te,s=Fe;te=this,Fe=!0;try{return this.fn()}finally{Il(this),te=t,Fe=s,this.flags&=-3}}stop(){if(this.flags&1){for(let t=this.deps;t;t=t.nextDep)Tn(t);this.deps=this.depsTail=void 0,Un(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?Zs.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){cn(this)&&this.run()}get dirty(){return cn(this)}}let Al=0,Yt,Xt;function Rl(e,t=!1){if(e.flags|=8,t){e.next=Xt,Xt=e;return}e.next=Yt,Yt=e}function Sn(){Al++}function Cn(){if(--Al>0)return;if(Xt){let t=Xt;for(Xt=void 0;t;){const s=t.next;t.next=void 0,t.flags&=-9,t=s}}let e;for(;Yt;){let t=Yt;for(Yt=void 0;t;){const s=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(n){e||(e=n)}t=s}}if(e)throw e}function Ml(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function Il(e){let t,s=e.depsTail,n=s;for(;n;){const l=n.prevDep;n.version===-1?(n===s&&(s=l),Tn(n),Ki(n)):t=n,n.dep.activeLink=n.prevActiveLink,n.prevActiveLink=void 0,n=l}e.deps=t,e.depsTail=s}function cn(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(Fl(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function Fl(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===ts)||(e.globalVersion=ts,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!cn(e))))return;e.flags|=2;const t=e.dep,s=te,n=Fe;te=e,Fe=!0;try{Ml(e);const l=e.fn(e._value);(t.version===0||Ke(l,e._value))&&(e.flags|=128,e._value=l,t.version++)}catch(l){throw t.version++,l}finally{te=s,Fe=n,Il(e),e.flags&=-3}}function Tn(e,t=!1){const{dep:s,prevSub:n,nextSub:l}=e;if(n&&(n.nextSub=l,e.prevSub=void 0),l&&(l.prevSub=n,e.nextSub=void 0),s.subs===e&&(s.subs=n,!n&&s.computed)){s.computed.flags&=-5;for(let i=s.computed.deps;i;i=i.nextDep)Tn(i,!0)}!t&&!--s.sc&&s.map&&s.map.delete(s.key)}function Ki(e){const{prevDep:t,nextDep:s}=e;t&&(t.nextDep=s,e.prevDep=void 0),s&&(s.prevDep=t,e.nextDep=void 0)}let Fe=!0;const Dl=[];function it(){Dl.push(Fe),Fe=!1}function ot(){const e=Dl.pop();Fe=e===void 0?!0:e}function Un(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const s=te;te=void 0;try{t()}finally{te=s}}}let ts=0;class Wi{constructor(t,s){this.sub=t,this.dep=s,this.version=s.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class kn{constructor(t){this.computed=t,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,this.__v_skip=!0}track(t){if(!te||!Fe||te===this.computed)return;let s=this.activeLink;if(s===void 0||s.sub!==te)s=this.activeLink=new Wi(te,this),te.deps?(s.prevDep=te.depsTail,te.depsTail.nextDep=s,te.depsTail=s):te.deps=te.depsTail=s,Nl(s);else if(s.version===-1&&(s.version=this.version,s.nextDep)){const n=s.nextDep;n.prevDep=s.prevDep,s.prevDep&&(s.prevDep.nextDep=n),s.prevDep=te.depsTail,s.nextDep=void 0,te.depsTail.nextDep=s,te.depsTail=s,te.deps===s&&(te.deps=Line truncated
|
||||
* @vue/runtime-core v3.5.41
|
||||
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
||||
* @license MIT
|
||||
**/function cs(e,t,s,n){try{return n?e(...n):e()}catch(l){Bs(l,t,s)}}function Ne(e,t,s,n){if(j(e)){const l=cs(e,t,s,n);return l&&xl(l)&&l.catch(i=>{Bs(i,t,s)}),l}if(L(e)){const l=[];for(let i=0;i<e.length;i++)l.push(Ne(e[i],t,s,n));return l}}function Bs(e,t,s,n=!0){const l=t?t.vnode:null,{errorHandler:i,throwUnhandledErrorInProduction:r}=t&&t.appContext.config||ee;if(t){let a=t.parent;const u=t.proxy,h=`https://vuejs.org/error-reference/#runtime-${s}`;for(;a;){const p=a.ec;if(p){for(let y=0;y<p.length;y++)if(p[y](e,u,h)===!1)return}a=a.parent}if(i){it(),cs(i,null,10,[e,u,h]),ot();return}}mo(e,s,l,n,r)}function mo(e,t,s,n=!0,l=!1){if(l)throw e;console.error(e)}const xe=[];let He=-1;const Nt=[];let ht=null,It=0;const Kl=Promise.resolve();let Ps=null;function Wl(e){const t=Ps||Kl;return e?t.then(this?e.bind(this):e):t}function bo(e){let t=He+1,s=xe.length;for(;t<s;){const n=t+s>>>1,l=xe[n],i=ns(l);i<e||i===e&&l.flags&2?t=n+1:s=n}return t}function Rn(e){if(!(e.flags&1)){const t=ns(e),s=xe[xe.length-1];!s||!(e.flags&2)&&t>=ns(s)?xe.push(e):xe.splice(bo(t),0,e),e.flags|=1,ql()}}function ql(){Ps||(Ps=Kl.then(Jl))}function yo(e){if(!L(e))ht&&e.id===-1?ht.splice(It+1,0,e):e.flags&1||(Nt.push(e),e.flags|=1);else for(let t=0;t<e.length;t++)Nt.push(e[t]);ql()}function Wn(e,t,s=He+1){for(;s<xe.length;s++){const n=xe[s];if(n&&n.flags&2){if(e&&n.id!==e.uid)continue;xe.splice(s,1),s--,n.flags&4&&(n.flags&=-2),n(),n.flags&4||(n.flags&=-2)}}}function zl(e){if(Nt.length){const t=[...new Set(Nt)].sort((s,n)=>ns(s)-ns(n));if(Nt.length=0,ht){for(let s=0;s<t.length;s++)ht.push(t[s]);return}for(ht=t,It=0;It<ht.length;It++){const s=ht[It];s.flags&4&&(s.flags&=-2),s.flags&8||s(),s.flags&=-2}ht=null,It=0}}const ns=e=>e.id==null?e.flags&2?-1:1/0:e.id;function Jl(e){try{for(He=0;He<xe.length;He++){const t=xe[He];t&&!(t.flags&8)&&(t.flags&4&&(t.flags&=-2),cs(t,t.i,t.i?15:14),t.flags&4||(t.flags&=-2))}}finally{for(;He<xe.length;He++){const t=xe[He];t&&(t.flags&=-2)}He=-1,xe.length=0,zl(),Ps=null,(xe.length||Nt.length)&&Jl()}}let Re=null,Gl=null;function As(e){const t=Re;return Re=e,Gl=e&&e.type.__scopeId||null,t}function xo(e,t=Re,s){if(!t||e._n)return e;const n=(...l)=>{n._d&&sl(-1);const i=As(t),r=Et.length;let a;try{a=e(...l)}finally{for(let u=Et.length;u>r;u--)yi();As(i),n._d&&sl(1)}return a};return n._n=!0,n._c=!0,n._d=!0,n}function xt(e,t){if(Re===null)return e;const s=zs(Re),n=e.dirs||(e.dirs=[]);for(let l=0;l<t.length;l++){let[i,r,a,u=ee]=t[l];i&&(j(i)&&(i={mounted:i,updated:i}),i.deep&<(r),n.push({dir:i,instance:s,value:r,oldValue:void 0,arg:a,modifiers:u}))}return e}function wt(e,t,s,n){const l=e.dirs,i=t&&t.dirs;for(let r=0;r<l.length;r++){const a=l[r];i&&(a.oldValue=i[r].value);let u=a.dir[n];u&&(it(),Ne(u,s,8,[e.el,a,e,t]),ot())}}function wo(e,t){if(we){let s=we.provides;const n=we.parent&&we.parent.provides;n===s&&(s=we.provides=Object.create(n)),s[e]=t}}function Ts(e,t,s=!1){const n=yr();if(n||Lt){let l=Lt?Lt._context.provides:n?n.parent==null||n.ce?n.vnode.appContext&&n.vnode.appContext.provides:n.parent.provides:void 0;if(l&&e in l)return l[e];if(arguments.length>1)return s&&j(t)?t.call(n&&n.proxy):t}}const So=Symbol.for("v-scx"),Co=()=>Ts(So);function tn(e,t,s){return Yl(e,t,s)}function Yl(e,t,s=ee){const{immediate:n,deep:l,flush:i,once:r}=s,a=be({},s),u=t&&n||!t&&i!=="post";let h;if(os){if(i==="sync"){const I=Co();h=I.__watcherHandles||(I.__watcherHandles=[])}else if(!u){const I=()=>{};return I.stop=qe,I.resume=qe,I.pause=qe,I}}const p=we;a.call=(I,U,A)=>Ne(I,p,U,A);let y=!1;i==="post"?a.scheduler=I=>{Te(I,p&&p.suspense)}:i!=="sync"&&(y=!0,a.scheduler=(I,U)=>{U?I():Rn(I)}),a.augmentJob=I=>{t&&(I.flags|=4),y&&(I.flags|=2,p&&(I.id=p.uid,I.i=p))};const R=_o(e,t,a);return os&&(h?h.push(R):u&&R()),R}function To(e,t,s){const n=this.proxy,l=re(e)?e.includes(".")?Xl(n,e):()=>n[e]:e.bind(n,n);let i;j(t)?i=t:(i=t.handler,s=t);const r=us(this),a=Yl(l,i.bind(n),s);return r(),a}function Xl(e,t){const s=t.split(".");return()=>{let n=e;for(let l=0;l<s.length&&n;l++)n=n[s[l]];return n}}const ko=Symbol("_vte"),Us=e=>e.__isTeleport,sn=Symbol("_leaveCb");function Eo(e){let t=e[0];if(e.length>1){for(const s of e)if(s.type!==at){t=s;break}}return t}function Zl(e){if(!In(e))return Us(e.type)&&e.children?Eo(e.children):e;if(e.component)return e.component.subTree;const{shapeFlag:t,children:s}=e;if(s){if(t&16)return s[0];if(t&32&&j(s.default))return s.default()}}function Mn(e,t){if(e.shapeFlag&6&&e.component){e.transition=t;const s=e.component.subTree;Mn(Us(s.type)&&Zl(s)||s,t)}else e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function Ql(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function qn(e,t){let s;return!!((s=Object.getOwnPropertyDescriptor(e,t))&&!s.configurable)}const Rs=new WeakMap;function Zt(e,t,s,n,l=!1){if(L(e)){e.forEach((A,se)=>Zt(A,t&&(L(t)?t[se]:t),s,n,l));return}if(Qt(n)&&!l){n.shapeFlag&512&&n.type.__asyncResolved&&n.component.subTree.component&&Zt(
Line truncated
|
||||
* @vue/runtime-dom v3.5.41
|
||||
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
||||
* @license MIT
|
||||
**/let mn;const il=typeof window<"u"&&window.trustedTypes;if(il)try{mn=il.createPolicy("vue",{createHTML:e=>e})}catch{}const ki=mn?e=>mn.createHTML(e):e=>e,Er="http://www.w3.org/2000/svg",Or="http://www.w3.org/1998/Math/MathML",tt=typeof document<"u"?document:null,ol=tt&&tt.createElement("template"),Pr={insert:(e,t,s)=>{t.insertBefore(e,s||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,s,n)=>{const l=t==="svg"?tt.createElementNS(Er,e):t==="mathml"?tt.createElementNS(Or,e):s?tt.createElement(e,{is:s}):tt.createElement(e);return e==="select"&&n&&n.multiple!=null&&l.setAttribute("multiple",n.multiple),l},createText:e=>tt.createTextNode(e),createComment:e=>tt.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>tt.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,s,n,l,i){const r=s?s.previousSibling:t.lastChild;if(l&&(l===i||l.nextSibling))for(;t.insertBefore(l.cloneNode(!0),s),!(l===i||!(l=l.nextSibling)););else{ol.innerHTML=ki(n==="svg"?`<svg>${e}</svg>`:n==="mathml"?`<math>${e}</math>`:e);const a=ol.content;if(n==="svg"||n==="mathml"){const u=a.firstChild;for(;u.firstChild;)a.appendChild(u.firstChild);a.removeChild(u)}t.insertBefore(a,s)}return[r?r.nextSibling:t.firstChild,s?s.previousSibling:t.lastChild]}},Ar=Symbol("_vtc");function Rr(e,t,s){const n=e[Ar];n&&(t=(t?[t,...n]:[...n]).join(" ")),t==null?e.removeAttribute("class"):s?e.setAttribute("class",t):e.className=t}const rl=Symbol("_vod"),Mr=Symbol("_vsh"),Ir=Symbol(""),Fr=/(?:^|;)\s*display\s*:/;function Dr(e,t,s){const n=e.style,l=re(s);let i=!1;if(s&&!l){if(t)if(re(t))for(const r of t.split(";")){const a=r.slice(0,r.indexOf(":")).trim();s[a]==null&&Jt(n,a,"")}else for(const r in t)s[r]==null&&Jt(n,r,"");for(const r in s){r==="display"&&(i=!0);const a=s[r];a!=null?Lr(e,r,!re(t)&&t?t[r]:void 0,a)||Jt(n,r,a):Jt(n,r,"")}}else if(l){if(t!==s){const r=n[Ir];r&&(s+=";"+r),n.cssText=s,i=Fr.test(s)}}else t&&e.removeAttribute("style");rl in e&&(e[rl]=i?n.display:"",e[Mr]&&(n.display="none"))}const al=/\s*!important$/;function Jt(e,t,s){if(L(s))s.forEach(n=>Jt(e,t,n));else if(s==null&&(s=""),t.startsWith("--"))e.setProperty(t,s);else{const n=Nr(e,t);al.test(s)?e.setProperty(Ot(n),s.replace(al,""),"important"):e[n]=s}}const cl=["Webkit","Moz","ms"],on={};function Nr(e,t){const s=on[t];if(s)return s;let n=Ie(t);if(n!=="filter"&&n in e)return on[t]=n;n=Cl(n);for(let l=0;l<cl.length;l++){const i=cl[l]+n;if(i in e)return on[t]=i}return t}function Lr(e,t,s,n){return e.tagName==="TEXTAREA"&&(t==="width"||t==="height")&&re(n)&&s===n}const ul="http://www.w3.org/1999/xlink";function fl(e,t,s,n,l,i=$i(t)){n&&t.startsWith("xlink:")?s==null?e.removeAttributeNS(ul,t.slice(6,t.length)):e.setAttributeNS(ul,t,s):s==null||i&&!kl(s)?e.removeAttribute(t):e.setAttribute(t,i?"":Je(s)?String(s):s)}function dl(e,t,s,n,l){if(t==="innerHTML"||t==="textContent"){s!=null&&(e[t]=t==="innerHTML"?ki(s):s);return}const i=e.tagName;if(t==="value"&&i!=="PROGRESS"&&!i.includes("-")){const a=i==="OPTION"?e.getAttribute("value")||"":e.value,u=s==null?e.type==="checkbox"?"on":"":String(s);(a!==u||!("_value"in e))&&(e.value=u),s==null&&e.removeAttribute(t),e._value=s;return}let r=!1;if(s===""||s==null){const a=typeof e[t];a==="boolean"?s=kl(s):s==null&&a==="string"?(s="",r=!0):a==="number"&&(s=0,r=!0)}try{e[t]=s}catch{}r&&e.removeAttribute(l||t)}function gt(e,t,s,n){e.addEventListener(t,s,n)}function jr(e,t,s,n){e.removeEventListener(t,s,n)}const pl=Symbol("_vei");function Vr(e,t,s,n,l=null){const i=e[pl]||(e[pl]={}),r=i[t];if(n&&r)r.value=n;else{const[a,u]=Br(t);if(n){const h=i[t]=Wr(n,l);gt(e,a,h,u)}else r&&(jr(e,a,r,u),i[t]=void 0)}}const $r=/(Once|Passive|Capture)$/,Hr=/^on:?(?:Once|Passive|Capture)$/;function Br(e){let t,s;for(;(s=e.match($r))&&!Hr.test(e);)t||(t={}),e=e.slice(0,e.length-s[1].length),t[s[1].toLowerCase()]=!0;return[e[2]===":"?e.slice(3):Ot(e.slice(2)),t]}let rn=0;const Ur=Promise.resolve(),Kr=()=>rn||(Ur.then(()=>rn=0),rn=Date.now());function Wr(e,t){const s=n=>{if(!n._vts)n._vts=Date.now();else if(n._vts<=s.attached)return;const l=s.value;if(L(l)){const i=n.stopImmediatePropagation;n.stopImmediatePropagation=()=>{i.call(n),n._stopped=!0};const r=l.slice(),a=[n];for(let u=0;u<r.length&&!n._stopped;u++){const h=r[u];h&&Ne(h,t,5,a)}}else Ne(l,t,5,[n])};return s.value=e,s.attached=Kr(),s}const hl=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,qr=(e,t,s,n,l,i)=>{const r=l==="svg";t==="class"?Rr(e,n,r):t==="style"?Dr(e,s,n):Ds(t)?Ns(t)||Vr(e,t,s,n,i):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):zr(e,t,n,r))?(dl(e,t,n),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&fl(e,t,n,r,i,t!=="value")):e._isVueCE&&(Jr(e,t)||e._def.__asyncLoader&&(/[A-Z]/.test(t)||!re(n)))?dl(e,Ie(t),n,i,t):(t==="true-value"?e._trueValue=n:t==="false-value"&&(e._fals
Line truncated
|
||||
`))),e[We]=$t(l);const i=n||l.props&&l.props.type==="number";gt(e,t?"change":"input",r=>{r.target.composing||e[We](an(e.value,s,i))}),(s||i)&>(e,"change",()=>{e.value=an(e.value,s,i)}),t||(gt(e,"compositionstart",Gr),gt(e,"compositionend",gl),gt(e,"change",gl))},mounted(e,{value:t,modifiers:{trim:s,number:n}}){const l=t??"",i=e[ws];delete e[ws],i!==void 0&&(e.type==="text"||e.type==="textarea")&&e.value!==i?e[We](an(e.value,s,n)):e.value=l},beforeUpdate(e,{value:t,oldValue:s,modifiers:{lazy:n,trim:l,number:i}},r){if(e[We]=$t(r),e.composing)return;const a=(i||e.type==="number")&&!/^0\d/.test(e.value)?js(e.value):e.value,u=t??"";if(a===u)return;const h=e.getRootNode();(h instanceof Document||h instanceof ShadowRoot)&&h.activeElement===e&&e.type!=="range"&&(n&&t===s||l&&e.value.trim()===u)||(e.value=u)}},vl={deep:!0,created(e,t,s){e[We]=$t(s),gt(e,"change",()=>{const n=e._modelValue,l=rs(e),i=e.checked,r=e[We];if(L(n)){const a=wn(n,l),u=a!==-1;if(i&&!u)r(n.concat(l));else if(!i&&u){const h=[...n];h.splice(a,1),r(h)}}else if(Ht(n)){const a=new Set(n);i?a.add(l):a.delete(l),r(a)}else r(Ei(e,i))})},mounted:_l,beforeUpdate(e,t,s){e[We]=$t(s),_l(e,t,s)}};function _l(e,{value:t,oldValue:s},n){e._modelValue=t;let l;if(L(t))l=wn(t,n.props.value)>-1;else if(Ht(t))l=t.has(n.props.value);else{if(t===s)return;l=Bt(t,Ei(e,!0))}e.checked!==l&&(e.checked=l)}const Yr={deep:!0,created(e,{value:t,modifiers:{number:s}},n){e._modelValue=t,gt(e,"change",()=>{const l=Array.prototype.filter.call(e.options,i=>i.selected).map(i=>s?js(rs(i)):rs(i));e[We](e.multiple?Ht(e._modelValue)?new Set(l):l:l[0]),e._assigning=!0,Wl(()=>{e._assigning=!1})}),e[We]=$t(n)},mounted(e,{value:t}){ml(e,t)},beforeUpdate(e,{value:t},s){e._modelValue=t,e[We]=$t(s)},updated(e,{value:t}){e._assigning||ml(e,t)}};function ml(e,t){const s=e.multiple,n=L(t);if(!(s&&!n&&!Ht(t))){for(let l=0,i=e.options.length;l<i;l++){const r=e.options[l],a=rs(r);if(s)if(n){const u=typeof a;u==="string"||u==="number"?r.selected=t.some(h=>String(h)===String(a)):r.selected=wn(t,a)>-1}else r.selected=t.has(a);else if(Bt(rs(r),t)){e.selectedIndex!==l&&(e.selectedIndex=l);return}}!s&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function rs(e){return"_value"in e?e._value:e.value}function Ei(e,t){const s=t?"_trueValue":"_falseValue";return s in e?e[s]:t}const Xr=["ctrl","shift","alt","meta"],Zr={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&e.button!==0,middle:e=>"button"in e&&e.button!==1,right:e=>"button"in e&&e.button!==2,exact:(e,t)=>Xr.some(s=>e[`${s}Key`]&&!t.includes(s))},Qr=(e,t)=>{if(!e)return e;const s=e._withMods||(e._withMods={}),n=t.join(".");return s[n]||(s[n]=((l,...i)=>{for(let r=0;r<t.length;r++){const a=Zr[t[r]];if(a&&a(l,t))return}return e(l,...i)}))},ea=be({patchProp:qr},Pr);let bl;function ta(){return bl||(bl=rr(ea))}const sa=((...e)=>{const t=ta().createApp(...e),{mount:s}=t;return t.mount=n=>{const l=la(n);if(!l)return;const i=t._component;!j(i)&&!i.render&&!i.template&&(i.template=l.innerHTML),l.nodeType===1&&(l.textContent="");const r=s(l,!1,na(l));return l instanceof Element&&(l.removeAttribute("v-cloak"),l.setAttribute("data-v-app","")),r},t});function na(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function la(e){return re(e)?document.querySelector(e):e}const ia={class:"app-shell"},oa={class:"content",id:"overview"},ra={class:"topbar"},aa={class:"topbar-meta"},ca={class:"as-of"},ua={key:0,class:"state-card"},fa={key:1,class:"state-card error-state"},da={class:"kpi-grid","aria-label":"Signal summary"},pa={class:"kpi-card accent-card"},ha={class:"kpi-value"},ga={class:"kpi-foot"},va={class:"long-count"},_a={class:"short-count"},ma={class:"neutral-count"},ba={class:"kpi-card"},ya={class:"kpi-value"},xa={class:"kpi-foot"},wa={class:"panel theme-panel",id:"themes"},Sa={class:"panel-header signal-header"},Ca={class:"status-tag"},Ta={class:"theme-grid"},ka={class:"theme-card-head"},Ea={class:"theme-chip"},Oa={class:"theme-label-th"},Pa={class:"theme-surprise"},Aa={class:"theme-surprise-value"},Ra={class:"theme-read"},Ma={key:0,class:"theme-read-value"},Ia={key:1,class:"theme-read-value"},Fa={key:2,class:"theme-read-value"},Da={key:3,class:"theme-read-value"},Na={key:0,class:"theme-narrative"},La={key:0,class:"macro-panel"},ja={class:"macro-chips"},Va={class:"macro-chip"},$a={class:"macro-chip"},Ha={class:"macro-chip"},Ba={class:"macro-chip"},Ua={class:"macro-chip"},Ka={class:"panel stock-panel",id:"stocks"},Wa={class:"panel-header signal-header"},qa={class:"stock-controls"},za={class:"toggle-filter"},Ja={key:0,class:"empty-research"},Ga={key:1,class:"table-wrap"},Ya={class:"factor-table"},Xa=["onClick"],Za={key:1,class:"muted-cell"},Qa={class:"combined-cell"},ec={class:"symbol-name"},tc={key:0,class:"muted-cell"},sc={class:"score-cell"},nc={key:0,cl
Line truncated
|
||||
+18
@@ -0,0 +1,18 @@
|
||||
(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const l of document.querySelectorAll('link[rel="modulepreload"]'))n(l);new MutationObserver(l=>{for(const i of l)if(i.type==="childList")for(const r of i.addedNodes)r.tagName==="LINK"&&r.rel==="modulepreload"&&n(r)}).observe(document,{childList:!0,subtree:!0});function s(l){const i={};return l.integrity&&(i.integrity=l.integrity),l.referrerPolicy&&(i.referrerPolicy=l.referrerPolicy),l.crossOrigin==="use-credentials"?i.credentials="include":l.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function n(l){if(l.ep)return;l.ep=!0;const i=s(l);fetch(l.href,i)}})();/**
|
||||
* @vue/shared v3.5.41
|
||||
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
||||
* @license MIT
|
||||
**/function bn(e){const t=Object.create(null);for(const s of e.split(","))t[s]=1;return s=>s in t}const ee={},Dt=[],Ge=()=>{},xl=()=>!1,$s=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),Ls=e=>e.startsWith("onUpdate:"),_e=Object.assign,yn=(e,t)=>{const s=e.indexOf(t);s>-1&&e.splice(s,1)},Li=Object.prototype.hasOwnProperty,Y=(e,t)=>Li.call(e,t),L=Array.isArray,$t=e=>cs(e)==="[object Map]",Bt=e=>cs(e)==="[object Set]",Bn=e=>cs(e)==="[object Date]",j=e=>typeof e=="function",re=e=>typeof e=="string",Xe=e=>typeof e=="symbol",Z=e=>e!==null&&typeof e=="object",wl=e=>(Z(e)||j(e))&&j(e.then)&&j(e.catch),Sl=Object.prototype.toString,cs=e=>Sl.call(e),Ni=e=>cs(e).slice(8,-1),Cl=e=>cs(e)==="[object Object]",xn=e=>re(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Yt=bn(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Ns=e=>{const t=Object.create(null);return(s=>t[s]||(t[s]=e(s)))},ji=/-\w/g,Fe=Ns(e=>e.replace(ji,t=>t.slice(1).toUpperCase())),Vi=/\B([A-Z])/g,Rt=Ns(e=>e.replace(Vi,"-$1").toLowerCase()),kl=Ns(e=>e.charAt(0).toUpperCase()+e.slice(1)),Ys=Ns(e=>e?`on${kl(e)}`:""),ze=(e,t)=>!Object.is(e,t),ks=(e,...t)=>{for(let s=0;s<e.length;s++)e[s](...t)},Tl=(e,t,s,n=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:n,value:s})},js=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let Kn;const Vs=()=>Kn||(Kn=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Hs(e){if(L(e)){const t={};for(let s=0;s<e.length;s++){const n=e[s],l=re(n)?Ui(n):Hs(n);if(l)for(const i in l)t[i]=l[i]}return t}else if(re(e)||Z(e))return e}const Hi=/;(?![^(]*\))/g,Bi=/:([^]+)/,Ki=/\/\*[^]*?\*\//g;function Ui(e){const t={};return e.replace(Ki,"").split(Hi).forEach(s=>{if(s){const n=s.split(Bi);n.length>1&&(t[n[0].trim()]=n[1].trim())}}),t}function Q(e){let t="";if(re(e))t=e;else if(L(e))for(let s=0;s<e.length;s++){const n=Q(e[s]);n&&(t+=n+" ")}else if(Z(e))for(const s in e)e[s]&&(t+=s+" ");return t.trim()}const Wi="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",qi=bn(Wi);function El(e){return!!e||e===""}function zi(e,t){if(e.length!==t.length)return!1;let s=!0;for(let n=0;s&&n<e.length;n++)s=Kt(e[n],t[n]);return s}function Kt(e,t){if(e===t)return!0;let s=Bn(e),n=Bn(t);if(s||n)return s&&n?e.getTime()===t.getTime():!1;if(s=Xe(e),n=Xe(t),s||n)return e===t;if(s=L(e),n=L(t),s||n)return s&&n?zi(e,t):!1;if(s=Z(e),n=Z(t),s||n){if(!s||!n)return!1;const l=Object.keys(e).length,i=Object.keys(t).length;if(l!==i)return!1;for(const r in e){const a=e.hasOwnProperty(r),u=t.hasOwnProperty(r);if(a&&!u||!a&&u||!Kt(e[r],t[r]))return!1}}return String(e)===String(t)}function wn(e,t){return e.findIndex(s=>Kt(s,t))}const Ol=e=>!!(e&&e.__v_isRef===!0),_=e=>re(e)?e:e==null?"":L(e)||Z(e)&&(e.toString===Sl||!j(e.toString))?Ol(e)?_(e.value):JSON.stringify(e,Pl,2):String(e),Pl=(e,t)=>Ol(t)?Pl(e,t.value):$t(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((s,[n,l],i)=>(s[Xs(n,i)+" =>"]=l,s),{})}:Bt(t)?{[`Set(${t.size})`]:[...t.values()].map(s=>Xs(s))}:Xe(t)?Xs(t):Z(t)&&!L(t)&&!Cl(t)?String(t):t,Xs=(e,t="")=>{var s;return Xe(e)?`Symbol(${(s=e.description)!=null?s:t})`:e};/**
|
||||
* @vue/reactivity v3.5.41
|
||||
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
||||
* @license MIT
|
||||
**/let pe;class Ji{constructor(t=!1){this.detached=t,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this._warnOnRun=!0,this.__v_skip=!0,!t&&pe&&(pe.active?(this.parent=pe,this.index=(pe.scopes||(pe.scopes=[])).push(this)-1):(this._active=!1,this._warnOnRun=!1))}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,s;if(this.scopes){const n=this.scopes.slice();for(t=0,s=n.length;t<s;t++)n[t].pause()}for(t=0,s=this.effects.length;t<s;t++)this.effects[t].pause()}}resume(){if(this._active&&this._isPaused){this._isPaused=!1;let t,s;if(this.scopes){const l=this.scopes.slice();for(t=0,s=l.length;t<s;t++)l[t].resume()}const n=this.effects.slice();for(t=0,s=n.length;t<s;t++)n[t].resume()}}run(t){if(this._active){const s=pe;try{return pe=this,t()}finally{pe=s}}}on(){++this._on===1&&(this.prevScope=pe,pe=this)}off(){if(this._on>0&&--this._on===0){if(pe===this)pe=this.prevScope;else{let t=pe;for(;t;){if(t.prevScope===this){t.prevScope=this.prevScope;break}t=t.prevScope}}this.prevScope=void 0}}stop(t){if(this._active){this._active=!1;let s,n;for(s=0,n=this.effects.length;s<n;s++)this.effects[s].stop();for(this.effects.length=0,s=0,n=this.cleanups.length;s<n;s++)this.cleanups[s]();if(this.cleanups.length=0,this.scopes){const l=this.scopes.slice();for(s=0,n=l.length;s<n;s++)l[s].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!t){const l=this.parent.scopes.pop();l&&l!==this&&(this.parent.scopes[this.index]=l,l.index=this.index)}this.parent=void 0}}}function Gi(){return pe}let te;const Zs=new WeakSet;class Al{constructor(t){this.fn=t,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.next=void 0,this.cleanup=void 0,this.scheduler=void 0,pe&&(pe.active?pe.effects.push(this):this.flags&=-2)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,Zs.has(this)&&(Zs.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||Ml(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,Un(this),Il(this);const t=te,s=De;te=this,De=!0;try{return this.fn()}finally{Fl(this),te=t,De=s,this.flags&=-3}}stop(){if(this.flags&1){for(let t=this.deps;t;t=t.nextDep)kn(t);this.deps=this.depsTail=void 0,Un(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?Zs.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){cn(this)&&this.run()}get dirty(){return cn(this)}}let Rl=0,Xt,Zt;function Ml(e,t=!1){if(e.flags|=8,t){e.next=Zt,Zt=e;return}e.next=Xt,Xt=e}function Sn(){Rl++}function Cn(){if(--Rl>0)return;if(Zt){let t=Zt;for(Zt=void 0;t;){const s=t.next;t.next=void 0,t.flags&=-9,t=s}}let e;for(;Xt;){let t=Xt;for(Xt=void 0;t;){const s=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(n){e||(e=n)}t=s}}if(e)throw e}function Il(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function Fl(e){let t,s=e.depsTail,n=s;for(;n;){const l=n.prevDep;n.version===-1?(n===s&&(s=l),kn(n),Yi(n)):t=n,n.dep.activeLink=n.prevActiveLink,n.prevActiveLink=void 0,n=l}e.deps=t,e.depsTail=s}function cn(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(Dl(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function Dl(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===ss)||(e.globalVersion=ss,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!cn(e))))return;e.flags|=2;const t=e.dep,s=te,n=De;te=e,De=!0;try{Il(e);const l=e.fn(e._value);(t.version===0||ze(l,e._value))&&(e.flags|=128,e._value=l,t.version++)}catch(l){throw t.version++,l}finally{te=s,De=n,Fl(e),e.flags&=-3}}function kn(e,t=!1){const{dep:s,prevSub:n,nextSub:l}=e;if(n&&(n.nextSub=l,e.prevSub=void 0),l&&(l.prevSub=n,e.nextSub=void 0),s.subs===e&&(s.subs=n,!n&&s.computed)){s.computed.flags&=-5;for(let i=s.computed.deps;i;i=i.nextDep)kn(i,!0)}!t&&!--s.sc&&s.map&&s.map.delete(s.key)}function Yi(e){const{prevDep:t,nextDep:s}=e;t&&(t.nextDep=s,e.prevDep=void 0),s&&(s.prevDep=t,e.nextDep=void 0)}let De=!0;const $l=[];function ot(){$l.push(De),De=!1}function rt(){const e=$l.pop();De=e===void 0?!0:e}function Un(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const s=te;te=void 0;try{t()}finally{te=s}}}let ss=0;class Xi{constructor(t,s){this.sub=t,this.dep=s,this.version=s.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class Tn{constructor(t){this.computed=t,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,this.__v_skip=!0}track(t){if(!te||!De||te===this.computed)return;let s=this.activeLink;if(s===void 0||s.sub!==te)s=this.activeLink=new Xi(te,this),te.deps?(s.prevDep=te.depsTail,te.depsTail.nextDep=s,te.depsTail=s):te.deps=te.depsTail=s,Ll(s);else if(s.version===-1&&(s.version=this.version,s.nextDep)){const n=s.nextDep;n.prevDep=s.prevDep,s.prevDep&&(s.prevDep.nextDep=n),s.prevDep=te.depsTail,s.nextDep=void 0,te.depsTail.nextDep=s,te.depsTail=s,te.deps===s&&(te.deps=Line truncated
|
||||
* @vue/runtime-core v3.5.41
|
||||
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
||||
* @license MIT
|
||||
**/function us(e,t,s,n){try{return n?e(...n):e()}catch(l){Ks(l,t,s)}}function Le(e,t,s,n){if(j(e)){const l=us(e,t,s,n);return l&&wl(l)&&l.catch(i=>{Ks(i,t,s)}),l}if(L(e)){const l=[];for(let i=0;i<e.length;i++)l.push(Le(e[i],t,s,n));return l}}function Ks(e,t,s,n=!0){const l=t?t.vnode:null,{errorHandler:i,throwUnhandledErrorInProduction:r}=t&&t.appContext.config||ee;if(t){let a=t.parent;const u=t.proxy,g=`https://vuejs.org/error-reference/#runtime-${s}`;for(;a;){const h=a.ec;if(h){for(let b=0;b<h.length;b++)if(h[b](e,u,g)===!1)return}a=a.parent}if(i){ot(),us(i,null,10,[e,u,g]),rt();return}}Co(e,s,l,n,r)}function Co(e,t,s,n=!0,l=!1){if(l)throw e;console.error(e)}const ye=[];let Ue=-1;const Lt=[];let vt=null,Ft=0;const Wl=Promise.resolve();let As=null;function ql(e){const t=As||Wl;return e?t.then(this?e.bind(this):e):t}function ko(e){let t=Ue+1,s=ye.length;for(;t<s;){const n=t+s>>>1,l=ye[n],i=ls(l);i<e||i===e&&l.flags&2?t=n+1:s=n}return t}function Rn(e){if(!(e.flags&1)){const t=ls(e),s=ye[ye.length-1];!s||!(e.flags&2)&&t>=ls(s)?ye.push(e):ye.splice(ko(t),0,e),e.flags|=1,zl()}}function zl(){As||(As=Wl.then(Gl))}function To(e){if(!L(e))vt&&e.id===-1?vt.splice(Ft+1,0,e):e.flags&1||(Lt.push(e),e.flags|=1);else for(let t=0;t<e.length;t++)Lt.push(e[t]);zl()}function qn(e,t,s=Ue+1){for(;s<ye.length;s++){const n=ye[s];if(n&&n.flags&2){if(e&&n.id!==e.uid)continue;ye.splice(s,1),s--,n.flags&4&&(n.flags&=-2),n(),n.flags&4||(n.flags&=-2)}}}function Jl(e){if(Lt.length){const t=[...new Set(Lt)].sort((s,n)=>ls(s)-ls(n));if(Lt.length=0,vt){for(let s=0;s<t.length;s++)vt.push(t[s]);return}for(vt=t,Ft=0;Ft<vt.length;Ft++){const s=vt[Ft];s.flags&4&&(s.flags&=-2),s.flags&8||s(),s.flags&=-2}vt=null,Ft=0}}const ls=e=>e.id==null?e.flags&2?-1:1/0:e.id;function Gl(e){try{for(Ue=0;Ue<ye.length;Ue++){const t=ye[Ue];t&&!(t.flags&8)&&(t.flags&4&&(t.flags&=-2),us(t,t.i,t.i?15:14),t.flags&4||(t.flags&=-2))}}finally{for(;Ue<ye.length;Ue++){const t=ye[Ue];t&&(t.flags&=-2)}Ue=-1,ye.length=0,Jl(),As=null,(ye.length||Lt.length)&&Gl()}}let Me=null,Yl=null;function Rs(e){const t=Me;return Me=e,Yl=e&&e.type.__scopeId||null,t}function Eo(e,t=Me,s){if(!t||e._n)return e;const n=(...l)=>{n._d&&nl(-1);const i=Rs(t),r=At.length;let a;try{a=e(...l)}finally{for(let u=At.length;u>r;u--)xi();Rs(i),n._d&&nl(1)}return a};return n._n=!0,n._c=!0,n._d=!0,n}function Ct(e,t){if(Me===null)return e;const s=Js(Me),n=e.dirs||(e.dirs=[]);for(let l=0;l<t.length;l++){let[i,r,a,u=ee]=t[l];i&&(j(i)&&(i={mounted:i,updated:i}),i.deep&&it(r),n.push({dir:i,instance:s,value:r,oldValue:void 0,arg:a,modifiers:u}))}return e}function kt(e,t,s,n){const l=e.dirs,i=t&&t.dirs;for(let r=0;r<l.length;r++){const a=l[r];i&&(a.oldValue=i[r].value);let u=a.dir[n];u&&(ot(),Le(u,s,8,[e.el,a,e,t]),rt())}}function Oo(e,t){if(xe){let s=xe.provides;const n=xe.parent&&xe.parent.provides;n===s&&(s=xe.provides=Object.create(n)),s[e]=t}}function Ts(e,t,s=!1){const n=Tr();if(n||Nt){let l=Nt?Nt._context.provides:n?n.parent==null||n.ce?n.vnode.appContext&&n.vnode.appContext.provides:n.parent.provides:void 0;if(l&&e in l)return l[e];if(arguments.length>1)return s&&j(t)?t.call(n&&n.proxy):t}}const Po=Symbol.for("v-scx"),Ao=()=>Ts(Po);function tn(e,t,s){return Xl(e,t,s)}function Xl(e,t,s=ee){const{immediate:n,deep:l,flush:i,once:r}=s,a=_e({},s),u=t&&n||!t&&i!=="post";let g;if(rs){if(i==="sync"){const I=Ao();g=I.__watcherHandles||(I.__watcherHandles=[])}else if(!u){const I=()=>{};return I.stop=Ge,I.resume=Ge,I.pause=Ge,I}}const h=xe;a.call=(I,U,R)=>Le(I,h,U,R);let b=!1;i==="post"?a.scheduler=I=>{Ce(I,h&&h.suspense)}:i!=="sync"&&(b=!0,a.scheduler=(I,U)=>{U?I():Rn(I)}),a.augmentJob=I=>{t&&(I.flags|=4),b&&(I.flags|=2,h&&(I.id=h.uid,I.i=h))};const M=So(e,t,a);return rs&&(g?g.push(M):u&&M()),M}function Ro(e,t,s){const n=this.proxy,l=re(e)?e.includes(".")?Zl(n,e):()=>n[e]:e.bind(n,n);let i;j(t)?i=t:(i=t.handler,s=t);const r=fs(this),a=Xl(l,i.bind(n),s);return r(),a}function Zl(e,t){const s=t.split(".");return()=>{let n=e;for(let l=0;l<s.length&&n;l++)n=n[s[l]];return n}}const Mo=Symbol("_vte"),Us=e=>e.__isTeleport,sn=Symbol("_leaveCb");function Io(e){let t=e[0];if(e.length>1){for(const s of e)if(s.type!==ct){t=s;break}}return t}function Ql(e){if(!In(e))return Us(e.type)&&e.children?Io(e.children):e;if(e.component)return e.component.subTree;const{shapeFlag:t,children:s}=e;if(s){if(t&16)return s[0];if(t&32&&j(s.default))return s.default()}}function Mn(e,t){if(e.shapeFlag&6&&e.component){e.transition=t;const s=e.component.subTree;Mn(Us(s.type)&&Ql(s)||s,t)}else e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function ei(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function zn(e,t){let s;return!!((s=Object.getOwnPropertyDescriptor(e,t))&&!s.configurable)}const Ms=new WeakMap;function Qt(e,t,s,n,l=!1){if(L(e)){e.forEach((R,se)=>Qt(R,t&&(L(t)?t[se]:t),s,n,l));return}if(es(n)&&!l){n.shapeFlag&512&&n.type.__asyncResolved&&n.component.subTree.component&&Qt(
Line truncated
|
||||
* @vue/runtime-dom v3.5.41
|
||||
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
||||
* @license MIT
|
||||
**/let mn;const ol=typeof window<"u"&&window.trustedTypes;if(ol)try{mn=ol.createPolicy("vue",{createHTML:e=>e})}catch{}const Ei=mn?e=>mn.createHTML(e):e=>e,Ir="http://www.w3.org/2000/svg",Fr="http://www.w3.org/1998/Math/MathML",st=typeof document<"u"?document:null,rl=st&&st.createElement("template"),Dr={insert:(e,t,s)=>{t.insertBefore(e,s||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,s,n)=>{const l=t==="svg"?st.createElementNS(Ir,e):t==="mathml"?st.createElementNS(Fr,e):s?st.createElement(e,{is:s}):st.createElement(e);return e==="select"&&n&&n.multiple!=null&&l.setAttribute("multiple",n.multiple),l},createText:e=>st.createTextNode(e),createComment:e=>st.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>st.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,s,n,l,i){const r=s?s.previousSibling:t.lastChild;if(l&&(l===i||l.nextSibling))for(;t.insertBefore(l.cloneNode(!0),s),!(l===i||!(l=l.nextSibling)););else{rl.innerHTML=Ei(n==="svg"?`<svg>${e}</svg>`:n==="mathml"?`<math>${e}</math>`:e);const a=rl.content;if(n==="svg"||n==="mathml"){const u=a.firstChild;for(;u.firstChild;)a.appendChild(u.firstChild);a.removeChild(u)}t.insertBefore(a,s)}return[r?r.nextSibling:t.firstChild,s?s.previousSibling:t.lastChild]}},$r=Symbol("_vtc");function Lr(e,t,s){const n=e[$r];n&&(t=(t?[t,...n]:[...n]).join(" ")),t==null?e.removeAttribute("class"):s?e.setAttribute("class",t):e.className=t}const al=Symbol("_vod"),Nr=Symbol("_vsh"),jr=Symbol(""),Vr=/(?:^|;)\s*display\s*:/;function Hr(e,t,s){const n=e.style,l=re(s);let i=!1;if(s&&!l){if(t)if(re(t))for(const r of t.split(";")){const a=r.slice(0,r.indexOf(":")).trim();s[a]==null&&Gt(n,a,"")}else for(const r in t)s[r]==null&&Gt(n,r,"");for(const r in s){r==="display"&&(i=!0);const a=s[r];a!=null?Kr(e,r,!re(t)&&t?t[r]:void 0,a)||Gt(n,r,a):Gt(n,r,"")}}else if(l){if(t!==s){const r=n[jr];r&&(s+=";"+r),n.cssText=s,i=Vr.test(s)}}else t&&e.removeAttribute("style");al in e&&(e[al]=i?n.display:"",e[Nr]&&(n.display="none"))}const cl=/\s*!important$/;function Gt(e,t,s){if(L(s))s.forEach(n=>Gt(e,t,n));else if(s==null&&(s=""),t.startsWith("--"))e.setProperty(t,s);else{const n=Br(e,t);cl.test(s)?e.setProperty(Rt(n),s.replace(cl,""),"important"):e[n]=s}}const ul=["Webkit","Moz","ms"],on={};function Br(e,t){const s=on[t];if(s)return s;let n=Fe(t);if(n!=="filter"&&n in e)return on[t]=n;n=kl(n);for(let l=0;l<ul.length;l++){const i=ul[l]+n;if(i in e)return on[t]=i}return t}function Kr(e,t,s,n){return e.tagName==="TEXTAREA"&&(t==="width"||t==="height")&&re(n)&&s===n}const fl="http://www.w3.org/1999/xlink";function dl(e,t,s,n,l,i=qi(t)){n&&t.startsWith("xlink:")?s==null?e.removeAttributeNS(fl,t.slice(6,t.length)):e.setAttributeNS(fl,t,s):s==null||i&&!El(s)?e.removeAttribute(t):e.setAttribute(t,i?"":Xe(s)?String(s):s)}function pl(e,t,s,n,l){if(t==="innerHTML"||t==="textContent"){s!=null&&(e[t]=t==="innerHTML"?Ei(s):s);return}const i=e.tagName;if(t==="value"&&i!=="PROGRESS"&&!i.includes("-")){const a=i==="OPTION"?e.getAttribute("value")||"":e.value,u=s==null?e.type==="checkbox"?"on":"":String(s);(a!==u||!("_value"in e))&&(e.value=u),s==null&&e.removeAttribute(t),e._value=s;return}let r=!1;if(s===""||s==null){const a=typeof e[t];a==="boolean"?s=El(s):s==null&&a==="string"?(s="",r=!0):a==="number"&&(s=0,r=!0)}try{e[t]=s}catch{}r&&e.removeAttribute(l||t)}function _t(e,t,s,n){e.addEventListener(t,s,n)}function Ur(e,t,s,n){e.removeEventListener(t,s,n)}const hl=Symbol("_vei");function Wr(e,t,s,n,l=null){const i=e[hl]||(e[hl]={}),r=i[t];if(n&&r)r.value=n;else{const[a,u]=Jr(t);if(n){const g=i[t]=Xr(n,l);_t(e,a,g,u)}else r&&(Ur(e,a,r,u),i[t]=void 0)}}const qr=/(Once|Passive|Capture)$/,zr=/^on:?(?:Once|Passive|Capture)$/;function Jr(e){let t,s;for(;(s=e.match(qr))&&!zr.test(e);)t||(t={}),e=e.slice(0,e.length-s[1].length),t[s[1].toLowerCase()]=!0;return[e[2]===":"?e.slice(3):Rt(e.slice(2)),t]}let rn=0;const Gr=Promise.resolve(),Yr=()=>rn||(Gr.then(()=>rn=0),rn=Date.now());function Xr(e,t){const s=n=>{if(!n._vts)n._vts=Date.now();else if(n._vts<=s.attached)return;const l=s.value;if(L(l)){const i=n.stopImmediatePropagation;n.stopImmediatePropagation=()=>{i.call(n),n._stopped=!0};const r=l.slice(),a=[n];for(let u=0;u<r.length&&!n._stopped;u++){const g=r[u];g&&Le(g,t,5,a)}}else Le(l,t,5,[n])};return s.value=e,s.attached=Yr(),s}const gl=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,Zr=(e,t,s,n,l,i)=>{const r=l==="svg";t==="class"?Lr(e,n,r):t==="style"?Hr(e,s,n):$s(t)?Ls(t)||Wr(e,t,s,n,i):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):Qr(e,t,n,r))?(pl(e,t,n),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&dl(e,t,n,r,i,t!=="value")):e._isVueCE&&(ea(e,t)||e._def.__asyncLoader&&(/[A-Z]/.test(t)||!re(n)))?pl(e,Fe(t),n,i,t):(t==="true-value"?e._trueValue=n:t==="false-value"&&(e._fals
Line truncated
|
||||
`))),e[Je]=Ht(l);const i=n||l.props&&l.props.type==="number";_t(e,t?"change":"input",r=>{r.target.composing||e[Je](an(e.value,s,i))}),(s||i)&&_t(e,"change",()=>{e.value=an(e.value,s,i)}),t||(_t(e,"compositionstart",ta),_t(e,"compositionend",vl),_t(e,"change",vl))},mounted(e,{value:t,modifiers:{trim:s,number:n}}){const l=t??"",i=e[Ss];delete e[Ss],i!==void 0&&(e.type==="text"||e.type==="textarea")&&e.value!==i?e[Je](an(e.value,s,n)):e.value=l},beforeUpdate(e,{value:t,oldValue:s,modifiers:{lazy:n,trim:l,number:i}},r){if(e[Je]=Ht(r),e.composing)return;const a=(i||e.type==="number")&&!/^0\d/.test(e.value)?js(e.value):e.value,u=t??"";if(a===u)return;const g=e.getRootNode();(g instanceof Document||g instanceof ShadowRoot)&&g.activeElement===e&&e.type!=="range"&&(n&&t===s||l&&e.value.trim()===u)||(e.value=u)}},_l={deep:!0,created(e,t,s){e[Je]=Ht(s),_t(e,"change",()=>{const n=e._modelValue,l=as(e),i=e.checked,r=e[Je];if(L(n)){const a=wn(n,l),u=a!==-1;if(i&&!u)r(n.concat(l));else if(!i&&u){const g=[...n];g.splice(a,1),r(g)}}else if(Bt(n)){const a=new Set(n);i?a.add(l):a.delete(l),r(a)}else r(Oi(e,i))})},mounted:ml,beforeUpdate(e,t,s){e[Je]=Ht(s),ml(e,t,s)}};function ml(e,{value:t,oldValue:s},n){e._modelValue=t;let l;if(L(t))l=wn(t,n.props.value)>-1;else if(Bt(t))l=t.has(n.props.value);else{if(t===s)return;l=Kt(t,Oi(e,!0))}e.checked!==l&&(e.checked=l)}const sa={deep:!0,created(e,{value:t,modifiers:{number:s}},n){e._modelValue=t,_t(e,"change",()=>{const l=Array.prototype.filter.call(e.options,i=>i.selected).map(i=>s?js(as(i)):as(i));e[Je](e.multiple?Bt(e._modelValue)?new Set(l):l:l[0]),e._assigning=!0,ql(()=>{e._assigning=!1})}),e[Je]=Ht(n)},mounted(e,{value:t}){bl(e,t)},beforeUpdate(e,{value:t},s){e._modelValue=t,e[Je]=Ht(s)},updated(e,{value:t}){e._assigning||bl(e,t)}};function bl(e,t){const s=e.multiple,n=L(t);if(!(s&&!n&&!Bt(t))){for(let l=0,i=e.options.length;l<i;l++){const r=e.options[l],a=as(r);if(s)if(n){const u=typeof a;u==="string"||u==="number"?r.selected=t.some(g=>String(g)===String(a)):r.selected=wn(t,a)>-1}else r.selected=t.has(a);else if(Kt(as(r),t)){e.selectedIndex!==l&&(e.selectedIndex=l);return}}!s&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function as(e){return"_value"in e?e._value:e.value}function Oi(e,t){const s=t?"_trueValue":"_falseValue";return s in e?e[s]:t}const na=["ctrl","shift","alt","meta"],la={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&e.button!==0,middle:e=>"button"in e&&e.button!==1,right:e=>"button"in e&&e.button!==2,exact:(e,t)=>na.some(s=>e[`${s}Key`]&&!t.includes(s))},ia=(e,t)=>{if(!e)return e;const s=e._withMods||(e._withMods={}),n=t.join(".");return s[n]||(s[n]=((l,...i)=>{for(let r=0;r<t.length;r++){const a=la[t[r]];if(a&&a(l,t))return}return e(l,...i)}))},oa=_e({patchProp:Zr},Dr);let yl;function ra(){return yl||(yl=pr(oa))}const aa=((...e)=>{const t=ra().createApp(...e),{mount:s}=t;return t.mount=n=>{const l=ua(n);if(!l)return;const i=t._component;!j(i)&&!i.render&&!i.template&&(i.template=l.innerHTML),l.nodeType===1&&(l.textContent="");const r=s(l,!1,ca(l));return l instanceof Element&&(l.removeAttribute("v-cloak"),l.setAttribute("data-v-app","")),r},t});function ca(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function ua(e){return re(e)?document.querySelector(e):e}const fa={class:"app-shell"},da={class:"content",id:"overview"},pa={class:"topbar"},ha={class:"topbar-meta"},ga={class:"as-of"},va={key:0,class:"state-card"},_a={key:1,class:"state-card error-state"},ma={class:"kpi-grid","aria-label":"Signal summary"},ba={class:"kpi-card accent-card"},ya={class:"kpi-value"},xa={class:"kpi-foot"},wa={class:"long-count"},Sa={class:"short-count"},Ca={class:"neutral-count"},ka={class:"kpi-card"},Ta={class:"kpi-value"},Ea={class:"kpi-foot"},Oa={class:"panel theme-panel",id:"themes"},Pa={class:"panel-header signal-header"},Aa={class:"status-tag"},Ra={class:"theme-grid"},Ma={class:"theme-card-head"},Ia={class:"theme-chip"},Fa={class:"theme-label-th"},Da={class:"theme-surprise"},$a={class:"theme-surprise-value"},La={class:"theme-read"},Na={key:0,class:"theme-read-value"},ja={key:1,class:"theme-read-value"},Va={key:2,class:"theme-read-value"},Ha={key:3,class:"theme-read-value"},Ba={key:0,class:"theme-narrative"},Ka={key:0,class:"macro-panel"},Ua={class:"macro-chips"},Wa={class:"macro-chip"},qa={class:"macro-chip"},za={class:"macro-chip"},Ja={class:"macro-chip"},Ga={class:"macro-chip"},Ya={class:"panel stock-panel",id:"stocks"},Xa={class:"panel-header signal-header"},Za={class:"stock-controls"},Qa={class:"toggle-filter"},ec={key:0,class:"empty-research"},tc={key:1,class:"table-wrap"},sc={class:"factor-table"},nc=["onClick"],lc={key:1,class:"muted-cell"},ic={class:"combined-cell"},oc={class:"symbol-name"},rc={key:0,class:"muted-cell"},ac={class:"score-cell"},cc={key:0,cl
Line truncated
|
||||
Vendored
+1
-1
@@ -5,7 +5,7 @@
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<meta name="theme-color" content="#0b1018" />
|
||||
<title>SET50 Signal Lab</title>
|
||||
<script type="module" crossorigin src="/assets/index-CUQk4rwt.js"></script>
|
||||
<script type="module" crossorigin src="/assets/index-DOVbTpbx.js"></script>
|
||||
<link rel="stylesheet" crossorigin href="/assets/index-z73iDem3.css">
|
||||
</head>
|
||||
<body>
|
||||
|
||||
+69
-1
@@ -53,6 +53,9 @@ const factorRows = computed(() => factorData.value?.factors ?? [])
|
||||
// real multi-theme dashboard (3 themes + macro + sources)
|
||||
const dashboardThemes = computed(() => dashData.value?.themes ?? [])
|
||||
const dashboardSources = computed(() => dashData.value?.sources ?? [])
|
||||
// data scheduler source-health log (refresh cadence + failure diagnosis)
|
||||
const sourceHealth = ref([])
|
||||
const sourceHealthLoaded = ref(false)
|
||||
const dashboardMacro = computed(() => dashData.value?.macro ?? {})
|
||||
const sourceCount = computed(() => dashboardSources.value.length)
|
||||
const factorCount = computed(() => dashData.value?.source_summary?.factor_keys ?? sourceCount.value)
|
||||
@@ -403,6 +406,34 @@ async function loadBacktestReadiness() {
|
||||
} catch { btReadiness.value = null }
|
||||
}
|
||||
|
||||
async function loadSourceHealth() {
|
||||
try {
|
||||
const body = await fetchJson('/api/v1/scheduler/sources')
|
||||
sourceHealth.value = body.sources || []
|
||||
} catch { sourceHealth.value = [] }
|
||||
sourceHealthLoaded.value = true
|
||||
}
|
||||
|
||||
const healthCategoryLabel = (cat) => ({
|
||||
ok: 'ปกติ', network: 'เครือข่ายขัดข้อง', timeout: 'หมดเวลา',
|
||||
http: 'HTTP error', parse: 'รูปแบบข้อมูลผิด', structure: 'หน้าเว็บเปลี่ยนโครงสร้าง',
|
||||
auth: 'สิทธิ์/ยืนยันตัวตน', other: 'อื่น ๆ',
|
||||
})[cat] || cat
|
||||
|
||||
async function copyHealthLine(entry) {
|
||||
const line = `[${entry.at}] ${entry.label} (${entry.key}) — ${entry.ok ? 'OK' : 'FAIL: ' + healthCategoryLabel(entry.category)} ${entry.detail ? '| ' + entry.detail : ''}`
|
||||
try {
|
||||
await navigator.clipboard.writeText(line)
|
||||
notice.value = `คัดลอกสาเหตุของ ${entry.key} แล้ว`
|
||||
} catch {
|
||||
notice.value = line // fallback: show raw text as a notice
|
||||
}
|
||||
}
|
||||
|
||||
function appendHealthRationale(entry) {
|
||||
return entry.ok ? '' : ` (สาเหตุน่าจะ: ${healthCategoryLabel(entry.category)})`
|
||||
}
|
||||
|
||||
async function runBacktest() {
|
||||
btLoading.value = true
|
||||
btResult.value = null
|
||||
@@ -489,7 +520,7 @@ async function recordPaperEntry() {
|
||||
}
|
||||
}
|
||||
|
||||
onMounted(async () => { await loadDashboard(); await Promise.all([loadBacktestRuns(), loadBacktestReadiness()]) })
|
||||
onMounted(async () => { await loadDashboard(); await Promise.all([loadBacktestRuns(), loadBacktestReadiness(), loadSourceHealth()]) })
|
||||
</script>
|
||||
|
||||
<template>
|
||||
@@ -510,6 +541,7 @@ onMounted(async () => { await loadDashboard(); await Promise.all([loadBacktestRu
|
||||
<a class="nav-item" href="#signals"><span class="nav-glyph">↗</span>สัญญาณ</a>
|
||||
<a class="nav-item" href="#factors"><span class="nav-glyph">∿</span>ปัจจัย</a>
|
||||
<a class="nav-item" href="#lineage"><span class="nav-glyph">⌁</span>ที่มาข้อมูล</a>
|
||||
<a class="nav-item" href="#health"><span class="nav-glyph">⛨</span>สถานะข้อมูล</a>
|
||||
<a class="nav-item" href="#research-run"><span class="nav-glyph">✓</span>งานวิจัย</a>
|
||||
<a class="nav-item" href="#simulation"><span class="nav-glyph">➛</span>จำลอง</a>
|
||||
</nav>
|
||||
@@ -684,6 +716,42 @@ onMounted(async () => { await loadDashboard(); await Promise.all([loadBacktestRu
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<section class="panel health-panel" id="health">
|
||||
<div class="panel-header signal-header">
|
||||
<div>
|
||||
<div class="section-kicker">สถานะการดึงข้อมูล</div>
|
||||
<h2>Log — สถานะแหล่งข้อมูล</h2>
|
||||
<p class="panel-subtitle">ผลการดึงข้อมูลครั้งล่าสุดของแต่ละแหล่ง โดยระบบวิเคราะห์สาเหตุให้อัตโนมัติ (เครือข่าย / หมดเวลา / หน้าเว็บเปลี่ยนโครงสร้าง / รูปแบบข้อมูล เป็นต้น) — กดปุ่ม "คัดลอก" เพื่อ copy สาเหตุไปแจ้ง/ตรวจสอบได้ทันที.</p>
|
||||
</div>
|
||||
</div>
|
||||
<div v-if="sourceHealth.length === 0" class="empty-research muted-cell">ยังไม่มี log — รอรอบ refresh ถัดไป (ปกติ ~ทุกวันสำหรับราคา, ~รายเดือน/ไตรมาสสำหรับปัจจัย).</div>
|
||||
<div v-else>
|
||||
<table class="source-table">
|
||||
<thead><tr><th>แหล่ง</th><th>ผลลัพธ์</th><th>สาเหตุ</th><th>เวลา</th><th></th></tr></thead>
|
||||
<tbody>
|
||||
<tr v-for="(e, i) in sourceHealth.slice(0, 20)" :key="i">
|
||||
<td class="source-name">{{ e.label }}<div class="muted-cell" style="font-size:11px">{{ e.key }}</div></td>
|
||||
<td>
|
||||
<span v-if="e.ok" class="status-tag" style="background:#1a7f37;color:#fff">OK</span>
|
||||
<span v-else class="status-tag warning-tag">FAIL</span>
|
||||
</td>
|
||||
<td>
|
||||
<template v-if="e.ok">—</template>
|
||||
<template v-else>
|
||||
<div>{{ healthCategoryLabel(e.category) }}{{ appendHealthRationale(e) }}</div>
|
||||
<div v-if="e.detail" class="muted-cell" style="font-size:11px;word-break:break-word">{{ e.detail.slice(0, 160) }}</div>
|
||||
</template>
|
||||
</td>
|
||||
<td class="muted-cell">{{ e.at ? formatDate(e.at) : '—' }}</td>
|
||||
<td>
|
||||
<button v-if="!e.ok" class="primary-btn" style="padding:2px 8px" @click="copyHealthLine(e)">คัดลอกสาเหตุ</button>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<!-- Sections 01-04 (tourism-only surprise, provenance, signal table, frozen research) removed per user: superseded by the 3-theme panel + sources table above. -->
|
||||
<section class="panel sim-panel" id="simulation">
|
||||
<div class="panel-header signal-header">
|
||||
|
||||
Reference in new issue
Block a user