feat: add 'Open in StackBlitz' button to header (#10)

This commit is contained in:
Connor Fogarty
2024-07-26 09:08:24 -05:00
committed by GitHub
parent 20e2d49993
commit d35f64eb1d
7 changed files with 101 additions and 2 deletions

View File

@@ -27,6 +27,7 @@ export class WorkbenchStore {
showWorkbench: WritableAtom<boolean> = import.meta.hot?.data.showWorkbench ?? atom(false);
unsavedFiles: WritableAtom<Set<string>> = import.meta.hot?.data.unsavedFiles ?? atom(new Set<string>());
modifiedFiles = new Set<string>();
artifactList: string[] = [];
constructor() {
if (import.meta.hot) {
@@ -184,6 +185,7 @@ export class WorkbenchStore {
const artifact = this.#getArtifact(messageId);
if (artifact) {
this.artifactList.push(messageId);
return;
}