Compare commits
120 Commits
Author | SHA1 | Date | |
---|---|---|---|
f54124dd42 | |||
3e1ebfce98 | |||
60a2db5404 | |||
98f9f20b57 | |||
b1ee8d2a11 | |||
1ccbab49ae | |||
fdc5758bf1 | |||
217851f7f7 | |||
7efb170604 | |||
d8c9579627 | |||
5ae5d29eb1 | |||
9f747846e8 | |||
|
45b79478ff | ||
|
d0a25e5082 | ||
|
8672113ba3 | ||
|
82198e8c5b | ||
|
b76d2f5076 | ||
|
242460f286 | ||
|
465b0dd626 | ||
|
2b95e22e31 | ||
|
6b0c10c3df | ||
|
bb496165e6 | ||
|
2588fea419 | ||
|
1e6c5ccd8c | ||
|
4d37530274 | ||
|
209618a6a2 | ||
|
916388cbba | ||
|
0530d64dbf | ||
|
5e083ecea9 | ||
|
e85eceebbf | ||
588677dc4d | |||
08db7ab2a6 | |||
622aaed9f1 | |||
bcf65342fb | |||
f84b38578d | |||
17c2f8bb68 | |||
203cdc3d4d | |||
2bbebeba34 | |||
1082c51410 | |||
3d5f8c3f12 | |||
9d64ac2a6f | |||
9ed97b1898 | |||
b8d124bcd4 | |||
abefcacec3 | |||
72a3a7e33d | |||
4cd6dc6e87 | |||
67b82c8f2b | |||
91fb705b3c | |||
cacac281b6 | |||
e474c5c287 | |||
8e61a587f3 | |||
ac46a309d6 | |||
4c1d40b25b | |||
|
0c67c016a3 | ||
|
cf9a47470f | ||
4dc4567516 | |||
fdb25af0f5 | |||
d8fb113f9d | |||
ac266726c5 | |||
f083711f2f | |||
62dd21ee8e | |||
93aac2e284 | |||
22591b03b8 | |||
f5002b7cb9 | |||
81769aef98 | |||
09e48590b1 | |||
41ad3af3d4 | |||
f7c46f92b3 | |||
3a139ea2d8 | |||
3d6d2c6c42 | |||
b06996028b | |||
5a9d0dcde2 | |||
c5e5913e1b | |||
22add4e422 | |||
04d98ccb56 | |||
5c2f7027be | |||
38d75bcf88 | |||
ff5451d142 | |||
2881e948bb | |||
da609709cf | |||
76407e48ef | |||
9de66d09e4 | |||
c28a236cc0 | |||
b14c75f9c6 | |||
9d664404f5 | |||
1db8e3a50a | |||
68fb5d1b21 | |||
44d2b447ca | |||
b3b974942d | |||
0d14f451f3 | |||
6dd54fafd6 | |||
b4cb324e8e | |||
64e90984a1 | |||
510e80bc53 | |||
7cc00e7454 | |||
5186557e59 | |||
0b6fd361ba | |||
92f10fe929 | |||
dc89082921 | |||
9e0635952c | |||
14b148d711 | |||
16c8b25ac6 | |||
0fe2e338b9 | |||
3ee52cf7e5 | |||
c454f058dd | |||
b05e7bb644 | |||
95cbf6228f | |||
63282d12ba | |||
2fa05ebc90 | |||
7462f1affa | |||
fadddc902a | |||
17ea573bfd | |||
b2c5b6c4f9 | |||
eaff0f80c8 | |||
0e9735a86c | |||
b39a7d4108 | |||
1d45d2a91d | |||
4115763399 | |||
b9783dcee2 | |||
d16ada34a1 |
26
.gitea/actions/yarn-install/action.yml
Normal file
26
.gitea/actions/yarn-install/action.yml
Normal file
@@ -0,0 +1,26 @@
|
||||
name: 'Yarn install'
|
||||
description: 'Run yarn install with cache enabled'
|
||||
|
||||
runs:
|
||||
using: 'composite'
|
||||
|
||||
steps:
|
||||
- run: corepack enable
|
||||
|
||||
- uses: seepine/hash-files@v1
|
||||
id: get-hash
|
||||
with:
|
||||
patterns: |
|
||||
**/package.json
|
||||
**/yarn.lock
|
||||
|
||||
- uses: actions/cache@v3
|
||||
with:
|
||||
path: node_modules
|
||||
key: ${{ runner.os }}-yarn-install-${{ steps.get-hash.outputs.hash }}
|
||||
|
||||
- run: echo install start
|
||||
|
||||
- run: yarn install
|
||||
|
||||
- run: echo install end
|
59
.gitea/issue_template/report_bug.yml
Normal file
59
.gitea/issue_template/report_bug.yml
Normal file
@@ -0,0 +1,59 @@
|
||||
name: Bug Report
|
||||
about: File a bug report
|
||||
title: "[Bug]: "
|
||||
body:
|
||||
- type: markdown
|
||||
attributes:
|
||||
value: |
|
||||
Thanks for taking the time to fill out this bug report!
|
||||
- type: input
|
||||
id: contact
|
||||
attributes:
|
||||
label: Contact Details
|
||||
description: How can we get in touch with you if we need more info?
|
||||
placeholder: ex. email@example.com
|
||||
validations:
|
||||
required: false
|
||||
- type: textarea
|
||||
id: what-happened
|
||||
attributes:
|
||||
label: What happened?
|
||||
description: Also tell us, what did you expect to happen?
|
||||
placeholder: Tell us what you see!
|
||||
value: "A bug happened!"
|
||||
validations:
|
||||
required: true
|
||||
- type: dropdown
|
||||
id: version
|
||||
attributes:
|
||||
label: Version
|
||||
description: What version of our software are you running?
|
||||
options:
|
||||
- 1.0.2 (Default)
|
||||
- 1.0.3 (Edge)
|
||||
validations:
|
||||
required: true
|
||||
- type: dropdown
|
||||
id: browsers
|
||||
attributes:
|
||||
label: What browsers are you seeing the problem on?
|
||||
multiple: true
|
||||
options:
|
||||
- Firefox
|
||||
- Chrome
|
||||
- Safari
|
||||
- Microsoft Edge
|
||||
- type: textarea
|
||||
id: logs
|
||||
attributes:
|
||||
label: Relevant log output
|
||||
description: Please copy and paste any relevant log output. This will be automatically formatted into code, so no need for backticks.
|
||||
render: shell
|
||||
- type: checkboxes
|
||||
id: terms
|
||||
attributes:
|
||||
label: Code of Conduct
|
||||
description: By submitting this issue, you agree to follow our [Code of Conduct](https://example.com)
|
||||
options:
|
||||
- label: I agree to follow this project's Code of Conduct
|
||||
required: true
|
@@ -1,47 +1,48 @@
|
||||
name: Gitea Actions Demo
|
||||
run-name: ${{ github.actor }} is testing out Gitea Actions 🚀
|
||||
on:
|
||||
push:
|
||||
tags:
|
||||
- v*
|
||||
jobs:
|
||||
Explore-Gitea-Actions:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- run: echo "🎉 The job was automatically triggered by a ${{ github.event_name }} event."
|
||||
- run: echo "🐧 This job is now running on a ${{ runner.os }} server hosted by Gitea!"
|
||||
- run: echo "🔎 The name of your branch is ${{ github.ref }} and your repository is ${{ github.repository }}."
|
||||
- name: Check out repository code
|
||||
uses: actions/checkout@v3
|
||||
- run: echo "💡 The ${{ github.repository }} repository has been cloned to the runner."
|
||||
- run: echo "🖥️ The workflow is now ready to test your code on the runner."
|
||||
- name: List files in the repository
|
||||
run: |
|
||||
ls ${{ github.workspace }}
|
||||
- run: echo "🍏 This job's status is ${{ job.status }}."
|
||||
|
||||
- name: Get Version
|
||||
id: get_version
|
||||
run: echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\//}
|
||||
|
||||
- name: Get Repo
|
||||
id: get_repo
|
||||
run: echo ::set-output name=REPO::`echo ${GITHUB_REPOSITORY} | awk -F"/" '{print $2}'`
|
||||
|
||||
- name: Get Meta
|
||||
id: meta
|
||||
run: |
|
||||
echo ::set-output name=REPO::`echo ${GITHUB_REPOSITORY} | awk -F"/" '{print $2}'`
|
||||
echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\//}
|
||||
|
||||
|
||||
- run: echo "🍏 This job's status is ${{ steps.get_version.outputs.VERSION }}."
|
||||
- run: echo "🍏 This job's status is ${{ steps.get_repo.outputs.REPO }}."
|
||||
- run: echo "🍏 This job's status is ${{ steps.meta.outputs.VERSION }}."
|
||||
- run: echo "🍏 This job's status is ${{ steps.meta.outputs.REPO }}."
|
||||
- run: docker images
|
||||
- name: Set up QEMU
|
||||
uses: docker/setup-qemu-action@v2
|
||||
|
||||
- name: Set up Docker BuildX
|
||||
uses: docker/setup-buildx-action@v2
|
||||
name: Gitea Actions Demo
|
||||
on: [push]
|
||||
jobs:
|
||||
Gitea-Actions:
|
||||
runs-on: ubuntu-latest
|
||||
container:
|
||||
image: catthehacker/ubuntu:act-latest
|
||||
volumes:
|
||||
- ubuntu_hostedtoolcache:/opt/hostedtoolcache
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v3
|
||||
|
||||
- run: cat README.md
|
||||
|
||||
- name: Docker meta
|
||||
id: meta
|
||||
uses: docker/metadata-action@v5
|
||||
with:
|
||||
images: repo.io/${GITHUB_REPOSITORY}
|
||||
tags: |
|
||||
type=semver,pattern={{version}}
|
||||
type=semver,pattern={{major}}.{{minor}}
|
||||
- run: |
|
||||
echo ${{ steps.meta.outputs.labels }}
|
||||
echo ${{ steps.meta.outputs.tags }}
|
||||
|
||||
- name: Setup Java
|
||||
uses: actions/setup-java@v3
|
||||
with:
|
||||
distribution: zulu
|
||||
java-version: 11
|
||||
|
||||
- run: java -version
|
||||
|
||||
- name: Setup Pnpm
|
||||
uses: pnpm/action-setup@v2
|
||||
with:
|
||||
version: 7
|
||||
|
||||
- name: Setup Node
|
||||
uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: 16
|
||||
cache: 'pnpm'
|
||||
|
||||
- run: pnpm -v
|
||||
- run: pnpm install
|
23
.gitea/workflows/matrix-node.yaml
Normal file
23
.gitea/workflows/matrix-node.yaml
Normal file
@@ -0,0 +1,23 @@
|
||||
name: build
|
||||
|
||||
on:
|
||||
push
|
||||
|
||||
jobs:
|
||||
build:
|
||||
|
||||
runs-on: ubuntu-latest
|
||||
strategy:
|
||||
matrix:
|
||||
node-version: [10.x,16.x,18.x]
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: ${{ matrix.node-version }}
|
||||
cache: 'npm'
|
||||
|
||||
# 安装依赖
|
||||
- name: Node Version
|
||||
run: node -v
|
102
.gitea/workflows/multiple.yml
Normal file
102
.gitea/workflows/multiple.yml
Normal file
@@ -0,0 +1,102 @@
|
||||
name: Gitea Actions Demo
|
||||
on: [push]
|
||||
jobs:
|
||||
|
||||
setup:
|
||||
runs-on: ubuntu-latest
|
||||
container:
|
||||
image: catthehacker/ubuntu:act-latest
|
||||
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v3
|
||||
with:
|
||||
fetch-depth: 1
|
||||
|
||||
- name: Corepack enable
|
||||
run: corepack enable
|
||||
|
||||
- name: Hash files
|
||||
id: get-hash
|
||||
uses: seepine/hash-files@v1
|
||||
with:
|
||||
patterns: |
|
||||
**/package.json
|
||||
**/yarn.lock
|
||||
|
||||
- name: Cache node modules
|
||||
uses: actions/cache@v3
|
||||
with:
|
||||
path: node_modules
|
||||
key: ${{ runner.os }}-yarn-${{ steps.get-hash.outputs.hash }}
|
||||
|
||||
- name: Dependent installation
|
||||
run: yarn install
|
||||
|
||||
test:
|
||||
needs: setup
|
||||
runs-on: ubuntu-latest
|
||||
container:
|
||||
image: catthehacker/ubuntu:act-latest
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v3
|
||||
with:
|
||||
fetch-depth: 1
|
||||
|
||||
- name: Corepack enable
|
||||
run: corepack enable
|
||||
|
||||
- name: Hash files
|
||||
id: get-hash
|
||||
uses: seepine/hash-files@v1
|
||||
with:
|
||||
patterns: |
|
||||
**/package.json
|
||||
**/yarn.lock
|
||||
|
||||
- name: Cache node modules
|
||||
uses: actions/cache@v3
|
||||
with:
|
||||
path: node_modules
|
||||
key: ${{ runner.os }}-yarn-${{ steps.get-hash.outputs.hash }}
|
||||
|
||||
- name: Dependent installation
|
||||
run: yarn install
|
||||
|
||||
- name: Eslint Test
|
||||
run: npx eslint --ext ".vue,.js,.jsx,.ts,.tsx"
|
||||
|
||||
build:
|
||||
needs: setup
|
||||
runs-on: ubuntu-latest
|
||||
container:
|
||||
image: catthehacker/ubuntu:act-latest
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v3
|
||||
with:
|
||||
fetch-depth: 1
|
||||
|
||||
- name: Corepack enable
|
||||
run: corepack enable
|
||||
|
||||
- name: Hash files
|
||||
id: get-hash
|
||||
uses: seepine/hash-files@v1
|
||||
with:
|
||||
patterns: |
|
||||
**/package.json
|
||||
**/yarn.lock
|
||||
|
||||
- name: Cache node modules
|
||||
uses: actions/cache@v3
|
||||
with:
|
||||
path: node_modules
|
||||
key: ${{ runner.os }}-yarn-${{ steps.get-hash.outputs.hash }}
|
||||
|
||||
- name: Dependent installation
|
||||
run: yarn install
|
||||
|
||||
- name: Eslint Test
|
||||
run: npx eslint --ext ".vue,.js,.jsx,.ts,.tsx"
|
42
.gitea/workflows/test-with-action.yml
Normal file
42
.gitea/workflows/test-with-action.yml
Normal file
@@ -0,0 +1,42 @@
|
||||
name: Gitea Actions Demo
|
||||
on: [push]
|
||||
jobs:
|
||||
|
||||
setup:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v3
|
||||
with:
|
||||
fetch-depth: 1
|
||||
|
||||
- name: Yarn install
|
||||
uses: ./.gitea/actions/yarn-install
|
||||
|
||||
test:
|
||||
needs: setup
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v3
|
||||
with:
|
||||
fetch-depth: 1
|
||||
|
||||
- name: Yarn install
|
||||
uses: ./.gitea/actions/yarn-install
|
||||
|
||||
- name: Eslint Test
|
||||
run: npx eslint --ext ".vue,.js,.jsx,.ts,.tsx"
|
||||
|
||||
build:
|
||||
needs: setup
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v3
|
||||
with:
|
||||
fetch-depth: 1
|
||||
|
||||
- name: Yarn install
|
||||
uses: ./.gitea/actions/yarn-install
|
||||
|
||||
- name: Eslint Test
|
||||
run: npx eslint --ext ".vue,.js,.jsx,.ts,.tsx"
|
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@@ -0,0 +1 @@
|
||||
node_modules
|
144
openapi
Normal file
144
openapi
Normal file
@@ -0,0 +1,144 @@
|
||||
---
|
||||
openapi: 3.0.3
|
||||
info:
|
||||
title: quarkus-demo API
|
||||
version: 1.0-SNAPSHOT
|
||||
paths:
|
||||
/redis/{name}:
|
||||
get:
|
||||
tags:
|
||||
- Redis Resource
|
||||
parameters:
|
||||
- name: name
|
||||
in: path
|
||||
required: true
|
||||
schema:
|
||||
type: string
|
||||
responses:
|
||||
"200":
|
||||
description: OK
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
type: string
|
||||
/redis/{name}/{value}:
|
||||
post:
|
||||
tags:
|
||||
- Redis Resource
|
||||
parameters:
|
||||
- name: name
|
||||
in: path
|
||||
required: true
|
||||
schema:
|
||||
type: string
|
||||
- name: value
|
||||
in: path
|
||||
required: true
|
||||
schema:
|
||||
type: string
|
||||
responses:
|
||||
"201":
|
||||
description: Created
|
||||
/user:
|
||||
get:
|
||||
tags:
|
||||
- User Resource
|
||||
responses:
|
||||
"200":
|
||||
description: OK
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
type: array
|
||||
items:
|
||||
$ref: '#/components/schemas/User'
|
||||
post:
|
||||
tags:
|
||||
- User Resource
|
||||
responses:
|
||||
"200":
|
||||
description: OK
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: '#/components/schemas/User'
|
||||
/user/page:
|
||||
get:
|
||||
tags:
|
||||
- User Resource
|
||||
requestBody:
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: '#/components/schemas/Page'
|
||||
responses:
|
||||
"200":
|
||||
description: OK
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
type: array
|
||||
items:
|
||||
$ref: '#/components/schemas/User'
|
||||
/user/{id}:
|
||||
get:
|
||||
tags:
|
||||
- User Resource
|
||||
parameters:
|
||||
- name: id
|
||||
in: path
|
||||
required: true
|
||||
schema:
|
||||
format: int64
|
||||
type: integer
|
||||
responses:
|
||||
"200":
|
||||
description: OK
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: '#/components/schemas/User'
|
||||
components:
|
||||
schemas:
|
||||
Gender:
|
||||
enum:
|
||||
- UNKNOWN
|
||||
- MALE
|
||||
- FEMALE
|
||||
type: string
|
||||
LocalDateTime:
|
||||
format: date-time
|
||||
type: string
|
||||
example: 2022-03-10T12:15:50
|
||||
Page:
|
||||
type: object
|
||||
properties:
|
||||
index:
|
||||
format: int32
|
||||
type: integer
|
||||
size:
|
||||
format: int32
|
||||
type: integer
|
||||
User:
|
||||
type: object
|
||||
properties:
|
||||
id:
|
||||
format: int64
|
||||
type: integer
|
||||
nickName:
|
||||
type: string
|
||||
avatarUrl:
|
||||
type: string
|
||||
avatarUrlBack:
|
||||
type: string
|
||||
openId:
|
||||
type: string
|
||||
gender:
|
||||
$ref: '#/components/schemas/Gender'
|
||||
signInTime:
|
||||
$ref: '#/components/schemas/LocalDateTime'
|
||||
createTime:
|
||||
$ref: '#/components/schemas/LocalDateTime'
|
||||
inviteId:
|
||||
format: int64
|
||||
type: integer
|
70
package.json
Normal file
70
package.json
Normal file
@@ -0,0 +1,70 @@
|
||||
{
|
||||
"name": "action-demo",
|
||||
"version": "0.0.0",
|
||||
"main": "index.js",
|
||||
"private": true,
|
||||
"license": "MIT",
|
||||
"scripts": {
|
||||
"pre": "yarn --registry=https://registry.npmmirror.com || echo Error: please 'npm i -g yarn' first",
|
||||
"prepare": "husky install",
|
||||
"commit": "npx cz-customizable",
|
||||
"cz": "npx cz-customizable"
|
||||
},
|
||||
"dependencies": {
|
||||
"@dcloudio/uni-app": "3.0.0-3080720230703001",
|
||||
"@dcloudio/uni-app-plus": "3.0.0-3080720230703001",
|
||||
"@dcloudio/uni-components": "3.0.0-3080720230703001",
|
||||
"@dcloudio/uni-h5": "3.0.0-3080720230703001",
|
||||
"@dcloudio/uni-mp-alipay": "3.0.0-3080720230703001",
|
||||
"@dcloudio/uni-mp-baidu": "3.0.0-3080720230703001",
|
||||
"@dcloudio/uni-mp-jd": "3.0.0-3080720230703001",
|
||||
"@dcloudio/uni-mp-kuaishou": "3.0.0-3080720230703001",
|
||||
"@dcloudio/uni-mp-lark": "3.0.0-3080720230703001",
|
||||
"@dcloudio/uni-mp-qq": "3.0.0-3080720230703001",
|
||||
"@dcloudio/uni-mp-toutiao": "3.0.0-3080720230703001",
|
||||
"@dcloudio/uni-mp-weixin": "3.0.0-3080720230703001",
|
||||
"@dcloudio/uni-quickapp-webview": "3.0.0-3080720230703001",
|
||||
"dayjs": "^1.11.9",
|
||||
"lodash": "^4.17.21",
|
||||
"luch-request": "^3.0.8",
|
||||
"pinia": "2.0.36",
|
||||
"vue": "^3.3.4",
|
||||
"vue-i18n": "^9.2.2",
|
||||
"z-paging": "^2.5.3"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@commitlint/cli": "^17.3.0",
|
||||
"@commitlint/config-conventional": "^17.3.0",
|
||||
"@dcloudio/types": "^3.3.2",
|
||||
"@dcloudio/uni-automator": "3.0.0-3080720230703001",
|
||||
"@dcloudio/uni-cli-shared": "3.0.0-3080720230703001",
|
||||
"@dcloudio/uni-stacktracey": "3.0.0-3080720230703001",
|
||||
"@dcloudio/vite-plugin-uni": "3.0.0-3080720230703001",
|
||||
"@types/lodash": "^4.14.195",
|
||||
"@types/uni-app": "^1.4.4",
|
||||
"@typescript-eslint/eslint-plugin": "~6.2.1",
|
||||
"@typescript-eslint/parser": "~6.2.1",
|
||||
"@vue/tsconfig": "^0.1.3",
|
||||
"cross-env": "^7.0.3",
|
||||
"cz-customizable": "^7.0.0",
|
||||
"eslint": "~7.32.0",
|
||||
"eslint-config-airbnb-base": "~14.2.1",
|
||||
"eslint-config-prettier": "~8.3.0",
|
||||
"eslint-plugin-import": "~2.25.3",
|
||||
"eslint-plugin-prettier": "~4.0.0",
|
||||
"eslint-plugin-vue": "~7.20.0",
|
||||
"husky": "^8.0.2",
|
||||
"lint-staged": "~12.3.7",
|
||||
"minimist": "^1.2.8",
|
||||
"miniprogram-ci": "^1.9.8",
|
||||
"prettier": "~2.6.0",
|
||||
"sass": "^1.57.1",
|
||||
"typescript": "^4.9.2",
|
||||
"unplugin-auto-import": "^0.16.6",
|
||||
"vite": "4.0.3",
|
||||
"vue-tsc": "^1.0.24"
|
||||
},
|
||||
"lint-staged": {
|
||||
"*.{vue,js,jsx,ts,tsx}": "eslint --fix"
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user