diff --git a/apps/desktop/src/routes/(window-chrome)/(main).tsx b/apps/desktop/src/routes/(window-chrome)/(main).tsx index 3790b6d9..f74525f9 100644 --- a/apps/desktop/src/routes/(window-chrome)/(main).tsx +++ b/apps/desktop/src/routes/(window-chrome)/(main).tsx @@ -56,7 +56,7 @@ const getAuth = cache(async () => { return redirect("/signin"); } - const res = await apiClient.getUserPlan({ + const res = await apiClient.desktop.getUserPlan({ headers: await protectedHeaders(), }); if (res.status !== 200 && !local) return redirect("/signin"); @@ -780,7 +780,7 @@ function ChangelogButton() { if (!version) { return { hasUpdate: false }; } - const response = await apiClient.getChangelogStatus({ + const response = await apiClient.desktop.getChangelogStatus({ query: { version }, }); if (response.status === 200) return response.body; diff --git a/apps/desktop/src/routes/(window-chrome)/settings/apps/s3-config.tsx b/apps/desktop/src/routes/(window-chrome)/settings/apps/s3-config.tsx index 1b32d1c1..416eb4a5 100644 --- a/apps/desktop/src/routes/(window-chrome)/settings/apps/s3-config.tsx +++ b/apps/desktop/src/routes/(window-chrome)/settings/apps/s3-config.tsx @@ -59,7 +59,7 @@ export default function S3ConfigPage() { onMount(async () => { try { - const response = await apiClient.getS3Config({ + const response = await apiClient.desktop.getS3Config({ headers: await protectedHeaders(), }); @@ -89,7 +89,7 @@ export default function S3ConfigPage() { const handleSave = async () => { setSaving(true); try { - const response = await apiClient.setS3Config({ + const response = await apiClient.desktop.setS3Config({ body: { provider: provider(), accessKeyId: accessKeyId(), @@ -120,7 +120,7 @@ export default function S3ConfigPage() { const handleDelete = async () => { setDeleting(true); try { - const response = await apiClient.deleteS3Config({ + const response = await apiClient.desktop.deleteS3Config({ headers: await protectedHeaders(), }); @@ -146,7 +146,7 @@ export default function S3ConfigPage() { const controller = new AbortController(); const timeoutId = setTimeout(() => controller.abort(), 5500); // 5.5s timeout (slightly longer than backend) - const response = await apiClient.testS3Config({ + const response = await apiClient.desktop.testS3Config({ body: { provider: provider(), accessKeyId: accessKeyId(), diff --git a/apps/desktop/src/routes/(window-chrome)/settings/changelog.tsx b/apps/desktop/src/routes/(window-chrome)/settings/changelog.tsx index 08d1df03..39e5f0ae 100644 --- a/apps/desktop/src/routes/(window-chrome)/settings/changelog.tsx +++ b/apps/desktop/src/routes/(window-chrome)/settings/changelog.tsx @@ -10,7 +10,7 @@ export default function Page() { const changelog = createQuery(() => ({ queryKey: ["changelog"], queryFn: async () => { - const response = await apiClient.getChangelogPosts({ + const response = await apiClient.desktop.getChangelogPosts({ query: { origin: window.location.origin }, }); diff --git a/apps/desktop/src/routes/(window-chrome)/settings/feedback.tsx b/apps/desktop/src/routes/(window-chrome)/settings/feedback.tsx index 32df97ce..731af6f8 100644 --- a/apps/desktop/src/routes/(window-chrome)/settings/feedback.tsx +++ b/apps/desktop/src/routes/(window-chrome)/settings/feedback.tsx @@ -5,7 +5,7 @@ import { action, useAction, useSubmission } from "@solidjs/router"; import { apiClient, protectedHeaders } from "~/utils/web-api"; const sendFeedbackAction = action(async (feedback: string) => { - const response = await apiClient.submitDesktopFeedback({ + const response = await apiClient.desktop.submitFeedback({ body: { feedback }, headers: await protectedHeaders(), }); diff --git a/apps/desktop/src/routes/(window-chrome)/upgrade.tsx b/apps/desktop/src/routes/(window-chrome)/upgrade.tsx index 791e8ad7..6660cbf3 100644 --- a/apps/desktop/src/routes/(window-chrome)/upgrade.tsx +++ b/apps/desktop/src/routes/(window-chrome)/upgrade.tsx @@ -40,7 +40,7 @@ export default function Page() { return; } - const response = await apiClient.getProSubscribeURL({ + const response = await apiClient.desktop.getProSubscribeURL({ body: { priceId: planId }, headers: await protectedHeaders(), }); diff --git a/apps/desktop/src/routes/camera.tsx b/apps/desktop/src/routes/camera.tsx index c3f7f760..9b7c52d6 100644 --- a/apps/desktop/src/routes/camera.tsx +++ b/apps/desktop/src/routes/camera.tsx @@ -138,7 +138,7 @@ export default function () {
{ - setOptions({ + setOptions.mutate({ ...options(), cameraLabel: null, }); diff --git a/apps/desktop/tsconfig.tsbuildinfo b/apps/desktop/tsconfig.tsbuildinfo new file mode 100644 index 00000000..64c5e7d2 --- /dev/null +++ b/apps/desktop/tsconfig.tsbuildinfo @@ -0,0 +1 @@ +{"root":["./src/app.tsx","./src/entry-client.tsx","./src/entry-server.tsx","./src/global.d.ts","./src/icons.tsx","./src/store.ts","./src/vite-env.d.ts","./src/components/loader.tsx","./src/components/switchtab.tsx","./src/components/titlebar/titlebar.tsx","./src/components/titlebar/controls/captioncontrolswindows11.tsx","./src/components/titlebar/controls/windowcontrolbutton.tsx","./src/routes/(window-chrome).tsx","./src/routes/camera.tsx","./src/routes/in-progress-recording.tsx","./src/routes/notifications.tsx","./src/routes/prev-recordings.tsx","./src/routes/window-capture-occluder.tsx","./src/routes/(window-chrome)/(main).tsx","./src/routes/(window-chrome)/callback.template.ts","./src/routes/(window-chrome)/settings.tsx","./src/routes/(window-chrome)/setup.tsx","./src/routes/(window-chrome)/signin.tsx","./src/routes/(window-chrome)/update.tsx","./src/routes/(window-chrome)/upgrade.tsx","./src/routes/(window-chrome)/settings/changelog.tsx","./src/routes/(window-chrome)/settings/feedback.tsx","./src/routes/(window-chrome)/settings/general.tsx","./src/routes/(window-chrome)/settings/hotkeys.tsx","./src/routes/(window-chrome)/settings/index.tsx","./src/routes/(window-chrome)/settings/recordings.tsx","./src/routes/(window-chrome)/settings/screenshots.tsx","./src/routes/(window-chrome)/settings/apps/index.tsx","./src/routes/(window-chrome)/settings/apps/s3-config.tsx","./src/routes/editor/configsidebar.tsx","./src/routes/editor/editor.tsx","./src/routes/editor/header.tsx","./src/routes/editor/player.tsx","./src/routes/editor/timeline.tsx","./src/routes/editor/context.ts","./src/routes/editor/editorinstancecontext.ts","./src/routes/editor/index.tsx","./src/routes/editor/projectconfig.ts","./src/routes/editor/ui.tsx","./src/routes/editor/utils.ts","./src/store/progress.ts","./src/utils/createpresets.ts","./src/utils/env.ts","./src/utils/events.ts","./src/utils/plans.ts","./src/utils/queries.ts","./src/utils/socket.ts","./src/utils/tauri.ts","./src/utils/titlebar-state.ts","./src/utils/web-api.ts"],"version":"5.7.2"} \ No newline at end of file diff --git a/packages/web-api-contract/src/desktop.ts b/packages/web-api-contract/src/desktop.ts index 953f1dc6..ec8009a5 100644 --- a/packages/web-api-contract/src/desktop.ts +++ b/packages/web-api-contract/src/desktop.ts @@ -41,7 +41,7 @@ const publicContract = c.router({ const protectedContract = c.router( { - submitDesktopFeedback: { + submitFeedback: { method: "POST", path: "/desktop/feedback", contentType: "application/x-www-form-urlencoded",