Field editor: palette, select/move/resize/rotate, inspector, optimistic sync (#11) (#30)
Build image / build-and-push (push) Successful in 13s
Build image / build-and-push (push) Successful in 13s
Co-authored-by: Steve Dudenhoeffer <[email protected]>
This commit was merged in pull request #30.
This commit is contained in:
@@ -89,6 +89,11 @@ const gardensRoute = createRoute({
|
||||
const gardenEditorRoute = createRoute({
|
||||
getParentRoute: () => rootRoute,
|
||||
path: 'gardens/$gardenId',
|
||||
// ?focus=<objectId> frames that object on load.
|
||||
validateSearch: (search: Record<string, unknown>): { focus?: number } => {
|
||||
const f = Number(search.focus)
|
||||
return Number.isInteger(f) && f > 0 ? { focus: f } : {}
|
||||
},
|
||||
beforeLoad: ({ context, location }) => requireAuth(context, location.href),
|
||||
component: GardenEditorPage,
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user