Skip to content

Commit

Permalink
feat: summary page, refactor and more
Browse files Browse the repository at this point in the history
  • Loading branch information
borcherd committed Sep 25, 2024
1 parent f0686ce commit 0300a02
Show file tree
Hide file tree
Showing 58 changed files with 2,036 additions and 61 deletions.
1 change: 1 addition & 0 deletions .env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
NEXT_PUBLIC_MARGINFI_RPC_ENDPOINT=""
3 changes: 3 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"extends": "@mrgnlabs/eslint-config-custom"
}
4 changes: 1 addition & 3 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.

.env*

# dependencies
/node_modules
/.pnp
Expand All @@ -28,7 +26,7 @@ yarn-error.log*
.pnpm-debug.log*

# local env files
.env*.local
.env

# vercel
.vercel
Expand Down
5 changes: 5 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"editor.codeActionsOnSave": {
"source.fixAll.eslint": true
}
}
4 changes: 2 additions & 2 deletions components.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"tsx": true,
"tailwind": {
"config": "tailwind.config.ts",
"css": "src/app/globals.css",
"css": "src/styles/globals.css",
"baseColor": "zinc",
"cssVariables": true,
"prefix": ""
Expand All @@ -17,4 +17,4 @@
"lib": "@/lib",
"hooks": "@/hooks"
}
}
}
14 changes: 13 additions & 1 deletion next.config.mjs
Original file line number Diff line number Diff line change
@@ -1,4 +1,16 @@
// next.config.js
/** @type {import('next').NextConfig} */
const nextConfig = {};
const nextConfig = {
webpack: (config, { isServer }) => {
if (!isServer) {
config.resolve.fallback = {
...config.resolve.fallback,
fs: false,
};
}
return config;
},
reactStrictMode: false,
};

export default nextConfig;
10 changes: 8 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,17 @@
"lint": "next lint"
},
"dependencies": {
"@coral-xyz/anchor": "^0.30.1",
"@mrgnlabs/marginfi-client-v2": "^4.0.0",
"@mrgnlabs/mrgn-common": "^1.8.0",
"@mrgnlabs/tsconfig": "^0.0.1",
"@radix-ui/react-accordion": "^1.2.0",
"@radix-ui/react-dialog": "^1.1.1",
"@radix-ui/react-dropdown-menu": "^2.1.1",
"@radix-ui/react-icons": "^1.3.0",
"@radix-ui/react-separator": "^1.1.0",
"@radix-ui/react-slot": "^1.1.0",
"@solana/web3.js": "^1.95.3",
"@tabler/icons-react": "^2.40.0",
"class-variance-authority": "^0.7.0",
"clsx": "^2.1.1",
Expand All @@ -27,14 +33,14 @@
},
"devDependencies": {
"@mrgnlabs/eslint-config-custom": "*",
"@tailwindcss/typography": "^0.5.10",
"@types/node": "^20",
"@types/react": "^18",
"@types/react-dom": "^18",
"eslint": "^8",
"eslint-config-next": "14.2.8",
"postcss": "^8",
"tailwindcss": "^3.4.1",
"typescript": "^5",
"@tailwindcss/typography": "^0.5.10"
"typescript": "^5"
}
}
Loading

0 comments on commit 0300a02

Please sign in to comment.