Skip to content

Commit cdfd80d

Browse files
committed
refactor react demo
1 parent 2e09229 commit cdfd80d

Some content is hidden

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

45 files changed

+3843
-11004
lines changed

.editorconfig

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# For more information about the properties used in
2+
# this file, please see the EditorConfig documentation:
3+
# http://editorconfig.org/
4+
#
5+
# Sensible EditorConfig defaults
6+
# https://gist.github.com/matijs/662bf45dd4ec37b3a068
7+
root = true
8+
9+
[*]
10+
charset = utf-8
11+
end_of_line = lf
12+
indent_size = 2
13+
indent_style = space
14+
insert_final_newline = true
15+
trim_trailing_whitespace = true
16+
17+
# Make sure package.json always uses 2 spaces to indent
18+
[{package.json}]
19+
indent_size = 2
20+
indent_style = space
21+
22+
[{makefile, Makefile}]
23+
indent_style = tab

.eslintrc.js

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
module.exports = {
2+
root: true,
3+
extends: '@arcblock/eslint-config',
4+
globals: {
5+
logger: true,
6+
},
7+
ignorePatterns: ['**/scripts/*.mjs'],
8+
};

.gitignore

+15-13
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,28 @@
11
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
22

33
# dependencies
4-
/node_modules
5-
/.pnp
4+
.pnp
65
.pnp.js
6+
.DS_Store
7+
node_modules
78

89
# testing
9-
/coverage
10+
coverage
1011

1112
# production
12-
/build
13+
build
14+
dist
15+
dist-ssr
16+
.blocklet
1317

14-
# misc
15-
.DS_Store
16-
.env.local
17-
.env.development.local
18-
.env.test.local
19-
.env.production.local
18+
# local env files
19+
*.local
2020

21+
# Log files
22+
logs
23+
*.log
2124
npm-debug.log*
2225
yarn-debug.log*
2326
yarn-error.log*
24-
25-
.abtnode
26-
.blocklet
27+
pnpm-debug.log*
28+
lerna-debug.log*

.gitpod.Dockerfile

-7
This file was deleted.

.gitpod.yml

-13
This file was deleted.

.husky/pre-commit

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/bin/sh
2+
. "$(dirname "$0")/_/husky.sh"
3+
4+
npx lint-staged

.makefiles/bump_blocklet_version.sh

-5
This file was deleted.

.makefiles/bump_node_version.sh

-9
This file was deleted.

.makefiles/bump_version.sh

-52
This file was deleted.

.makefiles/release.mk

-29
This file was deleted.

.npmrc

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
## force pnpm to hoist
2+
shamefully-hoist=true
3+
strict-peer-dependencies=false
4+
node-linker=hoisted

.prettierrc

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"printWidth": 120,
3+
"useTabs": false,
4+
"tabWidth": 2,
5+
"trailingComma": "es5",
6+
"bracketSameLine": true,
7+
"semi": true,
8+
"singleQuote": true
9+
}

CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 0.2.0 (2023-9-28)
2+
3+
- refactor react demo
4+
15
## 0.1.23 (September 28, 2023)
26

37
- chore: update blocklet.yml

LICENSE

+10-18
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,13 @@
1-
MIT License
1+
Copyright 2018-2020 ArcBlock
22

3-
Copyright (c) 2020 ArcBlock
3+
Licensed under the Apache License, Version 2.0 (the "License");
4+
you may not use this file except in compliance with the License.
5+
You may obtain a copy of the License at
46

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:
7+
http://www.apache.org/licenses/LICENSE-2.0
118

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.
9+
Unless required by applicable law or agreed to in writing, software
10+
distributed under the License is distributed on an "AS IS" BASIS,
11+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
See the License for the specific language governing permissions and
13+
limitations under the License.

Makefile

-16
This file was deleted.

0 commit comments

Comments
 (0)