chore: move twitter FE to separate dir

This commit is contained in:
Saleel
2023-06-07 12:24:25 +05:30
parent 0739818eaa
commit 928b171269
63 changed files with 1451 additions and 1941 deletions

1
.gitignore vendored
View File

@@ -6,6 +6,7 @@ dist
# dependencies
/node_modules
**/node_modules
/.pnp
.pnp.js

View File

@@ -1 +0,0 @@
/// <reference types="react-scripts" />

View File

@@ -1,13 +0,0 @@
const reportWebVitals = onPerfEntry => {
if (onPerfEntry && onPerfEntry instanceof Function) {
import('web-vitals').then(({ getCLS, getFID, getFCP, getLCP, getTTFB }) => {
getCLS(onPerfEntry);
getFID(onPerfEntry);
getFCP(onPerfEntry);
getLCP(onPerfEntry);
getTTFB(onPerfEntry);
});
}
};
export default reportWebVitals;

Binary file not shown.

View File

@@ -28,6 +28,6 @@
<noscript>You need to enable JavaScript to run this app.</noscript>
<div id="root"></div>
<script type="module" src="/src/index.jsx"></script>
<script type="module" src="./index.jsx"></script>
</body>
</html>

View File

@@ -1,7 +1,6 @@
import React from "react";
import ReactDOM from "react-dom";
import App from "./App";
import reportWebVitals from "./reportWebVitals";
import { WagmiConfig, createClient, configureChains, chain } from "wagmi";
import { publicProvider } from "wagmi/providers/public";
import {
@@ -40,8 +39,3 @@ ReactDOM.render(
</React.StrictMode>,
document.getElementById("root")
);
// If you want to start measuring performance in your app, pass a function
// to log results (for example: reportWebVitals(console.log))
// or send to an analytics endpoint. Learn more: https://bit.ly/CRA-vitals
reportWebVitals();

View File

Before

Width:  |  Height:  |  Size: 2.6 KiB

After

Width:  |  Height:  |  Size: 2.6 KiB

View File

@@ -13,8 +13,8 @@ import {
mergeUInt8Arrays,
int64toBytes,
} from "../helpers/binaryFormat";
import { CIRCOM_FIELD_MODULUS, MAX_HEADER_PADDED_BYTES, MAX_BODY_PADDED_BYTES, STRING_PRESELECTOR } from "../../src/helpers/constants";
import { shaHash, partialSha, sha256Pad } from "../../src/helpers/shaHash";
import { CIRCOM_FIELD_MODULUS, MAX_HEADER_PADDED_BYTES, MAX_BODY_PADDED_BYTES, STRING_PRESELECTOR } from "../helpers/constants";
import { shaHash, partialSha, sha256Pad } from "../helpers/shaHash";
import { dkimVerify } from "../helpers/dkim";
import * as fs from "fs";
import { stubObject } from "lodash";

View File

@@ -1,15 +1,12 @@
{
"compilerOptions": {
"module": "ESNext",
"target": "ESNext",
"module": "esnext",
"esModuleInterop": true,
"lib": [
"dom",
"dom.iterable",
"esnext"
],
"lib": ["dom", "dom.iterable", "esnext"],
"types": ["vite/client"],
"allowJs": true,
"skipLibCheck": true,
"esModuleInterop": true,
"allowSyntheticDefaultImports": true,
"strict": true,
"forceConsistentCasingInFileNames": true,
@@ -19,14 +16,7 @@
"isolatedModules": true,
"noEmit": true,
"jsx": "react-jsx",
"types": ["vite/client", "vite-plugin-svgr/client"],
"incremental": true
},
"include": [
"src",
"circuits/scripts/"
],
"exclude": [
"node_modules"
]
"include": [".", "../src/contracts"],
"exclude": ["./dist"]
}

File diff suppressed because one or more lines are too long

File diff suppressed because it is too large Load Diff