GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — chore: generate · bewareoftheleopard/opencode@d14735e

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • packages
    • app/src
      • components
        • dialog-connect-provider.tsx
        • prompt-input.tsx
        • session
          • session-header.tsx
          • session-sortable-tab.tsx
      • pages
        • session.tsx
    • ui/src/components
      • dialog.tsx
      • image-preview.tsx
      • list.tsx
      • popover.tsx
      • toast.tsx
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎packages/app/src/components/dialog-connect-provider.tsx‎

Copy file name to clipboardExpand all lines: packages/app/src/components/dialog-connect-provider.tsx
+3-1Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,9 @@ export function DialogConnectProvider(props: { provider: string }) {
143143
}
144144

145145
return (
146-
<Dialog title={<IconButton tabIndex={-1} icon="arrow-left" variant="ghost" onClick={goBack} aria-label="Go back" />}>
146+
<Dialog
147+
title={<IconButton tabIndex={-1} icon="arrow-left" variant="ghost" onClick={goBack} aria-label="Go back" />}
148+
>
147149
<div class="flex flex-col gap-6 px-2.5 pb-3">
148150
<div class="px-2.5 flex gap-4 items-center">
149151
<ProviderIcon id={props.provider as IconName} class="size-5 shrink-0 icon-strong-base" />
Collapse file

‎packages/app/src/components/prompt-input.tsx‎

Copy file name to clipboardExpand all lines: packages/app/src/components/prompt-input.tsx
+1-4Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1653,10 +1653,7 @@ export const PromptInput: Component<PromptInputProps> = (props) => {
16531653
title={language.t("command.model.choose")}
16541654
keybind={command.keybind("model.choose")}
16551655
>
1656-
<ModelSelectorPopover
1657-
triggerAs={Button}
1658-
triggerProps={{ variant: "ghost" }}
1659-
>
1656+
<ModelSelectorPopover triggerAs={Button} triggerProps={{ variant: "ghost" }}>
16601657
<Show when={local.model.current()?.provider?.id}>
16611658
<ProviderIcon id={local.model.current()!.provider.id as IconName} class="size-4 shrink-0" />
16621659
</Show>
Collapse file

‎packages/app/src/components/session/session-header.tsx‎

Copy file name to clipboardExpand all lines: packages/app/src/components/session/session-header.tsx
+64-62Lines changed: 64 additions & 62 deletions
Original file line numberDiff line numberDiff line change
@@ -260,71 +260,73 @@ export function SessionHeader() {
260260
}}
261261
trigger={language.t("session.share.action.share")}
262262
>
263-
<div class="flex flex-col gap-2">
264-
<Show
265-
when={shareUrl()}
266-
fallback={
267-
<div class="flex">
268-
<Button
269-
size="large"
270-
variant="primary"
271-
class="w-1/2"
272-
onClick={shareSession}
273-
disabled={state.share}
274-
>
275-
{state.share
276-
? language.t("session.share.action.publishing")
277-
: language.t("session.share.action.publish")}
278-
</Button>
263+
<div class="flex flex-col gap-2">
264+
<Show
265+
when={shareUrl()}
266+
fallback={
267+
<div class="flex">
268+
<Button
269+
size="large"
270+
variant="primary"
271+
class="w-1/2"
272+
onClick={shareSession}
273+
disabled={state.share}
274+
>
275+
{state.share
276+
? language.t("session.share.action.publishing")
277+
: language.t("session.share.action.publish")}
278+
</Button>
279+
</div>
280+
}
281+
>
282+
<div class="flex flex-col gap-2 w-72">
283+
<TextField value={shareUrl() ?? ""} readOnly copyable class="w-full" />
284+
<div class="grid grid-cols-2 gap-2">
285+
<Button
286+
size="large"
287+
variant="secondary"
288+
class="w-full shadow-none border border-border-weak-base"
289+
onClick={unshareSession}
290+
disabled={state.unshare}
291+
>
292+
{state.unshare
293+
? language.t("session.share.action.unpublishing")
294+
: language.t("session.share.action.unpublish")}
295+
</Button>
296+
<Button
297+
size="large"
298+
variant="primary"
299+
class="w-full"
300+
onClick={viewShare}
301+
disabled={state.unshare}
302+
>
303+
{language.t("session.share.action.view")}
304+
</Button>
305+
</div>
279306
</div>
307+
</Show>
308+
</div>
309+
</Popover>
310+
<Show when={shareUrl()} fallback={<div class="size-6" aria-hidden="true" />}>
311+
<Tooltip
312+
value={
313+
state.copied
314+
? language.t("session.share.copy.copied")
315+
: language.t("session.share.copy.copyLink")
280316
}
317+
placement="top"
318+
gutter={8}
281319
>
282-
<div class="flex flex-col gap-2 w-72">
283-
<TextField value={shareUrl() ?? ""} readOnly copyable class="w-full" />
284-
<div class="grid grid-cols-2 gap-2">
285-
<Button
286-
size="large"
287-
variant="secondary"
288-
class="w-full shadow-none border border-border-weak-base"
289-
onClick={unshareSession}
290-
disabled={state.unshare}
291-
>
292-
{state.unshare
293-
? language.t("session.share.action.unpublishing")
294-
: language.t("session.share.action.unpublish")}
295-
</Button>
296-
<Button
297-
size="large"
298-
variant="primary"
299-
class="w-full"
300-
onClick={viewShare}
301-
disabled={state.unshare}
302-
>
303-
{language.t("session.share.action.view")}
304-
</Button>
305-
</div>
306-
</div>
307-
</Show>
308-
</div>
309-
</Popover>
310-
<Show when={shareUrl()} fallback={<div class="size-6" aria-hidden="true" />}>
311-
<Tooltip
312-
value={
313-
state.copied ? language.t("session.share.copy.copied") : language.t("session.share.copy.copyLink")
314-
}
315-
placement="top"
316-
gutter={8}
317-
>
318-
<IconButton
319-
icon={state.copied ? "check" : "copy"}
320-
variant="secondary"
321-
class="rounded-l-none"
322-
onClick={copyLink}
323-
disabled={state.unshare}
324-
aria-label="Copy share link"
325-
/>
326-
</Tooltip>
327-
</Show>
320+
<IconButton
321+
icon={state.copied ? "check" : "copy"}
322+
variant="secondary"
323+
class="rounded-l-none"
324+
onClick={copyLink}
325+
disabled={state.unshare}
326+
aria-label="Copy share link"
327+
/>
328+
</Tooltip>
329+
</Show>
328330
</div>
329331
</Show>
330332
</div>
Collapse file

‎packages/app/src/components/session/session-sortable-tab.tsx‎

Copy file name to clipboardExpand all lines: packages/app/src/components/session/session-sortable-tab.tsx
+6-1Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,12 @@ export function SortableTab(props: { tab: string; onTabClose: (tab: string) => v
3737
value={props.tab}
3838
closeButton={
3939
<Tooltip value={language.t("common.closeTab")} placement="bottom">
40-
<IconButton icon="close" variant="ghost" onClick={() => props.onTabClose(props.tab)} aria-label="Close tab" />
40+
<IconButton
41+
icon="close"
42+
variant="ghost"
43+
onClick={() => props.onTabClose(props.tab)}
44+
aria-label="Close tab"
45+
/>
4146
</Tooltip>
4247
}
4348
hideCloseButton
Collapse file

‎packages/app/src/pages/session.tsx‎

Copy file name to clipboardExpand all lines: packages/app/src/pages/session.tsx
+18-3Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1553,7 +1553,11 @@ export default function Page() {
15531553

15541554
{/* Desktop tabs panel (Review + Context + Files) - hidden on mobile */}
15551555
<Show when={isDesktop() && showTabs()}>
1556-
<aside id="review-panel" aria-label="Review and files" class="relative flex-1 min-w-0 h-full border-l border-border-weak-base">
1556+
<aside
1557+
id="review-panel"
1558+
aria-label="Review and files"
1559+
class="relative flex-1 min-w-0 h-full border-l border-border-weak-base"
1560+
>
15571561
<DragDropProvider
15581562
onDragStart={handleDragStart}
15591563
onDragEnd={handleDragEnd}
@@ -1587,7 +1591,12 @@ export default function Page() {
15871591
value="context"
15881592
closeButton={
15891593
<Tooltip value={language.t("common.closeTab")} placement="bottom">
1590-
<IconButton icon="close" variant="ghost" onClick={() => tabs().close("context")} aria-label="Close context tab" />
1594+
<IconButton
1595+
icon="close"
1596+
variant="ghost"
1597+
onClick={() => tabs().close("context")}
1598+
aria-label="Close context tab"
1599+
/>
15911600
</Tooltip>
15921601
}
15931602
hideCloseButton
@@ -1995,7 +2004,13 @@ export default function Page() {
19952004
keybind={command.keybind("terminal.new")}
19962005
class="flex items-center"
19972006
>
1998-
<IconButton icon="plus-small" variant="ghost" iconSize="large" onClick={terminal.new} aria-label="New terminal" />
2007+
<IconButton
2008+
icon="plus-small"
2009+
variant="ghost"
2010+
iconSize="large"
2011+
onClick={terminal.new}
2012+
aria-label="New terminal"
2013+
/>
19992014
</TooltipKeybind>
20002015
</div>
20012016
</Tabs.List>
Collapse file

‎packages/ui/src/components/dialog.tsx‎

Copy file name to clipboardExpand all lines: packages/ui/src/components/dialog.tsx
+7-1Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,13 @@ export function Dialog(props: DialogProps) {
4040
<Switch>
4141
<Match when={props.action}>{props.action}</Match>
4242
<Match when={true}>
43-
<Kobalte.CloseButton data-slot="dialog-close-button" as={IconButton} icon="close" variant="ghost" aria-label="Close" />
43+
<Kobalte.CloseButton
44+
data-slot="dialog-close-button"
45+
as={IconButton}
46+
icon="close"
47+
variant="ghost"
48+
aria-label="Close"
49+
/>
4450
</Match>
4551
</Switch>
4652
</div>
Collapse file

‎packages/ui/src/components/image-preview.tsx‎

Copy file name to clipboardExpand all lines: packages/ui/src/components/image-preview.tsx
+7-1Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,13 @@ export function ImagePreview(props: ImagePreviewProps) {
1414
<div data-slot="image-preview-container">
1515
<Kobalte.Content data-slot="image-preview-content">
1616
<div data-slot="image-preview-header">
17-
<Kobalte.CloseButton data-slot="image-preview-close" as={IconButton} icon="close" variant="ghost" aria-label="Close" />
17+
<Kobalte.CloseButton
18+
data-slot="image-preview-close"
19+
as={IconButton}
20+
icon="close"
21+
variant="ghost"
22+
aria-label="Close"
23+
/>
1824
</div>
1925
<div data-slot="image-preview-body">
2026
<img src={props.src} alt={props.alt ?? i18n.t("ui.imagePreview.alt")} data-slot="image-preview-image" />
Collapse file

‎packages/ui/src/components/list.tsx‎

Copy file name to clipboardExpand all lines: packages/ui/src/components/list.tsx
+6-1Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,12 @@ export function List<T>(props: ListProps<T> & { ref?: (ref: ListRef) => void })
230230
/>
231231
</div>
232232
<Show when={internalFilter()}>
233-
<IconButton icon="circle-x" variant="ghost" onClick={() => setInternalFilter("")} aria-label="Clear filter" />
233+
<IconButton
234+
icon="circle-x"
235+
variant="ghost"
236+
onClick={() => setInternalFilter("")}
237+
aria-label="Clear filter"
238+
/>
234239
</Show>
235240
</div>
236241
{searchAction()}
Collapse file

‎packages/ui/src/components/popover.tsx‎

Copy file name to clipboardExpand all lines: packages/ui/src/components/popover.tsx
+20-3Lines changed: 20 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@ import { Popover as Kobalte } from "@kobalte/core/popover"
22
import { ComponentProps, JSXElement, ParentProps, Show, splitProps, ValidComponent } from "solid-js"
33
import { IconButton } from "./icon-button"
44

5-
export interface PopoverProps<T extends ValidComponent = "div"> extends ParentProps, Omit<ComponentProps<typeof Kobalte>, "children"> {
5+
export interface PopoverProps<T extends ValidComponent = "div">
6+
extends ParentProps,
7+
Omit<ComponentProps<typeof Kobalte>, "children"> {
68
trigger?: JSXElement
79
triggerAs?: T
810
triggerProps?: ComponentProps<T>
@@ -13,7 +15,16 @@ export interface PopoverProps<T extends ValidComponent = "div"> extends ParentPr
1315
}
1416

1517
export function Popover<T extends ValidComponent = "div">(props: PopoverProps<T>) {
16-
const [local, rest] = splitProps(props, ["trigger", "triggerAs", "triggerProps", "title", "description", "class", "classList", "children"])
18+
const [local, rest] = splitProps(props, [
19+
"trigger",
20+
"triggerAs",
21+
"triggerProps",
22+
"title",
23+
"description",
24+
"class",
25+
"classList",
26+
"children",
27+
])
1728

1829
return (
1930
<Kobalte gutter={4} {...rest}>
@@ -32,7 +43,13 @@ export function Popover<T extends ValidComponent = "div">(props: PopoverProps<T>
3243
<Show when={local.title}>
3344
<div data-slot="popover-header">
3445
<Kobalte.Title data-slot="popover-title">{local.title}</Kobalte.Title>
35-
<Kobalte.CloseButton data-slot="popover-close-button" as={IconButton} icon="close" variant="ghost" aria-label="Close" />
46+
<Kobalte.CloseButton
47+
data-slot="popover-close-button"
48+
as={IconButton}
49+
icon="close"
50+
variant="ghost"
51+
aria-label="Close"
52+
/>
3653
</div>
3754
</Show>
3855
<Show when={local.description}>
Collapse file

‎packages/ui/src/components/toast.tsx‎

Copy file name to clipboardExpand all lines: packages/ui/src/components/toast.tsx
+10-1Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,16 @@ function ToastActions(props: ComponentProps<"div">) {
6262
}
6363

6464
function ToastCloseButton(props: ToastCloseButtonProps & ComponentProps<"button">) {
65-
return <Kobalte.CloseButton data-slot="toast-close-button" as={IconButton} icon="close" variant="ghost" aria-label="Dismiss" {...props} />
65+
return (
66+
<Kobalte.CloseButton
67+
data-slot="toast-close-button"
68+
as={IconButton}
69+
icon="close"
70+
variant="ghost"
71+
aria-label="Dismiss"
72+
{...props}
73+
/>
74+
)
6675
}
6776

6877
function ToastProgressTrack(props: ComponentProps<typeof Kobalte.ProgressTrack>) {

0 commit comments

Comments
0 (0)
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.