empty if no header
This commit is contained in:
@@ -57,7 +57,7 @@ function doPost(e) {
|
|||||||
// 3. Map data to the (potentially updated) existingHeaders
|
// 3. Map data to the (potentially updated) existingHeaders
|
||||||
var row = existingHeaders.map(function(header) {
|
var row = existingHeaders.map(function(header) {
|
||||||
var val = data[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);
|
if (typeof val === 'object') return JSON.stringify(val);
|
||||||
return val;
|
return val;
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
{
|
{
|
||||||
"manifest_version": 3,
|
"manifest_version": 3,
|
||||||
"name": "AI 硬件抓取助手",
|
"name": "商品信息抓取助手",
|
||||||
"version": "1.0",
|
"version": "1.0",
|
||||||
"description": "使用 Gemini AI 从网站抓取产品数据。",
|
"description": "使用 Gemini AI 从网站抓取自定义的商品数据。",
|
||||||
"permissions": [
|
"permissions": [
|
||||||
"sidePanel",
|
"sidePanel",
|
||||||
"scripting",
|
"scripting",
|
||||||
@@ -20,7 +20,7 @@
|
|||||||
"default_path": "sidepanel.html"
|
"default_path": "sidepanel.html"
|
||||||
},
|
},
|
||||||
"action": {
|
"action": {
|
||||||
"default_title": "AI 硬件抓取助手",
|
"default_title": "商品信息抓取助手",
|
||||||
"default_icon": {
|
"default_icon": {
|
||||||
"16": "icons/icon16.png",
|
"16": "icons/icon16.png",
|
||||||
"32": "icons/icon32.png",
|
"32": "icons/icon32.png",
|
||||||
|
|||||||
@@ -3,15 +3,11 @@
|
|||||||
<head>
|
<head>
|
||||||
<meta charset="UTF-8">
|
<meta charset="UTF-8">
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
<title>AI 硬件抓取助手</title>
|
<title>商品信息抓取助手</title>
|
||||||
<link rel="stylesheet" href="style.css">
|
<link rel="stylesheet" href="style.css">
|
||||||
</head>
|
</head>
|
||||||
<body class="bg-gray-50 p-4">
|
<body class="bg-gray-50 p-4">
|
||||||
<div class="max-w-md mx-auto">
|
<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 -->
|
<!-- API Config -->
|
||||||
<section class="bg-white rounded-lg shadow-sm mb-4 border border-gray-200">
|
<section class="bg-white rounded-lg shadow-sm mb-4 border border-gray-200">
|
||||||
|
|||||||
Reference in New Issue
Block a user