-
-
Notifications
You must be signed in to change notification settings - Fork 94
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat(block): remix * feat(core): createTable API * feat(core): uploadFile API * fix(block): code update * feat(block): standalone block window * chore: simplify environment variable management * build(desktop): support different build configs for dev and prod * feat(block): bindings * fix: correct Blob size property in file streaming response * fix: update script & file api * fix: support nested file paths * fix: improve remix prompt * feat(block): open block standalone * refactor(extension): better UX for update settings * feat(block): toggle preview * feat(extension): code editor supports switcing theme * fix: make remix feature desktop-only * Update to version 0.10.0
- Loading branch information
Showing
51 changed files
with
1,554 additions
and
361 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
import { useEffect } from "react" | ||
import { useParams, useSearchParams } from "react-router-dom" | ||
|
||
import { useMblock } from "@/hooks/use-mblock" | ||
import { BlockApp } from "@/components/block-renderer/block-app" | ||
|
||
export default function BlockPage() { | ||
const { id, database } = useParams() | ||
const [searchParams] = useSearchParams() | ||
|
||
const block = useMblock(id) | ||
useEffect(() => { | ||
if (block) { | ||
// set title | ||
document.title = `Eidos - ${block.name}` | ||
} | ||
}, [block]) | ||
return ( | ||
<> | ||
<BlockApp url={`block://${id}@${database}?${searchParams.toString()}`} /> | ||
</> | ||
) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.