* feat(ui): 完善 UI 布局系统和编辑器可视化工具 * refactor: 移除 ModuleRegistry,统一使用 PluginManager 插件系统 * fix: 修复 CodeQL 警告并提升测试覆盖率 * refactor: 分离运行时入口点,解决 runtime bundle 包含 React 的问题 * fix(ci): 添加 editor-core 和 editor-runtime 到 CI 依赖构建步骤 * docs: 完善 ServiceContainer 文档,新增 Symbol.for 模式和 @InjectProperty 说明 * fix(ci): 修复 type-check 失败问题 * fix(ci): 修复类型检查失败问题 * fix(ci): 修复类型检查失败问题 * fix(ci): behavior-tree 构建添加 @tauri-apps 外部依赖 * fix(ci): behavior-tree 添加 @tauri-apps/plugin-fs 类型依赖 * fix(ci): platform-web 添加缺失的 behavior-tree 依赖 * fix(lint): 移除正则表达式中不必要的转义字符
170 lines
3.1 KiB
CSS
170 lines
3.1 KiB
CSS
.plugin-list-setting {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 16px;
|
|
}
|
|
|
|
.plugin-list-notice {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
padding: 8px 12px;
|
|
background: var(--color-warning-bg, #3d3520);
|
|
border-radius: 4px;
|
|
color: var(--color-warning, #ffb74d);
|
|
font-size: 12px;
|
|
}
|
|
|
|
.plugin-category {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 2px;
|
|
}
|
|
|
|
.plugin-category-header {
|
|
font-size: 11px;
|
|
font-weight: 600;
|
|
color: var(--color-text-secondary, #999);
|
|
padding: 4px 0;
|
|
border-bottom: 1px solid var(--color-border, #333);
|
|
margin-bottom: 4px;
|
|
}
|
|
|
|
.plugin-list {
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
|
|
.plugin-item {
|
|
display: flex;
|
|
align-items: flex-start;
|
|
gap: 10px;
|
|
padding: 8px 4px;
|
|
cursor: pointer;
|
|
border-bottom: 1px solid var(--color-border, #2a2a2a);
|
|
transition: background 0.1s ease;
|
|
}
|
|
|
|
.plugin-item:last-child {
|
|
border-bottom: none;
|
|
}
|
|
|
|
.plugin-item:hover {
|
|
background: var(--color-bg-hover, rgba(255, 255, 255, 0.03));
|
|
}
|
|
|
|
.plugin-item.core {
|
|
cursor: default;
|
|
opacity: 0.7;
|
|
}
|
|
|
|
.plugin-checkbox {
|
|
width: 16px;
|
|
height: 16px;
|
|
border: 1.5px solid var(--color-border, #555);
|
|
border-radius: 3px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
flex-shrink: 0;
|
|
margin-top: 2px;
|
|
transition: all 0.1s ease;
|
|
background: transparent;
|
|
}
|
|
|
|
.plugin-item:hover .plugin-checkbox {
|
|
border-color: var(--color-text-tertiary, #777);
|
|
}
|
|
|
|
.plugin-item.enabled .plugin-checkbox {
|
|
background: var(--color-primary, #4a9eff);
|
|
border-color: var(--color-primary, #4a9eff);
|
|
color: white;
|
|
}
|
|
|
|
.plugin-item.core .plugin-checkbox {
|
|
background: var(--color-text-tertiary, #555);
|
|
border-color: var(--color-text-tertiary, #555);
|
|
color: white;
|
|
}
|
|
|
|
.plugin-info {
|
|
flex: 1;
|
|
min-width: 0;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 2px;
|
|
}
|
|
|
|
.plugin-header {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
}
|
|
|
|
.plugin-name {
|
|
font-size: 13px;
|
|
font-weight: 500;
|
|
color: var(--color-text, #e0e0e0);
|
|
}
|
|
|
|
.plugin-version {
|
|
font-size: 11px;
|
|
color: var(--color-text-tertiary, #666);
|
|
}
|
|
|
|
.plugin-description {
|
|
font-size: 12px;
|
|
color: var(--color-text-secondary, #888);
|
|
line-height: 1.4;
|
|
}
|
|
|
|
.plugin-modules {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
margin-top: 4px;
|
|
}
|
|
|
|
.plugin-module-badge {
|
|
font-size: 10px;
|
|
padding: 2px 6px;
|
|
border-radius: 3px;
|
|
font-weight: 500;
|
|
}
|
|
|
|
.plugin-module-badge.runtime {
|
|
background: rgba(76, 175, 80, 0.12);
|
|
color: #81c784;
|
|
}
|
|
|
|
.plugin-module-badge.editor {
|
|
background: rgba(33, 150, 243, 0.12);
|
|
color: #64b5f6;
|
|
}
|
|
|
|
.plugin-module-badge.core {
|
|
background: rgba(255, 193, 7, 0.12);
|
|
color: #ffd54f;
|
|
}
|
|
|
|
.plugin-module-badge.engine {
|
|
background: rgba(156, 39, 176, 0.12);
|
|
color: #ce93d8;
|
|
}
|
|
|
|
.plugin-list-empty {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
justify-content: center;
|
|
padding: 48px 20px;
|
|
color: var(--color-text-secondary, #666);
|
|
gap: 12px;
|
|
}
|
|
|
|
.plugin-list-empty p {
|
|
margin: 0;
|
|
font-size: 13px;
|
|
}
|