Skip to content

Commit 6bd57c0

Browse files
committed
chore: new package (work-in-progress)
1 parent 5f0d234 commit 6bd57c0

File tree

9 files changed

+294
-0
lines changed

9 files changed

+294
-0
lines changed

package.json

+1
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
"kleros-sdk",
2323
"subgraph",
2424
"web",
25+
"web-devtools",
2526
"eslint-config",
2627
"prettier-config",
2728
"tsconfig"

web-devtools/.editorconfig

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
root = true
2+
3+
[*]
4+
end_of_line = lf
5+
trim_trailing_whitespace = true
6+
insert_final_newline = true
7+
charset = utf-8
8+
9+
[*.{html,js,.json,mjs,rjson,ts}]
10+
indent_style = space
11+
indent_size = 2
12+
13+
[*.sol]
14+
indent_style = space
15+
indent_size = 4

web-devtools/.eslintrc.json

+165
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,165 @@
1+
{
2+
"env": {
3+
"es6": true,
4+
"browser": true,
5+
"node": true
6+
},
7+
"root": true,
8+
"parser": "@typescript-eslint/parser",
9+
"parserOptions": {
10+
"ecmaVersion": 2020,
11+
"sourceType": "module",
12+
"ecmaFeatures": {
13+
"jsx": true
14+
}
15+
},
16+
"extends": [
17+
"eslint:recommended",
18+
"plugin:react/recommended",
19+
"plugin:react-hooks/recommended",
20+
"plugin:import/recommended",
21+
"plugin:import/react",
22+
"plugin:security/recommended",
23+
"plugin:@typescript-eslint/recommended",
24+
"plugin:prettier/recommended",
25+
"prettier"
26+
],
27+
"globals": {
28+
"Atomics": "readonly",
29+
"SharedArrayBuffer": "readonly"
30+
},
31+
"plugins": [
32+
"react",
33+
"react-hooks",
34+
"security",
35+
"import"
36+
],
37+
"ignorePatterns": [
38+
"src/assets"
39+
],
40+
"settings": {
41+
"react": {
42+
"version": "^16.12.0"
43+
},
44+
"import/resolver": {
45+
"parcel": {
46+
"rootDir": "src",
47+
"extensions": [
48+
".js",
49+
".jsx",
50+
".ts",
51+
".tsx",
52+
".svg",
53+
".png",
54+
".jpeg"
55+
]
56+
}
57+
}
58+
},
59+
"rules": {
60+
"max-len": [
61+
"warn",
62+
{
63+
"code": 120
64+
}
65+
],
66+
"react/prop-types": 0,
67+
"no-unused-vars": "off",
68+
"@typescript-eslint/no-unused-vars": [
69+
"error",
70+
{
71+
"varsIgnorePattern": "(^_+[0-9]*$)|([iI]gnored$)|(^ignored)",
72+
"argsIgnorePattern": "(^_+[0-9]*$)|([iI]gnored$)|(^ignored)"
73+
}
74+
],
75+
"no-console": [
76+
"error",
77+
{
78+
"allow": [
79+
"warn",
80+
"error",
81+
"info",
82+
"debug"
83+
]
84+
}
85+
],
86+
"@typescript-eslint/no-non-null-assertion": "off",
87+
"@typescript-eslint/no-explicit-any": "off",
88+
"security/detect-object-injection": "off",
89+
"security/detect-non-literal-fs-filename": "off",
90+
"import/extensions": [
91+
"error",
92+
"ignorePackages",
93+
{
94+
"js": "never",
95+
"jsx": "never",
96+
"ts": "never",
97+
"tsx": "never"
98+
}
99+
],
100+
"import/no-unresolved": "off",
101+
"import/order": [
102+
"warn",
103+
{
104+
"groups": [
105+
"builtin",
106+
"external",
107+
"internal",
108+
"parent",
109+
"sibling",
110+
"index"
111+
],
112+
"pathGroups": [
113+
{
114+
"pattern": "{react,styled-components}",
115+
"group": "external",
116+
"position": "before"
117+
},
118+
{
119+
"pattern": "@kleros/**",
120+
"group": "external",
121+
"position": "after"
122+
},
123+
{
124+
"pattern": "{svgs/**,assets/**}",
125+
"group": "internal",
126+
"position": "after"
127+
},
128+
{
129+
"pattern": "{hooks/**,utils/**,consts/**,types/**,context/**,connectors/**,}",
130+
"group": "internal",
131+
"position": "after"
132+
},
133+
{
134+
"pattern": "{queries/**,}",
135+
"group": "internal",
136+
"position": "after"
137+
},
138+
{
139+
"pattern": "{src/**,}",
140+
"group": "internal",
141+
"position": "after"
142+
},
143+
{
144+
"pattern": "{styles/**,}",
145+
"group": "internal",
146+
"position": "after"
147+
},
148+
{
149+
"pattern": "{layout/**,pages/**,components/**,}",
150+
"group": "internal",
151+
"position": "after"
152+
}
153+
],
154+
"pathGroupsExcludedImportTypes": [
155+
"builtin"
156+
],
157+
"newlines-between": "always",
158+
"alphabetize": {
159+
"order": "asc",
160+
"caseInsensitive": true
161+
}
162+
}
163+
]
164+
}
165+
}

