Open source Loom alternative. Beautiful, shareable screen recordings.
Rust appcapcossloommacnextjsnextjs15open-sourceossreactrecordrustscreen-capturescreen-recorderscreenshotsolidjstauritauri-apptypescriptvite
fix ts
Brendan Allande700355a5ac
diff --git a/apps/desktop/src/routes/(window-chrome)/(main).tsx b/apps/desktop/src/routes/(window-chrome)/(main).tsxindex 3790b6d98..f74525f9b 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.tsxindex 1b32d1c1b..416eb4a56 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.tsxindex 08d1df03f..39e5f0ae3 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.tsxindex 32df97ce0..731af6f8c 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.tsxindex 791e8ad75..6660cbf3b 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.tsxindex c3f7f760f..9b7c52d63 100644--- a/apps/desktop/src/routes/camera.tsx+++ b/apps/desktop/src/routes/camera.tsx@@ -138,7 +138,7 @@ export default function () {<div class="flex flex-row gap-[0.25rem] p-[0.25rem] opacity-0 group-hover:opacity-100 translate-y-2 group-hover:translate-y-0 rounded-xl transition-[opacity,transform] bg-gray-500 border border-white-transparent-20 text-gray-400"><ControlButtononClick={() => {- setOptions({+ setOptions.mutate({...options(),cameraLabel: null,});diff --git a/apps/desktop/tsconfig.tsbuildinfo b/apps/desktop/tsconfig.tsbuildinfonew file mode 100644index 000000000..64c5e7d2f--- /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 filediff --git a/packages/web-api-contract/src/desktop.ts b/packages/web-api-contract/src/desktop.tsindex 953f1dc66..ec8009a5f 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",