Kaynağa Gözat

前端:类型徽章去中文(How/What/Why)、颗序号加「知识」

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
SamLee 4 hafta önce
ebeveyn
işleme
05f973ccd1
1 değiştirilmiş dosya ile 2 ekleme ve 2 silme
  1. 2 2
      web/index.html

+ 2 - 2
web/index.html

@@ -172,7 +172,7 @@ const {useState,useEffect}=React;
 const j=u=>fetch(u,{cache:"no-store"}).then(r=>r.json());
 const SCOPES=[["substance","实质"],["form","形式"],["feeling","感受"],["effect","作用"],["intent","意图"]];
 const SC_CN={substance:"实质",form:"形式",feeling:"感受",effect:"作用",intent:"意图"};
-const TYPECN={how:"How 工序",what:"What 构成",why:"Why 原理"};
+const TYPECN={how:"How",what:"What",why:"Why"};
 const CSTAGE_DOC=`## 创作阶段:写死的 5 个(每步选 1 个)
 how 工序每一步命中其中**一个**;不在这 5 个里的值会被代码丢弃(受控词表,不开放)。
 
@@ -343,7 +343,7 @@ function KnowledgeCard({k,idx,onScope,onPrompt,onJson,onSource,payload,how_title
   const par=k.parent;
   return <div className="kcard" id={"k-"+k.id}>
     <div className="khead">
-      <span className="kno">第{idx+1}颗</span>
+      <span className="kno">第{idx+1}颗知识</span>
       <span className={"ktype ty-"+k.type}>{TYPECN[k.type]}</span>
       <span className="ktitle">{k.title}</span>
       {k.出处&&k.出处.length>0&&<span className="kref" title={"看原文出处 "+k.出处.join(" ")} onClick={()=>onSource(k.出处)}>🔍 出处 {k.出处.join(" ")}</span>}