Skip to content

Commit a0fd77a

Browse files
authored
Refactored to use new frameworks (#9)
* Setting up login example * Wallets connnecting * Template done * Cleared
1 parent 7c7df4d commit a0fd77a

File tree

269 files changed

+8619
-19043
lines changed

Some content is hidden

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

269 files changed

+8619
-19043
lines changed

.env.example

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
PORT=3000
2+
HTTPS=false
3+
4+
# Get your ID on Blocknative: https://explorer.blocknative.com/account
5+
REACT_APP_BLOCKNATIVE_ID=
6+
REACT_APP_INFURA_PROJECT_ID=634371d724e34613bfc66e595b853cf0

.eslintrc.json

Lines changed: 78 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,78 @@
1+
{
2+
"parser": "@typescript-eslint/parser",
3+
"parserOptions": {
4+
"ecmaVersion": 2020, // Allows for the parsing of modern ECMAScript features
5+
"sourceType": "module", // Allows for the use of imports
6+
"ecmaFeatures": {
7+
"jsx": true // Allows for the parsing of JSX
8+
}
9+
},
10+
"plugins": ["@typescript-eslint", "cypress", "ternary"],
11+
"extends": [
12+
"eslint:recommended",
13+
"plugin:@typescript-eslint/eslint-recommended",
14+
"plugin:@typescript-eslint/recommended",
15+
"plugin:react/recommended",
16+
"plugin:react-hooks/recommended",
17+
"plugin:cypress/recommended",
18+
"plugin:ternary/recommended"
19+
],
20+
"settings": {
21+
"react": {
22+
"version": "detect"
23+
}
24+
},
25+
"rules": {
26+
"comma-spacing": ["error", { "before": false, "after": true }],
27+
"indent": ["error", 2],
28+
"linebreak-style": ["error", "unix"],
29+
"quotes": ["error", "double"],
30+
"semi": ["error", "never"],
31+
"max-len": [
32+
"error",
33+
{
34+
"code": 140
35+
}
36+
],
37+
"react-hooks/rules-of-hooks": "error",
38+
"react-hooks/exhaustive-deps": "warn",
39+
"react/prop-types": 0,
40+
"react/jsx-max-props-per-line": [2, {
41+
"maximum": 1,
42+
"when": "always"
43+
}],
44+
"react/jsx-fragments": "error",
45+
"arrow-spacing": "error",
46+
"space-infix-ops": "error",
47+
"no-trailing-spaces": ["error", { "ignoreComments": true }],
48+
"comma-dangle": ["error", "never"],
49+
"object-curly-spacing": ["error", "always"],
50+
"space-in-parens": ["error", "never"],
51+
"ternary/no-unreachable": "off",
52+
"ternary/nesting": "off",
53+
"@typescript-eslint/no-unused-vars": "error",
54+
"@typescript-eslint/no-use-before-define": "off",
55+
"@typescript-eslint/explicit-function-return-type": "off",
56+
"@typescript-eslint/no-explicit-any": "off",
57+
"@typescript-eslint/camelcase": "off",
58+
"@typescript-eslint/interface-name-prefix": "off",
59+
"@typescript-eslint/explicit-module-boundary-types": "off",
60+
"@typescript-eslint/member-delimiter-style" : ["warn", {
61+
"multiline": {
62+
"delimiter": "none",
63+
"requireLast": true
64+
},
65+
"singleline": {
66+
"delimiter": "semi",
67+
"requireLast": false
68+
}
69+
}]
70+
},
71+
"ignorePatterns": [
72+
".github/**",
73+
".vscode/**",
74+
".yarn/**",
75+
"**/dist/*",
76+
"**/node_modules/*"
77+
]
78+
}

.gitignore

100755100644
Lines changed: 16 additions & 155 deletions
Original file line numberDiff line numberDiff line change
@@ -1,168 +1,29 @@
1-
# File created using '.gitignore Generator' for Visual Studio Code: https://bit.ly/vscode-gig
1+
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
22

3-
# Created by https://www.gitignore.io/api/visualstudiocode,windows,linux,macos,node
4-
# Edit at https://www.gitignore.io/?templates=visualstudiocode,windows,linux,macos,node
3+
# dependencies
4+
/node_modules
5+
/.pnp
6+
.pnp.js
57

6-
### Linux ###
7-
*~
8+
# testing
9+
/coverage
810

9-
# temporary files which can be created if a process still has a handle open of a deleted file
10-
.fuse_hidden*
11+
# production
12+
/build
1113

12-
# KDE directory preferences
13-
.directory
14-
15-
# Linux trash folder which might appear on any partition or disk
16-
.Trash-*
17-
18-
# .nfs files are created when an open file is removed but is still being accessed
19-
.nfs*
20-
21-
### macOS ###
22-
# General
14+
# misc
2315
.DS_Store
24-
.AppleDouble
25-
.LSOverride
26-
27-
# Icon must end with two \r
28-
Icon
29-
30-
# Thumbnails
31-
._*
16+
.env.local
17+
.env.development.local
18+
.env.test.local
19+
.env.production.local
3220

33-
# Files that might appear in the root of a volume
34-
.DocumentRevisions-V100
35-
.fseventsd
36-
.Spotlight-V100
37-
.TemporaryItems
38-
.Trashes
39-
.VolumeIcon.icns
40-
.com.apple.timemachine.donotpresent
41-
42-
# Directories potentially created on remote AFP share
43-
.AppleDB
44-
.AppleDesktop
45-
Network Trash Folder
46-
Temporary Items
47-
.apdisk
48-
49-
### Node ###
50-
# Logs
51-
logs
52-
*.log
5321
npm-debug.log*
5422
yarn-debug.log*
5523
yarn-error.log*
5624

57-
# Runtime data
58-
pids
59-
*.pid
60-
*.seed
61-
*.pid.lock
62-
63-
# Directory for instrumented libs generated by jscoverage/JSCover
64-
lib-cov
65-
66-
# Coverage directory used by tools like istanbul
67-
coverage
68-
69-
# nyc test coverage
70-
.nyc_output
71-
72-
# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
73-
.grunt
74-
75-
# Bower dependency directory (https://bower.io/)
76-
bower_components
77-
78-
# node-waf configuration
79-
.lock-wscript
80-
81-
# Compiled binary addons (https://nodejs.org/api/addons.html)
82-
build/Release
83-
84-
# Dependency directories
85-
node_modules/
86-
jspm_packages/
87-
88-
# Optional npm cache directory
89-
.npm
90-
91-
# Optional eslint cache
92-
.eslintcache
93-
94-
# Optional REPL history
95-
.node_repl_history
96-
97-
# Output of 'npm pack'
98-
*.tgz
99-
100-
# Yarn Integrity file
101-
.yarn-integrity
102-
103-
# dotenv environment variables file
10425
.env
105-
.env.test
106-
107-
# parcel-bundler cache (https://parceljs.org/)
108-
.cache
109-
110-
# next.js build output
111-
.next
112-
113-
# nuxt.js build output
114-
.nuxt
115-
116-
# vuepress build output
117-
.vuepress/dist
118-
119-
# Serverless directories
120-
.serverless/
121-
122-
# FuseBox cache
123-
.fusebox/
124-
125-
# DynamoDB Local files
126-
.dynamodb/
127-
128-
### VisualStudioCode ###
129-
.vscode/*
130-
!.vscode/settings.json
131-
!.vscode/tasks.json
132-
!.vscode/launch.json
133-
!.vscode/extensions.json
134-
135-
### VisualStudioCode Patch ###
136-
# Ignore all local history of files
137-
.history
138-
139-
### Windows ###
140-
# Windows thumbnail cache files
141-
Thumbs.db
142-
ehthumbs.db
143-
ehthumbs_vista.db
144-
145-
# Dump file
146-
*.stackdump
147-
148-
# Folder config file
149-
[Dd]esktop.ini
150-
151-
# Recycle Bin used on file shares
152-
$RECYCLE.BIN/
153-
154-
# Windows Installer files
155-
*.cab
156-
*.msi
157-
*.msix
158-
*.msm
159-
*.msp
160-
161-
# Windows shortcuts
162-
*.lnk
163-
164-
# End of https://www.gitignore.io/api/visualstudiocode,windows,linux,macos,node
16526

166-
# Custom rules (everything added below won't be overriden by 'Generate .gitignore File' if you use 'Update' option)
27+
src/locales/*/messages.js
28+
src/locales/_build
16729

168-
contractAbi

.linguirc

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"catalogs": [{
3+
"path": "<rootDir>/src/locales/{locale}/messages",
4+
"include": ["<rootDir>/src/**"],
5+
"exclude": ["**/node_modules/**", "<rootDir>/src/locales/**"]
6+
}],
7+
"compileNamespace": "cjs",
8+
"format": "po",
9+
"formatOptions": {
10+
"origins": false
11+
},
12+
"locales": ["en"],
13+
"sourceLocale": "en"
14+
}

Contracts/.gitignore

Lines changed: 0 additions & 4 deletions
This file was deleted.

Contracts/contracts/LimeFactory.sol

Lines changed: 0 additions & 21 deletions
This file was deleted.

Contracts/contracts/MintyToken.sol

Lines changed: 0 additions & 12 deletions
This file was deleted.

Contracts/deployment/deploy.js

Lines changed: 0 additions & 14 deletions
This file was deleted.

0 commit comments

Comments
 (0)