Skip to content

Commit

Permalink
v2.0.0 (#1)
Browse files Browse the repository at this point in the history
* introduce vite framework

* use build folder
  • Loading branch information
shahnami authored Mar 10, 2024
1 parent 7c86071 commit d34e9ca
Show file tree
Hide file tree
Showing 54 changed files with 2,384 additions and 1,522 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@

# production
/build
/dist

# misc
.DS_Store
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Stealth Account Recovery Assistant
# Stealth Account Recovery Assistant (PoC)

Stealth Acount Recovery Assistant (SARA) is a web application that helps users recover their FluidKey stealth accounts using the FluidKey Stealth Account Kit.
Stealth Acount Recovery Assistant (SARA) is a simple web application that helps users recover their FluidKey stealth accounts using the FluidKey Stealth Account Kit.

## Demo

Expand Down
25 changes: 0 additions & 25 deletions config-overrides.js

This file was deleted.

16 changes: 16 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
<meta
name="viewport"
content="minimum-scale=1, initial-scale=1, width=device-width, user-scalable=no"
/>
<title>SARA</title>
</head>
<body>
<div id="root"></div>
<script type="module" src="/src/main.tsx"></script>
</body>
</html>
64 changes: 27 additions & 37 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "sara",
"description": "Stealth Acount Recovery Assistant (SARA) is a web application that helps users recover their FluidKey stealth accounts using the FluidKey Stealth Account Kit.",
"version": "0.1.0",
"version": "2.0.0",
"private": false,
"engines": {
"node": ">=18"
Expand All @@ -10,61 +10,51 @@
"type": "git",
"url": "https://github.com/shahnami/sara.git"
},
"type": "module",
"scripts": {
"dev": "vite",
"build": "tsc && vite build --outDir build",
"lint": "eslint src --ext ts,tsx --report-unused-disable-directives --max-warnings 0",
"preview": "vite preview"
},
"dependencies": {
"@fluidkey/stealth-account-kit": "^0.0.30",
"@mantine/core": "7.6.1",
"@mantine/hooks": "7.6.1",
"@rainbow-me/rainbowkit": "^2.0.1",
"@tabler/icons-react": "^2.47.0",
"@tanstack/react-query": "^5.25.0",
"async": "^3.2.5",
"buffer": "^6.0.3",
"ethers": "^6.11.1",
"global": "^4.4.0",
"lodash": "^4.17.21",
"process": "^0.11.10",
"react": "^18.2.0",
"react-csv": "^2.2.2",
"react-dom": "^18.2.0",
"react-pin-input": "^1.3.1",
"react-scripts": "5.0.1",
"stream-browserify": "^3.0.0",
"styled-components": "^6.1.8",
"typescript": "^4.4.2",
"typescript": "^5.4.2",
"viem": "2.x",
"wagmi": "^2.5.7"
},
"scripts": {
"debug": "react-app-rewired start",
"build": "react-app-rewired build",
"test": "react-app-rewired test",
"eject": "react-app-rewired eject"
},
"eslintConfig": {
"extends": [
"react-app",
"react-app/jest"
]
},
"browserslist": {
"production": [
">0.2%",
"not dead",
"not op_mini all"
],
"development": [
"last 1 chrome version",
"last 1 firefox version",
"last 1 safari version"
]
},
"devDependencies": {
"@testing-library/jest-dom": "^5.14.1",
"@testing-library/react": "^13.0.0",
"@testing-library/user-event": "^13.2.1",
"@types/async": "^3.2.24",
"@types/jest": "^27.0.1",
"@types/lodash": "^4.14.202",
"@types/node": "^16.7.13",
"@types/react": "^18.0.0",
"@types/react": "^18.2.36",
"@types/react-csv": "^1.1.10",
"@types/react-dom": "^18.0.0",
"react-app-rewired": "^2.2.1"
"@types/react-dom": "^18.2.14",
"@typescript-eslint/eslint-plugin": "^6.9.1",
"@typescript-eslint/parser": "^6.9.1",
"@vitejs/plugin-react": "^4.2.1",
"eslint": "^8.53.0",
"eslint-plugin-react-hooks": "^4.6.0",
"eslint-plugin-react-refresh": "^0.4.4",
"postcss": "^8.4.32",
"postcss-preset-mantine": "1.13.0",
"postcss-simple-vars": "^7.0.1",
"vite": "^5.0.10",
"vite-plugin-node-polyfills": "^0.21.0",
"vite-tsconfig-paths": "^4.3.1"
}
}
14 changes: 14 additions & 0 deletions postcss.config.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
module.exports = {
plugins: {
"postcss-preset-mantine": {},
"postcss-simple-vars": {
variables: {
"mantine-breakpoint-xs": "36em",
"mantine-breakpoint-sm": "48em",
"mantine-breakpoint-md": "62em",
"mantine-breakpoint-lg": "75em",
"mantine-breakpoint-xl": "88em",
},
},
},
};
Binary file removed public/favicon.ico
Binary file not shown.
1 change: 1 addition & 0 deletions public/favicon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
43 changes: 0 additions & 43 deletions public/index.html

This file was deleted.

Binary file removed public/logo192.png
Binary file not shown.
Binary file removed public/logo512.png
Binary file not shown.
25 changes: 0 additions & 25 deletions public/manifest.json

This file was deleted.

3 changes: 0 additions & 3 deletions public/robots.txt

This file was deleted.

22 changes: 13 additions & 9 deletions src/App.tsx
Original file line number Diff line number Diff line change
@@ -1,23 +1,27 @@
import { WagmiProvider } from "wagmi";
import "@mantine/core/styles.css";
import "@rainbow-me/rainbowkit/styles.css";
import "@css/index.css";

import { MantineProvider } from "@mantine/core";
import { RainbowKitProvider } from "@rainbow-me/rainbowkit";
import { QueryClientProvider, QueryClient } from "@tanstack/react-query";
import { WagmiProvider } from "wagmi";

// Styles
import "@rainbow-me/rainbowkit/styles.css";
import { config, myRainbowExtendedTheme } from "@configs/rainbow.config";
import { theme } from "./theme";

// Components
import { Index } from "./pages/Index";

// Configs
import { config } from "./configs/rainbow.config";
import { Index } from "@pages/Index";

const queryClient = new QueryClient();
const App = () => {
return (
<WagmiProvider config={config}>
<QueryClientProvider client={queryClient}>
<RainbowKitProvider>
<Index />
<RainbowKitProvider theme={myRainbowExtendedTheme}>
<MantineProvider theme={theme}>
<Index />
</MantineProvider>
</RainbowKitProvider>
</QueryClientProvider>
</WagmiProvider>
Expand Down
55 changes: 0 additions & 55 deletions src/components/ActionCard.tsx

This file was deleted.

Loading

0 comments on commit d34e9ca

Please sign in to comment.