@celljs/ta-sync-cloud 4.14.0 → 4.15.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/host/index.mjs +52 -23
  2. package/package.json +8 -4
package/host/index.mjs CHANGED
@@ -716,16 +716,22 @@ class WebDavStore {
716
716
 
717
717
  // src/host.ts
718
718
  var WEBDAV = {
719
- title: { en: "WebDAV", "zh-CN": "WebDAV" },
719
+ title: { "zh-CN": "WebDAV", "zh-TW": "WebDAV", "en-US": "WebDAV", "ja-JP": "WebDAV" },
720
720
  hint: {
721
- en: "Jianguoyun, Nextcloud, a NAS of Synology or QNAP: the address of a folder of yours, and an app password.",
722
- "zh-CN": "坚果云、Nextcloud、群晖或威联通的 NAS:填你的一个文件夹的地址,以及应用密码。"
721
+ "zh-CN": "坚果云、Nextcloud、群晖或威联通的 NAS:填你的一个文件夹的地址,以及应用密码。",
722
+ "zh-TW": "堅果雲、Nextcloud、群暉或威聯通的 NAS:填你的一個資料夾的地址,以及應用密碼。",
723
+ "en-US": "Jianguoyun, Nextcloud, a NAS of Synology or QNAP: the address of a folder of yours, and an app password.",
724
+ "ja-JP": "Jianguoyun、Nextcloud、Synology または QNAP の NAS:あなたのフォルダーのアドレスとアプリパスワード。"
723
725
  },
724
726
  icon: "Cloud",
725
727
  options: [
726
- { key: "url", label: { en: "Address of a folder", "zh-CN": "文件夹地址" }, placeholder: "https://dav.jianguoyun.com/dav/Ta" },
727
- { key: "user", label: { en: "User", "zh-CN": "用户名" }, optional: true },
728
- { key: "password", label: { en: "Password", "zh-CN": "密码" }, secret: true, optional: true }
728
+ {
729
+ key: "url",
730
+ label: { "zh-CN": "文件夹地址", "zh-TW": "資料夾地址", "en-US": "Address of a folder", "ja-JP": "フォルダーアドレス" },
731
+ placeholder: "https://dav.jianguoyun.com/dav/Ta"
732
+ },
733
+ { key: "user", label: { "zh-CN": "用户名", "zh-TW": "使用者名稱", "en-US": "User", "ja-JP": "ユーザー名" }, optional: true },
734
+ { key: "password", label: { "zh-CN": "密码", "zh-TW": "密碼", "en-US": "Password", "ja-JP": "パスワード" }, secret: true, optional: true }
729
735
  ],
730
736
  key: (options) => `${WebDavUtil.base(options.url)}|${StoreUtil.text(options.user)}`,
731
737
  where: (options) => {
@@ -739,19 +745,31 @@ var WEBDAV = {
739
745
  create: (options) => new WebDavStore(options)
740
746
  };
741
747
  var S3 = {
742
- title: { en: "S3", "zh-CN": "S3" },
748
+ title: { "zh-CN": "S3", "zh-TW": "S3", "en-US": "S3", "ja-JP": "S3" },
743
749
  hint: {
744
- en: "AWS, Cloudflare R2, MinIO, Tencent COS, Alibaba OSS: a bucket, and keys that may read and write it. Leave the address empty for AWS.",
745
- "zh-CN": "AWS、Cloudflare R2、MinIO、腾讯云 COS、阿里云 OSS:一个存储桶,以及能读写它的密钥。用 AWS 时地址留空。"
750
+ "zh-CN": "AWS、Cloudflare R2、MinIO、腾讯云 COS、阿里云 OSS:一个存储桶,以及能读写它的密钥。用 AWS 时地址留空。",
751
+ "zh-TW": "AWS、Cloudflare R2、MinIO、騰訊雲 COS、阿里雲 OSS:一個儲存桶,以及能讀寫它的金鑰。用 AWS 時地址留空。",
752
+ "en-US": "AWS, Cloudflare R2, MinIO, Tencent COS, Alibaba OSS: a bucket, and keys that may read and write it. Leave the address empty for AWS.",
753
+ "ja-JP": "AWS、Cloudflare R2、MinIO、Tencent COS、Alibaba OSS:バケットと、読み書きできるキー。AWS を使用する場合はアドレスを空にしてください。"
746
754
  },
747
755
  icon: "Database",
748
756
  options: [
749
- { key: "endpoint", label: { en: "Address", "zh-CN": "服务地址" }, placeholder: "https://<account>.r2.cloudflarestorage.com", optional: true },
750
- { key: "bucket", label: { en: "Bucket", "zh-CN": "存储桶" }, placeholder: "my-ta" },
751
- { key: "prefix", label: { en: "Folder in it", "zh-CN": "桶内文件夹" }, placeholder: "ta", optional: true },
752
- { key: "region", label: { en: "Region", "zh-CN": "地域" }, placeholder: "us-east-1", optional: true },
753
- { key: "accessKeyId", label: { en: "Access key", "zh-CN": "访问密钥 ID" } },
754
- { key: "secretAccessKey", label: { en: "Secret", "zh-CN": "访问密钥" }, secret: true }
757
+ {
758
+ key: "endpoint",
759
+ label: { "zh-CN": "服务地址", "zh-TW": "服務位址", "en-US": "Address", "ja-JP": "アドレス" },
760
+ placeholder: "https://<account>.r2.cloudflarestorage.com",
761
+ optional: true
762
+ },
763
+ { key: "bucket", label: { "zh-CN": "存储桶", "zh-TW": "儲存桶", "en-US": "Bucket", "ja-JP": "バケット" }, placeholder: "my-ta" },
764
+ {
765
+ key: "prefix",
766
+ label: { "zh-CN": "桶内文件夹", "zh-TW": "桶內資料夾", "en-US": "Folder in it", "ja-JP": "内部フォルダー" },
767
+ placeholder: "ta",
768
+ optional: true
769
+ },
770
+ { key: "region", label: { "zh-CN": "地域", "zh-TW": "地域", "en-US": "Region", "ja-JP": "リージョン" }, placeholder: "us-east-1", optional: true },
771
+ { key: "accessKeyId", label: { "zh-CN": "访问密钥 ID", "zh-TW": "存取金鑰 ID", "en-US": "Access key", "ja-JP": "アクセスキー" } },
772
+ { key: "secretAccessKey", label: { "zh-CN": "访问密钥", "zh-TW": "存取金鑰", "en-US": "Secret", "ja-JP": "シークレット" }, secret: true }
755
773
  ],
756
774
  key: (options) => `${S3Util.bucketUrl(options)}|${S3Util.prefix(options)}`,
757
775
  where: (options) => {
@@ -765,18 +783,29 @@ var S3 = {
765
783
  function gitType(agentDir) {
766
784
  const key = (options) => `${GitUtil.url(options.url)}#${GitUtil.branch(options)}|${GitUtil.folder(options)}`;
767
785
  return {
768
- title: { en: "Git", "zh-CN": "Git" },
786
+ title: { "zh-CN": "Git", "zh-TW": "Git", "en-US": "Git", "ja-JP": "Git" },
769
787
  hint: {
770
- en: "GitHub, GitLab, Gitee, Gitea: a private repository of yours, and a token that may push to it; an SSH address needs no token, it uses the keys of this computer. Needs git installed.",
771
- "zh-CN": "GitHub、GitLab、Gitee、Gitea:你的一个私有仓库,以及能推送到它的令牌;用 SSH 地址时不用令牌,用本机的密钥。需要本机装有 git。"
788
+ "zh-CN": "GitHub、GitLab、Gitee、Gitea:你的一个私有仓库,以及能推送到它的令牌;用 SSH 地址时不用令牌,用本机的密钥。需要本机装有 git。",
789
+ "zh-TW": "GitHub、GitLab、Gitee、Gitea:你的一個私有儲存庫,以及能推送到它的令牌;用 SSH 地址時不用令牌,用本機的金鑰。需要本機裝有 git。",
790
+ "en-US": "GitHub, GitLab, Gitee, Gitea: a private repository of yours, and a token that may push to it; an SSH address needs no token, it uses the keys of this computer. Needs git installed.",
791
+ "ja-JP": "GitHub、GitLab、Gitee、Gitea:プライベートリポジトリと、それにプッシュできるトークン。SSH アドレスはトークンが不要で、このコンピューターのキーを使用します。git がインストールされている必要があります。"
772
792
  },
773
793
  icon: "GitBranch",
774
794
  options: [
775
- { key: "url", label: { en: "Repository", "zh-CN": "仓库地址" }, placeholder: "https://github.com/you/ta-sync.git" },
776
- { key: "branch", label: { en: "Branch", "zh-CN": "分支" }, placeholder: "main", optional: true },
777
- { key: "folder", label: { en: "Folder in it", "zh-CN": "仓库内文件夹" }, placeholder: "ta", optional: true },
778
- { key: "user", label: { en: "User", "zh-CN": "用户名" }, optional: true },
779
- { key: "token", label: { en: "Token", "zh-CN": "访问令牌" }, secret: true, optional: true }
795
+ {
796
+ key: "url",
797
+ label: { "zh-CN": "仓库地址", "zh-TW": "儲存庫位址", "en-US": "Repository", "ja-JP": "リポジトリ" },
798
+ placeholder: "https://github.com/you/ta-sync.git"
799
+ },
800
+ { key: "branch", label: { "zh-CN": "分支", "zh-TW": "分支", "en-US": "Branch", "ja-JP": "ブランチ" }, placeholder: "main", optional: true },
801
+ {
802
+ key: "folder",
803
+ label: { "zh-CN": "仓库内文件夹", "zh-TW": "儲存庫內資料夾", "en-US": "Folder in it", "ja-JP": "内部フォルダー" },
804
+ placeholder: "ta",
805
+ optional: true
806
+ },
807
+ { key: "user", label: { "zh-CN": "用户名", "zh-TW": "使用者名稱", "en-US": "User", "ja-JP": "ユーザー名" }, optional: true },
808
+ { key: "token", label: { "zh-CN": "访问令牌", "zh-TW": "存取令牌", "en-US": "Token", "ja-JP": "トークン" }, secret: true, optional: true }
780
809
  ],
781
810
  key,
782
811
  where: (options) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@celljs/ta-sync-cloud",
3
- "version": "4.14.0",
3
+ "version": "4.15.0",
4
4
  "description": "A pi package for Ta: sync of the user's computers in storage of their own, a WebDAV server (Jianguoyun, Nextcloud, a NAS) a bucket of S3 (AWS, Cloudflare R2, MinIO) or a git repository, sealed, with no relay",
5
5
  "keywords": [
6
6
  "pi-package"
@@ -26,7 +26,7 @@
26
26
  "watch": "tsc -b -w --preserveWatchOutput"
27
27
  },
28
28
  "devDependencies": {
29
- "@celljs/ta-protocol": "4.14.0"
29
+ "@celljs/ta-protocol": "4.15.0"
30
30
  },
31
31
  "publishConfig": {
32
32
  "access": "public"
@@ -34,11 +34,15 @@
34
34
  "pi": {
35
35
  "title": {
36
36
  "en": "Sync in your own storage",
37
- "zh-CN": "自己的存储同步"
37
+ "zh-CN": "自己的存储同步",
38
+ "zh-TW": "自己的儲存同步",
39
+ "ja-JP": "自分のストレージで同期"
38
40
  },
39
41
  "summary": {
40
42
  "en": "Sync your computers through storage of your own: a WebDAV server (Jianguoyun, Nextcloud, a NAS) or a bucket of S3 (AWS, Cloudflare R2, MinIO) or a git repository (GitHub, GitLab, Gitee). Sealed before it leaves, no relay.",
41
- "zh-CN": "让几台电脑经你自己的存储同步:WebDAV(坚果云、Nextcloud、NAS)或 S3 存储桶(AWS、Cloudflare R2、MinIO)或 git 仓库(GitHub、GitLab、Gitee)。离开电脑前就已加密,不经过中继。"
43
+ "zh-CN": "让几台电脑经你自己的存储同步:WebDAV(坚果云、Nextcloud、NAS)或 S3 存储桶(AWS、Cloudflare R2、MinIO)或 git 仓库(GitHub、GitLab、Gitee)。离开电脑前就已加密,不经过中继。",
44
+ "zh-TW": "讓幾台電腦經你自己的儲存同步:WebDAV(堅果雲、Nextcloud、NAS)或 S3 儲存桶(AWS、Cloudflare R2、MinIO)或 git 儲存庫(GitHub、GitLab、Gitee)。離開電腦前就已加密,不經過中繼。",
45
+ "ja-JP": "自分のストレージでパソコン間を同期:WebDAV(Nextcloud、NAS など)、S3 バケット(AWS、Cloudflare R2、MinIO)、git リポジトリ(GitHub、GitLab、Gitee)。送信前に暗号化され、リレーは通りません。"
42
46
  },
43
47
  "icon": "Cloud",
44
48
  "host": "./host/index.mjs",