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
5e4493b2
Commit
5e4493b2
authored
Nov 06, 2023
by
Steven
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
chore: remove debug codes
parent
834b58fb
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
2 additions
and
5 deletions
+2
-5
VersionUpdateMessage.tsx
web/src/components/Inbox/VersionUpdateMessage.tsx
+0
-1
Memo.tsx
web/src/components/Memo.tsx
+1
-1
RelationListView.tsx
web/src/components/MemoEditor/RelationListView.tsx
+0
-2
MemoList.tsx
web/src/components/MemoList.tsx
+1
-1
No files found.
web/src/components/Inbox/VersionUpdateMessage.tsx
View file @
5e4493b2
...
@@ -28,7 +28,6 @@ const VersionUpdateMessage = ({ inbox }: Props) => {
...
@@ -28,7 +28,6 @@ const VersionUpdateMessage = ({ inbox }: Props) => {
id
:
inbox
.
activityId
,
id
:
inbox
.
activityId
,
})
})
.
then
(({
activity
})
=>
{
.
then
(({
activity
})
=>
{
console
.
log
(
"activity"
,
activity
);
setActivity
(
activity
);
setActivity
(
activity
);
});
});
},
[
inbox
.
activityId
]);
},
[
inbox
.
activityId
]);
...
...
web/src/components/Memo.tsx
View file @
5e4493b2
...
@@ -42,7 +42,7 @@ const Memo: React.FC<Props> = (props: Props) => {
...
@@ -42,7 +42,7 @@ const Memo: React.FC<Props> = (props: Props) => {
const
[
shouldRender
,
setShouldRender
]
=
useState
<
boolean
>
(
lazyRendering
?
false
:
true
);
const
[
shouldRender
,
setShouldRender
]
=
useState
<
boolean
>
(
lazyRendering
?
false
:
true
);
const
[
displayTime
,
setDisplayTime
]
=
useState
<
string
>
(
getRelativeTimeString
(
memo
.
displayTs
));
const
[
displayTime
,
setDisplayTime
]
=
useState
<
string
>
(
getRelativeTimeString
(
memo
.
displayTs
));
const
memoContainerRef
=
useRef
<
HTMLDivElement
>
(
null
);
const
memoContainerRef
=
useRef
<
HTMLDivElement
>
(
null
);
const
readonly
=
memo
.
creatorUsername
!==
extractUsernameFromName
(
user
?.
name
);
const
readonly
=
memo
.
creatorUsername
!==
extractUsernameFromName
(
user
?.
name
||
""
);
const
[
creator
,
setCreator
]
=
useState
(
userV1Store
.
getUserByUsername
(
memo
.
creatorUsername
));
const
[
creator
,
setCreator
]
=
useState
(
userV1Store
.
getUserByUsername
(
memo
.
creatorUsername
));
const
referenceRelations
=
memo
.
relationList
.
filter
((
relation
)
=>
relation
.
type
===
"REFERENCE"
);
const
referenceRelations
=
memo
.
relationList
.
filter
((
relation
)
=>
relation
.
type
===
"REFERENCE"
);
const
commentRelations
=
memo
.
relationList
.
filter
((
relation
)
=>
relation
.
relatedMemoId
===
memo
.
id
&&
relation
.
type
===
"COMMENT"
);
const
commentRelations
=
memo
.
relationList
.
filter
((
relation
)
=>
relation
.
relatedMemoId
===
memo
.
id
&&
relation
.
type
===
"COMMENT"
);
...
...
web/src/components/MemoEditor/RelationListView.tsx
View file @
5e4493b2
...
@@ -28,8 +28,6 @@ const RelationListView = (props: Props) => {
...
@@ -28,8 +28,6 @@ const RelationListView = (props: Props) => {
setRelationList
(
relationList
.
filter
((
relation
)
=>
relation
.
relatedMemoId
!==
memo
.
id
));
setRelationList
(
relationList
.
filter
((
relation
)
=>
relation
.
relatedMemoId
!==
memo
.
id
));
};
};
console
.
log
(
"referencingMemoList"
,
referencingMemoList
);
return
(
return
(
<>
<>
{
referencingMemoList
.
length
>
0
&&
(
{
referencingMemoList
.
length
>
0
&&
(
...
...
web/src/components/MemoList.tsx
View file @
5e4493b2
...
@@ -22,7 +22,7 @@ const MemoList: React.FC = () => {
...
@@ -22,7 +22,7 @@ const MemoList: React.FC = () => {
const
user
=
useCurrentUser
();
const
user
=
useCurrentUser
();
const
{
tag
:
tagQuery
,
duration
,
text
:
textQuery
,
visibility
}
=
filter
;
const
{
tag
:
tagQuery
,
duration
,
text
:
textQuery
,
visibility
}
=
filter
;
const
showMemoFilter
=
Boolean
(
tagQuery
||
(
duration
&&
duration
.
from
<
duration
.
to
)
||
textQuery
||
visibility
);
const
showMemoFilter
=
Boolean
(
tagQuery
||
(
duration
&&
duration
.
from
<
duration
.
to
)
||
textQuery
||
visibility
);
const
username
=
params
.
username
||
extractUsernameFromName
(
user
.
name
)
||
""
;
const
username
=
params
.
username
||
extractUsernameFromName
(
user
.
name
||
"")
;
const
fetchMoreRef
=
useRef
<
HTMLSpanElement
>
(null);
const
fetchMoreRef
=
useRef
<
HTMLSpanElement
>
(null);
...
...
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