Skip to content

Commit 7781847

Browse files
committed
fmt
1 parent c3c50bf commit 7781847

3 files changed

Lines changed: 64 additions & 44 deletions

File tree

apps/desktop/src/routes/(window-chrome)/(main).tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ import {
1515
Suspense,
1616
} from "solid-js";
1717
import { createStore, reconcile } from "solid-js/store";
18-
1918
import Mode from "~/components/Mode";
2019
import Tooltip from "~/components/Tooltip";
2120
import { identifyUser, trackEvent } from "~/utils/analytics";
@@ -37,6 +36,9 @@ import {
3736
type RecordingMode,
3837
type ScreenCaptureTarget,
3938
} from "~/utils/tauri";
39+
import IconCapLogoFull from "~icons/cap/logo-full";
40+
import IconCapLogoFullDark from "~icons/cap/logo-full-dark";
41+
import IconLucideBug from "~icons/lucide/bug";
4042

4143
function getWindowSize() {
4244
return {

apps/desktop/src/routes/(window-chrome)/settings/feedback.tsx

Lines changed: 60 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -130,53 +130,70 @@ export default function FeedbackTab() {
130130
</p>
131131
}
132132
>
133-
{(diag) => (
134-
<div class="space-y-3 text-sm">
135-
<Show when={diag().macosVersion}>
136-
{(ver) => (
137-
<div class="space-y-1">
138-
<p class="text-gray-11 font-medium">Operating System</p>
139-
<p class="text-gray-10 bg-gray-2 px-2 py-1.5 rounded font-mono text-xs">
140-
{ver().displayName}
141-
</p>
142-
</div>
143-
)}
144-
</Show>
145-
146-
<div class="space-y-1">
147-
<p class="text-gray-11 font-medium">Capture Support</p>
148-
<div class="flex gap-2 flex-wrap">
149-
<span
150-
class={`px-2 py-1 rounded text-xs ${
151-
diag().screenCaptureSupported
152-
? "bg-green-500/20 text-green-400"
153-
: "bg-red-500/20 text-red-400"
154-
}`}
155-
>
156-
Screen Capture:{" "}
157-
{diag().screenCaptureSupported
158-
? "Supported"
159-
: "Not Supported"}
160-
</span>
161-
</div>
162-
</div>
133+
{(diag) => {
134+
const d = diag();
135+
const osVersion =
136+
"macosVersion" in d
137+
? d.macosVersion
138+
: "windowsVersion" in d
139+
? d.windowsVersion
140+
: null;
141+
const captureSupported =
142+
"screenCaptureSupported" in d
143+
? d.screenCaptureSupported
144+
: "graphicsCaptureSupported" in d
145+
? d.graphicsCaptureSupported
146+
: false;
147+
return (
148+
<div class="space-y-3 text-sm">
149+
<Show when={osVersion}>
150+
{(ver) => (
151+
<div class="space-y-1">
152+
<p class="text-gray-11 font-medium">
153+
Operating System
154+
</p>
155+
<p class="text-gray-10 bg-gray-2 px-2 py-1.5 rounded font-mono text-xs">
156+
{ver().displayName}
157+
</p>
158+
</div>
159+
)}
160+
</Show>
163161

164-
<Show when={diag().availableEncoders.length > 0}>
165162
<div class="space-y-1">
166-
<p class="text-gray-11 font-medium">Available Encoders</p>
167-
<div class="flex gap-1.5 flex-wrap">
168-
<For each={diag().availableEncoders}>
169-
{(encoder) => (
170-
<span class="px-2 py-1 bg-gray-2 rounded text-xs text-gray-10 font-mono">
171-
{encoder}
172-
</span>
173-
)}
174-
</For>
163+
<p class="text-gray-11 font-medium">Capture Support</p>
164+
<div class="flex gap-2 flex-wrap">
165+
<span
166+
class={`px-2 py-1 rounded text-xs ${
167+
captureSupported
168+
? "bg-green-500/20 text-green-400"
169+
: "bg-red-500/20 text-red-400"
170+
}`}
171+
>
172+
Screen Capture:{" "}
173+
{captureSupported ? "Supported" : "Not Supported"}
174+
</span>
175175
</div>
176176
</div>
177-
</Show>
178-
</div>
179-
)}
177+
178+
<Show when={d.availableEncoders.length > 0}>
179+
<div class="space-y-1">
180+
<p class="text-gray-11 font-medium">
181+
Available Encoders
182+
</p>
183+
<div class="flex gap-1.5 flex-wrap">
184+
<For each={d.availableEncoders}>
185+
{(encoder) => (
186+
<span class="px-2 py-1 bg-gray-2 rounded text-xs text-gray-10 font-mono">
187+
{encoder}
188+
</span>
189+
)}
190+
</For>
191+
</div>
192+
</div>
193+
</Show>
194+
</div>
195+
);
196+
}}
180197
</Show>
181198
</div>
182199
</div>

apps/desktop/src/routes/(window-chrome)/settings/integrations/index.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import { Button } from "@cap/ui-solid";
22
import { useNavigate } from "@solidjs/router";
33
import { For, onMount } from "solid-js";
4+
import IconLucideDatabase from "~icons/lucide/database";
45

56
import "@total-typescript/ts-reset/filter-boolean";
67
import { authStore } from "~/store";

0 commit comments

Comments
 (0)