chore: update links reference (#1243)

This commit is contained in:
boojack 2023-03-04 15:06:01 +08:00 committed by GitHub
parent 6ab58f294e
commit dd625d8edc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
12 changed files with 17 additions and 23 deletions

View File

@ -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": {

View File

@ -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) => {
<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

View File

@ -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>

View File

@ -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" />

View File

@ -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" />

View File

@ -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>
)} )}

View File

@ -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>

View File

@ -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>
); );

View File

@ -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>
); );

View File

@ -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;

View File

@ -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 @@
@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-700; @apply w-auto h-auto p-1 z-1 whitespace-nowrap rounded-lg bg-white dark:bg-zinc-800;
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 @@
} }
.final-confirm { .final-confirm {
color: red color: red;
} }
} }
} }

View File

@ -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>