Skip to content
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

Merged
merged 1 commit into from
Sep 22, 2024
Merged

Update library and fix code #60

merged 1 commit into from
Sep 22, 2024

Conversation

nasum
Copy link
Owner

@nasum nasum commented Sep 22, 2024

No description provided.

@@ -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';
Copy link
Contributor

Choose a reason for hiding this comment

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

[Biome] reported by reviewdog 🐶

Suggested change
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>) => {
Copy link
Contributor

Choose a reason for hiding this comment

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

[Biome] reported by reviewdog 🐶

Suggested change
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";
Copy link
Contributor

Choose a reason for hiding this comment

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

[Biome] reported by reviewdog 🐶

Suggested change
import { main } from "../../wailsjs/go/models";

@@ -4,6 +4,7 @@ import {
ListNotes,
UpdateNote,
} from "../../wailsjs/go/main/App";
import { main } from "../../wailsjs/go/models";
Copy link
Contributor

Choose a reason for hiding this comment

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

[Biome] reported by reviewdog 🐶

Suggested change
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> {
Copy link
Contributor

Choose a reason for hiding this comment

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

[Biome] reported by reviewdog 🐶

Suggested change
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[]> {
Copy link
Contributor

Choose a reason for hiding this comment

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

[Biome] reported by reviewdog 🐶

Suggested change
export async function CallListNotes(option: main.ListNotesOptions): Promise<Note[]> {
export async function CallListNotes(
option: main.ListNotesOptions,
): Promise<Note[]> {

Copy link
Contributor

Choose a reason for hiding this comment

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

[Biome] reported by reviewdog 🐶

"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"
}

@nasum nasum merged commit f203b25 into main Sep 22, 2024
2 checks passed
@nasum nasum deleted the update-and-fix branch September 22, 2024 15:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant