Skip to content

Commit 7adac81

Browse files
authored
chore: fix last bugs and prepare release (#310)
* chore: try to get submodules to clone * chore: fix some issues inside examples, open folder after rendering * feat: display correct port when port is taken * feat: scene graph as default side-menu
1 parent c6b18b1 commit 7adac81

File tree

6 files changed

+14
-7
lines changed

6 files changed

+14
-7
lines changed

.github/workflows/publish.yml

+4
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,10 @@ jobs:
3232
fetch-depth: 0
3333
token: ${{secrets.PUBLISH_TOKEN}}
3434
submodules: true
35+
- name: Initialize and update submodules
36+
run: |
37+
git submodule init
38+
git submodule update --recursive
3539
- uses: actions/setup-node@v4
3640
with:
3741
node-version: 20

packages/cli/src/index.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,8 @@ program
4646
)
4747
.option('--port <number>', 'Port on which to start the server', '9000')
4848
.action(async options => {
49-
await launchEditor(options.projectFile, options.port);
50-
console.log(`Editor running on port ${options.port}`);
49+
const editor = await launchEditor(options.projectFile, options.port);
50+
console.log(`Editor running on port ${editor.config.server.port}`);
5151
});
5252

5353
program.parse(process.argv);

packages/ui/src/components/viewport/Viewport.tsx

+4-3
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import {useEffect, useState} from 'preact/hooks';
44
import {useApplication} from '../../contexts';
55
import {useDuration, useRendererState} from '../../hooks';
66
import {useShortcut} from '../../hooks/useShortcut';
7-
import {formatDuration} from '../../utils';
7+
import {formatDuration, openOutputPath} from '../../utils';
88
import {Button} from '../controls';
99
import {
1010
PlaybackControls,
@@ -41,11 +41,12 @@ function EditorViewport() {
4141
main
4242
value="Render"
4343
id="render"
44-
onClick={() => {
45-
renderer.render({
44+
onClick={async () => {
45+
await renderer.render({
4646
...getFullRenderingSettings(project),
4747
name: project.name,
4848
});
49+
await openOutputPath();
4950
}}
5051
class={styles.renderButton}
5152
>

packages/ui/src/contexts/panels.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ export function PanelsProvider({children}: {children: ComponentChildren}) {
5757
return options;
5858
}, [tabs]);
5959

60-
const sidebar = panelSignal(undefined, 'sidebar', options);
60+
const sidebar = panelSignal(EditorPanel.SceneGraph, 'sidebar', options);
6161
const bottom = panelSignal(EditorPanel.Timeline, 'bottom-panel', options);
6262

6363
return (

packages/ui/src/signals/EditorPanel.ts

+2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
export enum EditorPanel {
2+
// TODO: technically, this is a plugin so it's not entirely safe to assume it's always available
3+
SceneGraph = '@revideo/2d-scene-graph',
24
Threads = 'threads-panel',
35
Console = 'console-panel',
46
Timeline = 'timeline-panel',

0 commit comments

Comments
 (0)