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..32fd0f4 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 --overwrite-dest", "lint": "eslint src --ext ts,tsx --report-unused-disable-directives --max-warnings 0", "preview": "vite preview" }, @@ -21,6 +21,7 @@ "i18next": "^22.4.15", "i18next-browser-languagedetector": "^7.0.1", "i18next-http-backend": "^2.2.0", + "lodash.debounce": "^4.0.8", "react": "^18.2.0", "react-dom": "^18.2.0", "react-i18next": "^12.2.2", @@ -38,6 +39,7 @@ "@types/classnames": "^2.3.1", "@types/color": "^3.0.3", "@types/firefox-webext-browser": "^120.0.4", + "@types/lodash.debounce": "^4.0.9", "@types/react": "^18.0.28", "@types/react-dom": "^18.0.11", "@types/uuid": "^9.0.1", diff --git a/public/manifest.json b/public/manifest.json index f9a9b92..dc39c21 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.6", "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/main.tsx b/src/main.tsx index dcadee9..31186e7 100644 --- a/src/main.tsx +++ b/src/main.tsx @@ -4,16 +4,20 @@ import { Editor } from "~/pages/editor"; import { ThemeProvider } from "./modules/theme/containers/ThemeProvider"; import { SettingsProvider } from "./modules/settings/providers/SettingsProvider"; +import { StorageProvider } from "~/modules/storage/StorageProvider"; import "./i18n"; import "./styles/main.scss"; +import "./utils/seed"; ReactDOM.createRoot(document.getElementById("root") as HTMLElement).render( - - - - - + + + + + + + ); 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`)}