Compare commits
124 Commits
Author | SHA1 | Date | |
---|---|---|---|
e3b71682dd | |||
a3c1d49f5a | |||
1df9978f3c | |||
22b6d50e0a | |||
61b4d5772f | |||
baf66dbea8 | |||
8e37c423c1 | |||
a9a1918974 | |||
1ae4b8871c | |||
ef9ae80fc0 | |||
769d728773 | |||
e02dadb933 | |||
9bfbd109d4 | |||
0b081c37ad | |||
69b8fe2ffc | |||
25ac70ed5b | |||
e9d4f081a7 | |||
3b7739e05e | |||
10f43c6526 | |||
04c9d3a58b | |||
4a04a065a6 | |||
b374e2fc6d | |||
1f238754ac | |||
691a093f08 | |||
b2efccff05 | |||
2d3d7d3b9e | |||
2e290ae6dd | |||
be1fea96db | |||
a0ffafb622 | |||
64e514eadc | |||
c887293f4f | |||
b09805f2e1 | |||
aeb9b13404 | |||
f561fe53c9 | |||
8446585354 | |||
b87bfef1f6 | |||
ac8068a450 | |||
2652756cf2 | |||
b4b08554b4 | |||
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 |
23
.gitea/actions/action-docker-build-push/action.yml
Normal file
23
.gitea/actions/action-docker-build-push/action.yml
Normal file
@ -0,0 +1,23 @@
|
||||
name: 'Docker build and push'
|
||||
description: 'Setup docker, build image and push'
|
||||
|
||||
inputs:
|
||||
password:
|
||||
description: 'Password or personal access token used to log against the Docker registry'
|
||||
required: false
|
||||
|
||||
runs:
|
||||
using: 'composite'
|
||||
steps:
|
||||
- run: "echo a: Set up QEMU"
|
||||
|
||||
- run: |
|
||||
sleep 10
|
||||
echo 'sleep 10 end'
|
||||
|
||||
- run: "echo b: Login to DockerHub"
|
||||
if: ${{ inputs.password != '' }}
|
||||
|
||||
- run: |
|
||||
sleep 10
|
||||
echo 'c: Set up Docker BuildX'
|
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
|
40
.gitea/issue_template/report_bug.yml
Normal file
40
.gitea/issue_template/report_bug.yml
Normal file
@ -0,0 +1,40 @@
|
||||
name: 推荐模板
|
||||
about: 从推荐模板创建一个工单。
|
||||
title: "应用: "
|
||||
labels:
|
||||
- bug
|
||||
body:
|
||||
- type: markdown
|
||||
attributes:
|
||||
value: |
|
||||
标题前方的 "应用" 请改为涉及的应用名称,且标题内容用一句话概括所描述情况,例如:"跟进: 修复跟进内容加密后emoji图标无法正常显示"
|
||||
|
||||
- type: dropdown
|
||||
attributes:
|
||||
label: 影响范围
|
||||
multiple: true
|
||||
options:
|
||||
- 微信小程序
|
||||
- H5
|
||||
- Web
|
||||
- 服务端
|
||||
|
||||
- type: textarea
|
||||
attributes:
|
||||
label: 描述
|
||||
description: 请尽可能描述清楚例如问题描述、回显步骤、预期结果等,以免日后不能理解当初此工单内容表达的含义
|
||||
placeholder: 请输入...
|
||||
validations:
|
||||
required: true
|
||||
|
||||
- type: textarea
|
||||
attributes:
|
||||
label: 截图
|
||||
description: 操作截图、日志截图、相关代码截图等
|
||||
placeholder: 请输入...
|
||||
|
||||
- type: input
|
||||
attributes:
|
||||
label: 提出人
|
||||
description: 若问题非创建者提出,而是例如客户或用户提出,此时应记录真实提出人员
|
||||
placeholder: 例如:张三
|
13
.gitea/workflows/build-docker.yml
Normal file
13
.gitea/workflows/build-docker.yml
Normal file
@ -0,0 +1,13 @@
|
||||
name: Gitea Actions Demo
|
||||
on: [push]
|
||||
jobs:
|
||||
build-docker:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v3
|
||||
|
||||
- name: Docker build push
|
||||
uses: ./.gitea/actions/action-docker-build-push
|
||||
|
||||
- run: echo The end
|
@ -1,41 +0,0 @@
|
||||
name: Gitea Actions Demo
|
||||
on:
|
||||
push:
|
||||
tags:
|
||||
- v*
|
||||
jobs:
|
||||
Gitea-Actions:
|
||||
runs-on: ubuntu-latest
|
||||
container:
|
||||
image: catthehacker/ubuntu:act-latest
|
||||
volumes:
|
||||
- ubuntu_hostedtoolcache:/opt/hostedtoolcache
|
||||
env:
|
||||
DOCKER_REGISTRY: registry.cn-hangzhou.aliyuncs.com
|
||||
DOCKER_USERNAME: rsjst
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v3
|
||||
|
||||
- run: cat README.md
|
||||
|
||||
- name: Setup Java
|
||||
uses: actions/setup-java@v3
|
||||
with:
|
||||
distribution: zulu
|
||||
java-version: 11
|
||||
|
||||
- run: java -version
|
||||
|
||||
- name: Get Meta
|
||||
id: meta
|
||||
run: |
|
||||
echo REPO_NAME=$(echo ${GITHUB_REPOSITORY} | awk -F"/" '{print $2}') >> $GITHUB_OUTPUT
|
||||
echo REPO_VERSION=$(echo ${{ github.ref }} | awk -F"/" '{print $3}' | awk -F"v" '{print $2}') >> $GITHUB_OUTPUT
|
||||
|
||||
- run: echo ${{ steps.meta.outputs.REPO_NAME }}:${{ steps.meta.outputs.REPO_VERSION }}
|
||||
|
||||
- name: notification
|
||||
if: ${{ secrets.BARK_TOKEN != '' }}
|
||||
run: |
|
||||
https://api.day.app/${{ secrets.BARK_TOKEN }}/GiteaActions/${{ steps.meta.outputs.REPO_NAME }}:${{ steps.meta.outputs.REPO_VERSION }}已构建?icon=https://gitea.com/assets/img/logo.svg&group=GiteaActions
|
27
.gitea/workflows/cache-npx.yml
Normal file
27
.gitea/workflows/cache-npx.yml
Normal file
@ -0,0 +1,27 @@
|
||||
name: Cache Npx
|
||||
on: [push]
|
||||
env:
|
||||
DOCKER_REGISTRY: git.zgfxrc.cn
|
||||
DOCKER_USERNAME: huanghs
|
||||
|
||||
jobs:
|
||||
task:
|
||||
runs-on: xxpro-hhs
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v3
|
||||
|
||||
- name: Get npm cache dir
|
||||
id: npm-cache-dir
|
||||
run: echo "dir=$(npm config get cache)" >> ${GITHUB_OUTPUT}
|
||||
|
||||
- run: echo "${{ steps.npm-cache-dir.outputs.dir }}"
|
||||
|
||||
- name: Cache npx
|
||||
uses: actions/cache@v3
|
||||
with:
|
||||
path: ${{ steps.npm-cache-dir.outputs.dir }}/_npx
|
||||
key: ${{ runner.os }}-npx-2
|
||||
|
||||
- run: npx cloc .
|
||||
|
16
.gitea/workflows/pull_request.yml
Normal file
16
.gitea/workflows/pull_request.yml
Normal file
@ -0,0 +1,16 @@
|
||||
name: Test pull_request
|
||||
|
||||
on:
|
||||
- pull_request
|
||||
|
||||
jobs:
|
||||
setup:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v3
|
||||
with:
|
||||
fetch-depth: 1
|
||||
|
||||
- run: |
|
||||
cat README.md
|
16
.gitea/workflows/pull_request_target.yml
Normal file
16
.gitea/workflows/pull_request_target.yml
Normal file
@ -0,0 +1,16 @@
|
||||
name: Test pull_request_target
|
||||
|
||||
on:
|
||||
- pull_request_target
|
||||
|
||||
jobs:
|
||||
setup:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v3
|
||||
with:
|
||||
fetch-depth: 1
|
||||
|
||||
- run: |
|
||||
cat README.md
|
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
|
1
dist/index.html
vendored
Normal file
1
dist/index.html
vendored
Normal file
@ -0,0 +1 @@
|
||||
Hello World!
|
14
docker/Dockerfile
Normal file
14
docker/Dockerfile
Normal file
@ -0,0 +1,14 @@
|
||||
FROM nginx:1.25-alpine-slim
|
||||
|
||||
RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.ustc.edu.cn/g' /etc/apk/repositories \
|
||||
&& apk add --no-cache tzdata \
|
||||
&& cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime \
|
||||
&& apk del tzdata \
|
||||
&& echo "*/30 * * * * ntpd -d -q -n -p ntp.aliyun.com" >> /etc/crontabs/root
|
||||
|
||||
ENV LISTEN_PORT=80\
|
||||
SERVER_NAME=localhost\
|
||||
PROXY_PASS=http://127.0.0.1
|
||||
|
||||
COPY ./dist /html
|
||||
RUN chmod -R 755 /html
|
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"
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user