初始提交 - FutureOSS v1.0 插件化运行时框架

一切皆为插件的开发者工具运行时框架

🧩 核心特性:
  - 插件热插拔 (importlib 动态加载)
  - 依赖自动解析 (拓扑排序 + 循环检测)
  - 企业级稳定 (熔断/降级/重试/隔离)
  - 事件驱动 (发布/订阅事件总线)
  - 完整配置 (YAML 配置 + 热重载)
This commit is contained in:
Falck
2026-04-06 09:57:10 +08:00
commit 76147bae94
174 changed files with 15626 additions and 0 deletions

396
website/css/page.css Normal file
View File

@@ -0,0 +1,396 @@
/* ===== 通用页面样式 ===== */
.page-content {
max-width: 1100px;
margin: 0 auto;
padding: 100px 80px 80px 24px;
min-height: 100vh;
}
.page-header {
text-align: center;
margin-bottom: 64px;
}
.page-title {
font-size: clamp(32px, 5vw, 48px);
font-weight: 800;
margin-bottom: 16px;
line-height: 1.2;
}
.page-desc {
font-size: 18px;
color: var(--text-secondary);
max-width: 600px;
margin: 0 auto;
}
/* 特性网格 */
.features-grid {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 24px;
}
.feature-card {
background: var(--bg-glass);
border: 1px solid var(--border);
border-radius: 20px;
padding: 32px;
transition: all 0.4s ease;
}
.feature-card:hover {
border-color: var(--border-hover);
transform: translateY(-8px);
box-shadow: 0 20px 40px rgba(6, 182, 212, 0.1);
}
.feature-icon {
width: 56px;
height: 56px;
border-radius: 14px;
background: linear-gradient(135deg, var(--cyan), var(--blue));
display: flex;
align-items: center;
justify-content: center;
margin-bottom: 20px;
transition: transform 0.3s;
}
.feature-card:hover .feature-icon { transform: scale(1.1); }
.feature-icon svg { width: 28px; height: 28px; color: #fff; }
.feature-card h3 { font-size: 20px; font-weight: 700; margin-bottom: 12px; }
.feature-card p {
font-size: 15px;
color: var(--text-secondary);
line-height: 1.7;
margin-bottom: 20px;
}
.feature-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.feature-tags span {
padding: 4px 12px;
border-radius: 6px;
background: rgba(6, 182, 212, 0.08);
border: 1px solid rgba(6, 182, 212, 0.15);
color: var(--cyan-light);
font-size: 12px;
font-weight: 500;
}
/* 插件页面 */
.pkg-format { text-align: center; margin-bottom: 48px; }
.pkg-card {
font-family: 'JetBrains Mono', monospace;
font-size: clamp(20px, 4vw, 36px);
font-weight: 700;
padding: 32px;
background: var(--bg-glass);
border: 1px solid var(--border);
border-radius: 16px;
display: inline-block;
margin-bottom: 32px;
}
.pkg-symbol { color: var(--text-muted); }
.pkg-highlight { color: var(--cyan); }
.pkg-version { color: var(--blue); }
.pkg-explain {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 24px;
text-align: center;
}
.explain-symbol {
font-family: 'JetBrains Mono', monospace;
font-size: 18px;
font-weight: 600;
color: var(--cyan-light);
margin-bottom: 8px;
}
.explain-text { font-size: 14px; color: var(--text-muted); }
/* 终端演示 */
.install-demo {
max-width: 700px;
margin: 0 auto 48px;
background: rgba(10, 15, 30, 0.9);
border: 1px solid rgba(255, 255, 255, 0.08);
border-radius: 16px;
overflow: hidden;
}
.demo-header {
display: flex;
align-items: center;
gap: 8px;
padding: 14px 20px;
border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.demo-dot { width: 12px; height: 12px; border-radius: 50%; }
.demo-dot-red { background: #ef4444; }
.demo-dot-yellow { background: #eab308; }
.demo-dot-green { background: #22c55e; }
.demo-title { margin-left: 12px; font-size: 13px; color: var(--text-muted); }
.demo-body {
padding: 20px;
font-family: 'JetBrains Mono', monospace;
font-size: 14px;
}
.cmd-line { display: flex; gap: 12px; margin-bottom: 8px; color: var(--text-secondary); }
.prompt { color: var(--cyan); font-weight: 600; }
.cmd-text { color: #e5e7eb; }
.cmd-output { color: #9ca3af; font-size: 13px; margin-bottom: 4px; }
.cmd-output.success { color: #34d399; }
.cmd-output.indent { padding-left: 24px; }
/* 命令表格 */
.pkg-table { max-width: 800px; margin: 0 auto; }
.pkg-table-title { font-size: 24px; font-weight: 700; margin-bottom: 20px; text-align: center; }
.pkg-table table {
width: 100%;
border-collapse: collapse;
}
.pkg-table th, .pkg-table td {
padding: 12px 16px;
text-align: left;
border-bottom: 1px solid var(--border);
font-size: 14px;
}
.pkg-table th {
color: var(--text-muted);
font-weight: 600;
font-size: 13px;
}
.pkg-table td code {
font-family: 'JetBrains Mono', monospace;
background: rgba(6, 182, 212, 0.1);
padding: 2px 8px;
border-radius: 4px;
font-size: 13px;
color: var(--cyan-light);
}
/* 架构图 */
.arch-diagram { max-width: 900px; margin: 0 auto 64px; }
.arch-layer {
border-radius: 16px;
padding: 24px;
border: 1px solid var(--border);
}
.arch-core {
background: rgba(6, 182, 212, 0.05);
border-color: rgba(6, 182, 212, 0.2);
}
.arch-label {
text-align: center;
font-size: 18px;
font-weight: 700;
margin-bottom: 16px;
color: var(--cyan-light);
}
.arch-modules {
display: flex;
flex-wrap: wrap;
gap: 12px;
justify-content: center;
}
.arch-module {
padding: 10px 20px;
background: rgba(6, 182, 212, 0.1);
border: 1px solid rgba(6, 182, 212, 0.2);
border-radius: 8px;
font-size: 14px;
font-weight: 500;
}
.arch-connector {
height: 40px;
width: 2px;
background: linear-gradient(to bottom, var(--cyan), var(--blue));
margin: 0 auto;
position: relative;
}
.arch-connector::before,
.arch-connector::after {
content: '';
position: absolute;
left: 50%;
transform: translateX(-50%);
width: 12px;
height: 12px;
border-radius: 50%;
background: var(--cyan);
}
.arch-connector::before { top: -6px; }
.arch-connector::after { bottom: -6px; }
.arch-plugins { background: var(--bg-glass); }
.arch-plugin-grid {
display: grid;
grid-template-columns: repeat(4, 1fr);
gap: 16px;
}
.arch-plugin {
background: rgba(255, 255, 255, 0.02);
border: 1px solid var(--border);
border-radius: 12px;
padding: 20px;
text-align: center;
transition: all 0.3s;
}
.arch-plugin:hover {
border-color: var(--border-hover);
transform: translateY(-4px);
}
.arch-plugin-title {
font-weight: 700;
font-size: 15px;
margin-bottom: 12px;
color: var(--cyan-light);
}
.arch-plugin-items {
font-size: 13px;
color: var(--text-muted);
margin-bottom: 4px;
}
/* 数据流 */
.arch-flow { max-width: 900px; margin: 0 auto; }
.arch-flow-title { text-align: center; font-size: 28px; font-weight: 800; margin-bottom: 32px; }
.arch-flow-steps {
display: flex;
align-items: center;
justify-content: center;
flex-wrap: wrap;
gap: 12px;
}
.flow-step {
display: flex;
align-items: center;
gap: 10px;
padding: 12px 20px;
background: var(--bg-glass);
border: 1px solid var(--border);
border-radius: 12px;
font-size: 14px;
font-weight: 500;
}
.flow-step-num {
display: flex;
align-items: center;
justify-content: center;
width: 28px;
height: 28px;
border-radius: 50%;
background: linear-gradient(135deg, var(--cyan), var(--blue));
font-size: 13px;
font-weight: 700;
flex-shrink: 0;
}
.flow-arrow { color: var(--cyan); font-size: 20px; font-weight: 700; }
/* 快速开始 */
.steps-grid {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 24px;
margin-bottom: 64px;
}
.step-card {
background: var(--bg-glass);
border: 1px solid var(--border);
border-radius: 16px;
padding: 32px;
text-align: center;
transition: all 0.3s;
}
.step-card:hover {
border-color: var(--border-hover);
transform: translateY(-4px);
}
.step-number {
display: inline-flex;
align-items: center;
justify-content: center;
width: 48px;
height: 48px;
border-radius: 50%;
background: linear-gradient(135deg, var(--cyan), var(--blue));
font-size: 20px;
font-weight: 800;
margin-bottom: 20px;
}
.step-title { font-size: 20px; font-weight: 700; margin-bottom: 16px; }
.step-code {
font-family: 'JetBrains Mono', monospace;
font-size: 13px;
line-height: 1.8;
color: var(--text-secondary);
text-align: left;
background: rgba(10, 15, 30, 0.6);
padding: 16px;
border-radius: 8px;
}
.quickstart-links {
display: flex;
justify-content: center;
gap: 16px;
flex-wrap: wrap;
}
/* 响应式 */
@media (max-width: 1024px) {
.features-grid { grid-template-columns: repeat(2, 1fr); }
.arch-plugin-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
.page-content { padding-left: 24px; }
.features-grid { grid-template-columns: 1fr; }
.arch-plugin-grid { grid-template-columns: 1fr; }
.steps-grid { grid-template-columns: 1fr; }
.arch-flow-steps { flex-direction: column; }
.flow-arrow { transform: rotate(90deg); }
.pkg-explain { grid-template-columns: 1fr; }
.pkg-table { overflow-x: auto; }
}