feat(editor): drag-and-drop для аудио и превью сцены
Добавлена загрузка файлов перетаскиванием в блоки «Аудио игры», «Аудио сцены» и «Превью сцены»: подсветка зоны, подсказки, фильтрация по типу, импорт без диалога. IPC и main принимают пути файлов напрямую; для Electron 41 пути получаются через webUtils.getPathForFile в preload (File.path в renderer больше недоступен). Улучшен dev-запуск: Vite слушает 127.0.0.1, ожидание готовности по localhost. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -661,6 +661,15 @@
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
position: relative;
|
||||
transition:
|
||||
border-color 0.15s ease,
|
||||
background 0.15s ease;
|
||||
}
|
||||
|
||||
.previewBoxDragOver {
|
||||
border-color: var(--accent);
|
||||
border-style: dashed;
|
||||
background: var(--accent-fill-soft);
|
||||
}
|
||||
|
||||
.previewFill {
|
||||
@@ -754,6 +763,32 @@
|
||||
padding: 10px;
|
||||
display: grid;
|
||||
gap: 8px;
|
||||
position: relative;
|
||||
transition:
|
||||
border-color 0.15s ease,
|
||||
background 0.15s ease;
|
||||
}
|
||||
|
||||
.audioDropDragOver {
|
||||
border-color: var(--accent);
|
||||
background: var(--accent-fill-soft);
|
||||
}
|
||||
|
||||
.dropHintOverlay {
|
||||
position: absolute;
|
||||
inset: 0;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
padding: 10px;
|
||||
border-radius: inherit;
|
||||
background: var(--accent-fill-soft-2);
|
||||
color: var(--accent);
|
||||
font-size: var(--text-xs);
|
||||
font-weight: 700;
|
||||
text-align: center;
|
||||
pointer-events: none;
|
||||
z-index: 2;
|
||||
}
|
||||
|
||||
.audioList {
|
||||
|
||||
Reference in New Issue
Block a user