Skip to content

Commit 513285e

Browse files
authored
Merge pull request #69 from kleros/feat/web
Feat: Initial web app for the court
2 parents 0370388 + e281309 commit 513285e

Some content is hidden

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

89 files changed

+9395
-209
lines changed

.codeclimate.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,5 @@ engines:
44
checks:
55
quotemark:
66
enabled: false
7+
exclude_paths:
8+
- "web/src/graphql/generated.ts"

.yarn/releases/yarn-3.2.0.cjs

Lines changed: 785 additions & 0 deletions
Large diffs are not rendered by default.

contracts/.npmignore

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
1+
# Exclude everything by default from the package
12
**/*
2-
!/src/**
3-
!/artifacts/@kleros/**
4-
!/artifacts/src/**
5-
!/deployments/*/*.json
3+
4+
# Include this
5+
!/artifacts/**
6+
!/typechain-types/**
7+
!/deployments/**
8+
9+
# Except this
10+
/deployments/localhost/
11+
**/.DS_Store

contracts/package.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
22
"name": "@kleros/kleros-v2-contracts",
3-
"version": "0.1.0",
3+
"version": "0.1.1",
44
"description": "Smart contracts for Kleros version 2",
5-
"main": "index.js",
5+
"main": "typechain-types/index.ts",
66
"repository": "[email protected]:kleros/kleros-v2.git",
77
"author": "Kleros",
88
"license": "MIT",
@@ -17,7 +17,8 @@
1717
"deploy:staging": "run-s \"deploy --network rinkeby {@}\" \"deploy --network arbitrumRinkeby {@}\" --",
1818
"test": "hardhat test",
1919
"watch": "hardhat watch",
20-
"docgen": "hardhat docgen"
20+
"docgen": "hardhat docgen",
21+
"publish": "yarn npm publish --access public --tag $(cat package.json | jq .version)"
2122
},
2223
"devDependencies": {
2324
"@nomiclabs/hardhat-ethers": "npm:[email protected]",

netlify.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
web/netlify.toml

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
"subgraph",
1717
"web"
1818
],
19-
"packageManager": "yarn@3.1.1",
19+
"packageManager": "yarn@3.2.0",
2020
"volta": {
2121
"node": "16.15.1"
2222
},
@@ -33,6 +33,7 @@
3333
"eslint-plugin-node": "^11.1.0",
3434
"eslint-plugin-prettier": "^3.4.1",
3535
"eslint-plugin-promise": "^5.1.1",
36+
"eslint-utils": "^3.0.0",
3637
"husky": "^7.0.0",
3738
"lint-staged": "^11.0.0",
3839
"npm-run-all": "^4.1.5",

subgraph/tsconfig.json

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
{
22
"extends": "@graphprotocol/graph-ts/types/tsconfig.base.json",
3-
"include": [
4-
"src"
5-
]
3+
"include": ["src"]
64
}

web/.editorconfig

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
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+
[*.{js,jsx,ts,tsx,json,yml}]
10+
indent_style = space
11+
indent_size = 2

web/.eslintrc.json

Lines changed: 102 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,102 @@
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": 80
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+
}
102+
}

web/.gitignore

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
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.local
22+
.env.development.local
23+
.env.test.local
24+
.env.production.local
25+
26+
npm-debug.log*
27+
yarn-debug.log*
28+
yarn-error.log*

0 commit comments

Comments
 (0)