From db911e51e424c445344552c9e33080c5c64e4a9f Mon Sep 17 00:00:00 2001 From: Fedor Katurov Date: Wed, 2 Oct 2024 20:50:30 +0700 Subject: [PATCH 1/2] add hotkeys --- .gitignore | 4 +- README.md | 2 +- package.json | 4 +- public/manifest.json | 2 +- .../editor/components/EmptyViewer/index.tsx | 2 +- .../components/EmptyViewer/styles.module.scss | 2 + .../index.tsx | 22 ++++-- .../styles.module.scss | 0 .../components/RemirrorEditor/index.tsx | 73 +++++++------------ .../index.tsx | 22 +++++- .../styles.module.scss | 0 .../MarkdownEditorContainer/index.tsx | 18 +++-- .../layout/components/GridLayout/index.tsx | 9 +++ .../containers/ColorSettings/index.tsx | 4 +- 14 files changed, 91 insertions(+), 73 deletions(-) rename src/modules/editor/components/{ReactMarkdownViewer => MarkdownViewer}/index.tsx (67%) rename src/modules/editor/components/{ReactMarkdownViewer => MarkdownViewer}/styles.module.scss (100%) rename src/modules/editor/components/{ReactMarkdownEditor => SimpleTextareaEditor}/index.tsx (63%) rename src/modules/editor/components/{ReactMarkdownEditor => SimpleTextareaEditor}/styles.module.scss (100%) diff --git a/.gitignore b/.gitignore index ee070ae..3e11302 100644 --- a/.gitignore +++ b/.gitignore @@ -22,4 +22,6 @@ dist-ssr *.njsproj *.sln *.sw? -web-ext-artifacts \ No newline at end of file +web-ext-artifacts +output +*.tgz \ No newline at end of file diff --git a/README.md b/README.md index 19b9cb9..d1916fe 100644 --- a/README.md +++ b/README.md @@ -22,4 +22,4 @@ yarn dev ## TO-DO -- Use Remirror as editor +- Use HyperMD editor diff --git a/package.json b/package.json index 68e3cff..5ab2ab5 100644 --- a/package.json +++ b/package.json @@ -1,12 +1,12 @@ { "name": "markdown-home-tab", "private": true, - "version": "0.0.4", + "version": "0.0.5", "type": "module", "scripts": { "dev": "vite", "build": "tsc && vite build", - "package": "yarn build && web-ext build -s ./dist", + "package": "yarn build && web-ext build -s ./dist -a ./output", "lint": "eslint src --ext ts,tsx --report-unused-disable-directives --max-warnings 0", "preview": "vite preview" }, diff --git a/public/manifest.json b/public/manifest.json index f9a9b92..9d5923f 100644 --- a/public/manifest.json +++ b/public/manifest.json @@ -1,7 +1,7 @@ { "name": "Markdown Home Tab", "short_name": "Markdown New Tab", - "version": "0.0.4", + "version": "0.0.5", "description": "Markdown right in your home tab! Paste links, pictures, lists and more. You can also customize colors to match your needs.", "manifest_version": 2, "permissions": ["storage"], diff --git a/src/modules/editor/components/EmptyViewer/index.tsx b/src/modules/editor/components/EmptyViewer/index.tsx index 94387d2..fa073cd 100644 --- a/src/modules/editor/components/EmptyViewer/index.tsx +++ b/src/modules/editor/components/EmptyViewer/index.tsx @@ -13,7 +13,7 @@ const EmptyViewer: FC = ({ startEditing }) => { const { t } = useTranslation(); return ( -
+
{t(`Nothing's here yet`)}