mirror of
https://github.com/artegoser/AnoPaper.git
synced 2024-10-05 14:45:58 +03:00
Compare commits
4 commits
3dfb453924
...
06e8f6ce41
Author | SHA1 | Date | |
---|---|---|---|
06e8f6ce41 | |||
24046c0f32 | |||
962cec0875 | |||
4e946879a2 |
7 changed files with 39 additions and 11 deletions
|
@ -23,7 +23,8 @@
|
||||||
- [ ] 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.
|
- [ ] 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
|
||||||
- [x] Maintaining statistics on sent notes, the number of notes received, number of deleted notes
|
- [x] Maintaining statistics on sent notes, the number of notes received, number of deleted notes (#8)
|
||||||
|
- [ ] Encrypting notes in the database
|
||||||
|
|
||||||
# AnoPaper v1.0.0
|
# AnoPaper v1.0.0
|
||||||
|
|
||||||
|
|
|
@ -1,8 +1,10 @@
|
||||||
## Anopaper - anonymous notes service
|
## Anopaper - anonymous notes service
|
||||||
|
|
||||||
## AnoPaper allows you to save and share notes anonymously.
|
---
|
||||||
|
|
||||||
### Functionality:
|
#### AnoPaper allows you to save and share notes anonymously.
|
||||||
|
|
||||||
|
##### Functionality:
|
||||||
|
|
||||||
- Notes support markdown format. For example, the entry: `### Level 3 Heading` would look like this:
|
- Notes support markdown format. For example, the entry: `### Level 3 Heading` would look like this:
|
||||||
|
|
||||||
|
@ -13,3 +15,5 @@
|
||||||
- Public notes are available only by link.
|
- Public notes are available only by link.
|
||||||
- When you click on the link, the note is saved locally and deleted from the server.
|
- When you click on the link, the note is saved locally and deleted from the server.
|
||||||
- Non-public notes are saved locally and are not sent to the server.`
|
- Non-public notes are saved locally and are not sent to the server.`
|
||||||
|
|
||||||
|
---
|
||||||
|
|
|
@ -1,8 +1,10 @@
|
||||||
## Anopaper - сервис анонимных записок
|
## Anopaper - сервис анонимных записок
|
||||||
|
|
||||||
## AnoPaper позволяет анонимно сохранять и публиковать заметки.
|
---
|
||||||
|
|
||||||
### Функционал:
|
#### AnoPaper позволяет анонимно сохранять и публиковать заметки.
|
||||||
|
|
||||||
|
##### Функционал:
|
||||||
|
|
||||||
- Заметки поддерживают формат markdown. Например запись: `### Заголовок 3-го уровня` будет выглядеть так:
|
- Заметки поддерживают формат markdown. Например запись: `### Заголовок 3-го уровня` будет выглядеть так:
|
||||||
|
|
||||||
|
@ -13,3 +15,5 @@
|
||||||
- Публичные заметки доступны только по ссылке.
|
- Публичные заметки доступны только по ссылке.
|
||||||
- При переходе по ссылке заметка сохраняется локально и удаляется с сервера.
|
- При переходе по ссылке заметка сохраняется локально и удаляется с сервера.
|
||||||
- Не публичные заметки сохраняются локально и не отправляются на сервер.`
|
- Не публичные заметки сохраняются локально и не отправляются на сервер.`
|
||||||
|
|
||||||
|
---
|
||||||
|
|
|
@ -31,6 +31,8 @@ import socket from "./components/socket";
|
||||||
import Settings from "./pages/settings";
|
import Settings from "./pages/settings";
|
||||||
import { useState } from "react";
|
import { useState } from "react";
|
||||||
import { localesProcess } from "./components/utils";
|
import { localesProcess } from "./components/utils";
|
||||||
|
import { ButtonWithIcon } from "./components/button";
|
||||||
|
import { LinkIcon } from "@heroicons/react/24/outline";
|
||||||
|
|
||||||
function App() {
|
function App() {
|
||||||
Storage.prototype.setObj = function (key, obj) {
|
Storage.prototype.setObj = function (key, obj) {
|
||||||
|
@ -82,9 +84,16 @@ function App() {
|
||||||
<Route
|
<Route
|
||||||
path="/about"
|
path="/about"
|
||||||
element={
|
element={
|
||||||
|
<>
|
||||||
<div className="col-span-4 md">
|
<div className="col-span-4 md">
|
||||||
<RenderMarkdown>{locals.about_md}</RenderMarkdown>
|
<RenderMarkdown>{locals.about_md}</RenderMarkdown>
|
||||||
</div>
|
</div>
|
||||||
|
<ButtonWithIcon
|
||||||
|
icon={LinkIcon}
|
||||||
|
text={locals.SourceCode}
|
||||||
|
href="https://github.com/artegoser/AnoPaper"
|
||||||
|
/>
|
||||||
|
</>
|
||||||
}
|
}
|
||||||
/>
|
/>
|
||||||
<Route path="/notes" element={<Notes />} />
|
<Route path="/notes" element={<Notes />} />
|
||||||
|
|
|
@ -44,4 +44,8 @@ function localesProcess(reRender) {
|
||||||
if (reRender) reRenderPage();
|
if (reRender) reRenderPage();
|
||||||
}
|
}
|
||||||
|
|
||||||
export { printDate, reRenderPage, localesProcess };
|
async function getNetLocale(lang, fileName) {
|
||||||
|
return (await (await fetch(`localisation/${lang}/${fileName}`)).text()) || "";
|
||||||
|
}
|
||||||
|
|
||||||
|
export { printDate, reRenderPage, localesProcess, getNetLocale };
|
||||||
|
|
|
@ -15,8 +15,10 @@
|
||||||
along with this program. If not, see <https://www.gnu.org/licenses/>.
|
along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
import { getNetLocale } from "../components/utils";
|
||||||
|
|
||||||
let en = {
|
let en = {
|
||||||
about_md: (await (await fetch("localisation/en/about.md")).text()) || "",
|
about_md: await getNetLocale("en", "about.md"),
|
||||||
Notes: "Notes",
|
Notes: "Notes",
|
||||||
Write: "Write",
|
Write: "Write",
|
||||||
Chat: "Chat",
|
Chat: "Chat",
|
||||||
|
@ -72,6 +74,7 @@ let en = {
|
||||||
NoNotesFound: "No notes found",
|
NoNotesFound: "No notes found",
|
||||||
LocalNote: "Local",
|
LocalNote: "Local",
|
||||||
Menu: "Menu",
|
Menu: "Menu",
|
||||||
|
SourceCode: "Source code",
|
||||||
};
|
};
|
||||||
|
|
||||||
export default en;
|
export default en;
|
||||||
|
|
|
@ -15,8 +15,10 @@
|
||||||
along with this program. If not, see <https://www.gnu.org/licenses/>.
|
along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
import { getNetLocale } from "../components/utils";
|
||||||
|
|
||||||
let ru = {
|
let ru = {
|
||||||
about_md: (await (await fetch("localisation/ru/about.md")).text()) || "",
|
about_md: await getNetLocale("ru", "about.md"),
|
||||||
Notes: "Заметки",
|
Notes: "Заметки",
|
||||||
Write: "Написать",
|
Write: "Написать",
|
||||||
Chat: "Чат",
|
Chat: "Чат",
|
||||||
|
@ -74,6 +76,7 @@ let ru = {
|
||||||
LocalNote: "Локальная",
|
LocalNote: "Локальная",
|
||||||
PublishNote: "Публичная",
|
PublishNote: "Публичная",
|
||||||
Menu: "Меню",
|
Menu: "Меню",
|
||||||
|
SourceCode: "Исходный код",
|
||||||
};
|
};
|
||||||
|
|
||||||
export default ru;
|
export default ru;
|
||||||
|
|
Loading…
Reference in a new issue