Skip to content

Commit

Permalink
Cleanup (#3299)
Browse files Browse the repository at this point in the history
* remove crypto deps

* remove node polyfills

* amplify config export

* remove unused

* unsed types

* unused exports

* remove unused

* remove unused

* remove unused

* remoev unused schemas

* remove unused

* remove unused endpoint

* dedupe deps

* remove wallet connect setup

* remove test renderer package
  • Loading branch information
ap-justin authored Sep 14, 2024
1 parent f0c08b1 commit 68b8bfd
Show file tree
Hide file tree
Showing 147 changed files with 145 additions and 8,166 deletions.
16 changes: 0 additions & 16 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,34 +32,23 @@
},
"dependencies": {
"@better-giving/assets": "1.0.18",
"@cosmjs/encoding": "0.32.3",
"@ethersproject/abi": "5.7.0",
"@ethersproject/bignumber": "5.7.0",
"@gsap/react": "2.1.1",
"@headlessui/react": "2.1.0",
"@hookform/error-message": "2.0.1",
"@hookform/resolvers": "3.3.4",
"@keplr-wallet/proto-types": "0.12.83",
"@keplr-wallet/wc-qrcode-modal": "0.12.83",
"@paypal/react-paypal-js": "8.3.0",
"@radix-ui/react-slider": "1.1.2",
"@reduxjs/toolkit": "2.2.3",
"@sentry/react": "8.22.0",
"@stripe/react-stripe-js": "2.7.1",
"@stripe/stripe-js": "3.5.0",
"@terra-money/terra.js": "3.1.10",
"@terra-money/wallet-provider": "3.11.2",
"@walletconnect/modal": "2.6.2",
"@walletconnect/sign-client": "2.13.3",
"aws-amplify": "6.3.6",
"cropperjs": "1.6.2",
"decimal.js": "10.4.3",
"framer-motion": "11.2.10",
"fuse.js": "7.0.0",
"gsap": "3.12.5",
"is-mobile": "4.0.0",
"lucide-react": "0.436.0",
"mipd": "0.0.7",
"nprogress": "0.2.0",
"qrcode.react": "3.1.0",
"quill": "2.0.2",
Expand All @@ -80,9 +69,7 @@
},
"devDependencies": {
"@biomejs/biome": "1.8.1",
"@keplr-wallet/types": "0.12.83",
"@rsbuild/core": "0.5.9",
"@rsbuild/plugin-node-polyfill": "0.5.9",
"@rsbuild/plugin-react": "0.5.9",
"@tailwindcss/container-queries": "0.1.1",
"@testing-library/dom": "10.1.0",
Expand All @@ -95,13 +82,10 @@
"@types/react-csv": "1.1.10",
"@types/react-dom": "18.2.19",
"@types/react-helmet": "6.1.11",
"@types/react-test-renderer": "18.0.7",
"@walletconnect/types": "2.13.3",
"jsdom": "24.1.0",
"lefthook": "1.6.15",
"msw": "2.3.1",
"postcss-import": "16.1.0",
"react-test-renderer": "18.2.0",
"tailwindcss": "3.4.3",
"typescript": "5.5",
"vite-tsconfig-paths": "4.3.2",
Expand Down
3 changes: 1 addition & 2 deletions rsbuild.config.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { defineConfig } from "@rsbuild/core";
import { pluginNodePolyfill } from "@rsbuild/plugin-node-polyfill";
import { pluginReact } from "@rsbuild/plugin-react";
import postCSSimport from "postcss-import";
import tailwind from "tailwindcss";
Expand All @@ -13,7 +12,7 @@ export default defineConfig({
template: "./src/index.html",
},
output: { distPath: { root: "build" } },
plugins: [pluginReact(), pluginNodePolyfill()],
plugins: [pluginReact()],
tools: {
postcss: {
postcssOptions: {
Expand Down
2 changes: 0 additions & 2 deletions src/App/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import useScrollTop from "hooks/useScrollTop";
import NProgress from "nprogress";
import { adminRoute } from "pages/Admin";
import { routes as blogRoutes } from "pages/Blog";
import { giftRoute } from "pages/Gift";
import { legalRoutes } from "pages/Legal";
import OAuthRedirector from "pages/OAuthRedirector";
import { profileRoute } from "pages/Profile";
Expand Down Expand Up @@ -39,7 +38,6 @@ const widgetRoutes: RO[] = [
const _appRoutes: RO[] = [
adminRoute,
regRoute,
giftRoute,
userDashboardRoute,
...blogRoutes,
...legalRoutes,
Expand Down
89 changes: 0 additions & 89 deletions src/App/Header/NavbarLanding.tsx

This file was deleted.

43 changes: 0 additions & 43 deletions src/App/Header/ThemeToggle.tsx

This file was deleted.

Empty file.
2 changes: 1 addition & 1 deletion src/components/Image/Image.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import React, {
} from "react";
import ImagePlaceholder from "./ImagePlaceholder";

export type ImageProps = React.ImgHTMLAttributes<HTMLImageElement> & {
type ImageProps = React.ImgHTMLAttributes<HTMLImageElement> & {
isSrcLoading?: boolean;
render?: (img: ReactNode) => ReactElement;
};
Expand Down
2 changes: 1 addition & 1 deletion src/components/Image/index.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
export { default, type ImageProps } from "./Image";
export { default } from "./Image";
export { default as DappLogo } from "./DappLogo";
56 changes: 0 additions & 56 deletions src/components/Prompt/TxPrompt.tsx

This file was deleted.

1 change: 0 additions & 1 deletion src/components/Prompt/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
export { default } from "./Prompt";
export * from "./types";
export * from "./TxPrompt";
2 changes: 1 addition & 1 deletion src/components/TokenField/TokenSelector/types.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
import type { TokenWithDetails } from "types/tx";
import type { TokenWithDetails } from "types/components";

export type OnTokenChange = (token: TokenWithDetails) => void;
2 changes: 1 addition & 1 deletion src/components/TokenField/types.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { TokenWithDetails } from "types/tx";
import type { TokenWithDetails } from "types/components";

type Classes = {
container?: string;
Expand Down
Loading

0 comments on commit 68b8bfd

Please sign in to comment.