From 4347037589d5534a3d11bb961568d1c04b13f3d3 Mon Sep 17 00:00:00 2001 From: Aslam H Date: Mon, 9 Sep 2024 19:38:43 +0700 Subject: [PATCH] fix: deleting unnecessary log --- web/app/(pages)/profile/_components/wrapper.tsx | 2 -- web/components/la-editor/extensions/link/link.ts | 1 - web/components/routes/SettingsRoute.tsx | 1 - web/components/routes/link/list.tsx | 1 - web/components/routes/link/partials/form/link-form.tsx | 1 - web/components/routes/tauri/TauriRoute.tsx | 2 -- web/components/routes/topics/detail/use-link-navigation.ts | 1 - web/lib/schema/index.ts | 2 -- 8 files changed, 11 deletions(-) diff --git a/web/app/(pages)/profile/_components/wrapper.tsx b/web/app/(pages)/profile/_components/wrapper.tsx index c1f2c445..cc7257de 100644 --- a/web/app/(pages)/profile/_components/wrapper.tsx +++ b/web/app/(pages)/profile/_components/wrapper.tsx @@ -33,7 +33,6 @@ export const ProfileWrapper = () => { const editAvatar = (event: React.ChangeEvent) => { const file = event.target.files?.[0] if (file) { - console.log("File selected:", file) const imageUrl = URL.createObjectURL(file) if (account.me && account.me.profile) { account.me.profile.avatarUrl = imageUrl @@ -74,7 +73,6 @@ export const ProfileWrapper = () => { if (account.me && account.me.profile) { account.me.profile.name = newName.trim() - console.log("Updating name to:", newName.trim()) } setIsEditing(false) } diff --git a/web/components/la-editor/extensions/link/link.ts b/web/components/la-editor/extensions/link/link.ts index 26eef782..b737c2ec 100644 --- a/web/components/la-editor/extensions/link/link.ts +++ b/web/components/la-editor/extensions/link/link.ts @@ -49,7 +49,6 @@ export const Link = TiptapLink.extend({ * This will move the cursor to the end of the link. */ if (event.key === "Escape" && selection.empty !== true) { - console.log("Link handleKeyDown") editor.commands.focus(selection.to, { scrollIntoView: false }) } diff --git a/web/components/routes/SettingsRoute.tsx b/web/components/routes/SettingsRoute.tsx index 26a3f9e2..ccefbf2e 100644 --- a/web/components/routes/SettingsRoute.tsx +++ b/web/components/routes/SettingsRoute.tsx @@ -97,7 +97,6 @@ export const SettingsRoute = () => { const [topInboxHotkey, setTopInboxHotkey] = useState("") const saveSettings = () => { - console.log("Saving settings:", { inboxHotkey, topInboxHotkey }) toast.success("Settings saved", { description: "Your hotkey settings have been updated." }) diff --git a/web/components/routes/link/list.tsx b/web/components/routes/link/list.tsx index f7cefd82..ac68e6bc 100644 --- a/web/components/routes/link/list.tsx +++ b/web/components/routes/link/list.tsx @@ -167,7 +167,6 @@ const LinkList: React.FC = ({ activeItemIndex, setActiveItemIndex return newIndex }) } else if (e.key === "Enter" && !disableEnterKey) { - console.log("Enter key pressed") e.preventDefault() if (activeItemIndex !== null) { const activeLink = sortedLinks[activeItemIndex] diff --git a/web/components/routes/link/partials/form/link-form.tsx b/web/components/routes/link/partials/form/link-form.tsx index cf5b9fa9..8e65a2ea 100644 --- a/web/components/routes/link/partials/form/link-form.tsx +++ b/web/components/routes/link/partials/form/link-form.tsx @@ -135,7 +135,6 @@ export const LinkForm: React.FC = ({ shouldValidate: true }) form.setFocus("title") - console.log(form.formState.isValid, "form state after....") } catch (err) { console.error("Failed to fetch metadata", err) } finally { diff --git a/web/components/routes/tauri/TauriRoute.tsx b/web/components/routes/tauri/TauriRoute.tsx index beaf550a..d55caa73 100644 --- a/web/components/routes/tauri/TauriRoute.tsx +++ b/web/components/routes/tauri/TauriRoute.tsx @@ -5,7 +5,5 @@ import { useAccount } from "@/lib/providers/jazz-provider" export default function TauriRoute() { const { me } = useAccount() - console.log({ pages: me?.root?.personalPages?.toJSON() }) - return
{JSON.stringify(me?.root?.personalPages)}
} diff --git a/web/components/routes/topics/detail/use-link-navigation.ts b/web/components/routes/topics/detail/use-link-navigation.ts index 5726626a..5e72054b 100644 --- a/web/components/routes/topics/detail/use-link-navigation.ts +++ b/web/components/routes/topics/detail/use-link-navigation.ts @@ -27,7 +27,6 @@ export function useLinkNavigation(allLinks: (LinkSchema | null)[]) { const handleKeyDown = useCallback( (e: KeyboardEvent) => { - console.log("handleKeyDown") if (e.key === "ArrowDown") { e.preventDefault() setActiveIndex(prevIndex => { diff --git a/web/lib/schema/index.ts b/web/lib/schema/index.ts index 3ba49c10..12ebd60e 100644 --- a/web/lib/schema/index.ts +++ b/web/lib/schema/index.ts @@ -44,8 +44,6 @@ export class LaAccount extends Account { // so just do default profile create provided by jazz-tools super.migrate(creationProps) - console.log("In migration", this._refs.root, creationProps) - if (!this._refs.root && creationProps) { this.root = UserRoot.create( {