From 89b498e8c86ae982c74a4b069057abbdf8bfd586 Mon Sep 17 00:00:00 2001 From: luolongfei Date: Sat, 25 Feb 2023 14:54:00 +0800 Subject: [PATCH 1/3] update zh.json --- packages/frontend/locales/zh.json | 32 +++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/packages/frontend/locales/zh.json b/packages/frontend/locales/zh.json index fc26c35..a1fc664 100644 --- a/packages/frontend/locales/zh.json +++ b/packages/frontend/locales/zh.json @@ -6,12 +6,12 @@ "create": "创建", "loading": "加载中", "mode": "模式", - "views": "{n, plural, =0 {可查看次数} =1 {1 次查看} other {# 次查看}}", - "minutes": "{n, plural, =0 {有效期(分钟)} =1 {1 分钟} other {# 分钟}}", + "views": "{n, plural, =0 {可读次数} =1 {1 次查看} other {# 次查看}}", + "minutes": "{n, plural, =0 {有效期(分钟)} =1 {1 分钟} other {# 分钟}}", "max": "最大值", "share_link": "分享链接", - "copy_clipboard": "复制到剪切版", - "copied_to_clipboard": "已复制到剪切板", + "copy_clipboard": "复制到粘贴板", + "copied_to_clipboard": "已成功复制到粘贴板", "encrypting": "加密", "decrypting": "解密", "uploading": "上传", @@ -19,29 +19,29 @@ "qr_code": "二维码" }, "home": { - "intro": "一键轻松发送 完全加密的 密信或者文件。只需创建一个密信然后分享链接。", + "intro": "飞鸽传书,一键传输完全加密的密信或文件,阅后即焚。", "explanation": "该密信会在{type}后失效。", "new_note": "新建密信", - "new_note_notice": "可用性警示:
由于加密鸽的所有数据是全部保存在内存中的,所以如果加密鸽的可用内存被用光了那么它将会删除最早的密信以释放内存,因此不保证该密信的可用性。
(一般情况下是您应该是不会遇到这个问题,只是警示一下。)", + "new_note_notice": "提醒:
密信保存在内存中,如果内存满了,则最早的密信将被删除以释放内存,因此不保证该密信的可用性。一般不会出现这种情况,无需担心。", "errors": { - "note_to_big": "无法创建密信,这个密信太大了!", - "note_error": "无法创建密信,请再试一遍。", - "max": "最大文件大小: {n}", - "empty_content": "密信为空!" + "note_to_big": "创建失败,密信过大。", + "note_error": "创建失败,请稍后重试。", + "max": "次数上限:{n}", + "empty_content": "密信不能为空。" }, "messages": { - "note_created": "注释创建。" + "note_created": "密信创建成功。" } }, "show": { "errors": { - "not_found": "该密信无法被找到或者它已经被删除了!", - "decryption_failed": "密钥错误!您可能不小心粘贴了一个不完整的链接或者正在尝试破解该密信!但无论如何,该密信已被销毁!", - "unsupported_type": "不支持的票据类型。" + "not_found": "密信不存在,可能已被查看或删除。", + "decryption_failed": "密钥错误,无法查看。", + "unsupported_type": "不支持的类型。" }, - "explanation": "点击下方的按钮可以查看密信,如果它到达了限制将会被删除", + "explanation": "点击下方按钮即可查看密信,阅后即焚。", "show_note": "查看密信", - "warning_will_not_see_again": "您将无法再次查看该密信", + "warning_will_not_see_again": "你将无法再次查看该密信,请尽快复制到粘贴板。", "download_all": "下载全部" }, "file_upload": { From ba485cd1bd26e2b803bb2301d8d2eb46b5382729 Mon Sep 17 00:00:00 2001 From: luolongfei Date: Sat, 25 Feb 2023 15:07:41 +0800 Subject: [PATCH 2/3] =?UTF-8?q?=E8=87=AA=E5=AE=9A=E4=B9=89=E4=B8=80?= =?UTF-8?q?=E4=BA=9B=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docker-compose.yaml | 20 +++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-) diff --git a/docker-compose.yaml b/docker-compose.yaml index d4f9089..6c398c7 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -1,18 +1,28 @@ -version: '3.8' +version: '3.9' services: redis: image: redis:7-alpine # Set a size limit. See link below on how to customise. # https://redis.io/docs/manual/eviction/ - # command: redis-server --maxmemory 1gb --maxmemory-policy allkeys-lru + command: redis-server --maxmemory 200mb --maxmemory-policy allkeys-lru app: - image: cupcakearmy/cryptgeon:latest + build: + context: . + dockerfile: Dockerfile depends_on: - redis environment: # Size limit for a single note. - SIZE_LIMIT: 4 MiB + SIZE_LIMIT: 28 MiB + MAX_VIEWS: 20 + MAX_EXPIRATION: 360 + ALLOW_ADVANCED: true + VERBOSITY: error + THEME_IMAGE: "https://images.llfapp.com/copy_logo.jpg" + THEME_TEXT: "飞鸽传书,一键传输完全加密的密信或文件,阅后即焚。" + THEME_PAGE_TITLE: "飞鸽传书 | 加密文本传输,阅后即焚" + THEME_FAVICON: "https://images.llfapp.com/paper.png" ports: - - 80:8000 + - 2000:8000 From 364715e2331946e11fb7ca966d1e5b3b8bb42c93 Mon Sep 17 00:00:00 2001 From: luolongfei Date: Sat, 25 Feb 2023 21:20:34 +0800 Subject: [PATCH 3/3] Update docker-compose.yaml --- docker-compose.yaml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/docker-compose.yaml b/docker-compose.yaml index 6c398c7..799f45b 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -8,9 +8,7 @@ services: command: redis-server --maxmemory 200mb --maxmemory-policy allkeys-lru app: - build: - context: . - dockerfile: Dockerfile + image: cupcakearmy/cryptgeon:latest depends_on: - redis environment: