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
972a49d6
Unverified
Commit
972a49d6
authored
Aug 09, 2022
by
XQ
Committed by
GitHub
Aug 09, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
chore: code clean (#140)
parent
cea16fac
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
8 additions
and
8 deletions
+8
-8
MemoCardDialog.tsx
web/src/components/MemoCardDialog.tsx
+2
-2
ResourcesDialog.tsx
web/src/components/ResourcesDialog.tsx
+1
-1
SearchBar.tsx
web/src/components/SearchBar.tsx
+1
-1
ShareMemoImageDialog.tsx
web/src/components/ShareMemoImageDialog.tsx
+1
-1
Sidebar.tsx
web/src/components/Sidebar.tsx
+3
-3
No files found.
web/src/components/MemoCardDialog.tsx
View file @
972a49d6
...
@@ -7,9 +7,9 @@ import Only from "./common/OnlyWhen";
...
@@ -7,9 +7,9 @@ import Only from "./common/OnlyWhen";
import
toastHelper
from
"./Toast"
;
import
toastHelper
from
"./Toast"
;
import
{
generateDialog
}
from
"./Dialog"
;
import
{
generateDialog
}
from
"./Dialog"
;
import
Image
from
"./Image"
;
import
Image
from
"./Image"
;
import
"../less/memo-card-dialog.less"
;
import
Selector
from
"./common/Selector"
;
import
Icon
from
"./Icon"
;
import
Icon
from
"./Icon"
;
import
Selector
from
"./common/Selector"
;
import
"../less/memo-card-dialog.less"
;
interface
LinkedMemo
extends
Memo
{
interface
LinkedMemo
extends
Memo
{
createdAtStr
:
string
;
createdAtStr
:
string
;
...
...
web/src/components/ResourcesDialog.tsx
View file @
972a49d6
...
@@ -5,8 +5,8 @@ import { resourceService } from "../services";
...
@@ -5,8 +5,8 @@ import { resourceService } from "../services";
import
Dropdown
from
"./common/Dropdown"
;
import
Dropdown
from
"./common/Dropdown"
;
import
{
generateDialog
}
from
"./Dialog"
;
import
{
generateDialog
}
from
"./Dialog"
;
import
{
showCommonDialog
}
from
"./Dialog/CommonDialog"
;
import
{
showCommonDialog
}
from
"./Dialog/CommonDialog"
;
import
toastHelper
from
"./Toast"
;
import
Icon
from
"./Icon"
;
import
Icon
from
"./Icon"
;
import
toastHelper
from
"./Toast"
;
import
"../less/resources-dialog.less"
;
import
"../less/resources-dialog.less"
;
interface
Props
extends
DialogProps
{}
interface
Props
extends
DialogProps
{}
...
...
web/src/components/SearchBar.tsx
View file @
972a49d6
import
{
locationService
}
from
"../services"
;
import
{
locationService
}
from
"../services"
;
import
{
useAppSelector
}
from
"../store"
;
import
{
useAppSelector
}
from
"../store"
;
import
{
memoSpecialTypes
}
from
"../helpers/filter"
;
import
{
memoSpecialTypes
}
from
"../helpers/filter"
;
import
"../less/search-bar.less"
;
import
Icon
from
"./Icon"
;
import
Icon
from
"./Icon"
;
import
"../less/search-bar.less"
;
interface
Props
{}
interface
Props
{}
...
...
web/src/components/ShareMemoImageDialog.tsx
View file @
972a49d6
...
@@ -4,9 +4,9 @@ import toImage from "../labs/html2image";
...
@@ -4,9 +4,9 @@ import toImage from "../labs/html2image";
import
{
ANIMATION_DURATION
,
IMAGE_URL_REG
}
from
"../helpers/consts"
;
import
{
ANIMATION_DURATION
,
IMAGE_URL_REG
}
from
"../helpers/consts"
;
import
*
as
utils
from
"../helpers/utils"
;
import
*
as
utils
from
"../helpers/utils"
;
import
{
formatMemoContent
}
from
"../helpers/marked"
;
import
{
formatMemoContent
}
from
"../helpers/marked"
;
import
Only
from
"./common/OnlyWhen"
;
import
Icon
from
"./Icon"
;
import
Icon
from
"./Icon"
;
import
{
generateDialog
}
from
"./Dialog"
;
import
{
generateDialog
}
from
"./Dialog"
;
import
Only
from
"./common/OnlyWhen"
;
import
toastHelper
from
"./Toast"
;
import
toastHelper
from
"./Toast"
;
import
"../less/share-memo-image-dialog.less"
;
import
"../less/share-memo-image-dialog.less"
;
...
...
web/src/components/Sidebar.tsx
View file @
972a49d6
...
@@ -46,10 +46,10 @@ const Sidebar: React.FC<Props> = () => {
...
@@ -46,10 +46,10 @@ const Sidebar: React.FC<Props> = () => {
<
button
className=
"btn action-btn"
onClick=
{
handleMyAccountBtnClick
}
>
<
button
className=
"btn action-btn"
onClick=
{
handleMyAccountBtnClick
}
>
<
span
className=
"icon"
>
⚙️
</
span
>
Setting
<
span
className=
"icon"
>
⚙️
</
span
>
Setting
</
button
>
</
button
>
<
button
className=
"btn action-btn"
onClick=
{
handleArchivedBtnClick
}
>
<
span
className=
"icon"
>
🗂
</
span
>
Archived
</
button
>
</
Only
>
</
Only
>
<
button
className=
"btn action-btn"
onClick=
{
handleArchivedBtnClick
}
>
<
span
className=
"icon"
>
🗂
</
span
>
Archived
</
button
>
</
div
>
</
div
>
<
Only
when=
{
!
userService
.
isVisitorMode
()
}
>
<
Only
when=
{
!
userService
.
isVisitorMode
()
}
>
<
ShortcutList
/>
<
ShortcutList
/>
...
...
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