Skip to content

Commit dd87466

Browse files
authored
迁移项目到最新vite,并使用js (#16)
1 parent d9e5d84 commit dd87466

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

43 files changed

+3326
-3381
lines changed

.eslintrc.cjs

+4-8
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,12 @@ require('@rushstack/eslint-patch/modern-module-resolution')
33

44
module.exports = {
55
root: true,
6-
extends: [
6+
'extends': [
77
'plugin:vue/vue3-essential',
88
'eslint:recommended',
9-
'@vue/eslint-config-typescript',
10-
'@vue/eslint-config-prettier/skip-formatting',
9+
'@vue/eslint-config-prettier/skip-formatting'
1110
],
1211
parserOptions: {
13-
ecmaVersion: 'latest',
14-
},
15-
rules: {
16-
'vue/multi-word-component-names': 'off',
17-
},
12+
ecmaVersion: 'latest'
13+
}
1814
}

.gitignore

+5-3
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,9 @@ yarn-error.log*
77
pnpm-debug.log*
88
lerna-debug.log*
99

10-
/node_modules/
11-
/dist/
10+
node_modules
11+
.DS_Store
12+
dist
1213
dist-ssr
1314
coverage
1415
*.local
@@ -20,9 +21,10 @@ coverage
2021
.vscode/*
2122
!.vscode/extensions.json
2223
.idea
23-
.DS_Store
2424
*.suo
2525
*.ntvs*
2626
*.njsproj
2727
*.sln
2828
*.sw?
29+
30+
*.tsbuildinfo

.prettierrc.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@
66
"singleQuote": true,
77
"printWidth": 100,
88
"trailingComma": "all"
9-
}
9+
}

.vscode/extensions.json

+6-2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
11
{
2-
"recommendations": ["Vue.volar", "Vue.vscode-typescript-vue-plugin"]
3-
}
2+
"recommendations": [
3+
"Vue.volar",
4+
"dbaeumer.vscode-eslint",
5+
"esbenp.prettier-vscode"
6+
]
7+
}

LICENCE copy

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2023 织蛾
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

README copy.md

+36
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
[![moth](images/moth.png)](https://zmoth.top/)
2+
3+
## Getting Started
4+
5+
您好!这是 [Moth](https://zmoth.top/) 的个人网站!一直以来非常喜欢网站[iloveworks](https://ilove.works/),一度将它作为浏览器主页。但是随着更新,淡入淡出的版本被迭代掉了。因此曾经将其淡入淡出版本 [0.1.4](https://github.com/sorcererxw/iloveworks/releases/tag/0.1.4) 部署到我的 github 个人网页 [zmoth.github.io](zmoth.github.io) 上。
6+
7+
现在,我打算使用 [Vue](https://vuejs.org/) 自己制作一个,这也是我的第一个前端作品 :)。
8+
9+
## For Developers
10+
11+
项目中只有一个主界面和一个设置界面。所有组件都在`componnents`文件夹下,有抽屉、标签、多行文本框等。
12+
13+
```bash
14+
git clone https://github.com/zmoth/zmoth.github.io.git
15+
16+
npm install
17+
npm run dev --open
18+
```
19+
20+
### Deployment
21+
22+
此项目包含 github ci,如果您在 github 上传代码会自动部署。
23+
24+
如果您想手动部署或者其他方式可以参考[Vue CLI](https://cli.vuejs.org/zh/guide/deployment.html)的部署教程
25+
26+
### Custom Domain
27+
28+
如果您想要使用自己的域名可以修改 CNAME(/public/CNAME),如果您不需要可以直接删除 CNAME 文件。
29+
30+
---
31+
32+
最后感谢以下项目:
33+
34+
- [vue](https://vuejs.org/)
35+
- [iloveworks](https://github.com/sorcererXW/iloveworks)
36+
- ...

auto-imports.d.ts

-8
This file was deleted.

components.d.ts

-17
This file was deleted.

env.d.ts

-1
This file was deleted.

index.html

+11-4
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,20 @@
1-
<!DOCTYPE html>
1+
<!doctype html>
22
<html lang="en">
33
<head>
44
<meta charset="UTF-8" />
5-
<link rel="icon" href="/favicon.ico" />
6-
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
5+
<link rel="icon" href="./favicon.ico" />
6+
7+
<!-- 点击输入框不会被放大 -->
8+
<meta
9+
name="viewport"
10+
content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no"
11+
/>
12+
713
<title>Moth</title>
814
</head>
15+
916
<body>
1017
<div id="app"></div>
11-
<script type="module" src="/src/main.ts"></script>
18+
<script type="module" src="./src/main.js"></script>
1219
</body>
1320
</html>

jsconfig.json

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"compilerOptions": {
3+
"paths": {
4+
"@/*": ["./src/*"]
5+
}
6+
},
7+
"exclude": ["node_modules", "dist"]
8+
}

0 commit comments

Comments
 (0)