empty if no header

This commit is contained in:
Julian Freeman
2026-03-12 09:08:15 -04:00
parent 6f023006dc
commit 41455fa4ee
4 changed files with 8 additions and 9 deletions

3
README.md Normal file
View File

@@ -0,0 +1,3 @@
# 商品信息抓取助手
项目使用 Gemini CLI 编写。

View File

@@ -57,7 +57,7 @@ function doPost(e) {
// 3. Map data to the (potentially updated) existingHeaders
var row = existingHeaders.map(function(header) {
var val = data[header];
if (val === undefined || val === null) return "N/A";
if (val === undefined || val === null) return "";
if (typeof val === 'object') return JSON.stringify(val);
return val;
});

View File

@@ -1,8 +1,8 @@
{
"manifest_version": 3,
"name": "AI 硬件抓取助手",
"name": "商品信息抓取助手",
"version": "1.0",
"description": "使用 Gemini AI 从网站抓取品数据。",
"description": "使用 Gemini AI 从网站抓取自定义的商品数据。",
"permissions": [
"sidePanel",
"scripting",
@@ -20,7 +20,7 @@
"default_path": "sidepanel.html"
},
"action": {
"default_title": "AI 硬件抓取助手",
"default_title": "商品信息抓取助手",
"default_icon": {
"16": "icons/icon16.png",
"32": "icons/icon32.png",

View File

@@ -3,15 +3,11 @@
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>AI 硬件抓取助手</title>
<title>商品信息抓取助手</title>
<link rel="stylesheet" href="style.css">
</head>
<body class="bg-gray-50 p-4">
<div class="max-w-md mx-auto">
<!-- Header -->
<!-- <header class="mb-6">
<h1 class="text-xl font-bold text-indigo-700">AI 硬件抓取助手</h1>
</header> -->
<!-- API Config -->
<section class="bg-white rounded-lg shadow-sm mb-4 border border-gray-200">