feat: update search cards with chunk_id display; sync snippet db
This commit is contained in:
File diff suppressed because one or more lines are too long
@@ -1,25 +0,0 @@
|
|||||||
<IfModule mod_authz_core.c>
|
|
||||||
<FilesMatch ".*">
|
|
||||||
Require all denied
|
|
||||||
</FilesMatch>
|
|
||||||
<FilesMatch "\.log$">
|
|
||||||
Require all granted
|
|
||||||
</FilesMatch>
|
|
||||||
</IfModule>
|
|
||||||
<IfModule !mod_authz_core.c>
|
|
||||||
Order allow,deny
|
|
||||||
Deny from all
|
|
||||||
<FilesMatch "\.log$">
|
|
||||||
Order allow,deny
|
|
||||||
Allow from all
|
|
||||||
</FilesMatch>
|
|
||||||
</IfModule>
|
|
||||||
<IfModule mod_mime.c>
|
|
||||||
AddType text/plain .log
|
|
||||||
</IfModule>
|
|
||||||
<IfModule mod_dir.c>
|
|
||||||
DirectoryIndex index.php
|
|
||||||
</IfModule>
|
|
||||||
<IfModule mod_autoindex.c>
|
|
||||||
Options -Indexes
|
|
||||||
</IfModule>
|
|
||||||
@@ -1,24 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
|
||||||
<configuration>
|
|
||||||
<system.webServer>
|
|
||||||
<security>
|
|
||||||
<authorization>
|
|
||||||
<deny users="*" />
|
|
||||||
</authorization>
|
|
||||||
</security>
|
|
||||||
<requestFiltering>
|
|
||||||
<fileExtensions allowUnlisted="false">
|
|
||||||
<add fileExtension=".log" allowed="true" />
|
|
||||||
</fileExtensions>
|
|
||||||
</requestFiltering>
|
|
||||||
<staticContent>
|
|
||||||
<mimeMap fileExtension=".log" mimeType="text/plain" />
|
|
||||||
</staticContent>
|
|
||||||
<defaultDocument>
|
|
||||||
<files>
|
|
||||||
<add value="index.php" />
|
|
||||||
</files>
|
|
||||||
</defaultDocument>
|
|
||||||
<directoryBrowse enabled="false" />
|
|
||||||
</system.webServer>
|
|
||||||
</configuration>
|
|
||||||
@@ -479,9 +479,9 @@ async function semanticSearch() {
|
|||||||
data-end-time="${endTime}"
|
data-end-time="${endTime}"
|
||||||
data-text="${textAttr}">
|
data-text="${textAttr}">
|
||||||
<div style="font-weight: 600; color: #1e40af;">${i.name} (${i.source || 'unknown'})</div>
|
<div style="font-weight: 600; color: #1e40af;">${i.name} (${i.source || 'unknown'})</div>
|
||||||
<div class="chunk-time">${i.file_uuid} | ${startTime.toFixed(1)}s - ${endTime.toFixed(1)}s</div>
|
<div class="chunk-time">${startTime.toFixed(1)}s - ${endTime.toFixed(1)}s${i.chunk_id ? ` | ${i.chunk_id}` : ''}</div>
|
||||||
<div style="margin-top: 4px;">${i.text_content || '無內容'}</div>
|
<div style="margin-top: 4px;font-size:13px;color:#555;">${i.text_content || ''}</div>
|
||||||
<button class="play-btn">▶ 播放片段</button>
|
<button class="play-btn" style="margin-top:6px;">▶ 播放片段</button>
|
||||||
</div>`;
|
</div>`;
|
||||||
}).join('');
|
}).join('');
|
||||||
resultEl.innerHTML = `<p style="padding: 0.5rem; background: #d1fae5; border-radius: 4px; margin-bottom: 0.5rem;">找到 ${data.total || 0} 個身份相關片段</p>${resultsHtml || '<p>沒有結果</p>'}`;
|
resultEl.innerHTML = `<p style="padding: 0.5rem; background: #d1fae5; border-radius: 4px; margin-bottom: 0.5rem;">找到 ${data.total || 0} 個身份相關片段</p>${resultsHtml || '<p>沒有結果</p>'}`;
|
||||||
@@ -503,10 +503,10 @@ async function semanticSearch() {
|
|||||||
data-start-time="${startTime}"
|
data-start-time="${startTime}"
|
||||||
data-end-time="${endTime}"
|
data-end-time="${endTime}"
|
||||||
data-text="${textAttr}">
|
data-text="${textAttr}">
|
||||||
<div class="chunk-time">${r.file_uuid} | ${startTime.toFixed(1)}s - ${endTime.toFixed(1)}s</div>
|
<div class="chunk-time">${startTime.toFixed(1)}s - ${endTime.toFixed(1)}s${r.chunk_id ? ` | ${r.chunk_id}` : ''}</div>
|
||||||
<div style="margin-top: 4px;">${r.text || '無內容'}</div>
|
<div style="margin-top: 4px;font-size:13px;color:#555;">${r.text || ''}</div>
|
||||||
<div class="badge-status completed" style="margin-top: 4px;">相似度: ${(r.score * 100).toFixed(1)}%</div>
|
<div class="badge-status completed" style="margin-top: 4px;">相似度: ${(r.score * 100).toFixed(1)}%</div>
|
||||||
<button class="play-btn">▶ 播放片段</button>
|
<button class="play-btn" style="margin-top:6px;">▶ 播放片段</button>
|
||||||
</div>`;
|
</div>`;
|
||||||
}).join('');
|
}).join('');
|
||||||
resultEl.innerHTML = `<p style="padding: 0.5rem; background: #d1fae5; border-radius: 4px; margin-bottom: 0.5rem;">找到 ${data.total || 0} 個片段</p>${resultsHtml || '<p>沒有結果</p>'}`;
|
resultEl.innerHTML = `<p style="padding: 0.5rem; background: #d1fae5; border-radius: 4px; margin-bottom: 0.5rem;">找到 ${data.total || 0} 個片段</p>${resultsHtml || '<p>沒有結果</p>'}`;
|
||||||
|
|||||||
Reference in New Issue
Block a user