mirror of
https://github.com/linsa-io/linsa.git
synced 2026-01-12 12:20:23 +01:00
fix: deleting unnecessary log
This commit is contained in:
@@ -33,7 +33,6 @@ export const ProfileWrapper = () => {
|
|||||||
const editAvatar = (event: React.ChangeEvent<HTMLInputElement>) => {
|
const editAvatar = (event: React.ChangeEvent<HTMLInputElement>) => {
|
||||||
const file = event.target.files?.[0]
|
const file = event.target.files?.[0]
|
||||||
if (file) {
|
if (file) {
|
||||||
console.log("File selected:", file)
|
|
||||||
const imageUrl = URL.createObjectURL(file)
|
const imageUrl = URL.createObjectURL(file)
|
||||||
if (account.me && account.me.profile) {
|
if (account.me && account.me.profile) {
|
||||||
account.me.profile.avatarUrl = imageUrl
|
account.me.profile.avatarUrl = imageUrl
|
||||||
@@ -74,7 +73,6 @@ export const ProfileWrapper = () => {
|
|||||||
|
|
||||||
if (account.me && account.me.profile) {
|
if (account.me && account.me.profile) {
|
||||||
account.me.profile.name = newName.trim()
|
account.me.profile.name = newName.trim()
|
||||||
console.log("Updating name to:", newName.trim())
|
|
||||||
}
|
}
|
||||||
setIsEditing(false)
|
setIsEditing(false)
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -49,7 +49,6 @@ export const Link = TiptapLink.extend({
|
|||||||
* This will move the cursor to the end of the link.
|
* This will move the cursor to the end of the link.
|
||||||
*/
|
*/
|
||||||
if (event.key === "Escape" && selection.empty !== true) {
|
if (event.key === "Escape" && selection.empty !== true) {
|
||||||
console.log("Link handleKeyDown")
|
|
||||||
editor.commands.focus(selection.to, { scrollIntoView: false })
|
editor.commands.focus(selection.to, { scrollIntoView: false })
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -97,7 +97,6 @@ export const SettingsRoute = () => {
|
|||||||
const [topInboxHotkey, setTopInboxHotkey] = useState("")
|
const [topInboxHotkey, setTopInboxHotkey] = useState("")
|
||||||
|
|
||||||
const saveSettings = () => {
|
const saveSettings = () => {
|
||||||
console.log("Saving settings:", { inboxHotkey, topInboxHotkey })
|
|
||||||
toast.success("Settings saved", {
|
toast.success("Settings saved", {
|
||||||
description: "Your hotkey settings have been updated."
|
description: "Your hotkey settings have been updated."
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -167,7 +167,6 @@ const LinkList: React.FC<LinkListProps> = ({ activeItemIndex, setActiveItemIndex
|
|||||||
return newIndex
|
return newIndex
|
||||||
})
|
})
|
||||||
} else if (e.key === "Enter" && !disableEnterKey) {
|
} else if (e.key === "Enter" && !disableEnterKey) {
|
||||||
console.log("Enter key pressed")
|
|
||||||
e.preventDefault()
|
e.preventDefault()
|
||||||
if (activeItemIndex !== null) {
|
if (activeItemIndex !== null) {
|
||||||
const activeLink = sortedLinks[activeItemIndex]
|
const activeLink = sortedLinks[activeItemIndex]
|
||||||
|
|||||||
@@ -135,7 +135,6 @@ export const LinkForm: React.FC<LinkFormProps> = ({
|
|||||||
shouldValidate: true
|
shouldValidate: true
|
||||||
})
|
})
|
||||||
form.setFocus("title")
|
form.setFocus("title")
|
||||||
console.log(form.formState.isValid, "form state after....")
|
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
console.error("Failed to fetch metadata", err)
|
console.error("Failed to fetch metadata", err)
|
||||||
} finally {
|
} finally {
|
||||||
|
|||||||
@@ -5,7 +5,5 @@ import { useAccount } from "@/lib/providers/jazz-provider"
|
|||||||
export default function TauriRoute() {
|
export default function TauriRoute() {
|
||||||
const { me } = useAccount()
|
const { me } = useAccount()
|
||||||
|
|
||||||
console.log({ pages: me?.root?.personalPages?.toJSON() })
|
|
||||||
|
|
||||||
return <div>{JSON.stringify(me?.root?.personalPages)}</div>
|
return <div>{JSON.stringify(me?.root?.personalPages)}</div>
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -27,7 +27,6 @@ export function useLinkNavigation(allLinks: (LinkSchema | null)[]) {
|
|||||||
|
|
||||||
const handleKeyDown = useCallback(
|
const handleKeyDown = useCallback(
|
||||||
(e: KeyboardEvent) => {
|
(e: KeyboardEvent) => {
|
||||||
console.log("handleKeyDown")
|
|
||||||
if (e.key === "ArrowDown") {
|
if (e.key === "ArrowDown") {
|
||||||
e.preventDefault()
|
e.preventDefault()
|
||||||
setActiveIndex(prevIndex => {
|
setActiveIndex(prevIndex => {
|
||||||
|
|||||||
@@ -44,8 +44,6 @@ export class LaAccount extends Account {
|
|||||||
// so just do default profile create provided by jazz-tools
|
// so just do default profile create provided by jazz-tools
|
||||||
super.migrate(creationProps)
|
super.migrate(creationProps)
|
||||||
|
|
||||||
console.log("In migration", this._refs.root, creationProps)
|
|
||||||
|
|
||||||
if (!this._refs.root && creationProps) {
|
if (!this._refs.root && creationProps) {
|
||||||
this.root = UserRoot.create(
|
this.root = UserRoot.create(
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user