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
dd625d8e
Unverified
Commit
dd625d8e
authored
Mar 04, 2023
by
boojack
Committed by
GitHub
Mar 04, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
chore: update links reference (#1243)
parent
6ab58f29
Changes
12
Hide whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
17 additions
and
23 deletions
+17
-23
.eslintrc.json
web/.eslintrc.json
+2
-1
AboutSiteDialog.tsx
web/src/components/AboutSiteDialog.tsx
+1
-7
CreateResourceDialog.tsx
web/src/components/CreateResourceDialog.tsx
+1
-1
CreateStorageServiceDialog.tsx
web/src/components/CreateStorageServiceDialog.tsx
+0
-1
GitHubBadge.tsx
web/src/components/GitHubBadge.tsx
+0
-1
Memo.tsx
web/src/components/Memo.tsx
+1
-1
UpdateVersionBanner.tsx
web/src/components/UpdateVersionBanner.tsx
+0
-1
Link.tsx
web/src/labs/marked/parser/Link.tsx
+1
-1
PlainLink.tsx
web/src/labs/marked/parser/PlainLink.tsx
+1
-1
home.less
web/src/less/home.less
+1
-1
memo.less
web/src/less/memo.less
+8
-5
Explore.tsx
web/src/pages/Explore.tsx
+1
-2
No files found.
web/.eslintrc.json
View file @
dd625d8e
...
@@ -24,7 +24,8 @@
...
@@ -24,7 +24,8 @@
"no-unused-vars"
:
"off"
,
"no-unused-vars"
:
"off"
,
"@typescript-eslint/no-unused-vars"
:
"error"
,
"@typescript-eslint/no-unused-vars"
:
"error"
,
"@typescript-eslint/no-explicit-any"
:
[
"off"
],
"@typescript-eslint/no-explicit-any"
:
[
"off"
],
"react/react-in-jsx-scope"
:
"off"
"react/react-in-jsx-scope"
:
"off"
,
"react/jsx-no-target-blank"
:
"off"
},
},
"settings"
:
{
"settings"
:
{
"react"
:
{
"react"
:
{
...
...
web/src/components/AboutSiteDialog.tsx
View file @
dd625d8e
...
@@ -32,12 +32,7 @@ const AboutSiteDialog: React.FC<Props> = ({ destroy }: Props) => {
...
@@ -32,12 +32,7 @@ const AboutSiteDialog: React.FC<Props> = ({ destroy }: Props) => {
<
div
className=
"mt-4 flex flex-row text-sm justify-start items-center"
>
<
div
className=
"mt-4 flex flex-row text-sm justify-start items-center"
>
<
div
className=
"flex flex-row justify-start items-center mr-2"
>
<
div
className=
"flex flex-row justify-start items-center mr-2"
>
Powered by
Powered by
<
a
<
a
href=
"https://usememos.com"
target=
"_blank"
className=
"flex flex-row justify-start items-center mr-1 hover:underline"
>
href=
"https://usememos.com"
target=
"_blank"
rel=
"noreferrer"
className=
"flex flex-row justify-start items-center mr-1 hover:underline"
>
<
img
className=
"w-6 h-auto"
src=
"/logo.png"
alt=
""
/>
<
img
className=
"w-6 h-auto"
src=
"/logo.png"
alt=
""
/>
memos
memos
</
a
>
</
a
>
...
@@ -50,7 +45,6 @@ const AboutSiteDialog: React.FC<Props> = ({ destroy }: Props) => {
...
@@ -50,7 +45,6 @@ const AboutSiteDialog: React.FC<Props> = ({ destroy }: Props) => {
<
a
<
a
href=
"https://github.com/boojack/sticky-notes"
href=
"https://github.com/boojack/sticky-notes"
target=
"_blank"
target=
"_blank"
rel=
"noreferrer"
className=
"flex items-center underline text-blue-600 hover:opacity-80"
className=
"flex items-center underline text-blue-600 hover:opacity-80"
>
>
<
img
<
img
...
...
web/src/components/CreateResourceDialog.tsx
View file @
dd625d8e
...
@@ -165,7 +165,7 @@ const CreateResourceDialog: React.FC<Props> = (props: Props) => {
...
@@ -165,7 +165,7 @@ const CreateResourceDialog: React.FC<Props> = (props: Props) => {
{
state
.
selectedMode
===
"local-file"
&&
(
{
state
.
selectedMode
===
"local-file"
&&
(
<>
<>
<
div
className=
"w-full relative bg-blue-50 rounded-md flex flex-row justify-center items-center py-8"
>
<
div
className=
"w-full relative bg-blue-50
dark:bg-zinc-900
rounded-md flex flex-row justify-center items-center py-8"
>
<
label
htmlFor=
"files"
className=
"p-2 px-4 text-sm text-white cursor-pointer bg-blue-500 block rounded hover:opacity-80"
>
<
label
htmlFor=
"files"
className=
"p-2 px-4 text-sm text-white cursor-pointer bg-blue-500 block rounded hover:opacity-80"
>
Choose a file...
Choose a file...
</
label
>
</
label
>
...
...
web/src/components/CreateStorageServiceDialog.tsx
View file @
dd625d8e
...
@@ -101,7 +101,6 @@ const CreateStorageServiceDialog: React.FC<Props> = (props: Props) => {
...
@@ -101,7 +101,6 @@ const CreateStorageServiceDialog: React.FC<Props> = (props: Props) => {
className=
"ml-2 text-sm text-blue-600 hover:opacity-80 hover:underline"
className=
"ml-2 text-sm text-blue-600 hover:opacity-80 hover:underline"
href=
"https://usememos.com/docs/storage"
href=
"https://usememos.com/docs/storage"
target=
"_blank"
target=
"_blank"
rel=
"noreferrer"
>
>
Learn more
Learn more
<
Icon
.
ExternalLink
className=
"inline -mt-1 ml-1 w-4 h-auto opacity-80"
/>
<
Icon
.
ExternalLink
className=
"inline -mt-1 ml-1 w-4 h-auto opacity-80"
/>
...
...
web/src/components/GitHubBadge.tsx
View file @
dd625d8e
...
@@ -16,7 +16,6 @@ const GitHubBadge = () => {
...
@@ -16,7 +16,6 @@ const GitHubBadge = () => {
className=
"h-7 flex flex-row justify-start items-center border dark:border-zinc-600 rounded cursor-pointer hover:opacity-80"
className=
"h-7 flex flex-row justify-start items-center border dark:border-zinc-600 rounded cursor-pointer hover:opacity-80"
href=
"https://github.com/usememos/memos"
href=
"https://github.com/usememos/memos"
target=
"_blank"
target=
"_blank"
rel=
"noreferrer"
>
>
<
div
className=
"apply w-auto h-full px-2 flex flex-row justify-center items-center text-xs bg-gray-100 dark:bg-zinc-700"
>
<
div
className=
"apply w-auto h-full px-2 flex flex-row justify-center items-center text-xs bg-gray-100 dark:bg-zinc-700"
>
<
Icon
.
Github
className=
"mr-1 w-4 h-4"
/>
<
Icon
.
Github
className=
"mr-1 w-4 h-4"
/>
...
...
web/src/components/Memo.tsx
View file @
dd625d8e
...
@@ -209,7 +209,7 @@ const Memo: React.FC<Props> = (props: Props) => {
...
@@ -209,7 +209,7 @@ const Memo: React.FC<Props> = (props: Props) => {
</
span
>
</
span
>
</
Tooltip
>
</
Tooltip
>
{
isVisitorMode
&&
(
{
isVisitorMode
&&
(
<
a
className=
"
ml-2 opacity-60 text-sm
"
href=
{
`/u/${memo.creatorId}`
}
>
<
a
className=
"
name-text
"
href=
{
`/u/${memo.creatorId}`
}
>
@
{
memo
.
creatorName
}
@
{
memo
.
creatorName
}
</
a
>
</
a
>
)
}
)
}
...
...
web/src/components/UpdateVersionBanner.tsx
View file @
dd625d8e
...
@@ -48,7 +48,6 @@ const UpdateVersionBanner: React.FC = () => {
...
@@ -48,7 +48,6 @@ const UpdateVersionBanner: React.FC = () => {
className=
"flex flex-row items-center justify-center hover:underline"
className=
"flex flex-row items-center justify-center hover:underline"
target=
"_blank"
target=
"_blank"
href=
"https://github.com/usememos/memos/releases"
href=
"https://github.com/usememos/memos/releases"
rel=
"noreferrer"
>
>
<
Icon
.
ArrowUpCircle
className=
"w-5 h-auto mr-2"
/>
<
Icon
.
ArrowUpCircle
className=
"w-5 h-auto mr-2"
/>
New Update
<
span
className=
"ml-1 font-bold"
>
{
state
.
latestVersion
}
</
span
>
New Update
<
span
className=
"ml-1 font-bold"
>
{
state
.
latestVersion
}
</
span
>
...
...
web/src/labs/marked/parser/Link.tsx
View file @
dd625d8e
...
@@ -15,7 +15,7 @@ const renderer = (rawStr: string) => {
...
@@ -15,7 +15,7 @@ const renderer = (rawStr: string) => {
}
}
const
parsedContent
=
marked
(
matchResult
[
1
],
[],
[
InlineCode
,
BoldEmphasis
,
Emphasis
,
Bold
,
PlainText
]);
const
parsedContent
=
marked
(
matchResult
[
1
],
[],
[
InlineCode
,
BoldEmphasis
,
Emphasis
,
Bold
,
PlainText
]);
return
(
return
(
<
a
className=
"link"
target=
"_blank"
rel=
"noreferrer"
href=
{
matchResult
[
2
]
}
>
<
a
className=
"link"
target=
"_blank"
href=
{
matchResult
[
2
]
}
>
{
parsedContent
}
{
parsedContent
}
</
a
>
</
a
>
);
);
...
...
web/src/labs/marked/parser/PlainLink.tsx
View file @
dd625d8e
...
@@ -9,7 +9,7 @@ const renderer = (rawStr: string) => {
...
@@ -9,7 +9,7 @@ const renderer = (rawStr: string) => {
}
}
return
(
return
(
<
a
className=
"link"
target=
"_blank"
rel=
"noreferrer"
href=
{
matchResult
[
1
]
}
>
<
a
className=
"link"
target=
"_blank"
href=
{
matchResult
[
1
]
}
>
{
matchResult
[
1
]
}
{
matchResult
[
1
]
}
</
a
>
</
a
>
);
);
...
...
web/src/less/home.less
View file @
dd625d8e
...
@@ -13,7 +13,7 @@
...
@@ -13,7 +13,7 @@
}
}
> .memos-wrapper {
> .memos-wrapper {
@apply relative flex-grow max-w-2xl w-full h-auto flex flex-col justify-start items-start px-2 sm:pt-4;
@apply relative flex-grow max-w-2xl w-full h-auto flex flex-col justify-start items-start px-
4 sm:px-
2 sm:pt-4;
> .memos-editor-wrapper {
> .memos-editor-wrapper {
@apply w-full h-auto flex flex-col justify-start items-start bg-zinc-100 dark:bg-zinc-800 rounded-lg;
@apply w-full h-auto flex flex-col justify-start items-start bg-zinc-100 dark:bg-zinc-800 rounded-lg;
...
...
web/src/less/memo.less
View file @
dd625d8e
...
@@ -26,12 +26,15 @@
...
@@ -26,12 +26,15 @@
@apply flex flex-row justify-start items-center;
@apply flex flex-row justify-start items-center;
> .time-text {
> .time-text {
@apply text-xs text-gray-400;
@apply text-sm text-gray-400;
font-size: 13px;
}
> .name-text {
@apply ml-1 text-sm text-gray-400 cursor-pointer hover:opacity-80;
}
}
> .status-text {
> .status-text {
@apply text-
xs
cursor-pointer ml-2 rounded border px-1;
@apply text-
sm
cursor-pointer ml-2 rounded border px-1;
&.public {
&.public {
@apply border-green-600 text-green-600;
@apply border-green-600 text-green-600;
...
@@ -54,7 +57,7 @@
...
@@ -54,7 +57,7 @@
@apply hidden flex-col justify-start items-center absolute top-2 -right-4 flex-nowrap hover:flex p-3;
@apply hidden flex-col justify-start items-center absolute top-2 -right-4 flex-nowrap hover:flex p-3;
> .more-action-btns-container {
> .more-action-btns-container {
@apply w-auto h-auto p-1 z-1 whitespace-nowrap rounded-lg bg-white dark:bg-zinc-
7
00;
@apply w-auto h-auto p-1 z-1 whitespace-nowrap rounded-lg bg-white dark:bg-zinc-
8
00;
box-shadow: 0 0 8px 0 rgb(0 0 0 / 20%);
box-shadow: 0 0 8px 0 rgb(0 0 0 / 20%);
> .btns-container {
> .btns-container {
...
@@ -106,7 +109,7 @@
...
@@ -106,7 +109,7 @@
}
}
.final-confirm {
.final-confirm {
color: red
color: red;
}
}
}
}
}
}
...
...
web/src/pages/Explore.tsx
View file @
dd625d8e
...
@@ -105,10 +105,9 @@ const Explore = () => {
...
@@ -105,10 +105,9 @@ const Explore = () => {
</
div
>
</
div
>
<
div
className=
"flex flex-row justify-end items-center"
>
<
div
className=
"flex flex-row justify-end items-center"
>
<
a
<
a
className=
"flex flex-row justify-center items-center h-12 w-12 border rounded-full hover:opacity-80 hover:shadow dark:text-white "
className=
"flex flex-row justify-center items-center h-12 w-12 border rounded-full hover:opacity-80 hover:shadow dark:text-white
dark:border-gray-400
"
href=
"/explore/rss.xml"
href=
"/explore/rss.xml"
target=
"_blank"
target=
"_blank"
rel=
"noreferrer"
>
>
<
Icon
.
Rss
className=
"w-7 h-auto opacity-60"
/>
<
Icon
.
Rss
className=
"w-7 h-auto opacity-60"
/>
</
a
>
</
a
>
...
...
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