From 55b1d861ccc8fcffd73a8e83fcfc2539db38ccb0 Mon Sep 17 00:00:00 2001
From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com>
Date: Tue, 17 Mar 2026 02:51:26 +0000
Subject: [PATCH] Clean up stray files; fix widget.html hasOwnProperty; fix
package.json test script
Co-authored-by: yhlhoh <205733785+yhlhoh@users.noreply.github.com>
---
js | 1 -
package.json | 2 +-
public/js | 1 -
public/test-geometric.html | 335 ---------------------
public/test-simple.html | 453 ----------------------------
public/verify-preset.html | 598 -------------------------------------
public/widget.html | 4 +-
7 files changed, 2 insertions(+), 1392 deletions(-)
delete mode 100644 js
delete mode 100644 public/js
delete mode 100644 public/test-geometric.html
delete mode 100644 public/test-simple.html
delete mode 100644 public/verify-preset.html
diff --git a/js b/js
deleted file mode 100644
index 8b13789..0000000
--- a/js
+++ /dev/null
@@ -1 +0,0 @@
-
diff --git a/package.json b/package.json
index 7dbc2ad..0af5f74 100644
--- a/package.json
+++ b/package.json
@@ -4,7 +4,7 @@
"description": "",
"main": "server.js",
"scripts": {
- "test": "echo \"Error: no test specified\" && exit 1",
+ "test": "echo \"No tests configured\"",
"start": "node server.js"
},
"keywords": [],
diff --git a/public/js b/public/js
deleted file mode 100644
index 8b13789..0000000
--- a/public/js
+++ /dev/null
@@ -1 +0,0 @@
-
diff --git a/public/test-geometric.html b/public/test-geometric.html
deleted file mode 100644
index 954d70a..0000000
--- a/public/test-geometric.html
+++ /dev/null
@@ -1,335 +0,0 @@
-
-
-
-
- 几何动画预设测试
-
-
-
-
-
几何动画预设测试
-
-
-
-
-
-
控制面板
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
使用说明
-
1. 选择预设类型
-
2. 调整对齐方式
-
3. 点击"加载预设"按钮
-
4. 预设将显示在左侧预览区域
-
-
-
-
-
可用预设列表
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/public/test-simple.html b/public/test-simple.html
deleted file mode 100644
index aa331d2..0000000
--- a/public/test-simple.html
+++ /dev/null
@@ -1,453 +0,0 @@
-
-
-
-
- 几何动画预设 - 简单测试
-
-
-
-
-
-
-
-
-
-
-
-
-
- 就绪
-
-
-
-`;
-
- function loadGeometricPreset() {
- const container = document.getElementById('widgetContainer');
- container.innerHTML = '';
-
- const iframe = document.createElement('iframe');
- iframe.style.width = '100%';
- iframe.style.height = '100%';
- iframe.style.border = 'none';
- iframe.sandbox = 'allow-scripts allow-same-origin';
-
- container.appendChild(iframe);
- currentIframe = iframe;
-
- const iframeDoc = iframe.contentDocument || iframe.contentWindow.document;
- iframeDoc.open();
- iframeDoc.write(geometricPresetHTML);
- iframeDoc.close();
-
- document.getElementById('status').textContent = '几何动画预设已加载';
- document.getElementById('status').style.color = '#00ff88';
- }
-
- function reloadPreset() {
- if (currentIframe) {
- const iframeDoc = currentIframe.contentDocument || currentIframe.contentWindow.document;
- iframeDoc.open();
- iframeDoc.write(geometricPresetHTML);
- iframeDoc.close();
-
- document.getElementById('status').textContent = '预设已重新加载';
- document.getElementById('status').style.color = '#00bfff';
- }
- }
-
- function toggleAnimation() {
- if (!currentIframe) return;
-
- const iframeDoc = currentIframe.contentDocument || currentIframe.contentWindow.document;
- const shapes = iframeDoc.querySelectorAll('.geo-shape');
-
- animationPaused = !animationPaused;
-
- shapes.forEach(shape => {
- if (animationPaused) {
- shape.style.animationPlayState = 'paused';
- } else {
- shape.style.animationPlayState = 'running';
- }
- });
-
- const statusText = animationPaused ? '动画已暂停' : '动画已继续';
- document.getElementById('status').textContent = statusText;
- document.getElementById('status').style.color = animationPaused ? '#ff69b4' : '#00ff88';
- }
-
- // 页面加载时自动加载预设
- window.onload = function() {
- setTimeout(loadGeometricPreset, 500);
- };
-
-