mirror of
https://github.com/usememos/memos.git
synced 2025-02-19 12:50:41 +01:00
chore: code clean (#140)
This commit is contained in:
parent
cea16fac88
commit
972a49d6aa
@ -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;
|
||||||
|
@ -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 {}
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
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 {}
|
||||||
|
|
||||||
|
@ -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";
|
||||||
|
|
||||||
|
@ -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 />
|
||||||
|
Loading…
x
Reference in New Issue
Block a user