Skip to content

Commit

Permalink
Merge branch 'openbuildxyz:main' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
gamble369 authored Jun 6, 2024
2 parents 61d05ed + 0cff069 commit 5b7938a
Show file tree
Hide file tree
Showing 66 changed files with 15,574 additions and 1 deletion.
9 changes: 9 additions & 0 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
## PR规范

注册的 PR,命名为 `init: user-name`,例如 `init: Beavnvvv`

提交 task 的 PR,命名为 `task[n]: user-name`,例如: `task0: Beavnvvv`

**请不要把报名和提交TASK的内容合并到一起,也不要将多个TASK放到一起提交!**
**请不要把报名和提交TASK的内容合并到一起,也不要将多个TASK放到一起提交!**
**请不要把报名和提交TASK的内容合并到一起,也不要将多个TASK放到一起提交!**
17 changes: 16 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,9 @@

### 任务提交

> 在此之前,需要 `Fork` 本仓库(右上角),随后将 `Fork` 的仓库 `clone` 至本地,接下来的所有任务请在自己的仓库内完成。
> 如果你不熟悉 git 的操作,可以下载一个 [GithubDesktop](https://desktop.github.com/),使用 GUI 完成任务
1. 复制 `members` 文件夹中的 `github_id` 文件夹,将新文件夹名称改为自己的github id,填写其中 `readme.md` 的信息,提交 PR ,完成注册报名

2. 任务代码必须全部开源公开,每个任务提交一次 PR
Expand All @@ -64,6 +67,18 @@

4. [任务提交示例](members/Beavnvvv)

### 任务提交规范

每完成一个任务,在你自己的仓库 `commit` 之后提交一个 `pull request`,只可以修改你自己的文件,不可修改其他人的文件。

**请不要在一个 `PR` 内提交多个 `task`,报名必须独立为一个 `PR`**

`pr` 的标题必须为 `task[n]: user-name`,例如: `task0: Beavnvvv`

报名的 pr,只允许填写基本信息,并且命名为: `init: [user-name]`,例如: `init: Beavnvvv`

**请按要求提交你的pr,否则可能影响奖励的计算**

## 奖励明细 请仔细阅读要求

| 任务 | 名称 | 奖励金额 | 说明 |
Expand Down Expand Up @@ -96,4 +111,4 @@
### 大牛学习心得

1. [Web3 DApp 最佳编程实践指南](https://guoyu.mirror.xyz/RD-xkpoxasAU7x5MIJmiCX4gll3Cs0pAd5iM258S1Ek)
2. [郭宇的 Web3 技术栈收藏](https://github.com/stars/guo-yu/lists/dapp-best-practice-stack)
2. [郭宇的 Web3 技术栈收藏](https://github.com/stars/guo-yu/lists/dapp-best-practice-stack)
15 changes: 15 additions & 0 deletions members/Winson-030/readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# Web3 前端训练营报名

## 个人信息

* Github ID: Winson-030

* Wechat ID: wanchaikiller

* Openbuild Username: winsonli

* ERC20 钱包地址: 0x5f132668b81b0d49e5FA2Ef07989257c2cAB903E

### 个人介绍

DevOps Engineer && Solution Architect,断断续续使用 react 写网站,参加训练营想了解更多 web3 的世界。
18 changes: 18 additions & 0 deletions members/Winson-030/task1/Todo-app/.eslintrc.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
module.exports = {
root: true,
env: { browser: true, es2020: true },
extends: [
'eslint:recommended',
'plugin:@typescript-eslint/recommended',
'plugin:react-hooks/recommended',
],
ignorePatterns: ['dist', '.eslintrc.cjs'],
parser: '@typescript-eslint/parser',
plugins: ['react-refresh'],
rules: {
'react-refresh/only-export-components': [
'warn',
{ allowConstantExport: true },
],
},
}
24 changes: 24 additions & 0 deletions members/Winson-030/task1/Todo-app/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-debug.log*
lerna-debug.log*

node_modules
dist
dist-ssr
*.local

# Editor directories and files
.vscode/*
!.vscode/extensions.json
.idea
.DS_Store
*.suo
*.ntvs*
*.njsproj
*.sln
*.sw?
30 changes: 30 additions & 0 deletions members/Winson-030/task1/Todo-app/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# React + TypeScript + Vite

This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules.

Currently, two official plugins are available:

- [@vitejs/plugin-react](https://github.com/vitejs/vite-plugin-react/blob/main/packages/plugin-react/README.md) uses [Babel](https://babeljs.io/) for Fast Refresh
- [@vitejs/plugin-react-swc](https://github.com/vitejs/vite-plugin-react-swc) uses [SWC](https://swc.rs/) for Fast Refresh

## Expanding the ESLint configuration

If you are developing a production application, we recommend updating the configuration to enable type aware lint rules:

- Configure the top-level `parserOptions` property like this:

```js
export default {
// other rules...
parserOptions: {
ecmaVersion: 'latest',
sourceType: 'module',
project: ['./tsconfig.json', './tsconfig.node.json'],
tsconfigRootDir: __dirname,
},
}
```

- Replace `plugin:@typescript-eslint/recommended` to `plugin:@typescript-eslint/recommended-type-checked` or `plugin:@typescript-eslint/strict-type-checked`
- Optionally add `plugin:@typescript-eslint/stylistic-type-checked`
- Install [eslint-plugin-react](https://github.com/jsx-eslint/eslint-plugin-react) and add `plugin:react/recommended` & `plugin:react/jsx-runtime` to the `extends` list
13 changes: 13 additions & 0 deletions members/Winson-030/task1/Todo-app/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Vite + React + TS</title>
</head>
<body>
<div id="root"></div>
<script type="module" src="/src/main.tsx"></script>
</body>
</html>
Loading

0 comments on commit 5b7938a

Please sign in to comment.