Skip to content

Commit

Permalink
chore: update deps
Browse files Browse the repository at this point in the history
  • Loading branch information
IceyWu committed Jun 24, 2024
1 parent 08ecaa3 commit 9be082e
Show file tree
Hide file tree
Showing 129 changed files with 16,372 additions and 13,747 deletions.
4 changes: 0 additions & 4 deletions .eslintignore

This file was deleted.

40 changes: 0 additions & 40 deletions .eslintrc.json

This file was deleted.

6 changes: 3 additions & 3 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"i18n-ally.localesPaths": [
"locales"
]
"i18n-ally.localesPaths": [
"locales"
]
}
10 changes: 3 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@

## 🦄 Function


-**QR Login**: Use nestjs as backend, and integrate QR login
- 🐱 **Ali oss file upload**: File upload based on `ali-oss` [Node.js](https://help.aliyun.com/document_detail/32067.html?spm=a2c4g.32070.0.0.607a55afYXWVU3) implementation
- 🎈 **SMS verification**: Send and verify SMS through `Ali Da Yu`
Expand Down Expand Up @@ -54,11 +53,9 @@
- 🚀 auto version update and generate `CHANGELOG`
<!-- - 🌈 自动版本更新并生成 `CHANGELOG` -->


<br>


## Motivation
## Motivation

Why do this **template**?

Expand All @@ -72,13 +69,12 @@ Why do this **template**?
该模板受 **[vitesse](https://github.com/antfu/vitesse)** 启发,如果你有 `SSG`
的场景,推荐你使用 **[vitesse](https://github.com/antfu/vitesse)**。 -->

## Inspiration
## Inspiration

This template is inspired by **[tov-template](https://github.com/dishait/tov-template)**

<br />


## Usage

### Development
Expand All @@ -97,4 +93,4 @@ To build the App, run
pnpm build
```

And you will see the generated file in `dist` that ready to be served.
And you will see the generated file in `dist` that ready to be served.
31 changes: 31 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
import antfu from '@antfu/eslint-config'

export default antfu(
{},
{
ignores: [
'dist',
'node_modules',
'.output',
'.nuxt',
'content/posts',
'data',
'uno.config.ts',
],
},
{
rules: {
'node/prefer-global/process': 'off',
'no-console': 'off',
},
},
{
files: [
'*.d.ts',
],
rules: {
'unused-imports/no-unused-vars': 'off',
'eslint-comments/no-unlimited-disable': 'off',
},
},
)
2 changes: 1 addition & 1 deletion locales/简体中文/common.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ edit: 编辑
to test HMR: 测试热更新
check out: 查看
The total number of views is: 总浏览数
the official Tov + Vue + Vite template: 公共的 Tov + Vue + Vite 模板
the official Tov + Vue + Vite template: 公共的 Tov + Vue + Vite 模板
81 changes: 41 additions & 40 deletions mock/test.ts
Original file line number Diff line number Diff line change
@@ -1,42 +1,43 @@
import { MockMethod } from 'vite-plugin-mock'
import type { MockMethod } from 'vite-plugin-mock'

export default [
{
url: '/api/mock/get',
method: 'get',
response: () => {
return {
code: 0,
data: {
name: 'mock',
},
}
},
},
{
url: '/api/mock/post',
method: 'post',
timeout: 2000,
response: {
code: 0,
data: {
name: 'mock',
},
},
},
{
url: '/api/mock/text',
method: 'post',
rawResponse: async (req, res) => {
let reqbody = ''
await new Promise((resolve) => {
req.on('data', (chunk) => {
reqbody += chunk
})
req.on('end', () => resolve(undefined))
})
res.setHeader('Content-Type', 'text/plain')
res.statusCode = 200
res.end(`hello, ${reqbody}`)
},
},
{
url: '/api/mock/get',
method: 'get',
response: () => {
return {
code: 0,
data: {
name: 'mock',
},
}
},
},
{
url: '/api/mock/post',
method: 'post',
timeout: 2000,
response: {
code: 0,
data: {
name: 'mock',
},
},
},
{
url: '/api/mock/text',
method: 'post',
rawResponse: async (req, res) => {
let reqbody = ''
await new Promise((resolve) => {
req.on('data', (chunk) => {
reqbody += chunk
})
req.on('end', () => resolve(undefined))
})
res.setHeader('Content-Type', 'text/plain')
res.statusCode = 200
res.end(`hello, ${reqbody}`)
},
},
] as MockMethod[]
Loading

0 comments on commit 9be082e

Please sign in to comment.