{"id":13794361,"url":"https://github.com/W4J1e/picgo-plugin-dogecloud","last_synced_at":"2025-05-12T21:30:55.839Z","repository":{"id":42449206,"uuid":"443524866","full_name":"W4J1e/picgo-plugin-dogecloud","owner":"W4J1e","description":"一个上传图片到多吉云存储的picgo插件。","archived":false,"fork":false,"pushed_at":"2025-04-12T12:06:39.000Z","size":70,"stargazers_count":18,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-12T12:46:23.081Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/W4J1e.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-01-01T11:27:41.000Z","updated_at":"2025-04-12T12:06:42.000Z","dependencies_parsed_at":"2023-02-09T21:15:17.959Z","dependency_job_id":null,"html_url":"https://github.com/W4J1e/picgo-plugin-dogecloud","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/W4J1e%2Fpicgo-plugin-dogecloud","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/W4J1e%2Fpicgo-plugin-dogecloud/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/W4J1e%2Fpicgo-plugin-dogecloud/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/W4J1e%2Fpicgo-plugin-dogecloud/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/W4J1e","download_url":"https://codeload.github.com/W4J1e/picgo-plugin-dogecloud/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253824988,"owners_count":21970113,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-03T23:00:39.626Z","updated_at":"2025-05-12T21:30:55.828Z","avatar_url":"https://github.com/W4J1e.png","language":"TypeScript","funding_links":[],"categories":[":rocket: Plugin for PicGo"],"sub_categories":[],"readme":"## picgo-plugin-dogecloud\n\n[PicGo](https://github.com/PicGo/PicGo-Core) 多吉云(dogecloud)上传插件。支持 PicGo GUI 。\n\n多吉云(dogecloud)云存储使用的是腾讯云COS或阿里云OSS作为存储空间的底层服务，支持AWS S3 SDK上传。~~由于并非自家开发的底层存储服务，所以相较于通用的AWS S3 SDK上传，要多传输一个临时`sessionToken`~~。而现有的[picgo-plugin-s3](https://github.com/wayjam/picgo-plugin-s3)无法直接使用，因此拿来小小改了一下，感谢前任开发者[wayjam](https://github.com/wayjam)。\n\n关于此插件的详细说明可见[《PicGo插件：上传到多吉云存储》](https://hin.cool/posts/picgoplugin.html)。\n\n## 特别鸣谢\n\n**特别感谢开发者[@mingxuan](https://github.com/yabostone)对本插件的杰出贡献，从而大大简化了使用本插件的流程。**\n\n**特别感谢开发者[@dwxh](https://github.com/d-w-x)对插件适配新版`picgo-core`的巨大帮助。**\n\n## 使用说明\n\n使用本插件的必需条件是，你首先应当创建一个标准存储空间，因为**只有标准存储才支持 SDK 操作**。\n\n1.在[密钥管理](https://console.dogecloud.com/user/keys)页面获取`AccessKey`和`SecretKey`；\n\n2.在`云存储`中选择对应的`空间列表`，点击右侧`SDK参数`，记录`s3Bucket`；\n\n### 填入配置\n\n| Key               | 说明                          | 例子                               |\n| ----------------- | ----------------------------- | ---------------------------------- |\n| `AccessKey`    | 用户AccessKey      | 1v80b5xxxxx9sc9b0 |\n| `SecretKey` | 用户SecretKey   | 6adcaf272xxxxxxxx52f26ddsad244cb |\n| `bucketName`      | s3bucket                | `s-gz-2384-xxxxxxx`                   |\n| `urlPrefix` | 存储空间绑定的CDN域名 | `https://img.example.com` |\n| `uploadPath` | 上传路径                      | `{year}/{month}/{fullName}`        |\n| `urlSuffix` | 自定义后缀 | `/shuiyin` |\n| ~~`forceRefreshToken`~~ | ~~是否强制刷新Token~~ | ~~每天可调用八千次，建议打开~~ |\n\n![填写图示](https://user-images.githubusercontent.com/74824162/161233133-c80757f2-fb5c-4bcf-8134-67eb1b2a8b6b.jpg)\n\n**上传路径为空则默认以原始文件名上传到根目录，如指定目录则必需添加 payload：**\n\n| payload      | 描述                   |\n| ------------ | ---------------------- |\n| `{year}`     | 当前日期 - 年          |\n| `{month}`    | 当前日期 - 月          |\n| `{day}`      | 当前日期 - 日          |\n| `{fullName}` | 完整文件名（含扩展名） |\n| `{fileName}` | 文件名（不含扩展名）   |\n| `{extName}`  | 扩展名（不含`.`）      |\n| `{md5}`      | 图片 MD5 计算值        |\n| `{sha1}`     | 图片 SHA1 计算值       |\n| `{sha256}`   | 图片 SHA256 计算值     |\n\n\n\n### 示例\n\nGUI端配置参考上方“配置”，忽略此项。\n\n```json\n    \"dogecloud\": {\n      \"AccessKey\": \"xxxxxxx\",\n      \"SecretKey\": \"xxxxxxxxxxxx\",\n      \"bucketName\": \"s-gz-2384-xxxxxxx\",\n      \"uploadPath\": \"{year}/{md5}.{extName}\",\n      \"urlPrefix\": \"https://img.example.com/\"\n    }\n```\n\n如果 PicGo 像以上配置，执行上传：`picgo upload sample.png`，则最终得到图片地址为：`https://img.example.com/2022/4aa4f41e38817e5fd38ac870f40dbc70.jpg`\n\n## TODO:\n\n12/04/2025 已解决此前所有遗留的问题，更新了 aws-sdk 的版本。\n\n## 发布\n\nWith the following command, a versioned commit which modifies the `version` of `package.json` would be genereated and pushed to the origin. Github Action will automatically compile this pacakage and publish it to NPM.\n\n```sh\nnpm run patch\nnpm run minor\nnpm run major\n```\n\n## 开源许可\n\nReleased under the [MIT License](https://github.com/wayjam/picgo-plugin-s3/blob/master/LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FW4J1e%2Fpicgo-plugin-dogecloud","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FW4J1e%2Fpicgo-plugin-dogecloud","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FW4J1e%2Fpicgo-plugin-dogecloud/lists"}