chore: generate
This commit is contained in:
@@ -84,7 +84,6 @@ function ServerKey(props: ParentProps) {
|
|||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
export function AppInterface(props: { defaultUrl?: string; children?: JSX.Element; isSidecar?: boolean }) {
|
export function AppInterface(props: { defaultUrl?: string; children?: JSX.Element; isSidecar?: boolean }) {
|
||||||
const platform = usePlatform()
|
const platform = usePlatform()
|
||||||
|
|
||||||
|
|||||||
@@ -28,7 +28,7 @@ function projectsKey(url: string) {
|
|||||||
|
|
||||||
export const { use: useServer, provider: ServerProvider } = createSimpleContext({
|
export const { use: useServer, provider: ServerProvider } = createSimpleContext({
|
||||||
name: "Server",
|
name: "Server",
|
||||||
init: (props: { defaultUrl: string, isSidecar?: boolean }) => {
|
init: (props: { defaultUrl: string; isSidecar?: boolean }) => {
|
||||||
const platform = usePlatform()
|
const platform = usePlatform()
|
||||||
|
|
||||||
const [store, setStore, _, ready] = persisted(
|
const [store, setStore, _, ready] = persisted(
|
||||||
@@ -96,9 +96,8 @@ export const { use: useServer, provider: ServerProvider } = createSimpleContext(
|
|||||||
const url = normalizeServerUrl(props.defaultUrl)
|
const url = normalizeServerUrl(props.defaultUrl)
|
||||||
if (!url) return
|
if (!url) return
|
||||||
batch(() => {
|
batch(() => {
|
||||||
|
|
||||||
// Add the new sidecar url
|
// Add the new sidecar url
|
||||||
if(props.isSidecar && props.defaultUrl) {
|
if (props.isSidecar && props.defaultUrl) {
|
||||||
add(props.defaultUrl)
|
add(props.defaultUrl)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -404,7 +404,6 @@ render(() => {
|
|||||||
window.__OPENCODE__ ??= {}
|
window.__OPENCODE__ ??= {}
|
||||||
window.__OPENCODE__.serverPassword = data().password ?? undefined
|
window.__OPENCODE__.serverPassword = data().password ?? undefined
|
||||||
|
|
||||||
|
|
||||||
function Inner() {
|
function Inner() {
|
||||||
const cmd = useCommand()
|
const cmd = useCommand()
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user