📦 Chore(custom): update vscode setting

This commit is contained in:
Kuingsmile
2026-06-11 02:22:23 -07:00
parent c35a32d416
commit 6bbc08fba7
9 changed files with 272 additions and 96 deletions
+12 -1
View File
@@ -16,5 +16,16 @@
"useTabs": false, "useTabs": false,
"endOfLine": "lf", "endOfLine": "lf",
"plugins": ["prettier-plugin-tailwindcss"], "plugins": ["prettier-plugin-tailwindcss"],
"tailwindStylesheet": "./src/renderer/index.css" "tailwindStylesheet": "./src/renderer/index.css",
"overrides": [
{
"files": "*.md",
"options": {
"parser": "markdown",
"proseWrap": "preserve",
"embeddedLanguageFormatting": "auto",
"printWidth": 120
}
}
]
} }
+10 -1
View File
@@ -1,3 +1,12 @@
{ {
"recommendations": ["dbaeumer.vscode-eslint", "stylelint.vscode-stylelint"] "recommendations": [
"Vue.volar",
"dbaeumer.vscode-eslint",
"stylelint.vscode-stylelint",
"esbenp.prettier-vscode",
"EditorConfig.EditorConfig",
"lokalise.i18n-ally",
"bradlc.vscode-tailwindcss",
"vitest.explorer"
]
} }
+16 -7
View File
@@ -5,23 +5,31 @@
"name": "Debug Main Process", "name": "Debug Main Process",
"type": "node", "type": "node",
"request": "launch", "request": "launch",
"cwd": "${workspaceRoot}", "cwd": "${workspaceFolder}",
"runtimeExecutable": "${workspaceRoot}/node_modules/.bin/electron-vite", "runtimeExecutable": "${workspaceFolder}/node_modules/.bin/electron-vite",
"windows": { "windows": {
"runtimeExecutable": "${workspaceRoot}/node_modules/.bin/electron-vite.cmd" "runtimeExecutable": "${workspaceFolder}/node_modules/.bin/electron-vite.cmd"
}, },
"runtimeArgs": ["--sourcemap"], "runtimeArgs": ["dev", "--sourcemap"],
"env": { "env": {
"REMOTE_DEBUGGING_PORT": "9222" "REMOTE_DEBUGGING_PORT": "9222"
} },
"console": "integratedTerminal",
"outputCapture": "std",
"autoAttachChildProcesses": true,
"skipFiles": ["<node_internals>/**", "${workspaceFolder}/node_modules/**"],
"resolveSourceMapLocations": ["${workspaceFolder}/**", "!**/node_modules/**"]
}, },
{ {
"name": "Debug Renderer Process", "name": "Debug Renderer Process",
"port": 9222,
"request": "attach",
"type": "chrome", "type": "chrome",
"request": "attach",
"port": 9222,
"webRoot": "${workspaceFolder}/src/renderer", "webRoot": "${workspaceFolder}/src/renderer",
"sourceMaps": true,
"timeout": 60000, "timeout": 60000,
"skipFiles": ["${workspaceFolder}/node_modules/**"],
"resolveSourceMapLocations": ["${workspaceFolder}/**", "!**/node_modules/**"],
"presentation": { "presentation": {
"hidden": true "hidden": true
} }
@@ -31,6 +39,7 @@
{ {
"name": "Debug All", "name": "Debug All",
"configurations": ["Debug Main Process", "Debug Renderer Process"], "configurations": ["Debug Main Process", "Debug Renderer Process"],
"stopAll": true,
"presentation": { "presentation": {
"order": 1 "order": 1
} }
+101 -19
View File
@@ -1,9 +1,77 @@
{ {
"npm.packageManager": "yarn",
"editor.detectIndentation": false,
"editor.insertSpaces": true,
"editor.tabSize": 2,
"editor.rulers": [120],
"editor.formatOnSave": false,
"editor.codeActionsOnSave": {
"source.fixAll.eslint": "explicit",
"source.fixAll.stylelint": "explicit"
},
"files.encoding": "utf8",
"files.eol": "\n",
"files.insertFinalNewline": true,
"files.trimFinalNewlines": true,
"files.trimTrailingWhitespace": true,
"files.watcherExclude": {
"**/.git/objects/**": true,
"**/.git/subtree-cache/**": true,
"**/dist/**": true,
"**/dist_electron/**": true,
"**/node_modules/**": true,
"**/out/**": true
},
"search.exclude": {
"**/dist": true,
"**/dist_electron": true,
"**/node_modules": true,
"**/out": true
},
"explorer.fileNesting.enabled": true,
"explorer.fileNesting.patterns": {
"package.json": "yarn.lock, pnpm-lock.yaml, package-lock.json",
"tsconfig.json": "tsconfig.*.json",
"electron.vite.config.js": "electron-builder.json",
"README.md": "README_cn.md, FAQ.md, FAQ_EN.md, CHANGELOG.md"
},
"eslint.useFlatConfig": true, "eslint.useFlatConfig": true,
"eslint.experimental.useFlatConfig": null,
"eslint.run": "onSave", "eslint.run": "onSave",
"eslint.codeActionsOnSave.mode": "all", "eslint.codeActionsOnSave.mode": "all",
"eslint.format.enable": true, "eslint.format.enable": true,
"eslint.workingDirectories": [
{
"mode": "auto"
}
],
"eslint.validate": ["javascript", "javascriptreact", "typescript", "typescriptreact", "vue", "json", "jsonc"],
"stylelint.validate": ["css", "scss", "less", "vue"],
"css.validate": false,
"scss.validate": false,
"less.validate": false,
"prettier.requireConfig": true,
"prettier.useEditorConfig": true,
"js/ts.tsdk.path": "node_modules/typescript/lib",
"js/ts.tsdk.promptToUseWorkspaceVersion": true,
"js/ts.tsserver.maxMemory": 4096,
"js/ts.preferences.quoteStyle": "single",
"js/ts.updateImportsOnFileMove.enabled": "always",
"tailwindCSS.includeLanguages": {
"vue": "html"
},
"emmet.includeLanguages": {
"vue": "html",
"vue-html": "html"
},
"i18n-ally.localesPaths": ["src/renderer/i18n/locales", "src/main/i18n/locales"],
"i18n-ally.keystyle": "nested",
"i18n-ally.sortKeys": true,
"i18n-ally.namespace": true,
"i18n-ally.enabledParsers": ["json", "yaml"],
"i18n-ally.sourceLanguage": "en",
"i18n-ally.displayLanguage": "zh-CN",
"i18n-ally.enabledFrameworks": ["vue"],
"i18n-ally.editor.preferEditor": true,
"[typescript]": { "[typescript]": {
"editor.defaultFormatter": "dbaeumer.vscode-eslint", "editor.defaultFormatter": "dbaeumer.vscode-eslint",
"editor.codeActionsOnSave": { "editor.codeActionsOnSave": {
@@ -21,7 +89,8 @@
"[vue]": { "[vue]": {
"editor.defaultFormatter": "dbaeumer.vscode-eslint", "editor.defaultFormatter": "dbaeumer.vscode-eslint",
"editor.codeActionsOnSave": { "editor.codeActionsOnSave": {
"source.fixAll.eslint": "always" "source.fixAll.eslint": "always",
"source.fixAll.stylelint": "always"
}, },
"editor.formatOnSave": false "editor.formatOnSave": false
}, },
@@ -39,8 +108,21 @@
}, },
"editor.formatOnSave": false "editor.formatOnSave": false
}, },
"editor.codeActionsOnSave": { "[json]": {
"source.fixAll.eslint": "explicit" "editor.defaultFormatter": "esbenp.prettier-vscode",
"editor.formatOnSave": true
},
"[jsonc]": {
"editor.defaultFormatter": "esbenp.prettier-vscode",
"editor.formatOnSave": true
},
"[markdown]": {
"editor.defaultFormatter": "esbenp.prettier-vscode",
"editor.formatOnSave": true
},
"[yaml]": {
"editor.defaultFormatter": "esbenp.prettier-vscode",
"editor.formatOnSave": true
}, },
"[css]": { "[css]": {
"editor.defaultFormatter": "stylelint.vscode-stylelint", "editor.defaultFormatter": "stylelint.vscode-stylelint",
@@ -49,19 +131,19 @@
}, },
"editor.formatOnSave": false "editor.formatOnSave": false
}, },
"eslint.validate": ["javascript", "javascriptreact", "vue", "typescript", "typescriptreact", "json", "jsonc"], "[scss]": {
"githubPullRequests.ignoredPullRequestBranches": ["dev"], "editor.defaultFormatter": "stylelint.vscode-stylelint",
"i18n-ally.localesPaths": ["src\\renderer\\i18n\\locales", "resources\\i18n", "src\\main\\i18n\\locales"], "editor.codeActionsOnSave": {
"i18n-ally.keystyle": "nested", "source.fixAll.stylelint": "always"
"i18n-ally.sortKeys": true, },
"i18n-ally.namespace": true, "editor.formatOnSave": false
"i18n-ally.enabledParsers": ["json", "yaml"], },
"i18n-ally.sourceLanguage": "en", "[less]": {
"i18n-ally.displayLanguage": "zh-CN", "editor.defaultFormatter": "stylelint.vscode-stylelint",
"i18n-ally.enabledFrameworks": ["vue"], "editor.codeActionsOnSave": {
"i18n-ally.editor.preferEditor": true, "source.fixAll.stylelint": "always"
"js/ts.tsdk.path": "node_modules\\typescript\\lib", },
"css.validate": false, "editor.formatOnSave": false
"scss.validate": false, },
"less.validate": false "githubPullRequests.ignoredPullRequestBranches": ["dev"]
} }
+89 -19
View File
@@ -1,26 +1,96 @@
{ {
// See https://go.microsoft.com/fwlink/?LinkId=733558
// for the documentation about the tasks.json format
"version": "2.0.0", "version": "2.0.0",
"tasks": [ "tasks": [
{ {
"label": "electron-debug", "label": "yarn: install",
"type": "process", "type": "shell",
"command": "./node_modules/.bin/vue-cli-service", "command": "yarn",
"windows": { "problemMatcher": [],
"command": "./node_modules/.bin/vue-cli-service.cmd" "presentation": {
}, "panel": "dedicated"
"isBackground": true, }
"args": ["electron:serve", "--debug"], },
"problemMatcher": { {
"owner": "custom", "label": "yarn: dev",
"pattern": { "type": "shell",
"regexp": "" "command": "yarn",
}, "args": ["dev"],
"background": { "problemMatcher": [],
"beginsPattern": "Starting development server\\.\\.\\.", "presentation": {
"endsPattern": "Not launching electron as debug argument was passed\\." "panel": "dedicated",
} "reveal": "always"
}
},
{
"label": "yarn: build",
"type": "shell",
"command": "yarn",
"args": ["build"],
"group": "build",
"problemMatcher": [],
"presentation": {
"panel": "dedicated"
}
},
{
"label": "yarn: test",
"type": "shell",
"command": "yarn",
"args": ["test", "--run"],
"group": "test",
"problemMatcher": [],
"presentation": {
"panel": "dedicated"
}
},
{
"label": "yarn: lint",
"type": "shell",
"command": "yarn",
"args": ["lint"],
"problemMatcher": "$eslint-stylish",
"presentation": {
"panel": "dedicated"
}
},
{
"label": "yarn: lint:fix",
"type": "shell",
"command": "yarn",
"args": ["lint:fix"],
"problemMatcher": "$eslint-stylish",
"presentation": {
"panel": "dedicated"
}
},
{
"label": "yarn: lint:style",
"type": "shell",
"command": "yarn",
"args": ["lint:style"],
"problemMatcher": [],
"presentation": {
"panel": "dedicated"
}
},
{
"label": "yarn: lint:dpdm",
"type": "shell",
"command": "yarn",
"args": ["lint:dpdm"],
"problemMatcher": [],
"presentation": {
"panel": "dedicated"
}
},
{
"label": "yarn: lint:dpdm:renderer",
"type": "shell",
"command": "yarn",
"args": ["lint:dpdm:renderer"],
"problemMatcher": [],
"presentation": {
"panel": "dedicated"
} }
} }
] ]
+11 -11
View File
@@ -17,23 +17,23 @@ diverse, inclusive, and healthy community.
Examples of behavior that contributes to a positive environment for our Examples of behavior that contributes to a positive environment for our
community include: community include:
* Demonstrating empathy and kindness toward other people - Demonstrating empathy and kindness toward other people
* Being respectful of differing opinions, viewpoints, and experiences - Being respectful of differing opinions, viewpoints, and experiences
* Giving and gracefully accepting constructive feedback - Giving and gracefully accepting constructive feedback
* Accepting responsibility and apologizing to those affected by our mistakes, - Accepting responsibility and apologizing to those affected by our mistakes,
and learning from the experience and learning from the experience
* Focusing on what is best not just for us as individuals, but for the - Focusing on what is best not just for us as individuals, but for the
overall community overall community
Examples of unacceptable behavior include: Examples of unacceptable behavior include:
* The use of sexualized language or imagery, and sexual attention or - The use of sexualized language or imagery, and sexual attention or
advances of any kind advances of any kind
* Trolling, insulting or derogatory comments, and personal or political attacks - Trolling, insulting or derogatory comments, and personal or political attacks
* Public or private harassment - Public or private harassment
* Publishing others' private information, such as a physical or email - Publishing others' private information, such as a physical or email
address, without their explicit permission address, without their explicit permission
* Other conduct which could reasonably be considered inappropriate in a - Other conduct which could reasonably be considered inappropriate in a
professional setting professional setting
## Enforcement Responsibilities ## Enforcement Responsibilities
@@ -106,7 +106,7 @@ Violating these terms may lead to a permanent ban.
### 4. Permanent Ban ### 4. Permanent Ban
**Community Impact**: Demonstrating a pattern of violation of community **Community Impact**: Demonstrating a pattern of violation of community
standards, including sustained inappropriate behavior, harassment of an standards, including sustained inappropriate behavior, harassment of an
individual, or aggression toward or disparagement of classes of individuals. individual, or aggression toward or disparagement of classes of individuals.
**Consequence**: A permanent ban from any sort of public interaction within **Consequence**: A permanent ban from any sort of public interaction within
+11 -18
View File
@@ -1,23 +1,16 @@
The MIT License (MIT) The MIT License (MIT)
Copyright (c) 2017-present, Molunerfinn Copyright (c) 2017-present, Molunerfinn Copyright (c) 2019 诗人的咸鱼 Copyright (c) 2023-present, KuingSmile
Copyright (c) 2019 诗人的咸鱼
Copyright (c) 2023-present, KuingSmile
Permission is hereby granted, free of charge, to any person obtaining a copy Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
of this software and associated documentation files (the "Software"), to deal documentation files (the "Software"), to deal in the Software without restriction, including without limitation the
in the Software without restriction, including without limitation the rights rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell persons to whom the Software is furnished to do so, subject to the following conditions:
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in The above copyright notice and this permission notice shall be included in all copies or substantial portions of the
all copies or substantial portions of the Software. Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
+11 -10
View File
@@ -141,16 +141,16 @@ PicList supports a wide range of storage providers.
| Storage Provider | Album Delete | Cloud Management | | Storage Provider | Album Delete | Cloud Management |
| :-------------------------- | :----------: | :--------------: | | :-------------------------- | :----------: | :--------------: |
| **AWS S3** (and compatible) | ✅ | ✅ | | **AWS S3** (and compatible) | ✅ | ✅ |
| **Aliyun OSS** | ✅ | ✅ | | **Aliyun OSS** | ✅ | ✅ |
| **Tencent COS** | ✅ | ✅ | | **Tencent COS** | ✅ | ✅ |
| **GitHub / Gitee** | ✅ | ✅ | | **GitHub / Gitee** | ✅ | ✅ |
| **S.EE / Imgur** | ✅ | ✅ | | **S.EE / Imgur** | ✅ | ✅ |
| **WebDAV / SFTP** | ✅ | ✅ | | **WebDAV / SFTP** | ✅ | ✅ |
| **Local File System** | ✅ | ✅ | | **Local File System** | ✅ | ✅ |
| **Lsky Pro / Doge Cloud** | ✅ | ✅ | | **Lsky Pro / Doge Cloud** | ✅ | ✅ |
*Note: The cloud delete feature for custom API image hosts requires implementation via PicList's scripting system based on the specific API.* _Note: The cloud delete feature for custom API image hosts requires implementation via PicList's scripting system based on the specific API._
## 🚀 Development ## 🚀 Development
@@ -198,5 +198,6 @@ Copyright (c) 2023-present Kuingsmile
<div align="center"> <div align="center">
<p>Star Me ⭐️</p> <p>Star Me ⭐️</p>
[![Star History Chart](https://api.star-history.com/svg?repos=Kuingsmile/PicList&type=Date)](https://star-history.com/#Kuingsmile/PicList&Date) [![Star History Chart](https://api.star-history.com/svg?repos=Kuingsmile/PicList&type=Date)](https://star-history.com/#Kuingsmile/PicList&Date)
</div> </div>
+11 -10
View File
@@ -141,16 +141,16 @@ PicList 支持广泛的存储提供商。
| 存储平台 | 相册云删除 | 云存储管理 | | 存储平台 | 相册云删除 | 云存储管理 |
| :---------------------- | :--------: | :--------: | | :---------------------- | :--------: | :--------: |
| **AWS S3** (及兼容 API) | ✅ | ✅ | | **AWS S3** (及兼容 API) | ✅ | ✅ |
| **阿里云 OSS** | ✅ | ✅ | | **阿里云 OSS** | ✅ | ✅ |
| **腾讯云 COS** | ✅ | ✅ | | **腾讯云 COS** | ✅ | ✅ |
| **GitHub / Gitee** | ✅ | ✅ | | **GitHub / Gitee** | ✅ | ✅ |
| **S.EE / Imgur** | ✅ | ✅ | | **S.EE / Imgur** | ✅ | ✅ |
| **WebDAV / SFTP** | ✅ | ✅ | | **WebDAV / SFTP** | ✅ | ✅ |
| **本地文件系统** | ✅ | ✅ | | **本地文件系统** | ✅ | ✅ |
| **兰空图床 / 多吉云** | ✅ | ✅ | | **兰空图床 / 多吉云** | ✅ | ✅ |
*注意:自定义 API 图床的云删除功能需要通过 PicList 脚本系统根据具体 API 实现。* _注意:自定义 API 图床的云删除功能需要通过 PicList 脚本系统根据具体 API 实现。_
## 🚀 开发说明 ## 🚀 开发说明
@@ -198,5 +198,6 @@ Copyright (c) 2023-present Kuingsmile
<div align="center"> <div align="center">
<p>Star Me ⭐️</p> <p>Star Me ⭐️</p>
[![Star History Chart](https://api.star-history.com/svg?repos=Kuingsmile/PicList&type=Date)](https://star-history.com/#Kuingsmile/PicList&Date) [![Star History Chart](https://api.star-history.com/svg?repos=Kuingsmile/PicList&type=Date)](https://star-history.com/#Kuingsmile/PicList&Date)
</div> </div>