fix: alloy version

This commit is contained in:
ShawnPhang 2023-08-23 17:20:18 +08:00
parent d112c58704
commit b664a33d08
8 changed files with 118 additions and 3 deletions

1
.gitignore vendored
View File

@ -20,7 +20,6 @@ pnpm-debug.log*
# Editor directories and files
.idea
.vscode
*.suo
*.ntvs*
*.njsproj

13
.vscode/settings.json vendored Normal file
View File

@ -0,0 +1,13 @@
{
"files.eol": "\n",
"editor.tabSize": 2,
"editor.formatOnSave": true,
"editor.defaultFormatter": "esbenp.prettier-vscode",
"eslint.validate": ["javascript", "javascriptreact", "vue", "typescript", "typescriptreact"],
"editor.codeActionsOnSave": {
"source.fixAll.eslint": true
},
"css.validate": false,
"less.validate": false,
"scss.validate": false
}

View File

@ -4,7 +4,7 @@
"private": true,
"author": "ShawnPhang",
"scripts": {
"prepared": "npm i --force && cd screenshot && npm i",
"prepared": "npm i && cd screenshot && npm i",
"serve": "npm run dev & cd screenshot && npm run dev",
"dev": "cross-env NODE_ENV=development vite",
"v-build": "cross-env NODE_ENV=production && vite build",
@ -54,7 +54,7 @@
"cross-env": "^7.0.3",
"esbuild-loader": "^2.13.1",
"eslint": "^7.29.0",
"eslint-config-alloy": "^4.1.0",
"eslint-config-alloy": "~4.1.0",
"eslint-plugin-vue": "^7.12.1",
"less": "^4.1.1",
"sass": "^1.63.6",

View File

@ -0,0 +1,23 @@
{
"Print to console": {
"prefix": "api-get",
"body": [
"/**",
"* @api {get} ${0:__接口url__} ${1:__接口说明__}",
"* @apiVersion 1.0.0",
"* @apiGroup ${2:__分组__}",
"* @apiDescription ${3:__详细描述__}",
"* ",
"* @apiUse needToken",
"* @apiHeader {__类型__} __字段名__ __头字段说明__",
"* ",
"* @apiParam {__类型__} __字段名__=__默认值__ __请求字段说明__",
"* ",
"* @apiSuccess (__组__) {__类型__} __字段名__ __返回字段说明__",
"* ",
"* @apiUse __SuccessName定义的成功返回块__",
"*/"
],
"description": "GET请求 - apidoc文档模板"
}
}

View File

@ -0,0 +1,28 @@
{
"Print to console": {
"prefix": "api-graphql",
"body": [
"/**",
"* @api {get} graphql ${1:__接口说明__}",
"* @apiName ${2: __方法名称__}",
"* @apiVersion 1.0.0",
"* @apiGroup ${3:__分组_gql__}",
"* @apiDescription ${4:__详细描述__}",
"* @apiSampleRequest off",
"* ",
"* @apiParam {String} token 用户验签",
"* @apiParam {__类型__} __字段名__=__默认值__ __请求字段说明__",
"* ",
"* @apiSuccess (__组__) {__类型__} __字段名__ __返回字段说明__",
"* ",
"* @apiUse __定义的可选参数模块名MODEL__",
"*/",
"/**",
"* ----copy---- ",
"* @apiDefine __定义的模块名MODEL__",
"* @apiParam (可选返回参数) {__类型__} __参数__ __说明__",
"*/",
],
"description": "Graphql-GET请求 - apidoc文档模板"
}
}

View File

@ -0,0 +1,23 @@
{
"Print to console": {
"prefix": "api-post",
"body": [
"/**",
"* @api {post} ${0:__接口url__} ${1:__接口说明__}",
"* @apiVersion 1.0.0",
"* @apiGroup ${2:__分组__}",
"* @apiDescription ${3:__详细描述__}",
"* ",
"* @apiUse needToken",
"* @apiHeader {__类型__} __字段名__ __头字段说明__",
"* ",
"* @apiParam {__类型__} __字段名__=__默认值__ __请求字段说明__",
"* ",
"* @apiSuccess (__组__) {__类型__} __字段名__ __返回字段说明__",
"* ",
"* @apiUse __SuccessName定义的成功返回块__",
"*/"
],
"description": "POST请求 - apidoc文档模板"
}
}

View File

@ -0,0 +1,16 @@
{
"Print to console": {
"prefix": "api-success",
"body": [
"/**",
"* @apiDefine ${1:__定义模板名称__}",
"* @apiSuccessExample {json} Success-Response:",
"* HTTP/1.1 200 OK",
"* {",
"* 'message': 'ok'",
"* }",
"*/",
],
"description": "成功返回例子 - apidoc文档模板"
}
}

13
screenshot/.vscode/apidoc.code-snippets vendored Normal file
View File

@ -0,0 +1,13 @@
{
// ${1:label}, ${2:another}
"Print to console": {
"prefix": "apidoc",
"body": [
"/**",
"* @api {get} /user/getUserById/:id ${3:__apiname__}",
"* @apiGroup ${1:label}",
"*/"
],
"description": "my ts-vue template"
}
}