web-devtools/.gitignore

+37
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
/.yarn/*
2+
!/.yarn/versions
3+
!/.yarn/plugins
4+
!/.yarn/releases
5+
!/.yarn/sdks
6+
/.pnp.*
7+
node_modules
8+
9+
# Parcel
10+
.parcel-cache
11+
development
12+
build
13+
dist
14+
parcel-bundle-reports
15+
16+
# misc
17+
.eslintcache
18+
.DS_Store
19+
.env
20+
.env.test
21+
.env.testnet
22+
.env.devnet
23+
.env.local
24+
.env.development.local
25+
.env.test.local
26+
.env.production.local
27+
28+
# generated code
29+
src/hooks/contracts/generated.ts
30+
src/graphql
31+
generatedGitInfo.json
32+
generatedNetlifyInfo.json
33+
34+
# logs
35+
npm-debug.log*
36+
yarn-debug.log*
37+
yarn-error.log*

web-devtools/LICENSE

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2022 Kleros
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.

web-devtools/README.md

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Dev Tools Frontend
2+
3+
In construction

web-devtools/netlify.toml

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
## Yarn 3 cache does not work out of the box as of Jan 2022. Context:
2+
## https://github.com/netlify/build/issues/1535#issuecomment-1021947989
3+
[build.environment]
4+
NETLIFY_USE_YARN = "true"
5+
NETLIFY_YARN_WORKSPACES = "true"
6+
YARN_ENABLE_GLOBAL_CACHE = "true"
7+
# YARN_CACHE_FOLDER = "$HOME/.yarn_cache"
8+
# YARN_VERSION = "3.2.0"
9+
10+
[functions]
11+
directory = "web-devtools/netlify/functions/"
12+
13+
[dev]
14+
framework = "nextjs"

web-devtools/package.json

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
{
2+
"name": "@kleros/kleros-v2-web-devtools",
3+
"version": "0.1.0",
4+
"source": "src/index.html",
5+
"browserslist": "> 0.5%, not dead",
6+
"repository": "",
7+
"author": "",
8+
"license": "MIT",
9+
"packageManager": "[email protected]+sha256.825003a0f561ad09a3b1ac4a3b3ea6207af2796d54f62a9420520915721f5186",
10+
"volta": {
11+
"node": "20.11.0"
12+
},
13+
"scripts": {
14+
"hi": "echo hello world"
15+
},
16+
"prettier": "@kleros/kleros-v2-prettier-config",
17+
"devDependencies": {
18+
"typescript": "^5.3.3"
19+
},
20+
"dependencies": {
21+
"@kleros/kleros-sdk": "workspace:^",
22+
"@kleros/ui-components-library": "^2.10.0",
23+
"viem": "^1.21.4",
24+
"wagmi": "^1.4.13"
25+
}
26+
}

yarn.lock

+12
Original file line numberDiff line numberDiff line change
@@ -6184,6 +6184,18 @@ __metadata:
61846184
languageName: unknown
61856185
linkType: soft
61866186

6187+
"@kleros/kleros-v2-web-devtools@workspace:web-devtools":
6188+
version: 0.0.0-use.local
6189+
resolution: "@kleros/kleros-v2-web-devtools@workspace:web-devtools"
6190+
dependencies:
6191+
"@kleros/kleros-sdk": "workspace:^"
6192+
"@kleros/ui-components-library": "npm:^2.10.0"
6193+
typescript: "npm:^5.3.3"
6194+
viem: "npm:^1.21.4"
6195+
wagmi: "npm:^1.4.13"
6196+
languageName: unknown
6197+
linkType: soft
6198+
61876199
"@kleros/kleros-v2-web@workspace:web":
61886200
version: 0.0.0-use.local
61896201
resolution: "@kleros/kleros-v2-web@workspace:web"

0 commit comments

Comments
 (0)