Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
canifa_note
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Vũ Hoàng Anh
canifa_note
Commits
4f39e008
Commit
4f39e008
authored
Apr 01, 2025
by
Steven
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
chore: fix lint
parent
b770042a
Changes
4
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
130 additions
and
49 deletions
+130
-49
frontend-tests.yml
.github/workflows/frontend-tests.yml
+1
-4
apidocs.swagger.yaml
proto/gen/apidocs.swagger.yaml
+127
-42
package.json
web/package.json
+1
-2
Renderer.tsx
web/src/components/MemoContent/Renderer.tsx
+1
-1
No files found.
.github/workflows/frontend-tests.yml
View file @
4f39e008
...
...
@@ -24,12 +24,9 @@ jobs:
cache-dependency-path
:
"
web/pnpm-lock.yaml"
-
run
:
pnpm install
working-directory
:
web
-
name
:
Run
eslint
check
-
name
:
Run check
run
:
pnpm lint
working-directory
:
web
-
name
:
Run type checks
run
:
pnpm type-check
working-directory
:
web
frontend-build
:
runs-on
:
ubuntu-latest
...
...
proto/gen/apidocs.swagger.yaml
View file @
4f39e008
This diff is collapsed.
Click to expand it.
web/package.json
View file @
4f39e008
...
...
@@ -4,8 +4,7 @@
"dev"
:
"vite"
,
"build"
:
"vite build"
,
"release"
:
"vite build --mode release --outDir=../server/router/frontend/dist --emptyOutDir"
,
"lint"
:
"eslint --ext .js,.ts,.tsx, src"
,
"type-check"
:
"tsc --noEmit --skipLibCheck"
,
"lint"
:
"tsc --noEmit --skipLibCheck && eslint --ext .js,.ts,.tsx, src"
,
"postinstall"
:
"cd ../proto && buf generate"
},
"dependencies"
:
{
...
...
web/src/components/MemoContent/Renderer.tsx
View file @
4f39e008
...
...
@@ -70,7 +70,7 @@ interface Props {
const
Renderer
:
React
.
FC
<
Props
>
=
({
index
,
node
}:
Props
)
=>
{
switch
(
node
.
type
)
{
case
NodeType
.
LINE_BREAK
:
return
<
LineBreak
index=
{
index
}
/>;
return
<
LineBreak
/>;
case
NodeType
.
PARAGRAPH
:
return
<
Paragraph
index=
{
index
}
{
...
(
node
.
paragraphNode
as
ParagraphNode
)}
/>;
case
NodeType
.
CODE_BLOCK
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment