diff --git a/.github/workflows/prettier.yml b/.github/workflows/prettier.yml index 3aaff7d..1dc060e 100644 --- a/.github/workflows/prettier.yml +++ b/.github/workflows/prettier.yml @@ -19,7 +19,7 @@ jobs: - name: Prettify code uses: creyD/prettier_action@v3.0 with: - prettier_options: --write **/*.{html,js,md} + prettier_options: --write **/*.{html,js,md,vue,less,css} commit_message: 'docs: prettify code' env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file diff --git a/src/api/file.js b/src/api/file.js index 2fcf88f..ba74498 100644 --- a/src/api/file.js +++ b/src/api/file.js @@ -3,7 +3,6 @@ import OSS from "ali-oss"; import COS from "cos-js-sdk-v5"; import Buffer from "buffer-from"; import { v4 as uuidv4 } from "uuid"; -import { resolveConfigFile } from "prettier"; const defaultConfig = { username: "filess", @@ -98,7 +97,7 @@ async function ghFileUpload(content, filename) { }, }); const githubResourceUrl = "raw.githubusercontent.com/filess/images/master/"; - const cdnResourceUrl = "cdn.jsdelivr.net/gh/filess/images/"; + const cdnResourceUrl = "cdn.jsdelivr.net/gh/filess/images@master/"; return isDefault ? res.content.download_url.replace(githubResourceUrl, cdnResourceUrl) : res.content.download_url;