You've already forked gitea-banana-theme
初始化提交
This commit is contained in:
21
.github/CHANGELOG.md
vendored
Normal file
21
.github/CHANGELOG.md
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
### 🎉
|
||||
|
||||
### ✨ Feature
|
||||
|
||||
#### CSS 变量
|
||||
|
||||
### 🌈 Style
|
||||
|
||||
##### 更符合 GitHub 风格
|
||||
|
||||
### 🐞 Fix
|
||||
|
||||
## 📃 English
|
||||
|
||||
#### CSS Variable
|
||||
|
||||
##### More GitHub-like style
|
||||
|
||||
```text
|
||||
在 English 下方补充上面 Feature 以下部分的内容的中译英
|
||||
```
|
||||
15
.github/FUNDING.yml
vendored
Normal file
15
.github/FUNDING.yml
vendored
Normal file
@@ -0,0 +1,15 @@
|
||||
# These are supported funding model platforms
|
||||
|
||||
github: # Replace with up to 4 GitHub Sponsors-enabled usernames e.g., [user1, user2]
|
||||
patreon: # Replace with a single Patreon username
|
||||
open_collective: # Replace with a single Open Collective username
|
||||
ko_fi: # Replace with a single Ko-fi username
|
||||
tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel
|
||||
community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry
|
||||
liberapay: # Replace with a single Liberapay username
|
||||
issuehunt: # Replace with a single IssueHunt username
|
||||
lfx_crowdfunding: # Replace with a single LFX Crowdfunding project-name e.g., cloud-foundry
|
||||
polar: # Replace with a single Polar username
|
||||
buy_me_a_coffee: # Replace with a single Buy Me a Coffee username
|
||||
thanks_dev: # Replace with a single thanks.dev username
|
||||
custom: ["https://afdian.com/a/luting"]
|
||||
76
.github/ISSUE_TEMPLATE/1-style-bug-report.yml
vendored
Normal file
76
.github/ISSUE_TEMPLATE/1-style-bug-report.yml
vendored
Normal file
@@ -0,0 +1,76 @@
|
||||
name: 样式错误报告 ( Style bug report )
|
||||
description: 安装主题后出现颜色/位置错误等 ( Color/position errors occur after installing the theme )
|
||||
labels: ["style bug"]
|
||||
body:
|
||||
- type: markdown
|
||||
attributes:
|
||||
value: |
|
||||
1. 请使用最新的主题, 并使用 Ctrl+F5 刷新页面查看 Bug 是否消失 ( Please use the latest theme and refresh the page with Ctrl+F5 to see if the Bug has disappeared )
|
||||
2. 请查看项目根目录下的 CHANGELOG.md 文件, 查看是否有修复该 Bug 的相关描述 ( Please check the CHANGELOG.md file in the project root directory for descriptions of fixes related to this Bug )
|
||||
3. 如果有相关描述, 可以查看 README.md 自己编译开发版本是否修复了该 Bug ( If there are related descriptions, you can check if the Bug has been fixed by compiling the development version yourself in the README.md )
|
||||
4. 请查看 Gitea 默认主题下是否有同样的错误, 确认非主题问题 ( Please check if there is the same error in the default Gitea theme, confirming that it is not a theme problem )
|
||||
- type: input
|
||||
id: theme-version
|
||||
attributes:
|
||||
label: 主题版本 ( Theme Version )
|
||||
description:
|
||||
主题的版本, 如果是开发版本可以查看 CSS 文件中 `--theme-version` 的值, 或者查看项目根目录下的 `package.json` 文件
|
||||
( The version of the theme, if it is a development version, you can check the value of `--theme-version` in the
|
||||
CSS file, or check the `package.json` file in the project root directory )
|
||||
placeholder: ex. 1.24.5
|
||||
validations:
|
||||
required: true
|
||||
- type: input
|
||||
id: gitea-version
|
||||
attributes:
|
||||
label: Gitea 版本 ( Gitea Version )
|
||||
description: 应用主题的 Gitea 版本 ( What version of Gitea are you using? )
|
||||
placeholder: ex. 1.24.5
|
||||
validations:
|
||||
required: true
|
||||
- type: textarea
|
||||
id: actual-behavior
|
||||
attributes:
|
||||
label: 实际表现 ( Actual Behavior )
|
||||
description: 请描述实际的错误表现 ( Please describe the actual error presentation )
|
||||
placeholder: 页面底部的颜色错误 ( The color of the bottom of the page is incorrect )
|
||||
validations:
|
||||
required: true
|
||||
- type: textarea
|
||||
id: expected-behavior
|
||||
attributes:
|
||||
label: 期望表现 ( Expected Behavior )
|
||||
description: 请描述期望的正确表现 ( Please describe the expected correct presentation )
|
||||
placeholder: 页面底部的颜色应该是白色 ( The color of the bottom of the page should be white )
|
||||
validations:
|
||||
required: true
|
||||
- type: textarea
|
||||
id: theme-screenshot
|
||||
attributes:
|
||||
label: 应用主题后的截图 ( Screenshot of the theme applied )
|
||||
description: 请上传应用主题后的截图 ( Please upload a screenshot of the theme applied )
|
||||
validations:
|
||||
required: true
|
||||
- type: textarea
|
||||
id: steps-to-reproduce
|
||||
attributes:
|
||||
label: 复现步骤 ( Steps to reproduce )
|
||||
description: 请描述如何复现错误 ( Please describe how to reproduce the error )
|
||||
placeholder: 1. 安装主题 2. 刷新页面 3. 查看错误 ( 1. Install the theme 2. Refresh the page 3. View the error )
|
||||
validations:
|
||||
required: false
|
||||
- type: textarea
|
||||
id: bug-description
|
||||
attributes:
|
||||
label: 错误描述 ( Bug Description )
|
||||
description: 请描述错误的具体表现 ( Please describe the specific presentation of the error )
|
||||
placeholder: 页面底部的颜色错误 ( The color of the bottom of the page is incorrect )
|
||||
validations:
|
||||
required: false
|
||||
- type: textarea
|
||||
id: gitea-screenshot
|
||||
attributes:
|
||||
label: Gitea 默认主题下的截图 ( Screenshot of the default Gitea theme )
|
||||
description: 请上传 Gitea 默认主题下的截图 ( Please upload a screenshot of the default Gitea theme )
|
||||
validations:
|
||||
required: false
|
||||
32
.github/ISSUE_TEMPLATE/2-feature-request.yml
vendored
Normal file
32
.github/ISSUE_TEMPLATE/2-feature-request.yml
vendored
Normal file
@@ -0,0 +1,32 @@
|
||||
name: 功能请求 ( Feature request )
|
||||
description: 提出新的功能建议 ( Suggest new features )
|
||||
labels: ["enhancement"]
|
||||
body:
|
||||
- type: markdown
|
||||
attributes:
|
||||
value: |
|
||||
1. 不接受非 Gitea 和 GitHub 的样式需求 ( We do not accept style requests that are not Gitea or GitHub )
|
||||
2. 颜色需求最好自己实现 ( Color requests are best implemented by yourself )
|
||||
- type: input
|
||||
id: page
|
||||
attributes:
|
||||
label: 页面 ( Page )
|
||||
description: 功能涉及的页面 ( The page the feature involves )
|
||||
placeholder: 首页 ( Home page )
|
||||
validations:
|
||||
required: false
|
||||
- type: textarea
|
||||
id: feature-description
|
||||
attributes:
|
||||
label: 功能描述 ( Feature Description )
|
||||
description: 请描述你想要的功能 ( Please describe the feature you want )
|
||||
placeholder: 菜单样式修改 ( Menu style modification )
|
||||
validations:
|
||||
required: true
|
||||
- type: textarea
|
||||
id: screenshot
|
||||
attributes:
|
||||
label: 截图 ( Screenshot )
|
||||
description: 预期的主题效果 ( Expected theme effect )
|
||||
validations:
|
||||
required: false
|
||||
44
.github/ISSUE_TEMPLATE/3-core-bug-report.yml
vendored
Normal file
44
.github/ISSUE_TEMPLATE/3-core-bug-report.yml
vendored
Normal file
@@ -0,0 +1,44 @@
|
||||
name: 框架错误报告 ( Core bug report )
|
||||
description: 报告框架的错误 ( Report errors in the theme framework )
|
||||
labels: ["core bug"]
|
||||
body:
|
||||
- type: textarea
|
||||
id: actual-behavior
|
||||
attributes:
|
||||
label: 实际表现 ( Actual Behavior )
|
||||
description: 请描述实际的错误表现 ( Please describe the actual error presentation )
|
||||
placeholder: 未生成自动颜色主题 ( No automatic color theme generated )
|
||||
validations:
|
||||
required: true
|
||||
- type: textarea
|
||||
id: expected-behavior
|
||||
attributes:
|
||||
label: 期望表现 ( Expected Behavior )
|
||||
description: 请描述期望的正确表现 ( Please describe the expected correct presentation )
|
||||
placeholder: 生成自动颜色主题 ( Generate automatic color theme )
|
||||
validations:
|
||||
required: true
|
||||
- type: textarea
|
||||
id: steps-to-reproduce
|
||||
attributes:
|
||||
label: 复现步骤 ( Steps to reproduce )
|
||||
description: 请描述如何复现错误 ( Please describe how to reproduce the error )
|
||||
placeholder:
|
||||
1. 新建颜色主题 2. 编译主题 3. 查看错误 ( 1. Create a color theme 2. Compile the theme 3. View the error )
|
||||
validations:
|
||||
required: false
|
||||
- type: textarea
|
||||
id: bug-description
|
||||
attributes:
|
||||
label: 错误描述 ( Bug Description )
|
||||
description: 请描述错误的具体表现 ( Please describe the specific presentation of the error )
|
||||
placeholder: 未生成自动颜色主题 ( No automatic color theme generated )
|
||||
validations:
|
||||
required: false
|
||||
- type: textarea
|
||||
id: screenshot
|
||||
attributes:
|
||||
label: 截图 ( Screenshot )
|
||||
description: 请上传错误的截图 ( Please upload the screenshot of the error )
|
||||
validations:
|
||||
required: false
|
||||
12
.github/ISSUE_TEMPLATE/4-doc-report.yml
vendored
Normal file
12
.github/ISSUE_TEMPLATE/4-doc-report.yml
vendored
Normal file
@@ -0,0 +1,12 @@
|
||||
name: 文档报告 ( Document report )
|
||||
description: 改进或补充文档 ( Improve or supplement the document )
|
||||
labels: ["documentation"]
|
||||
body:
|
||||
- type: textarea
|
||||
id: doc-description
|
||||
attributes:
|
||||
label: 文档描述 ( Document Description )
|
||||
description: 请描述文档的具体内容 ( Please describe the specific content of the document )
|
||||
placeholder: 文档内容有误 ( The document content is incorrect )
|
||||
validations:
|
||||
required: true
|
||||
1
.github/ISSUE_TEMPLATE/config.yml
vendored
Normal file
1
.github/ISSUE_TEMPLATE/config.yml
vendored
Normal file
@@ -0,0 +1 @@
|
||||
blank_issues_enabled: false
|
||||
35
.github/workflows/release.yml
vendored
Normal file
35
.github/workflows/release.yml
vendored
Normal file
@@ -0,0 +1,35 @@
|
||||
name: release
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
|
||||
permissions:
|
||||
contents: write
|
||||
|
||||
jobs:
|
||||
release:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- name: Build theme
|
||||
run: |
|
||||
npm install
|
||||
npm run build
|
||||
- name: Create release
|
||||
run: |
|
||||
tar -zcf dist/theme-github-base.tar.gz --remove-files \
|
||||
dist/theme-github-auto.css dist/theme-github-light.css dist/theme-github-dark.css dist/theme-github-soft-dark.css
|
||||
|
||||
tar -zcf dist/theme-github-colorblindness-colorblind.tar.gz --remove-files \
|
||||
dist/theme-github-colorblind-auto.css dist/theme-github-colorblind-light.css dist/theme-github-colorblind-dark.css
|
||||
|
||||
tar -zcf dist/theme-github-colorblindness-tritanopia.tar.gz --remove-files \
|
||||
dist/theme-github-tritanopia-auto.css dist/theme-github-tritanopia-light.css dist/theme-github-tritanopia-dark.css
|
||||
|
||||
tar -zcf dist/theme-github-extra-pink.tar.gz --remove-files \
|
||||
dist/theme-github-pink-auto.css dist/theme-github-pink-light.css dist/theme-github-pink-dark.css dist/theme-github-pink-soft-dark.css
|
||||
|
||||
TAG="v$(npm run -s version)"
|
||||
gh release create "$TAG" dist/* --notes-file CHANGELOG.md --draft -t $TAG
|
||||
env:
|
||||
GH_TOKEN: ${{ github.token }}
|
||||
Reference in New Issue
Block a user