-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update library and fix code #60
Conversation
@@ -24,7 +24,7 @@ import { RichTextPlugin } from "@lexical/react/LexicalRichTextPlugin"; | |||
import { TabIndentationPlugin } from "@lexical/react/LexicalTabIndentationPlugin"; | |||
import { HeadingNode, QuoteNode } from "@lexical/rich-text"; | |||
import { TableCellNode, TableNode, TableRowNode } from "@lexical/table"; | |||
import type { EditorState } from "lexical"; | |||
import type { EditorState, LexicalEditor } from 'lexical'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[Biome] reported by reviewdog 🐶
import type { EditorState, LexicalEditor } from 'lexical'; | |
import type { EditorState, LexicalEditor } from "lexical"; |
@@ -102,8 +102,8 @@ export const Editor = ({ isRitchText, content, updateNote }: EditorProps) => { | |||
updateNote(value); | |||
}, [updateNote, value]); | |||
|
|||
const handleEditorChange = (editor: EditorState) => { | |||
editor.read(() => { | |||
const handleEditorChange = (editorState: EditorState, editor: LexicalEditor, tags: Set<string>) => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[Biome] reported by reviewdog 🐶
const handleEditorChange = (editorState: EditorState, editor: LexicalEditor, tags: Set<string>) => { | |
const handleEditorChange = ( | |
editorState: EditorState, | |
editor: LexicalEditor, | |
tags: Set<string>, | |
) => { |
@@ -7,14 +7,15 @@ import { | |||
CallUpdateNote, | |||
type Note, | |||
} from "../lib/notes"; | |||
import { main } from "../../wailsjs/go/models"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[Biome] reported by reviewdog 🐶
import { main } from "../../wailsjs/go/models"; |
@@ -4,6 +4,7 @@ import { | |||
ListNotes, | |||
UpdateNote, | |||
} from "../../wailsjs/go/main/App"; | |||
import { main } from "../../wailsjs/go/models"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[Biome] reported by reviewdog 🐶
import { main } from "../../wailsjs/go/models"; | |
import type { main } from "../../wailsjs/go/models"; |
@@ -27,7 +28,7 @@ export function CallGetNoteById(id: string): Promise<Note> { | |||
return Promise.reject("Invalid ID"); | |||
} | |||
|
|||
export function CallUpdateNote(id: string, content: string): Promise<Note> { | |||
export function CallUpdateNote(id: string, content: string): Promise<main.Note> { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[Biome] reported by reviewdog 🐶
export function CallUpdateNote(id: string, content: string): Promise<main.Note> { | |
export function CallUpdateNote( | |
id: string, | |
content: string, | |
): Promise<main.Note> { |
@@ -36,12 +37,12 @@ type ListNotesOptions = { | |||
Order?: "asc" | "desc"; | |||
}; | |||
|
|||
export async function CallListNotes(option: ListNotesOptions): Promise<Note[]> { | |||
export async function CallListNotes(option: main.ListNotesOptions): Promise<Note[]> { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[Biome] reported by reviewdog 🐶
export async function CallListNotes(option: main.ListNotesOptions): Promise<Note[]> { | |
export async function CallListNotes( | |
option: main.ListNotesOptions, | |
): Promise<Note[]> { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[Biome] reported by reviewdog 🐶
njournal/frontend/package.json
Lines 2 to 38 in 9f5c7fc
"name": "frontend", | |
"private": true, | |
"version": "0.0.0", | |
"type": "module", | |
"engines": { | |
"node": ">=20.11.1" | |
}, | |
"scripts": { | |
"dev": "vite", | |
"build": "tsc && vite build", | |
"preview": "vite preview", | |
"format": "biome check --write ./src", | |
"lint": "biome lint ./src", | |
"lint:fix": "biome check --write ./src" | |
}, | |
"dependencies": { | |
"@acab/reset.css": "^0.10.0", | |
"@lexical/react": "^0.17.1", | |
"@types/react-icons": "^3.0.0", | |
"@types/react-router": "^5.1.20", | |
"github-markdown-css": "^5.6.1", | |
"jotai": "^2.8.2", | |
"lexical": "^0.17.1", | |
"react": "^18.3.1", | |
"react-dom": "^18.2.0", | |
"react-icon": "^1.0.0", | |
"react-router-dom": "^6.21.3", | |
"styled-components": "^6.1.8" | |
}, | |
"devDependencies": { | |
"@biomejs/biome": "^1.8.0", | |
"@types/react": "^18.3.3", | |
"@types/react-dom": "^18.0.6", | |
"@vitejs/plugin-react": "^4.3.1", | |
"typescript": "^4.6.4", | |
"vite": "^5.4.7" | |
} |
No description provided.