Files
esengine/packages/editor/editor-app/src/styles/ExportRuntimeDialog.css
YHH 155411e743 refactor: reorganize package structure and decouple framework packages (#338)
* refactor: reorganize package structure and decouple framework packages

## Package Structure Reorganization
- Reorganized 55 packages into categorized subdirectories:
  - packages/framework/ - Generic framework (Laya/Cocos compatible)
  - packages/engine/ - ESEngine core modules
  - packages/rendering/ - Rendering modules (WASM dependent)
  - packages/physics/ - Physics modules
  - packages/streaming/ - World streaming
  - packages/network-ext/ - Network extensions
  - packages/editor/ - Editor framework and plugins
  - packages/rust/ - Rust WASM engine
  - packages/tools/ - Build tools and SDK

## Framework Package Decoupling
- Decoupled behavior-tree and blueprint packages from ESEngine dependencies
- Created abstracted interfaces (IBTAssetManager, IBehaviorTreeAssetContent)
- ESEngine-specific code moved to esengine/ subpath exports
- Framework packages now usable with Cocos/Laya without ESEngine

## CI Configuration
- Updated CI to only type-check and lint framework packages
- Added type-check:framework and lint:framework scripts

## Breaking Changes
- Package import paths changed due to directory reorganization
- ESEngine integrations now use subpath imports (e.g., '@esengine/behavior-tree/esengine')

* fix: update es-engine file path after directory reorganization

* docs: update README to focus on framework over engine

* ci: only build framework packages, remove Rust/WASM dependencies

* fix: remove esengine subpath from behavior-tree and blueprint builds

ESEngine integration code will only be available in full engine builds.
Framework packages are now purely engine-agnostic.

* fix: move network-protocols to framework, build both in CI

* fix: update workflow paths from packages/core to packages/framework/core

* fix: exclude esengine folder from type-check in behavior-tree and blueprint

* fix: update network tsconfig references to new paths

* fix: add test:ci:framework to only test framework packages in CI

* fix: only build core and math npm packages in CI

* fix: exclude test files from CodeQL and fix string escaping security issue
2025-12-26 14:50:35 +08:00

372 lines
6.7 KiB
CSS

.export-dialog-overlay {
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: rgba(0, 0, 0, 0.7);
display: flex;
align-items: center;
justify-content: center;
z-index: var(--z-index-modal);
backdrop-filter: blur(4px);
}
.export-dialog {
background: #1e1e1e;
border-radius: 12px;
box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
width: 90%;
max-width: 700px;
max-height: 90vh;
overflow: hidden;
display: flex;
flex-direction: column;
border: 1px solid #3a3a3a;
}
.export-dialog-header {
display: flex;
align-items: center;
justify-content: space-between;
padding: 20px 24px;
border-bottom: 1px solid #3a3a3a;
background: #252525;
}
.export-dialog-header h3 {
margin: 0;
font-size: 18px;
font-weight: 600;
color: #ffffff;
}
.export-dialog-close {
background: transparent;
border: none;
color: #999;
cursor: pointer;
padding: 4px;
display: flex;
align-items: center;
justify-content: center;
border-radius: 4px;
transition: all 0.2s;
}
.export-dialog-close:hover {
background: #3a3a3a;
color: #fff;
}
.export-dialog-content {
padding: 24px;
overflow-y: auto;
flex: 1;
}
.export-dialog-content::-webkit-scrollbar {
width: 10px;
}
.export-dialog-content::-webkit-scrollbar-track {
background: #1e1e1e;
}
.export-dialog-content::-webkit-scrollbar-thumb {
background: #424242;
border-radius: 5px;
}
.export-dialog-content::-webkit-scrollbar-thumb:hover {
background: #4e4e4e;
}
.export-dialog-info {
display: flex;
align-items: center;
gap: 8px;
padding: 12px 16px;
background: rgba(66, 153, 225, 0.1);
border: 1px solid rgba(66, 153, 225, 0.3);
border-radius: 8px;
color: #4299e1;
font-size: 14px;
margin-bottom: 24px;
}
.export-format-options {
display: flex;
gap: 16px;
}
.export-format-option {
flex: 1;
padding: 20px;
border: 2px solid #3a3a3a;
border-radius: 12px;
background: #252525;
cursor: pointer;
transition: all 0.2s;
display: flex;
flex-direction: column;
gap: 16px;
}
.export-format-option:hover {
border-color: #4a4a4a;
background: #2a2a2a;
}
.export-format-option.selected {
border-color: #4299e1;
background: rgba(66, 153, 225, 0.1);
}
.export-format-icon {
color: #4299e1;
display: flex;
align-items: center;
justify-content: center;
width: 60px;
height: 60px;
background: rgba(66, 153, 225, 0.1);
border-radius: 12px;
margin: 0 auto;
}
.export-format-option.selected .export-format-icon {
background: rgba(66, 153, 225, 0.2);
}
.export-format-info {
text-align: center;
}
.export-format-info h4 {
margin: 0 0 8px 0;
font-size: 16px;
font-weight: 600;
color: #ffffff;
}
.export-format-desc {
margin: 0 0 12px 0;
font-size: 14px;
color: #999;
line-height: 1.5;
}
.export-format-features {
display: flex;
flex-wrap: wrap;
gap: 6px;
justify-content: center;
margin-bottom: 12px;
}
.feature-tag {
display: inline-block;
padding: 4px 10px;
background: #3a3a3a;
border-radius: 12px;
font-size: 12px;
color: #999;
}
.feature-tag.recommended {
background: rgba(72, 187, 120, 0.2);
color: #48bb78;
font-weight: 500;
}
.export-format-option.selected .feature-tag {
background: rgba(66, 153, 225, 0.15);
color: #4299e1;
}
.export-format-option.selected .feature-tag.recommended {
background: rgba(72, 187, 120, 0.2);
color: #48bb78;
}
.export-format-extension {
font-family: 'Courier New', monospace;
font-size: 13px;
color: #4299e1;
padding: 6px 12px;
background: rgba(66, 153, 225, 0.1);
border-radius: 6px;
display: inline-block;
}
.export-dialog-footer {
display: flex;
align-items: center;
justify-content: flex-end;
gap: 12px;
padding: 16px 24px;
border-top: 1px solid #3a3a3a;
background: #252525;
}
.export-dialog-btn {
padding: 10px 24px;
border: none;
border-radius: 6px;
font-size: 14px;
font-weight: 500;
cursor: pointer;
transition: all 0.2s;
}
.export-dialog-btn-cancel {
background: transparent;
color: #999;
border: 1px solid #3a3a3a;
}
.export-dialog-btn-cancel:hover {
background: #2a2a2a;
border-color: #4a4a4a;
color: #fff;
}
.export-dialog-btn-primary {
background: #4299e1;
color: #ffffff;
}
.export-dialog-btn-primary:hover {
background: #3182ce;
}
.export-dialog-btn-primary:active {
background: #2c5282;
}
.export-mode-tabs {
display: flex;
border-bottom: 1px solid #3a3a3a;
margin: -24px -24px 20px -24px;
padding: 0 24px;
}
.export-mode-tab {
padding: 12px 20px;
background: transparent;
border: none;
color: #999;
font-size: 13px;
cursor: pointer;
border-bottom: 2px solid transparent;
transition: all 0.2s;
display: flex;
align-items: center;
gap: 8px;
}
.export-mode-tab:hover {
color: #ccc;
}
.export-mode-tab.active {
color: #4299e1;
border-bottom-color: #4299e1;
}
.export-section {
margin-bottom: 20px;
}
.export-section h4 {
margin: 0 0 12px 0;
font-size: 13px;
color: #ccc;
font-weight: 500;
}
.export-file-list {
max-height: 300px;
overflow-y: auto;
background: #252525;
border: 1px solid #3a3a3a;
border-radius: 6px;
padding: 8px;
}
.export-file-list::-webkit-scrollbar {
width: 10px;
}
.export-file-list::-webkit-scrollbar-track {
background: #1e1e1e;
}
.export-file-list::-webkit-scrollbar-thumb {
background: #424242;
border-radius: 5px;
}
.export-file-list::-webkit-scrollbar-thumb:hover {
background: #4e4e4e;
}
.export-file-item {
display: flex;
align-items: center;
gap: 10px;
padding: 8px;
border-radius: 4px;
transition: background 0.2s;
margin-bottom: 4px;
}
.export-file-item:last-child {
margin-bottom: 0;
}
.export-file-item:hover {
background: rgba(255, 255, 255, 0.05);
}
.export-file-item.selected {
background: rgba(66, 153, 225, 0.1);
}
.export-file-checkbox {
width: 16px;
height: 16px;
cursor: pointer;
}
.export-file-name {
flex: 1;
font-size: 12px;
color: #ccc;
font-family: 'Consolas', 'Monaco', monospace;
display: flex;
align-items: center;
gap: 6px;
}
.export-file-format {
padding: 4px 8px;
background: #2d2d2d;
border: 1px solid #3a3a3a;
border-radius: 4px;
color: #ccc;
font-size: 11px;
cursor: pointer;
outline: none;
transition: all 0.2s;
}
.export-file-format:hover {
border-color: #4a4a4a;
}
.export-file-format:focus {
border-color: #4299e1;
}