chore: import upstream snapshot with attribution
CI: cua-driver distro-compat matrix / debian:12 (glibc 2.36) (push) Has been cancelled
CI: SPDX Headers / Check SPDX headers (warn-only) (push) Has been cancelled
CD: Docs MCP Server / build (linux/amd64) (push) Has been cancelled
CD: Docs MCP Server / build (linux/arm64) (push) Has been cancelled
CD: Docs MCP Server / merge (push) Has been cancelled
CI: cua-driver distro-compat matrix / Resolve release version (push) Has been cancelled
CI: cua-driver distro-compat matrix / fedora:41 (glibc 2.40) (push) Has been cancelled
CI: cua-driver distro-compat matrix / rockylinux:9 (glibc 2.34) (push) Has been cancelled
CI: cua-driver distro-compat matrix / ubuntu:22.04 (glibc 2.35) (push) Has been cancelled
CI: cua-driver distro-compat matrix / ubuntu:24.04 (glibc 2.39) (push) Has been cancelled
CI: cua-driver distro-compat matrix / Distro compat summary (push) Has been cancelled
CI: Rust Linux unit / Rust Linux unit and compile (push) Has been cancelled
CI: Rust Windows unit / Rust Windows unit and compile (push) Has been cancelled
CI: Nix Linux Rust source / Nix / compositor build (push) Has been cancelled
CI: Nix Linux Rust source / Nix / driver package (push) Has been cancelled
CI: Nix Linux Rust source / Nix / Rust unit tests (push) Has been cancelled

This commit is contained in:
wehub-resource-sync
2026-07-13 13:03:19 +08:00
commit 91e75e620b
3227 changed files with 1307078 additions and 0 deletions
@@ -0,0 +1,40 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Static Folder Example</title>
<link rel="stylesheet" href="styles.css" />
</head>
<body>
<div class="container">
<h1>Static Folder Example</h1>
<p>This page is served from a static folder using bench-ui!</p>
<div class="image-container">
<img src="logo.svg" alt="Example SVG Logo" class="logo" />
</div>
<div class="info">
<p>This example demonstrates:</p>
<ul>
<li>Serving a static folder with bench-ui</li>
<li>Loading external CSS files (styles.css)</li>
<li>Loading SVG images (logo.svg)</li>
</ul>
</div>
<button id="testButton" class="btn">Click Me!</button>
<p id="status"></p>
</div>
<script>
document.getElementById('testButton').addEventListener('click', function () {
document.getElementById('status').textContent = 'Button clicked! ✓';
this.disabled = true;
this.textContent = 'Clicked!';
});
</script>
</body>
</html>
@@ -0,0 +1,24 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 200 200">
<defs>
<linearGradient id="grad1" x1="0%" y1="0%" x2="100%" y2="100%">
<stop offset="0%" style="stop-color:#667eea;stop-opacity:1" />
<stop offset="100%" style="stop-color:#764ba2;stop-opacity:1" />
</linearGradient>
</defs>
<!-- Background circle -->
<circle cx="100" cy="100" r="95" fill="url(#grad1)" />
<!-- Window icon -->
<rect x="50" y="50" width="100" height="100" rx="8" fill="white" opacity="0.9" />
<!-- Window panes -->
<line x1="100" y1="50" x2="100" y2="150" stroke="url(#grad1)" stroke-width="4" />
<line x1="50" y1="100" x2="150" y2="100" stroke="url(#grad1)" stroke-width="4" />
<!-- Decorative dots -->
<circle cx="75" cy="75" r="8" fill="url(#grad1)" />
<circle cx="125" cy="75" r="8" fill="url(#grad1)" />
<circle cx="75" cy="125" r="8" fill="url(#grad1)" />
<circle cx="125" cy="125" r="8" fill="url(#grad1)" />
</svg>

After

Width:  |  Height:  |  Size: 963 B

@@ -0,0 +1,100 @@
body {
font-family:
system-ui,
-apple-system,
BlinkMacSystemFont,
'Segoe UI',
Roboto,
sans-serif;
margin: 0;
padding: 20px;
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
min-height: 100vh;
display: flex;
justify-content: center;
align-items: center;
}
.container {
background: white;
border-radius: 12px;
padding: 40px;
box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
max-width: 600px;
width: 100%;
}
h1 {
color: #333;
margin-top: 0;
font-size: 2em;
}
p {
color: #666;
line-height: 1.6;
}
.image-container {
display: flex;
justify-content: center;
margin: 30px 0;
}
.logo {
width: 150px;
height: 150px;
}
.info {
background: #f8f9fa;
border-left: 4px solid #667eea;
padding: 20px;
margin: 20px 0;
border-radius: 4px;
}
.info ul {
margin: 10px 0;
padding-left: 20px;
}
.info li {
color: #555;
margin: 8px 0;
}
.btn {
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
color: white;
border: none;
padding: 12px 30px;
font-size: 16px;
border-radius: 6px;
cursor: pointer;
transition:
transform 0.2s,
box-shadow 0.2s;
font-weight: 600;
}
.btn:hover:not(:disabled) {
transform: translateY(-2px);
box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}
.btn:active:not(:disabled) {
transform: translateY(0);
}
.btn:disabled {
opacity: 0.6;
cursor: not-allowed;
}
#status {
margin-top: 15px;
font-weight: 600;
color: #28a745;
font-size: 18px;
}