Skip to content

add file transfer#3

Open
gkgoat1 wants to merge 4 commits into
abndnce:mainfrom
gkgoat1:pr/fileio
Open

add file transfer#3
gkgoat1 wants to merge 4 commits into
abndnce:mainfrom
gkgoat1:pr/fileio

Conversation

@gkgoat1

@gkgoat1 gkgoat1 commented Jun 23, 2026

Copy link
Copy Markdown

Adds file transfer to the Cod VM

Comment thread src/cod/App.svelte
</button>
{#each launcherApps as app (app.id)}
{#if app.isInstalled() && !app.isRunning()}
<DropFile onDrop={onDrop}>

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can we use a window-level event listener (<svelte:window>) instead so that we don't add a layer of indentation to everything and don't need another dep

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Doesn't this run in another window, so <svelte:window> targets the wrong window?

https://svelte.dev/docs/svelte/svelte-window

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

very good point. can add listeners in app.ts then

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I ended up vendoring svelte-parts's DropFile, is that okay?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants