-
Notifications
You must be signed in to change notification settings - Fork 310
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
gavingaozhangmin
committed
Aug 2, 2023
0 parents
commit 95a87e2
Showing
313 changed files
with
60,761 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,86 @@ | ||
name: Bug report | ||
description: Problems with the software | ||
title: '[Bug] {{请输入标题,不要留空 - Please enter a title, do not leave it blank.}}' | ||
labels: ['bug'] | ||
body: | ||
- type: markdown | ||
attributes: | ||
value: | | ||
**非常感谢您的反馈!Thank you very much for your feedback!** | ||
有关讨论、建议或者咨询的内容请去往[讨论区](https://github.com/gaozhangmin/aliyunpan/discussions)。 | ||
For suggestions or help, please consider using [Github Discussion](https://github.com/gaozhangmin/aliyunpan/discussions) instead. | ||
- type: checkboxes | ||
attributes: | ||
label: Please search before asking | ||
description: | | ||
辛苦提 Bug 前,检索一下 [问题](https://github.com/gaozhangmin/aliyunpan/issues?q=) 列表是否已经存在类似问题。麻烦提供系统版本、录屏或者截图、复现步骤,有助于更好的解决问题。 | ||
非 Bug 相关,烦请移步 [讨论区](https://github.com/gaozhangmin/aliyunpan/discussions) 找寻有关讨论。 | ||
Please search [issues](https://github.com/gaozhangmin/aliyunpan/issues) to check if your issue has already been reported. | ||
Not related to bugs, please go to the [discussion area](https://github.com/gaozhangmin/aliyunpan/discussions) for relevant discussions. | ||
options: | ||
- label: > | ||
I searched in the [issues](https://github.com/gaozhangmin/aliyunpan/issues) and found nothing similar. | ||
required: true | ||
- type: checkboxes | ||
attributes: | ||
label: Please read README | ||
description: | | ||
辛苦提 Bug 前,请仔细阅读一下 README 中的 [Troubleshooting](https://github.com/gaozhangmin/aliyunpan/tree/main#troubleshooting) 是否已经给出相关解决方案 | ||
Before reporting bugs (especially for issues such as missing icons in the desktop application, permission pop-ups, and damaged report files), please carefully read the [Troubleshooting](https://github.com/gaozhangmin/aliyunpan/tree/main#troubleshooting) section in README to see if relevant solutions have already been provided. | ||
options: | ||
- label: I have read the troubleshooting section in the README in detail. | ||
required: true | ||
|
||
- type: input | ||
attributes: | ||
label: 使用的版本 | ||
description: > | ||
请提供您正在使用的 小白羊 的版本。Please provide the version of 小白羊 you are using. For example, `3.11.7`. | ||
validations: | ||
required: true | ||
- type: input | ||
attributes: | ||
label: 系统 System | ||
description: > | ||
请提供您正在使用的系统。Please provide the version of the System you are using. For example, `macOS 11.2.3`. | ||
validations: | ||
required: true | ||
- type: textarea | ||
attributes: | ||
label: 复现步骤 Reproduce step | ||
description: > | ||
请提供完整且简明的复现步骤,以方便及时定位并解决问题。Please provide complete and concise reproduction steps to facilitate timely identification and resolution of the issue. | ||
validations: | ||
required: true | ||
- type: textarea | ||
attributes: | ||
label: 你看到了什么错误?What errors do you see? | ||
validations: | ||
required: true | ||
- type: textarea | ||
attributes: | ||
label: 你期望看到什么?What did you expect to see? | ||
validations: | ||
required: true | ||
- type: textarea | ||
attributes: | ||
label: 还有其他的内容吗?Anything else? | ||
- type: checkboxes | ||
attributes: | ||
label: 你是否愿意提交一份 PR 来修改这个错误?Are you willing to submit a PR? | ||
description: > | ||
我们期待开发人员和用户的帮助,以解决在 小白羊 中发现的任何问题。 如果您愿意通过提交 PR 来解决此问题,请勾选。We eagerly anticipate developers' and users' support and collaboration in resolving any issues found in 小白羊. If you are willing to offer a solution by submitting a PR to fix this matter, kindly mark the checkbox provided. | ||
options: | ||
- label: 我愿意提供 PR! I'm willing to submit a PR! | ||
- type: markdown | ||
attributes: | ||
value: '非常感谢您的反馈!Thank you very much for your feedback!' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
blank_issues_enabled: false | ||
contact_links: | ||
- name: Ask a question or get support | ||
url: https://github.com/gaozhangmin/aliyunpan/discussions/categories/q-a | ||
about: Ask a question or request support for XiaoBaiYang |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
name: Feature | ||
description: Add new feature, improve code, and more | ||
labels: [ "enhancement" ] | ||
body: | ||
- type: markdown | ||
attributes: | ||
value: | | ||
**非常感谢您的功能建议!Thank you very much for your feature proposal!** | ||
- type: checkboxes | ||
attributes: | ||
label: Search before asking | ||
description: > | ||
请在提交前搜索 [issues](https://github.com/gaozhangmin/aliyunpan/issues),以查看您的问题是否已经被提交。 | ||
Please search [issues](https://github.com/gaozhangmin/aliyunpan/issues) to check if your issue has already been reported. | ||
options: | ||
- label: > | ||
在 [issues](https://github.com/gaozhangmin/aliyunpan/issues) 中没有找到类似的内容。 | ||
I searched in the [issues](https://github.com/gaozhangmin/aliyunpan/issues) and found nothing similar. | ||
required: true | ||
- type: input | ||
attributes: | ||
label: feature | ||
description: > | ||
一句话概括你的功能建议。Please provide a brief description of your feature proposal. | ||
validations: | ||
required: true | ||
- type: textarea | ||
attributes: | ||
label: 描述 Motivation | ||
description: > | ||
解释一下这个功能将如何解决您的问题。 | ||
Explain how this feature will resolve your problem, including the way it addresses the issue that you are facing. | ||
validations: | ||
required: true | ||
- type: textarea | ||
attributes: | ||
label: Solution | ||
description: 描述建议的解决方案。Describe the proposed solution. (if you have any additional information, please add it here.) | ||
- type: textarea | ||
attributes: | ||
label: 还有其他内容吗?Anything else? | ||
- type: checkboxes | ||
attributes: | ||
label: 你是否愿意提交一份 PR?Are you willing to submit a PR? | ||
description: > | ||
我们期待开发人员和用户的帮助,以解决在 小白羊 中发现的任何问题。 如果您愿意通过提交 PR 来解决此问题,请勾选。We eagerly anticipate developers' and users' support and collaboration in resolving any issues found in 小白羊. If you are willing to offer a solution by submitting a PR to fix this matter, kindly mark the checkbox provided. | ||
options: | ||
- label: 我愿意提供 PR! I'm willing to submit a PR! | ||
- type: markdown | ||
attributes: | ||
value: "非常感谢您的功能建议!Thank you very much for your feature proposal!" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,92 @@ | ||
name: Build | ||
|
||
on: | ||
push: | ||
tags: | ||
- '*.*.*' | ||
|
||
jobs: | ||
create-release: | ||
permissions: | ||
contents: write | ||
runs-on: ubuntu-20.04 | ||
outputs: | ||
release_id: ${{ steps.create-release.outputs.id }} | ||
release_upload_url: ${{ steps.create-release.outputs.upload_url }} | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Get version | ||
id: get_version | ||
uses: battila7/get-version-action@v2 | ||
|
||
- name: Create Release | ||
id: create-release | ||
uses: ncipollo/release-action@v1 | ||
with: | ||
draft: true | ||
name: ${{ steps.get_version.outputs.version }} | ||
tag: ${{ steps.get_version.outputs.version }} | ||
body: "${{ steps.tag.outputs.message }}" | ||
release: | ||
needs: create-release | ||
name: build and release | ||
runs-on: ${{ matrix.os }} | ||
|
||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: [windows-latest, macos-latest, ubuntu-latest] | ||
|
||
permissions: | ||
contents: write | ||
|
||
steps: | ||
- name: Checkout Git repository | ||
uses: actions/checkout@v3 | ||
|
||
- name: Install Node | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: 16 | ||
registry-url: https://registry.npmjs.org/ | ||
|
||
- name: Get yarn cache directory path | ||
id: yarn-cache-dir-path | ||
run: echo "::set-output name=dir::$(yarn cache dir)" | ||
|
||
- uses: actions/cache@v3 | ||
id: cache-yarn-cache | ||
with: | ||
path: ${{ steps.yarn-cache-dir-path.outputs.dir }} | ||
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }} | ||
restore-keys: | | ||
${{ runner.os }}-yarn- | ||
- uses: actions/cache@v3 | ||
id: cache-node-modules | ||
with: | ||
path: node_modules | ||
key: ${{ runner.os }}-${{ matrix.node-version }}-nodemodules-${{ hashFiles('**/yarn.lock') }} | ||
restore-keys: | | ||
${{ runner.os }}-${{ matrix.node-version }}-nodemodules- | ||
- name: Install Dependencies | ||
if: | | ||
steps.cache-yarn-cache.outputs.cache-hit != 'true' || | ||
steps.cache-node-modules.outputs.cache-hit != 'true' | ||
run: | | ||
npm install -g yarn | ||
yarn install | ||
- name: Make Aria2c Executable | ||
if: matrix.os != 'windows-latest' | ||
run: | | ||
chmod -R 777 ./static/engine/ | ||
- name: Build Electron app | ||
uses: samuelmeuli/[email protected] | ||
with: | ||
release: ${{ startsWith(github.ref, 'refs/tags') }} | ||
github_token: ${{ secrets.github_token }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
node_modules | ||
.DS_Store | ||
dist* | ||
*.local | ||
.debug.env | ||
|
||
tmp | ||
**/.tmp | ||
release | ||
|
||
.idea | ||
yarn.lock | ||
localVersion | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
{ | ||
"singleQuote": true, | ||
"printWidth": 260, | ||
"semi": false, | ||
"quoteProps": "as-needed", | ||
"jsxSingleQuote": false, | ||
"trailingComma": "none", | ||
"bracketSpacing": true, | ||
"jsxBracketSameLine": true, | ||
"arrowParens": "always", | ||
"requirePragma": false, | ||
"insertPragma": false, | ||
"wrapAttributes": false, | ||
"sortAttributes": true, | ||
"proseWrap": "preserve", | ||
"htmlWhitespaceSensitivity": "css", | ||
"endOfLine": "lf", | ||
"overrides": [ | ||
{ | ||
"files": ".prettierrc", | ||
"options": { "parser": "json" } | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
MIT License | ||
|
||
Copyright (c) 2023 Zhangao | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
in the Software without restriction, including without limitation the rights | ||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
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 all | ||
copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
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. |
Oops, something went wrong.