mirror of
https://github.com/anomalyco/opencode.git
synced 2026-05-02 14:30:29 +00:00
wip(app): settings
This commit is contained in:
parent
e521fee002
commit
8bcbfd6396
16 changed files with 564 additions and 45 deletions
|
|
@ -59,6 +59,7 @@ import { useDialog } from "@opencode-ai/ui/context/dialog"
|
|||
import { useTheme, type ColorScheme } from "@opencode-ai/ui/theme"
|
||||
import { DialogSelectProvider } from "@/components/dialog-select-provider"
|
||||
import { DialogSelectServer } from "@/components/dialog-select-server"
|
||||
import { DialogSettings } from "@/components/dialog-settings"
|
||||
import { useCommand, type CommandOption } from "@/context/command"
|
||||
import { ConstrainDragXAxis } from "@/utils/solid-dnd"
|
||||
import { navStart } from "@/utils/perf"
|
||||
|
|
@ -880,6 +881,10 @@ export default function Layout(props: ParentProps) {
|
|||
dialog.show(() => <DialogSelectServer />)
|
||||
}
|
||||
|
||||
function openSettings() {
|
||||
dialog.show(() => <DialogSettings />)
|
||||
}
|
||||
|
||||
function navigateToProject(directory: string | undefined) {
|
||||
if (!directory) return
|
||||
server.projects.touch(directory)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue