first commit

This commit is contained in:
2026-01-29 12:03:28 +08:00
commit 3ecfab1212
18 changed files with 34678 additions and 0 deletions

423
panel.html Normal file
View File

@@ -0,0 +1,423 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>XHR 解密工具</title>
<style>
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
font-size: 13px;
background: #1a202c;
color: #e2e8f0;
margin: 0;
padding: 0;
overflow: auto;
min-height: 100vh;
}
body.dark-theme {
background: #1a202c;
color: #e2e8f0;
}
.header {
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
color: white;
padding: 12px 16px;
display: flex;
justify-content: space-between;
align-items: center;
border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}
.header h1 {
font-size: 14px;
font-weight: 600;
}
.controls {
padding: 8px 12px;
background: #2d3748;
border-bottom: 1px solid #4a5568;
display: flex;
gap: 8px;
align-items: center;
flex-wrap: wrap;
}
body.light-theme .controls {
background: #f5f5f5;
border-bottom: 1px solid #e0e0e0;
}
.btn {
padding: 6px 12px;
border: 1px solid #4a5568;
border-radius: 4px;
cursor: pointer;
font-size: 12px;
background: #2d3748;
color: #e2e8f0;
transition: all 0.2s;
height: 28px;
}
body.light-theme .btn {
border: 1px solid #d9d9d9;
background: white;
color: #333;
}
.btn:hover {
background: #4a5568;
border-color: #4ec9b0;
}
body.light-theme .btn:hover {
background: #f0f0f0;
border-color: #40a9ff;
}
.btn-primary {
background: #1890ff;
color: white;
border-color: #1890ff;
}
.btn-primary:hover {
background: #40a9ff;
border-color: #40a9ff;
}
.btn-danger {
background: #ff4d4f;
color: white;
border-color: #ff4d4f;
}
.btn-danger:hover {
background: #ff7875;
border-color: #ff7875;
}
.stats {
padding: 6px 12px;
background: #4a5568;
border-left: 3px solid #4ec9b0;
font-size: 12px;
color: #e2e8f0;
flex-shrink: 0;
}
body.light-theme .stats {
background: #fff3cd;
border-left: 3px solid #ffc107;
color: #856404;
}
.requests-list {
flex: 1;
overflow-y: auto;
padding: 12px;
background: #1a202c;
}
body.light-theme .requests-list {
background: #ffffff;
}
.request-item {
background: #2d3748;
border: 1px solid #4a5568;
border-radius: 6px;
padding: 12px;
margin-bottom: 12px;
transition: all 0.2s;
}
body.light-theme .request-item {
background: white;
border: 1px solid #e0e0e0;
}
.request-item:hover {
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
border-color: #4ec9b0;
}
body.light-theme .request-item:hover {
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
border-color: #40a9ff;
}
.request-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 8px;
padding-bottom: 8px;
border-bottom: 1px solid #f0f0f0;
}
.method-badge {
display: inline-block;
padding: 2px 6px;
border-radius: 3px;
font-size: 11px;
font-weight: 600;
margin-right: 8px;
}
.method-GET {
background: #52c41a;
color: white;
}
.method-POST {
background: #1890ff;
color: white;
}
.method-PUT {
background: #faad14;
color: white;
}
.method-DELETE {
background: #ff4d4f;
color: white;
}
.url {
flex: 1;
font-weight: 500;
color: #e2e8f0;
word-break: break-all;
font-size: 13px;
font-family: 'Courier New', monospace;
}
body.light-theme .url {
color: #333;
}
.timestamp {
font-size: 11px;
color: #a0aec0;
margin-left: 8px;
}
body.light-theme .timestamp {
color: #999;
}
.data-section {
margin-top: 12px;
}
.data-label {
font-size: 12px;
font-weight: 600;
color: #a0aec0;
margin-bottom: 6px;
display: flex;
align-items: center;
gap: 8px;
}
body.light-theme .data-label {
color: #666;
}
.data-content {
background: #1a202c;
border: 1px solid #4a5568;
border-radius: 4px;
padding: 8px;
font-family: 'Courier New', monospace;
font-size: 11px;
max-height: 300px;
overflow-y: auto;
white-space: pre-wrap;
word-break: break-all;
line-height: 1.5;
color: #e2e8f0;
}
body.light-theme .data-content {
background: #f8f9fa;
border: 1px solid #e9ecef;
color: #333;
}
.empty-state {
text-align: center;
padding: 60px 20px;
color: #a0aec0;
}
body.light-theme .empty-state {
color: #999;
}
.empty-state svg {
width: 64px;
height: 64px;
margin-bottom: 16px;
opacity: 0.5;
}
.copy-btn {
padding: 2px 8px;
font-size: 10px;
background: #f0f0f0;
border: 1px solid #d9d9d9;
border-radius: 3px;
cursor: pointer;
height: 20px;
line-height: 16px;
}
.copy-btn:hover {
background: #e0e0e0;
}
.key-info {
font-size: 10px;
color: #999;
margin-top: 4px;
padding: 4px 8px;
background: #f5f5f5;
border-radius: 3px;
}
.filter-bar {
padding: 8px 12px;
background: #2d3748;
border-bottom: 1px solid #4a5568;
display: flex;
gap: 8px;
align-items: center;
}
body.light-theme .filter-bar {
background: #fafafa;
border-bottom: 1px solid #e0e0e0;
}
.filter-input {
flex: 1;
padding: 4px 8px;
border: 1px solid #4a5568;
border-radius: 4px;
font-size: 12px;
height: 28px;
background: #1a202c;
color: #e2e8f0;
}
body.light-theme .filter-input {
border: 1px solid #d9d9d9;
background: white;
color: #333;
}
.filter-input:focus {
outline: none;
border-color: #4ec9b0;
}
body.light-theme .filter-input:focus {
border-color: #40a9ff;
}
body.light-theme .filter-input::placeholder {
color: #999;
}
.filter-input::placeholder {
color: #a0aec0;
}
.theme-toggle-btn {
background: rgba(255, 255, 255, 0.2);
border: 1px solid rgba(255, 255, 255, 0.3);
border-radius: 50%;
width: 32px;
height: 32px;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
font-size: 16px;
transition: all 0.2s;
padding: 0;
}
.theme-toggle-btn:hover {
background: rgba(255, 255, 255, 0.3);
transform: scale(1.1);
}
/* 亮色主题 */
body.light-theme {
background: #f5f5f5;
}
body.light-theme .header {
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}
body.light-theme .requests-list {
background: #ffffff;
}
body.light-theme .request-item {
background: #ffffff;
border: 1px solid #e0e0e0;
color: #333;
}
body.light-theme .request-item:hover {
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
border-color: #40a9ff;
}
body.light-theme .url {
color: #333;
}
body.light-theme .data-content {
background: #f8f9fa;
color: #333;
border: 1px solid #e9ecef;
}
body.light-theme .section {
color: #333;
}
body.light-theme pre {
background: #f8f9fa !important;
color: #333 !important;
border: 1px solid #e9ecef !important;
}
</style>
</head>
<body>
<div id="app"></div>
<script src="crypto-js.min.js"></script>
<script src="json5.min.js"></script>
<script src="panel.js"></script>
</body>
</html>