Просмотр исходного кода

feat(frontend): remove singleton summary panel

SamLee 2 недель назад
Родитель
Сommit
75d351f76c

Разница между файлами не показана из-за своего большого размера
+ 1 - 1
app/frontend/dist/assets/index-BH5EdYr0.js


Разница между файлами не показана из-за своего большого размера
+ 0 - 0
app/frontend/dist/assets/index-BqVHeSuo.css


Разница между файлами не показана из-за своего большого размера
+ 0 - 0
app/frontend/dist/assets/index-i7vXsfH2.css


+ 2 - 2
app/frontend/dist/index.html

@@ -4,8 +4,8 @@
     <meta charset="UTF-8" />
     <meta name="viewport" content="width=device-width, initial-scale=1.0" />
     <title>创作知识 · Query 正交 Demo</title>
-    <script type="module" crossorigin src="/app/assets/index-CmZtyzF7.js"></script>
-    <link rel="stylesheet" crossorigin href="/app/assets/index-BqVHeSuo.css">
+    <script type="module" crossorigin src="/app/assets/index-BH5EdYr0.js"></script>
+    <link rel="stylesheet" crossorigin href="/app/assets/index-i7vXsfH2.css">
   </head>
   <body>
     <div id="root"></div>

+ 0 - 22
app/frontend/src/pages/CreationDemo.jsx

@@ -85,27 +85,6 @@ function singletonMaps(singleton) {
   return byQueryText
 }
 
-function SingletonLinks({ singleton }) {
-  if (!singleton?.batch || !singleton?.run) return null
-  const firstDecoded = singleton.decoded_items?.[0]
-  const firstQuery = singleton.queries?.find((row) => row.query_id === firstDecoded?.query_id) || singleton.queries?.[0]
-  const searchHref = firstQuery ? `#/query/${encodeURIComponent(singleton.run.id)}/${encodeURIComponent(firstQuery.query_id)}` : ''
-  const decodeHref = firstDecoded ? `#/decode-item/${encodeURIComponent(firstDecoded.item_id)}` : ''
-  const payloadText = firstDecoded?.payload_count ? ` ${firstDecoded.payload_count} payload` : ''
-  return (
-    <div className="singleton-panel">
-      <div>
-        <b>最近真实单例</b>
-        <span>{singleton.batch.name} · {singleton.run.status}</span>
-      </div>
-      <div className="singleton-actions">
-        {searchHref && <a className="btn ghost" href={searchHref}>查看搜索结果</a>}
-        {decodeHref && <a className="btn" href={decodeHref}>查看拆解结果{payloadText}</a>}
-      </div>
-    </div>
-  )
-}
-
 function PreviewQueryRow({ item, index, latest, singleton }) {
   const decoded = latest?.decoded_items?.[0]
   const searchHref = latest && singleton?.run
@@ -171,7 +150,6 @@ function QueryGenerationPreview() {
       <div className="sub">
         只显示当前激活的 2 种正交方式:f1 / f2。生成逻辑来自正式 query builder;此页只预览,不写 DB、不发起搜索。
       </div>
-      <SingletonLinks singleton={singleton} />
 
       <div className="famcols two">
         {families.map((row) => (

+ 0 - 5
app/frontend/src/styles.css

@@ -25,11 +25,6 @@ h1 { font-size: 22px; margin: 0 0 2px; letter-spacing: .5px; }
 
 /* 创作Demo:家族选择器左右两栏竖排,按尾缀分组 */
 .famcols { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 16px; }
-.singleton-panel { display: flex; align-items: center; justify-content: space-between; gap: 12px;
-  background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 11px 13px; margin: 0 0 16px; }
-.singleton-panel b { display: block; font-size: 13.5px; }
-.singleton-panel span { color: var(--muted); font-size: 12px; }
-.singleton-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
 .famcol { flex: 1 1 0; display: flex; flex-direction: column; gap: 6px; }
 .famcol-hd { font-size: 12px; font-weight: 700; color: var(--muted); padding: 0 2px 4px; }
 .fbtn { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; text-align: left; padding: 9px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--card); font-size: 13px; color: var(--ink); cursor: pointer; }

Некоторые файлы не были показаны из-за большого количества измененных файлов