Skip to content

Commit

Permalink
fix ts
Browse files Browse the repository at this point in the history
  • Loading branch information
Brendonovich committed Dec 6, 2024
1 parent 8bc3b63 commit de70035
Show file tree
Hide file tree
Showing 8 changed files with 12 additions and 11 deletions.
4 changes: 2 additions & 2 deletions apps/desktop/src/routes/(window-chrome)/(main).tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down Expand Up @@ -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;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
});

Expand Down Expand Up @@ -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(),
Expand Down Expand Up @@ -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(),
});

Expand All @@ -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(),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 },
});

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
});
Expand Down
2 changes: 1 addition & 1 deletion apps/desktop/src/routes/(window-chrome)/upgrade.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
});
Expand Down
2 changes: 1 addition & 1 deletion apps/desktop/src/routes/camera.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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">
<ControlButton
onClick={() => {
setOptions({
setOptions.mutate({
...options(),
cameraLabel: null,
});
Expand Down
1 change: 1 addition & 0 deletions apps/desktop/tsconfig.tsbuildinfo
Original file line number Diff line number Diff line change
@@ -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"}
2 changes: 1 addition & 1 deletion packages/web-api-contract/src/desktop.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

1 comment on commit de70035

@vercel
Copy link

@vercel vercel bot commented on de70035 Dec 6, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.