Skip to content

Commit 6ad8d59

Browse files
committed
chore: initialize
0 parents  commit 6ad8d59

34 files changed

+5722
-0
lines changed

.editorconfig

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# Editor configuration, see http://editorconfig.org
2+
3+
root = true
4+
5+
[*]
6+
charset = utf-8
7+
indent_style = tab
8+
indent_size = 2
9+
end_of_line = lf
10+
trim_trailing_whitespace = true
11+
insert_final_newline = true

.env

Whitespace-only changes.

.env.development

Whitespace-only changes.

.env.production

Whitespace-only changes.

.eslintignore

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
components.d.ts

.eslintrc.cjs

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
module.exports = {
2+
root: true,
3+
extends: ['@antfu'],
4+
}

.gitattributes

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
"*.vue" eol=lf
2+
"*.js" eol=lf
3+
"*.ts" eol=lf
4+
"*.jsx" eol=lf
5+
"*.tsx" eol=lf
6+
"*.cjs" eol=lf
7+
"*.cts" eol=lf
8+
"*.mjs" eol=lf
9+
"*.mts" eol=lf
10+
"*.json" eol=lf
11+
"*.html" eol=lf
12+
"*.css" eol=lf
13+
"*.less" eol=lf
14+
"*.scss" eol=lf
15+
"*.sass" eol=lf
16+
"*.styl" eol=lf
17+
"*.md" eol=lf

.gitignore

+28
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# Logs
2+
logs
3+
*.log
4+
npm-debug.log*
5+
yarn-debug.log*
6+
yarn-error.log*
7+
pnpm-debug.log*
8+
lerna-debug.log*
9+
10+
node_modules
11+
.DS_Store
12+
dist
13+
dist-ssr
14+
coverage
15+
*.local
16+
17+
/cypress/videos/
18+
/cypress/screenshots/
19+
20+
# Editor directories and files
21+
.vscode/*
22+
!.vscode/extensions.json
23+
.idea
24+
*.suo
25+
*.ntvs*
26+
*.njsproj
27+
*.sln
28+
*.sw?

.npmrc

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
registry=https://registry.npmmirror.com/
2+
shamefully-hoist=true
3+
strict-peer-dependencies=false
4+
auto-install-peers=true

.prettierrc.json

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"semi": false,
3+
"singleQuote": true
4+
}

.vscode/extensions.json

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"recommendations": ["Vue.volar", "Vue.vscode-typescript-vue-plugin"]
3+
}

CHANGELOG.md

Whitespace-only changes.

README.md

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# chatgpt-bot
2+

env.d.ts

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/// <reference types="vite/client" />

index.html

+71
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
<!DOCTYPE html>
2+
<html lang="zh-cmn-Hans">
3+
<head>
4+
<meta charset="UTF-8">
5+
<link rel="icon" type="image/svg+xml" href="/favicon.svg">
6+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
7+
<title>ChatGPT Bot</title>
8+
</head>
9+
<body>
10+
<div id="app">
11+
<style>
12+
.loading-wrap {
13+
display: flex;
14+
justify-content: center;
15+
align-items: center;
16+
height: 100vh;
17+
}
18+
19+
.balls {
20+
width: 4em;
21+
display: flex;
22+
flex-flow: row nowrap;
23+
align-items: center;
24+
justify-content: space-between;
25+
}
26+
27+
.balls div {
28+
width: 0.8em;
29+
height: 0.8em;
30+
border-radius: 50%;
31+
background-color: #267dff;
32+
}
33+
34+
.balls div:nth-of-type(1) {
35+
transform: translateX(-100%);
36+
animation: left-swing 0.5s ease-in alternate infinite;
37+
}
38+
39+
.balls div:nth-of-type(3) {
40+
transform: translateX(-95%);
41+
animation: right-swing 0.5s ease-out alternate infinite;
42+
}
43+
44+
@keyframes left-swing {
45+
50%,
46+
100% {
47+
transform: translateX(95%);
48+
}
49+
}
50+
51+
@keyframes right-swing {
52+
50% {
53+
transform: translateX(-95%);
54+
}
55+
56+
100% {
57+
transform: translateX(100%);
58+
}
59+
}
60+
</style>
61+
<div class="loading-wrap">
62+
<div class="balls">
63+
<div></div>
64+
<div></div>
65+
<div></div>
66+
</div>
67+
</div>
68+
</div>
69+
<script type="module" src="/src/main.ts"></script>
70+
</body>
71+
</html>

package.json

+41
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
{
2+
"name": "chatgpt-bot",
3+
"version": "0.1.0",
4+
"private": true,
5+
"scripts": {
6+
"dev": "vite",
7+
"build": "run-p type-check build-only",
8+
"preview": "vite preview",
9+
"build-only": "vite build",
10+
"type-check": "vue-tsc --noEmit",
11+
"lint": "eslint . --ext .vue,.js,.jsx,.cjs,.mjs,.ts,.tsx,.cts,.mts --fix --ignore-path .gitignore"
12+
},
13+
"dependencies": {
14+
"@vueuse/core": "^9.12.0",
15+
"dayjs": "^1.11.7",
16+
"naive-ui": "^2.34.3",
17+
"pinia": "^2.0.28",
18+
"vue": "^3.2.45"
19+
},
20+
"devDependencies": {
21+
"@antfu/eslint-config": "^0.35.2",
22+
"@iconify/json": "^2.2.19",
23+
"@iconify/vue": "^4.1.0",
24+
"@types/node": "^18.11.12",
25+
"@vitejs/plugin-vue": "^4.0.0",
26+
"@vitejs/plugin-vue-jsx": "^3.0.0",
27+
"autoprefixer": "^10.4.13",
28+
"axios": "^1.3.2",
29+
"eslint": "^8.22.0",
30+
"less": "^4.1.3",
31+
"npm-run-all": "^4.1.5",
32+
"postcss": "^8.4.21",
33+
"prettier": "^2.7.1",
34+
"tailwindcss": "^3.2.6",
35+
"typescript": "~4.7.4",
36+
"unplugin-icons": "^0.15.2",
37+
"vite": "^4.0.0",
38+
"vite-plugin-svg-icons": "^2.0.1",
39+
"vue-tsc": "^1.0.12"
40+
}
41+
}

0 commit comments

Comments
 (0)