|
@@ -5,24 +5,18 @@ import { Button } from "@opencode-ai/ui/button"
|
|
|
import { Icon } from "@opencode-ai/ui/icon"
|
|
import { Icon } from "@opencode-ai/ui/icon"
|
|
|
import { IconButton } from "@opencode-ai/ui/icon-button"
|
|
import { IconButton } from "@opencode-ai/ui/icon-button"
|
|
|
import { TextField } from "@opencode-ai/ui/text-field"
|
|
import { TextField } from "@opencode-ai/ui/text-field"
|
|
|
|
|
+import { ButtonV2 } from "@opencode-ai/ui/v2/button-v2"
|
|
|
|
|
+import { IconButtonV2 } from "@opencode-ai/ui/v2/icon-button-v2"
|
|
|
|
|
+import { TextInputV2 } from "@opencode-ai/ui/v2/text-input-v2"
|
|
|
import { showToast } from "@/utils/toast"
|
|
import { showToast } from "@/utils/toast"
|
|
|
import fuzzysort from "fuzzysort"
|
|
import fuzzysort from "fuzzysort"
|
|
|
import { formatKeybind, parseKeybind, useCommand } from "@/context/command"
|
|
import { formatKeybind, parseKeybind, useCommand } from "@/context/command"
|
|
|
import { useLanguage } from "@/context/language"
|
|
import { useLanguage } from "@/context/language"
|
|
|
import { useSettings } from "@/context/settings"
|
|
import { useSettings } from "@/context/settings"
|
|
|
import { SettingsList } from "./settings-list"
|
|
import { SettingsList } from "./settings-list"
|
|
|
|
|
+import { SettingsListV2 } from "./settings-v2/parts/list"
|
|
|
|
|
|
|
|
-const ButtonV2 = lazy(() => import("@opencode-ai/ui/v2/button-v2").then((module) => ({ default: module.ButtonV2 })))
|
|
|
|
|
const IconV2 = lazy(() => import("@opencode-ai/ui/v2/icon").then((module) => ({ default: module.Icon })))
|
|
const IconV2 = lazy(() => import("@opencode-ai/ui/v2/icon").then((module) => ({ default: module.Icon })))
|
|
|
-const IconButtonV2 = lazy(() =>
|
|
|
|
|
- import("@opencode-ai/ui/v2/icon-button-v2").then((module) => ({ default: module.IconButtonV2 })),
|
|
|
|
|
-)
|
|
|
|
|
-const TextInputV2 = lazy(() =>
|
|
|
|
|
- import("@opencode-ai/ui/v2/text-input-v2").then((module) => ({ default: module.TextInputV2 })),
|
|
|
|
|
-)
|
|
|
|
|
-const SettingsListV2 = lazy(() =>
|
|
|
|
|
- import("./settings-v2/parts/list").then((module) => ({ default: module.SettingsListV2 })),
|
|
|
|
|
-)
|
|
|
|
|
|
|
|
|
|
const IS_MAC = typeof navigator === "object" && /(Mac|iPod|iPhone|iPad)/.test(navigator.platform)
|
|
const IS_MAC = typeof navigator === "object" && /(Mac|iPod|iPhone|iPad)/.test(navigator.platform)
|
|
|
const PALETTE_ID = "command.palette"
|
|
const PALETTE_ID = "command.palette"
|