diff --git a/apps/web/scripts/changelog.mjs b/apps/web/scripts/changelog.mjs deleted file mode 100644 index 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.tsx deleted file mode 100644 index 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 . -*/ - -import { Flex, Text } from "@theme-ui/components"; -import { Loading } from "../icons"; -import { strings } from "@notesnook/intl"; - -function EditorLoading({ text }: { text?: string }) { - return ( - - - - {text || strings.loadingEditor()} - - - ); -} -export default EditorLoading; diff --git a/apps/web/src/theme-loader.ts b/apps/web/src/theme-loader.ts deleted file mode 100644 index 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 . -*/ - -console.log("loading theme"); diff --git a/apps/web/src/utils/dimensions.ts b/apps/web/src/utils/dimensions.ts deleted file mode 100644 index 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 . -*/ - -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 };