chore: fix conflicts

This commit is contained in:
zoruka 2022-12-07 15:49:08 -03:00
commit b426d718f6
18 changed files with 3322 additions and 641 deletions

3
.gitignore vendored
View File

@ -6,4 +6,5 @@ cache
artifacts
# NPM
package-lock.json
package-lock.json
artifacts

View File

@ -1,4 +1,4 @@
require('dotenv').config();
// npx hardhat run scripts/mint.js --network polygonMumbai
// TODO: make this arguments
const contractAddress = '0x91A425C1CA320A99a09BE1bee114Fce5d30153d9';

View File

@ -1,4 +1,4 @@
require('dotenv').config();
// npx hardhat run scripts/tokenURI.js --network polygonMumbai
// TODO: make this arguments
const contractAddress = '0x91A425C1CA320A99a09BE1bee114Fce5d30153d9';

View File

@ -1,4 +1,4 @@
require('dotenv').config();
// npx hardhat run scripts/upgrade.js --network polygonMumbai
// TODO: make this arguments
const contractAddress = '0x91A425C1CA320A99a09BE1bee114Fce5d30153d9';

2
ui/.eslintignore Normal file
View File

@ -0,0 +1,2 @@
node_modules
public

29
ui/.eslintrc.js Normal file
View File

@ -0,0 +1,29 @@
module.exports = {
env: {
browser: true,
es2021: true,
},
extends: [
'eslint:recommended',
'plugin:react/recommended',
'plugin:@typescript-eslint/recommended',
'plugin:prettier/recommended',
],
overrides: [],
parser: '@typescript-eslint/parser',
parserOptions: {
ecmaVersion: 'latest',
sourceType: 'module',
},
plugins: ['react', '@typescript-eslint', 'simple-import-sort'],
rules: {
'@typescript-eslint/explicit-function-return-type': [
'error',
{ allowExpressions: true },
],
'@typescript-eslint/no-namespace': 'off',
'simple-import-sort/imports': 2,
'@typescript-eslint/explicit-function-return-type': 'off',
'no-console': 'error',
},
};

1
ui/.gitignore vendored Normal file
View File

@ -0,0 +1 @@
dist

7
ui/.prettierrc Normal file
View File

@ -0,0 +1,7 @@
{
"semi": true,
"useTabs": false,
"tabWidth": 2,
"singleQuote": true,
"endOfLine": "crlf"
}

21
ui/index.html Normal file
View File

@ -0,0 +1,21 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<link
rel="icon"
type="image/svg+xml"
href="https://lh3.googleusercontent.com/a-/ACNPEu94rLyADmAJ80HamM8yp4ddV3AzoaMz3whdBH0D=s80-p"
/>
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta
name="description"
content="Minimal UI for Sites as NFTs. Fleek XYZ"
/>
<title>Sites as NFTS</title>
</head>
<body>
<div id="root"></div>
<script type="module" src="/src/index.tsx"></script>
</body>
</html>

37
ui/package.json Normal file
View File

@ -0,0 +1,37 @@
{
"name": "sites-as-nfts",
"version": "0.0.1",
"description": "Minimal UI for sites as NFTs",
"main": "index.js",
"scripts": {
"dev": "vite",
"build": "vite build",
"preview": "vite preview"
},
"author": "Fleek",
"license": "ISC",
"dependencies": {
"path": "^0.12.7",
"react": "^18.2.0",
"react-dom": "^18.2.0"
},
"devDependencies": {
"@types/jest": "^29.2.3",
"@types/node": "^18.11.9",
"@types/react": "^18.0.25",
"@types/react-dom": "^18.0.9",
"@typescript-eslint/eslint-plugin": "^5.45.0",
"@typescript-eslint/parser": "^5.45.0",
"@vitejs/plugin-react": "^2.2.0",
"eslint": "^8.28.0",
"eslint-config-prettier": "^8.5.0",
"eslint-plugin-jest": "^27.1.6",
"eslint-plugin-prettier": "^4.2.1",
"eslint-plugin-react": "^7.31.11",
"prettier": "^2.8.0",
"ts-loader": "^9.4.1",
"typescript": "^4.9.3",
"vite": "^3.2.4",
"vite-tsconfig-paths": "^3.6.0"
}
}

3
ui/src/app.css Normal file
View File

@ -0,0 +1,3 @@
.main {
text-align: center;
}

10
ui/src/app.tsx Normal file
View File

@ -0,0 +1,10 @@
import React from 'react';
import './App.css';
export const App = () => {
return (
<div className="main">
<h1>Welcome to Sites as NFTs by Fleek</h1>
</div>
);
};

21
ui/src/index.css Normal file
View File

@ -0,0 +1,21 @@
:root {
font-family: Inter, Avenir, Helvetica, Arial, sans-serif;
font-size: 16px;
line-height: 24px;
font-weight: 400;
color-scheme: light dark;
color: rgba(255, 255, 255, 0.87);
background-color: #242424;
}
body {
margin: 0;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
h1 {
font-size: 3.2em;
line-height: 1.1;
}

15
ui/src/index.tsx Normal file
View File

@ -0,0 +1,15 @@
import React from 'react';
import ReactDOM from 'react-dom/client';
import './index.css';
import { App } from './App';
const root = ReactDOM.createRoot(
document.getElementById('root') as HTMLElement
);
root.render(
<React.StrictMode>
<App />
</React.StrictMode>
);

26
ui/tsconfig.json Normal file
View File

@ -0,0 +1,26 @@
{
"compilerOptions": {
"module": "ES2020",
"target": "ESNext",
"esModuleInterop": true,
"sourceMap": true,
"rootDirs": ["src"],
"baseUrl": "src",
"paths": {
"@/*": ["*"]
},
"forceConsistentCasingInFileNames": true,
"resolveJsonModule": true,
"moduleResolution": "node",
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"jsx": "react-jsx",
"strict": true,
"noUnusedLocals": true,
"skipLibCheck": true,
"isolatedModules": true,
"types": ["vite/client"]
},
"include": ["./src", "./*.ts"]
}

9
ui/vite.config.ts Normal file
View File

@ -0,0 +1,9 @@
import { defineConfig } from 'vite';
import react from '@vitejs/plugin-react';
import tsconfigPaths from 'vite-tsconfig-paths';
// https://vitejs.dev/config/
export default defineConfig({
plugins: [react(), tsconfigPaths()],
});

2444
ui/yarn.lock Normal file

File diff suppressed because it is too large Load Diff

1329
yarn.lock

File diff suppressed because it is too large Load Diff