piclist 1.9.11 → 1.9.12

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.
@@ -1,22 +1,22 @@
1
- name: publish
2
- on:
3
- push:
4
- branches:
5
- - alpha
6
- jobs:
7
- build:
8
- runs-on: ubuntu-latest
9
- steps:
10
- - name: Clone repo
11
- uses: actions/checkout@v1
12
- - name: Setup node
13
- uses: actions/setup-node@v1
14
- with:
15
- node-version: '16.x'
16
- registry-url: 'https://registry.npmjs.org'
17
- - name: Install modules
18
- run: yarn
19
- - run: npm run build
20
- - run: npm publish --tag alpha --access public
21
- env:
1
+ name: publish
2
+ on:
3
+ push:
4
+ branches:
5
+ - alpha
6
+ jobs:
7
+ build:
8
+ runs-on: ubuntu-latest
9
+ steps:
10
+ - name: Clone repo
11
+ uses: actions/checkout@v1
12
+ - name: Setup node
13
+ uses: actions/setup-node@v1
14
+ with:
15
+ node-version: '16.x'
16
+ registry-url: 'https://registry.npmjs.org'
17
+ - name: Install modules
18
+ run: yarn
19
+ - run: npm run build
20
+ - run: npm publish --tag alpha --access public
21
+ env:
22
22
  NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
@@ -1,42 +1,42 @@
1
- name: Build and Push Docker Image
2
-
3
- on:
4
- push:
5
- tags:
6
- - '*'
7
- workflow_dispatch:
8
-
9
- jobs:
10
- build-and-push:
11
- runs-on: ubuntu-latest
12
- steps:
13
- - name: Checkout Repository
14
- uses: actions/checkout@v2
15
-
16
- - name: Set up Docker Buildx
17
- uses: docker/setup-buildx-action@v1
18
-
19
- - name: Login to Docker Hub
20
- uses: docker/login-action@v1
21
- with:
22
- username: ${{ secrets.DOCKERHUB_USERNAME }}
23
- password: ${{ secrets.DOCKERHUB_ACCESS_TOKEN }}
24
-
25
- - name: Build and Push Docker Image
26
- uses: docker/build-push-action@v2
27
- with:
28
- context: .
29
- file: ./Dockerfile
30
- push: true
31
- tags: kuingsmile/piclist:latest
32
- platforms: linux/amd64,linux/arm64
33
-
34
- - name: Build and Push Docker Image with Tag
35
- if: startsWith(github.ref, 'refs/tags/')
36
- uses: docker/build-push-action@v2
37
- with:
38
- context: .
39
- file: ./Dockerfile
40
- push: true
41
- tags: kuingsmile/piclist:${{ github.ref_name }}
42
- platforms: linux/amd64,linux/arm64
1
+ name: Build and Push Docker Image
2
+
3
+ on:
4
+ push:
5
+ tags:
6
+ - '*'
7
+ workflow_dispatch:
8
+
9
+ jobs:
10
+ build-and-push:
11
+ runs-on: ubuntu-latest
12
+ steps:
13
+ - name: Checkout Repository
14
+ uses: actions/checkout@v2
15
+
16
+ - name: Set up Docker Buildx
17
+ uses: docker/setup-buildx-action@v1
18
+
19
+ - name: Login to Docker Hub
20
+ uses: docker/login-action@v1
21
+ with:
22
+ username: ${{ secrets.DOCKERHUB_USERNAME }}
23
+ password: ${{ secrets.DOCKERHUB_ACCESS_TOKEN }}
24
+
25
+ - name: Build and Push Docker Image
26
+ uses: docker/build-push-action@v2
27
+ with:
28
+ context: .
29
+ file: ./Dockerfile
30
+ push: true
31
+ tags: kuingsmile/piclist:latest
32
+ platforms: linux/amd64,linux/arm64
33
+
34
+ - name: Build and Push Docker Image with Tag
35
+ if: startsWith(github.ref, 'refs/tags/')
36
+ uses: docker/build-push-action@v2
37
+ with:
38
+ context: .
39
+ file: ./Dockerfile
40
+ push: true
41
+ tags: kuingsmile/piclist:${{ github.ref_name }}
42
+ platforms: linux/amd64,linux/arm64
@@ -1,22 +1,22 @@
1
- name: publish
2
- on:
3
- push:
4
- branches:
5
- - master
6
- jobs:
7
- build:
8
- runs-on: ubuntu-latest
9
- steps:
10
- - name: Clone repo
11
- uses: actions/checkout@v1
12
- - name: Setup node
13
- uses: actions/setup-node@v1
14
- with:
15
- node-version: '16.x'
16
- registry-url: 'https://registry.npmjs.org'
17
- - name: Install modules
18
- run: yarn
19
- - run: npm run build
20
- - run: npm publish --access public
21
- env:
1
+ name: publish
2
+ on:
3
+ push:
4
+ branches:
5
+ - master
6
+ jobs:
7
+ build:
8
+ runs-on: ubuntu-latest
9
+ steps:
10
+ - name: Clone repo
11
+ uses: actions/checkout@v1
12
+ - name: Setup node
13
+ uses: actions/setup-node@v1
14
+ with:
15
+ node-version: '16.x'
16
+ registry-url: 'https://registry.npmjs.org'
17
+ - name: Install modules
18
+ run: yarn
19
+ - run: npm run build
20
+ - run: npm publish --access public
21
+ env:
22
22
  NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
