Compare commits

...

9 commits

Author SHA1 Message Date
dependabot[bot]
43097f9d22
build(deps): bump react-router-dom from 6.4.2 to 6.10.0 (#5)
Bumps [react-router-dom](https://github.com/remix-run/react-router/tree/HEAD/packages/react-router-dom) from 6.4.2 to 6.10.0.
- [Release notes](https://github.com/remix-run/react-router/releases)
- [Changelog](https://github.com/remix-run/react-router/blob/main/packages/react-router-dom/CHANGELOG.md)
- [Commits](https://github.com/remix-run/react-router/commits/react-router-dom@6.10.0/packages/react-router-dom)

---
updated-dependencies:
- dependency-name: react-router-dom
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-04-24 15:55:34 +03:00
dependabot[bot]
5b8e68b833
build(deps): bump react-markdown from 8.0.3 to 8.0.7 (#6)
Bumps [react-markdown](https://github.com/remarkjs/react-markdown) from 8.0.3 to 8.0.7.
- [Release notes](https://github.com/remarkjs/react-markdown/releases)
- [Changelog](https://github.com/remarkjs/react-markdown/blob/main/changelog.md)
- [Commits](https://github.com/remarkjs/react-markdown/compare/8.0.3...8.0.7)

---
updated-dependencies:
- dependency-name: react-markdown
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-04-24 15:54:14 +03:00
dependabot[bot]
b26e0e6436
build(deps): bump @heroicons/react from 2.0.12 to 2.0.17 (#7)
Bumps [@heroicons/react](https://github.com/tailwindlabs/heroicons) from 2.0.12 to 2.0.17.
- [Release notes](https://github.com/tailwindlabs/heroicons/releases)
- [Changelog](https://github.com/tailwindlabs/heroicons/blob/master/CHANGELOG.md)
- [Commits](https://github.com/tailwindlabs/heroicons/compare/v2.0.12...v2.0.17)

---
updated-dependencies:
- dependency-name: "@heroicons/react"
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-04-24 15:54:04 +03:00
7c3b617981 Merge branch 'main' of https://github.com/artegoser/AnoPaper 2023-04-24 15:48:23 +03:00
6e0ff54f5a doc: changelog update 2023-04-24 15:48:12 +03:00
8340c08242 doc: add gif 2023-04-24 15:43:03 +03:00
Artemy Egorov
96b8187e51
Create dependabot.yml (#4) 2023-04-24 15:33:59 +03:00
606b89ac52 doc: fix documentation 2023-04-24 15:26:14 +03:00
c5f9781c27 fix: Lies in the comments 2023-04-24 11:56:38 +03:00
7 changed files with 65 additions and 56 deletions

11
.github/dependabot.yml vendored Normal file
View file

@ -0,0 +1,11 @@
# To get started with Dependabot version updates, you'll need to specify which
# package ecosystems to update and where the package manifests are located.
# Please see the documentation for all configuration options:
# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates
version: 2
updates:
- package-ecosystem: "npm" # See documentation for possible values
directory: "/" # Location of package manifests
schedule:
interval: "weekly"

View file

@ -34,6 +34,8 @@ Running on: <https://anopaper.artegoser.ru/>
See [changelog](/changelog.md) for more information See [changelog](/changelog.md) for more information
![AI completion gif](docs/imgs/ai_completion.gif)
## Local installation ## Local installation
- Setup repository - Setup repository
@ -44,10 +46,7 @@ npm install
npm run build npm run build
``` ```
- Create a .env file in the root directory of the project with the following environment variables: - Look at .env.example and create your .env file
- PORT: The port on which the server will listen.
- KEY: Secret key to encrypt notes on the server
- Start server - Start server

View file

@ -20,7 +20,7 @@
- [ ] Local notes editing - [ ] Local notes editing
- [ ] Publish local notes - [ ] Publish local notes
- [x] Migration notes storage to mongodb (#3) - [x] Migration notes storage to mongodb (#3)
- [ ] Settings for publish notes, such as: delete after reading, number of reads before deleting. - [ ] Settings for publish notes, such as: delete after reading, number of reads before deleting, adding your own data (name, picture, status in the settings) to the note.
- [ ] Api for upload photos - [ ] Api for upload photos
- [ ] Inserting a photo in a note - [ ] Inserting a photo in a note

BIN
docs/imgs/ai_completion.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 116 KiB

View file

@ -22,7 +22,6 @@
<head> <head>
<meta charset="UTF-8" /> <meta charset="UTF-8" />
<link rel="icon" type="image/png" href="/ico.png" /> <link rel="icon" type="image/png" href="/ico.png" />
<!-- Icon generated with stable diffusion -->
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>AnoPaper</title> <title>AnoPaper</title>
</head> </head>

94
package-lock.json generated
View file

@ -9,7 +9,7 @@
"version": "1.0.0", "version": "1.0.0",
"license": "GPL-3.0-only", "license": "GPL-3.0-only",
"dependencies": { "dependencies": {
"@heroicons/react": "^2.0.12", "@heroicons/react": "^2.0.17",
"ajv": "^8.11.0", "ajv": "^8.11.0",
"body-parser": "^1.20.1", "body-parser": "^1.20.1",
"crypto-js": "^4.1.1", "crypto-js": "^4.1.1",
@ -23,8 +23,8 @@
"react": "^18.2.0", "react": "^18.2.0",
"react-contenteditable": "^3.3.7", "react-contenteditable": "^3.3.7",
"react-dom": "^18.2.0", "react-dom": "^18.2.0",
"react-markdown": "^8.0.3", "react-markdown": "^8.0.7",
"react-router-dom": "^6.4.2", "react-router-dom": "^6.10.0",
"react-syntax-highlighter": "^15.5.0", "react-syntax-highlighter": "^15.5.0",
"rehype-mathjax": "^4.0.2", "rehype-mathjax": "^4.0.2",
"rehype-parse": "^8.0.4", "rehype-parse": "^8.0.4",
@ -850,9 +850,9 @@
} }
}, },
"node_modules/@heroicons/react": { "node_modules/@heroicons/react": {
"version": "2.0.12", "version": "2.0.17",
"resolved": "https://registry.npmjs.org/@heroicons/react/-/react-2.0.12.tgz", "resolved": "https://registry.npmjs.org/@heroicons/react/-/react-2.0.17.tgz",
"integrity": "sha512-FZxKh3i9aKIDxyALTgIpSF2t6V6/eZfF5mRu41QlwkX3Oxzecdm1u6dpft6PQGxIBwO7TKYWaMAYYL8mp/EaOg==", "integrity": "sha512-90GMZktkA53YbNzHp6asVEDevUQCMtxWH+2UK2S8OpnLEu7qckTJPhNxNQG52xIR1WFTwFqtH6bt7a60ZNcLLA==",
"peerDependencies": { "peerDependencies": {
"react": ">= 16" "react": ">= 16"
} }
@ -980,9 +980,9 @@
} }
}, },
"node_modules/@remix-run/router": { "node_modules/@remix-run/router": {
"version": "1.0.2", "version": "1.5.0",
"resolved": "https://registry.npmjs.org/@remix-run/router/-/router-1.0.2.tgz", "resolved": "https://registry.npmjs.org/@remix-run/router/-/router-1.5.0.tgz",
"integrity": "sha512-GRSOFhJzjGN+d4sKHTMSvNeUPoZiDHWmRnXfzaxrqe7dE/Nzlc8BiMSJdLDESZlndM7jIUrZ/F4yWqVYlI0rwQ==", "integrity": "sha512-bkUDCp8o1MvFO+qxkODcbhSqRa6P2GXgrGZVpt0dCXNW2HCSCqYI0ZoAqEOSAjRWmmlKcYgFvN4B4S+zo/f8kg==",
"engines": { "engines": {
"node": ">=14" "node": ">=14"
} }
@ -5895,9 +5895,9 @@
"integrity": "sha512-xWGDIW6x921xtzPkhiULtthJHoJvBbF3q26fzloPCK0hsvxtPVelvftw3zjbHWSkR2km9Z+4uxbDDK/6Zw9B8w==" "integrity": "sha512-xWGDIW6x921xtzPkhiULtthJHoJvBbF3q26fzloPCK0hsvxtPVelvftw3zjbHWSkR2km9Z+4uxbDDK/6Zw9B8w=="
}, },
"node_modules/react-markdown": { "node_modules/react-markdown": {
"version": "8.0.3", "version": "8.0.7",
"resolved": "https://registry.npmjs.org/react-markdown/-/react-markdown-8.0.3.tgz", "resolved": "https://registry.npmjs.org/react-markdown/-/react-markdown-8.0.7.tgz",
"integrity": "sha512-We36SfqaKoVNpN1QqsZwWSv/OZt5J15LNgTLWynwAN5b265hrQrsjMtlRNwUvS+YyR3yDM8HpTNc4pK9H/Gc0A==", "integrity": "sha512-bvWbzG4MtOU62XqBx3Xx+zB2raaFFsq4mYiAzfjXJMEz2sixgeAfraA3tvzULF02ZdOMUOKTBFFaZJDDrq+BJQ==",
"dependencies": { "dependencies": {
"@types/hast": "^2.0.0", "@types/hast": "^2.0.0",
"@types/prop-types": "^15.0.0", "@types/prop-types": "^15.0.0",
@ -5910,7 +5910,7 @@
"remark-parse": "^10.0.0", "remark-parse": "^10.0.0",
"remark-rehype": "^10.0.0", "remark-rehype": "^10.0.0",
"space-separated-tokens": "^2.0.0", "space-separated-tokens": "^2.0.0",
"style-to-object": "^0.3.0", "style-to-object": "^0.4.0",
"unified": "^10.0.0", "unified": "^10.0.0",
"unist-util-visit": "^4.0.0", "unist-util-visit": "^4.0.0",
"vfile": "^5.0.0" "vfile": "^5.0.0"
@ -5934,11 +5934,11 @@
} }
}, },
"node_modules/react-router": { "node_modules/react-router": {
"version": "6.4.2", "version": "6.10.0",
"resolved": "https://registry.npmjs.org/react-router/-/react-router-6.4.2.tgz", "resolved": "https://registry.npmjs.org/react-router/-/react-router-6.10.0.tgz",
"integrity": "sha512-Rb0BAX9KHhVzT1OKhMvCDMw776aTYM0DtkxqUBP8dNBom3mPXlfNs76JNGK8wKJ1IZEY1+WGj+cvZxHVk/GiKw==", "integrity": "sha512-Nrg0BWpQqrC3ZFFkyewrflCud9dio9ME3ojHCF/WLsprJVzkq3q3UeEhMCAW1dobjeGbWgjNn/PVF6m46ANxXQ==",
"dependencies": { "dependencies": {
"@remix-run/router": "1.0.2" "@remix-run/router": "1.5.0"
}, },
"engines": { "engines": {
"node": ">=14" "node": ">=14"
@ -5948,12 +5948,12 @@
} }
}, },
"node_modules/react-router-dom": { "node_modules/react-router-dom": {
"version": "6.4.2", "version": "6.10.0",
"resolved": "https://registry.npmjs.org/react-router-dom/-/react-router-dom-6.4.2.tgz", "resolved": "https://registry.npmjs.org/react-router-dom/-/react-router-dom-6.10.0.tgz",
"integrity": "sha512-yM1kjoTkpfjgczPrcyWrp+OuQMyB1WleICiiGfstnQYo/S8hPEEnVjr/RdmlH6yKK4Tnj1UGXFSa7uwAtmDoLQ==", "integrity": "sha512-E5dfxRPuXKJqzwSe/qGcqdwa18QiWC6f3H3cWXM24qj4N0/beCIf/CWTipop2xm7mR0RCS99NnaqPNjHtrAzCg==",
"dependencies": { "dependencies": {
"@remix-run/router": "1.0.2", "@remix-run/router": "1.5.0",
"react-router": "6.4.2" "react-router": "6.10.0"
}, },
"engines": { "engines": {
"node": ">=14" "node": ">=14"
@ -6775,9 +6775,9 @@
} }
}, },
"node_modules/style-to-object": { "node_modules/style-to-object": {
"version": "0.3.0", "version": "0.4.1",
"resolved": "https://registry.npmjs.org/style-to-object/-/style-to-object-0.3.0.tgz", "resolved": "https://registry.npmjs.org/style-to-object/-/style-to-object-0.4.1.tgz",
"integrity": "sha512-CzFnRRXhzWIdItT3OmF8SQfWyahHhjq3HwcMNCNLn+N7klOOqPjMeG/4JSu77D7ypZdGvSzvkrbyeTMizz2VrA==", "integrity": "sha512-HFpbb5gr2ypci7Qw+IOhnP2zOU7e77b+rzM+wTzXzfi1PrtBCX0E7Pk4wL4iTLnhzZ+JgEGAhX81ebTg/aYjQw==",
"dependencies": { "dependencies": {
"inline-style-parser": "0.1.1" "inline-style-parser": "0.1.1"
} }
@ -8105,9 +8105,9 @@
"dev": true "dev": true
}, },
"@heroicons/react": { "@heroicons/react": {
"version": "2.0.12", "version": "2.0.17",
"resolved": "https://registry.npmjs.org/@heroicons/react/-/react-2.0.12.tgz", "resolved": "https://registry.npmjs.org/@heroicons/react/-/react-2.0.17.tgz",
"integrity": "sha512-FZxKh3i9aKIDxyALTgIpSF2t6V6/eZfF5mRu41QlwkX3Oxzecdm1u6dpft6PQGxIBwO7TKYWaMAYYL8mp/EaOg==", "integrity": "sha512-90GMZktkA53YbNzHp6asVEDevUQCMtxWH+2UK2S8OpnLEu7qckTJPhNxNQG52xIR1WFTwFqtH6bt7a60ZNcLLA==",
"requires": {} "requires": {}
}, },
"@humanwhocodes/config-array": { "@humanwhocodes/config-array": {
@ -8207,9 +8207,9 @@
} }
}, },
"@remix-run/router": { "@remix-run/router": {
"version": "1.0.2", "version": "1.5.0",
"resolved": "https://registry.npmjs.org/@remix-run/router/-/router-1.0.2.tgz", "resolved": "https://registry.npmjs.org/@remix-run/router/-/router-1.5.0.tgz",
"integrity": "sha512-GRSOFhJzjGN+d4sKHTMSvNeUPoZiDHWmRnXfzaxrqe7dE/Nzlc8BiMSJdLDESZlndM7jIUrZ/F4yWqVYlI0rwQ==" "integrity": "sha512-bkUDCp8o1MvFO+qxkODcbhSqRa6P2GXgrGZVpt0dCXNW2HCSCqYI0ZoAqEOSAjRWmmlKcYgFvN4B4S+zo/f8kg=="
}, },
"@socket.io/component-emitter": { "@socket.io/component-emitter": {
"version": "3.1.0", "version": "3.1.0",
@ -11649,9 +11649,9 @@
"integrity": "sha512-xWGDIW6x921xtzPkhiULtthJHoJvBbF3q26fzloPCK0hsvxtPVelvftw3zjbHWSkR2km9Z+4uxbDDK/6Zw9B8w==" "integrity": "sha512-xWGDIW6x921xtzPkhiULtthJHoJvBbF3q26fzloPCK0hsvxtPVelvftw3zjbHWSkR2km9Z+4uxbDDK/6Zw9B8w=="
}, },
"react-markdown": { "react-markdown": {
"version": "8.0.3", "version": "8.0.7",
"resolved": "https://registry.npmjs.org/react-markdown/-/react-markdown-8.0.3.tgz", "resolved": "https://registry.npmjs.org/react-markdown/-/react-markdown-8.0.7.tgz",
"integrity": "sha512-We36SfqaKoVNpN1QqsZwWSv/OZt5J15LNgTLWynwAN5b265hrQrsjMtlRNwUvS+YyR3yDM8HpTNc4pK9H/Gc0A==", "integrity": "sha512-bvWbzG4MtOU62XqBx3Xx+zB2raaFFsq4mYiAzfjXJMEz2sixgeAfraA3tvzULF02ZdOMUOKTBFFaZJDDrq+BJQ==",
"requires": { "requires": {
"@types/hast": "^2.0.0", "@types/hast": "^2.0.0",
"@types/prop-types": "^15.0.0", "@types/prop-types": "^15.0.0",
@ -11664,7 +11664,7 @@
"remark-parse": "^10.0.0", "remark-parse": "^10.0.0",
"remark-rehype": "^10.0.0", "remark-rehype": "^10.0.0",
"space-separated-tokens": "^2.0.0", "space-separated-tokens": "^2.0.0",
"style-to-object": "^0.3.0", "style-to-object": "^0.4.0",
"unified": "^10.0.0", "unified": "^10.0.0",
"unist-util-visit": "^4.0.0", "unist-util-visit": "^4.0.0",
"vfile": "^5.0.0" "vfile": "^5.0.0"
@ -11677,20 +11677,20 @@
"dev": true "dev": true
}, },
"react-router": { "react-router": {
"version": "6.4.2", "version": "6.10.0",
"resolved": "https://registry.npmjs.org/react-router/-/react-router-6.4.2.tgz", "resolved": "https://registry.npmjs.org/react-router/-/react-router-6.10.0.tgz",
"integrity": "sha512-Rb0BAX9KHhVzT1OKhMvCDMw776aTYM0DtkxqUBP8dNBom3mPXlfNs76JNGK8wKJ1IZEY1+WGj+cvZxHVk/GiKw==", "integrity": "sha512-Nrg0BWpQqrC3ZFFkyewrflCud9dio9ME3ojHCF/WLsprJVzkq3q3UeEhMCAW1dobjeGbWgjNn/PVF6m46ANxXQ==",
"requires": { "requires": {
"@remix-run/router": "1.0.2" "@remix-run/router": "1.5.0"
} }
}, },
"react-router-dom": { "react-router-dom": {
"version": "6.4.2", "version": "6.10.0",
"resolved": "https://registry.npmjs.org/react-router-dom/-/react-router-dom-6.4.2.tgz", "resolved": "https://registry.npmjs.org/react-router-dom/-/react-router-dom-6.10.0.tgz",
"integrity": "sha512-yM1kjoTkpfjgczPrcyWrp+OuQMyB1WleICiiGfstnQYo/S8hPEEnVjr/RdmlH6yKK4Tnj1UGXFSa7uwAtmDoLQ==", "integrity": "sha512-E5dfxRPuXKJqzwSe/qGcqdwa18QiWC6f3H3cWXM24qj4N0/beCIf/CWTipop2xm7mR0RCS99NnaqPNjHtrAzCg==",
"requires": { "requires": {
"@remix-run/router": "1.0.2", "@remix-run/router": "1.5.0",
"react-router": "6.4.2" "react-router": "6.10.0"
} }
}, },
"react-syntax-highlighter": { "react-syntax-highlighter": {
@ -12279,9 +12279,9 @@
"dev": true "dev": true
}, },
"style-to-object": { "style-to-object": {
"version": "0.3.0", "version": "0.4.1",
"resolved": "https://registry.npmjs.org/style-to-object/-/style-to-object-0.3.0.tgz", "resolved": "https://registry.npmjs.org/style-to-object/-/style-to-object-0.4.1.tgz",
"integrity": "sha512-CzFnRRXhzWIdItT3OmF8SQfWyahHhjq3HwcMNCNLn+N7klOOqPjMeG/4JSu77D7ypZdGvSzvkrbyeTMizz2VrA==", "integrity": "sha512-HFpbb5gr2ypci7Qw+IOhnP2zOU7e77b+rzM+wTzXzfi1PrtBCX0E7Pk4wL4iTLnhzZ+JgEGAhX81ebTg/aYjQw==",
"requires": { "requires": {
"inline-style-parser": "0.1.1" "inline-style-parser": "0.1.1"
} }

View file

@ -12,7 +12,7 @@
"bstart": "npm run build && npm run start" "bstart": "npm run build && npm run start"
}, },
"dependencies": { "dependencies": {
"@heroicons/react": "^2.0.12", "@heroicons/react": "^2.0.17",
"ajv": "^8.11.0", "ajv": "^8.11.0",
"body-parser": "^1.20.1", "body-parser": "^1.20.1",
"crypto-js": "^4.1.1", "crypto-js": "^4.1.1",
@ -26,8 +26,8 @@
"react": "^18.2.0", "react": "^18.2.0",
"react-contenteditable": "^3.3.7", "react-contenteditable": "^3.3.7",
"react-dom": "^18.2.0", "react-dom": "^18.2.0",
"react-markdown": "^8.0.3", "react-markdown": "^8.0.7",
"react-router-dom": "^6.4.2", "react-router-dom": "^6.10.0",
"react-syntax-highlighter": "^15.5.0", "react-syntax-highlighter": "^15.5.0",
"rehype-mathjax": "^4.0.2", "rehype-mathjax": "^4.0.2",
"rehype-parse": "^8.0.4", "rehype-parse": "^8.0.4",