A fully open source & end-to-end encrypted note taking alternative to Evernote.
TypeScript asp-net-coredotnet-coreelectronfosshacktoberfestnote-managmentnote-takingnote-taking-appnotebooknotesnotes-appopen-sourceopensourceprivacyproductivityreactreact-nativereactjsself-hosted
web: remove unneeded modules
Abdullah Atta0a02431f6aaa
diff --git a/apps/web/scripts/changelog.mjs b/apps/web/scripts/changelog.mjsdeleted file mode 100644index 8eb223fab..000000000--- a/apps/web/scripts/changelog.mjs+++ /dev/null@@ -1,31 +0,0 @@-import fetch from "node-fetch";-import fs from "fs/promises";--async function getMilestones() {- const url = `https://api.github.com/repos/streetwriters/notesnook/milestones?state=closed`;- const response = await fetch(url);- if (response.ok) return await response.json();-}--async function getIssues(milestone) {- const url = `https://api.github.com/repos/streetwriters/notesnook/issues?milestone=${milestone}&state=closed`;- const response = await fetch(url);- if (response.ok) return await response.json();-}--(async function main() {- const milestone = (await getMilestones())- .sort((a, b) => a.number - b.number)- .pop();- console.log("Generating changelog for version", milestone.title);- const issues = await getIssues(milestone.number);-- await fs.writeFile(- `changelog-${milestone.title}.md`,- issues- .map((issue, index) => {- return `${index + 1}. ${issue.title} (#${issue.number})`;- })- .join("\n")- );-})();diff --git a/apps/web/src/components/editor/loading.tsx b/apps/web/src/components/editor/loading.tsxdeleted file mode 100644index 1502e110a..000000000--- a/apps/web/src/components/editor/loading.tsx+++ /dev/null@@ -1,41 +0,0 @@-/*-This file is part of the Notesnook project (https://notesnook.com/)--Copyright (C) 2023 Streetwriters (Private) Limited--This program is free software: you can redistribute it and/or modify-it under the terms of the GNU General Public License as published by-the Free Software Foundation, either version 3 of the License, or-(at your option) any later version.--This program is distributed in the hope that it will be useful,-but WITHOUT ANY WARRANTY; without even the implied warranty of-MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-GNU General Public License for more details.--You should have received a copy of the GNU General Public License-along with this program. If not, see <http://www.gnu.org/licenses/>.-*/--import { Flex, Text } from "@theme-ui/components";-import { Loading } from "../icons";-import { strings } from "@notesnook/intl";--function EditorLoading({ text }: { text?: string }) {- return (- <Flex- sx={{- flex: 1,- flexDirection: "column",- alignItems: "center",- justifyContent: "center"- }}- >- <Loading color="accent" sx={{ mt: 2 }} />- <Text variant="body" mt={2} sx={{ textAlign: "center" }}>- {text || strings.loadingEditor()}- </Text>- </Flex>- );-}-export default EditorLoading;diff --git a/apps/web/src/theme-loader.ts b/apps/web/src/theme-loader.tsdeleted file mode 100644index dcdb10ee1..000000000--- a/apps/web/src/theme-loader.ts+++ /dev/null@@ -1,20 +0,0 @@-/*-This file is part of the Notesnook project (https://notesnook.com/)--Copyright (C) 2023 Streetwriters (Private) Limited--This program is free software: you can redistribute it and/or modify-it under the terms of the GNU General Public License as published by-the Free Software Foundation, either version 3 of the License, or-(at your option) any later version.--This program is distributed in the hope that it will be useful,-but WITHOUT ANY WARRANTY; without even the implied warranty of-MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-GNU General Public License for more details.--You should have received a copy of the GNU General Public License-along with this program. If not, see <http://www.gnu.org/licenses/>.-*/--console.log("loading theme");diff --git a/apps/web/src/utils/dimensions.ts b/apps/web/src/utils/dimensions.tsdeleted file mode 100644index 2a94ae044..000000000--- a/apps/web/src/utils/dimensions.ts+++ /dev/null@@ -1,29 +0,0 @@-/*-This file is part of the Notesnook project (https://notesnook.com/)--Copyright (C) 2023 Streetwriters (Private) Limited--This program is free software: you can redistribute it and/or modify-it under the terms of the GNU General Public License as published by-the Free Software Foundation, either version 3 of the License, or-(at your option) any later version.--This program is distributed in the hope that it will be useful,-but WITHOUT ANY WARRANTY; without even the implied warranty of-MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-GNU General Public License for more details.--You should have received a copy of the GNU General Public License-along with this program. If not, see <http://www.gnu.org/licenses/>.-*/--function isMobile(): boolean {- return window.matchMedia("(max-width: 480px)").matches;-}--function isTablet(): boolean {- return window.matchMedia("(min-width: 480px) and (max-width: 1000px)")- .matches;-}--export { isMobile, isTablet };