@@ -1,19 +1,19 @@
1
- name: manually-trigger
2
- on: workflow_dispatch
3
- jobs:
4
- build:
5
- runs-on: ubuntu-latest
6
- steps:
7
- - name: Clone repo
8
- uses: actions/checkout@v1
9
- - name: Setup node
10
- uses: actions/setup-node@v1
11
- with:
12
- node-version: '16.x'
13
- registry-url: 'https://registry.npmjs.org'
14
- - name: Install modules
15
- run: yarn
16
- - run: npm run build
17
- - run: npm publish --access public
18
- env:
1
+ name: manually-trigger
2
+ on: workflow_dispatch
3
+ jobs:
4
+ build:
5
+ runs-on: ubuntu-latest
6
+ steps:
7
+ - name: Clone repo
8
+ uses: actions/checkout@v1
9
+ - name: Setup node
10
+ uses: actions/setup-node@v1
11
+ with:
12
+ node-version: '16.x'
13
+ registry-url: 'https://registry.npmjs.org'
14
+ - name: Install modules
15
+ run: yarn
16
+ - run: npm run build
17
+ - run: npm publish --access public
18
+ env:
19
19
  NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
package/CHANGELOG.md CHANGED
@@ -1,3 +1,29 @@
1
+ ## :tada: 1.9.12 (2025-06-03)
2
+
3
+
4
+ ### :sparkles: Features
5
+
6
+ * **custom:** add error handling for missing SM.MS token in uploader plugin ([b229807](https://github.com/Kuingsmile/PicList-Core/commit/b229807))
7
+ * **custom:** improve image upload handling and error notifications in uploader plugin ([50e8dc8](https://github.com/Kuingsmile/PicList-Core/commit/50e8dc8))
8
+
9
+
10
+ ### :bug: Bug Fixes
11
+
12
+ * **custom:** fix typo ([a3dc79b](https://github.com/Kuingsmile/PicList-Core/commit/a3dc79b))
13
+
14
+
15
+ ### :package: Chore
16
+
17
+ * **custom:** remove unused files ([0a6827f](https://github.com/Kuingsmile/PicList-Core/commit/0a6827f))
18
+
19
+
20
+ ### :pencil: Documentation
21
+
22
+ * **custom:** add DeepWiki reference to English and Chinese README files ([50c4b09](https://github.com/Kuingsmile/PicList-Core/commit/50c4b09))
23
+ * **custom:** update readme ([abc7986](https://github.com/Kuingsmile/PicList-Core/commit/abc7986))
24
+
25
+
26
+
1
27
  ## :tada: 1.9.11 (2025-02-27)
2
28
 
3
29
 
package/License CHANGED
@@ -1,22 +1,22 @@
1
- MIT License
2
-
3
- Copyright (c) 2018 Molunerfinn
4
- Copyright (c) 2023-present Kuingsmile
5
-
6
- Permission is hereby granted, free of charge, to any person obtaining a copy
7
- of this software and associated documentation files (the "Software"), to deal
8
- in the Software without restriction, including without limitation the rights
9
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10
- copies of the Software, and to permit persons to whom the Software is
11
- furnished to do so, subject to the following conditions:
12
-
13
- The above copyright notice and this permission notice shall be included in all
14
- copies or substantial portions of the Software.
15
-
16
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22
- SOFTWARE.
1
+ MIT License
2
+
3
+ Copyright (c) 2018 Molunerfinn
4
+ Copyright (c) 2023-present Kuingsmile
5
+
6
+ Permission is hereby granted, free of charge, to any person obtaining a copy
7
+ of this software and associated documentation files (the "Software"), to deal
8
+ in the Software without restriction, including without limitation the rights
9
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10
+ copies of the Software, and to permit persons to whom the Software is
11
+ furnished to do so, subject to the following conditions:
12
+
13
+ The above copyright notice and this permission notice shall be included in all
14
+ copies or substantial portions of the Software.
15
+
16
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22
+ SOFTWARE.
package/README.md CHANGED
@@ -8,30 +8,40 @@ English | [简体中文](./README_cn.md)
8
8
 
9
9
  ![picgo-core](https://cdn.jsdelivr.net/gh/Molunerfinn/test/picgo/picgo-core-fix.jpg)
10
10
 
11
- A tool for picture uploading. Both CLI & api supports. It also supports plugin system, please check [Awesome-PicGo](https://github.com/PicGo/Awesome-PicGo) to find powerful plugins.
11
+ A powerful tool for image uploading with both CLI & API support. PicList-Core extends PicGo-Core with additional features while maintaining plugin compatibility. Check out [Awesome-PicGo](https://github.com/PicGo/Awesome-PicGo) for a collection of powerful plugins.
12
12
 
13
- Based on PicGo-Core with additional features.
13
+ You can refer to the [DeepWiki of PiclList-Core](https://deepwiki.com/Kuingsmile/PicList-Core/) for more information.
14
14
 
15
- **Typora support natively**.
15
+ **Natively supports Typora integration**.
16
16
 
17
- ## New Features
17
+ ## Enhanced Features
18
18
 
19
- - Add watermark, compress and convert image format features
20
- - Set watermark and compress parameters through `picgo set buildin watermark` and `picgo set buildin compress` under CLI command
21
- - Image processing is beforeTransform, which does not conflict with any plugin
22
- - Add support for advanced rename, you can set the rename rule through `picgo set buildin rename` under the CLI command
23
- - Add new built-in picbed: WebDAV, SFTP, Local path, AWS S3
24
- - Adds support for imgur account uploads
25
- - Built-in server just like PicList-Desktop server, you can use `picgo-server` to start the server
26
- - Fix several bugs of PicGo-Core
19
+ - **Image processing capabilities**:
20
+ - Add watermarks, compress images, and convert formats
21
+ - Configure via `picgo set buildin watermark` and `picgo set buildin compress` CLI commands
22
+ - Processing happens during beforeTransform phase, ensuring compatibility with all plugins
23
+
24
+ - **Advanced renaming**:
25
+ - Set custom rename rules via `picgo set buildin rename`
26
+
27
+ - **Additional built-in image hosting services**:
28
+ - WebDAV, SFTP, Local path, AWS S3
29
+ - Improved Imgur support with account-based uploads
30
+
31
+ - **Built-in server**:
32
+ - Similar to PicList-Desktop server
33
+ - Launch with `picgo-server` command
34
+
35
+ - **Bug fixes**:
36
+ - Addresses several issues from the original PicGo-Core
27
37
 
28
38
  ## Installation
29
39
 
30
- PicList should be installed with node.js >= 16
40
+ PicList requires Node.js >= 16
31
41
 
32
- ### before install
42
+ ### Prerequisites
33
43
 
34
- As PicList depends on [sharp](https://sharp.pixelplumbing.com/), you need to install sharp before install PicList.
44
+ PicList depends on [sharp](https://sharp.pixelplumbing.com/). Install it first:
35
45
 
36
46
  ```bash
37
47
  npm config set sharp_binary_host "https://npmmirror.com/mirrors/sharp"
package/README_cn.md CHANGED
@@ -8,30 +8,40 @@
8
8
 
9
9
  ![picgo-core](https://cdn.jsdelivr.net/gh/Molunerfinn/test/picgo/picgo-core-fix.jpg)
10
10
 
11
- 一个用于图片上传的工具。同时支持CLI和API调用。它还支持插件系统,请查看[Awesome-PicGo](https://github.com/PicGo/Awesome-PicGo)获取强大的插件。
11
+ PicList-Core 是一个功能强大的图片上传工具,提供 CLI API 两种调用方式。它在 PicGo-Core 的基础上增强了功能,同时保持插件兼容性。查看 [Awesome-PicGo](https://github.com/PicGo/Awesome-PicGo) 获取丰富的插件资源。
12
12
 
13
- 基于PicGo-Core并添加了更多功能。
13
+ 你可以查看 [PiclList-Core 的 DeepWiki](https://deepwiki.com/Kuingsmile/PicList-Core/) 获取更多信息。
14
14
 
15
- **原生支持Typora**。
15
+ **原生支持 Typora 集成**。
16
16
 
17
- ## 新增功能
17
+ ## 增强功能
18
18
 
19
- - 增加水印、压缩和转换图片格式功能
20
- - 通过CLI命令`picgo set buildin watermark`和`picgo set buildin compress`设置水印和压缩参数
21
- - 图像处理在beforeTransform阶段进行,不会与任何插件冲突
22
- - 增加高级重命名支持,你可以通过CLI命令`picgo set buildin rename`设置重命名规则
23
- - 新增内置图床:WebDAV、SFTP、本地路径、AWS S3
24
- - 增加对imgur账户上传的支持
25
- - 内置服务器功能,与PicList-Desktop服务器相似,你可以使用`picgo-server`启动服务器
26
- - 修复了PicGo-Core的多个错误
19
+ - **图像处理能力**:
20
+ - 添加水印、压缩图片和转换格式
21
+ - 通过 `picgo set buildin watermark` 和 `picgo set buildin compress` CLI 命令进行配置
22
+ - 处理过程发生在 beforeTransform 阶段,确保与所有插件兼容
23
+
24
+ - **高级重命名**:
25
+ - 通过 `picgo set buildin rename` 设置自定义重命名规则
26
+
27
+ - **额外内置图床**:
28
+ - WebDAV、SFTP、本地路径、AWS S3
29
+ - 改进的 Imgur 支持,支持账户上传
30
+
31
+ - **内置服务器**:
32
+ - 类似于 PicList-Desktop 服务器
33
+ - 使用 `picgo-server` 命令启动
34
+
35
+ - **错误修复**:
36
+ - 解决了原始 PicGo-Core 的多个问题
27
37
 
28
38
  ## 安装
29
39
 
30
- PicList需要node.js >= 16版本
40
+ PicList 需要 Node.js >= 16
31
41
 
32
- ### 安装前准备
42
+ ### 前置条件
33
43
 
34
- 由于PicList依赖[sharp](https://sharp.pixelplumbing.com/),你需要在安装PicList前先安装sharp。
44
+ PicList 依赖 [sharp](https://sharp.pixelplumbing.com/),请先安装它:
35
45
 
36
46
  ```bash
37
47
  npm config set sharp_binary_host "https://npmmirror.com/mirrors/sharp"
package/bin/picgo CHANGED
@@ -1,25 +1,25 @@
1
- #!/usr/bin/env node
2
- const path = require('path')
3
- const minimist = require('minimist')
4
- const os = require('os')
5
-
6
- const argv = minimist(process.argv.slice(2))
7
- let configPath = argv.c || argv.config || ''
8
- if (configPath !== true && configPath !== '') {
9
- configPath = configPath.replace(/^~/, os.homedir())
10
- configPath = path.resolve(configPath)
11
- } else {
12
- configPath = ''
13
- }
14
- const { PicGo } = require('..')
15
- const picgo = new PicGo(configPath)
16
- picgo.registerCommands()
17
-
18
- try {
19
- picgo.cmd.program.parse(process.argv)
20
- } catch (e) {
21
- picgo.log.error(e)
22
- if (process.argv.includes('--debug')) {
23
- Promise.reject(e)
24
- }
25
- }
1
+ #!/usr/bin/env node
2
+ const path = require('path')
3
+ const minimist = require('minimist')
4
+ const os = require('os')
5
+
6
+ const argv = minimist(process.argv.slice(2))
7
+ let configPath = argv.c || argv.config || ''
8
+ if (configPath !== true && configPath !== '') {
9
+ configPath = configPath.replace(/^~/, os.homedir())
10
+ configPath = path.resolve(configPath)
11
+ } else {
12
+ configPath = ''
13
+ }
14
+ const { PicGo } = require('..')
15
+ const picgo = new PicGo(configPath)
16
+ picgo.registerCommands()
17
+
18
+ try {
19
+ picgo.cmd.program.parse(process.argv)
20
+ } catch (e) {
21
+ picgo.log.error(e)
22
+ if (process.argv.includes('--debug')) {
23
+ Promise.reject(e)
24
+ }
25
+ }