Skip to content

Commit

Permalink
Merge pull request #253 from mrgnlabs/man0s/mobile-tree-bootstrap
Browse files Browse the repository at this point in the history
Man0s/mobile tree bootstrap
  • Loading branch information
losman0s authored Oct 9, 2023
2 parents d3a2ec5 + 75aff55 commit 726e9ba
Show file tree
Hide file tree
Showing 157 changed files with 6,191 additions and 3,450 deletions.
6 changes: 6 additions & 0 deletions apps/marginfi-v2-ui/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -42,3 +42,9 @@ next-env.d.ts

# Sentry Auth Token
.sentryclirc

# PWA
public/sw.js
public/workbox-*.js
public/sw.js.map
public/workbox-*.js.map
13 changes: 10 additions & 3 deletions apps/marginfi-v2-ui/next.config.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,13 @@
const withPWA = require('next-pwa')({
dest: 'public',
disable: process.env.NODE_ENV === 'development',
})

const withBundleAnalyzer = require("@next/bundle-analyzer")({
enabled: process.env.ANALYZE === "true",
});

module.exports = withBundleAnalyzer({
let config = withBundleAnalyzer({
/**
* Dynamic configuration available for the browser and server.
* Note: requires `ssr: true` or a `getInitialProps` in `_app.tsx`
Expand Down Expand Up @@ -79,8 +84,8 @@ module.exports = withBundleAnalyzer({

const { withSentryConfig } = require("@sentry/nextjs");

module.exports = withSentryConfig(
module.exports,
config = withSentryConfig(
config,
{
// For all available options, see:
// https://github.com/getsentry/sentry-webpack-plugin#options
Expand Down Expand Up @@ -111,3 +116,5 @@ module.exports = withSentryConfig(
disableLogger: true,
}
);

module.exports = withPWA(config);
11 changes: 8 additions & 3 deletions apps/marginfi-v2-ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,15 @@
"@socialgouv/matomo-next": "^1.4.0",
"@solana/spl-stake-pool": "^0.6.5",
"@solana/spl-token-registry": "^0.2.4574",
"@solana/wallet-adapter-base": "^0.9.20",
"@solana/wallet-adapter-react": "^0.15.28",
"@solana/wallet-adapter-react-ui": "^0.9.27",
"@solana/wallet-adapter-ant-design": "^0.11.31",
"@solana/wallet-adapter-base": "^0.9.23",
"@solana/wallet-adapter-material-ui": "^0.16.33",
"@solana/wallet-adapter-react": "^0.15.35",
"@solana/wallet-adapter-react-ui": "^0.9.34",
"@solana/wallet-adapter-wallets": "^0.19.10",
"@solana/web3.js": "^1.73.0",
"@vercel/analytics": "^1.0.0",
"@walletconnect/modal": "^2.6.2",
"bignumber.js": "^9.1.1",
"bn.js": "^5.2.1",
"bs58": "^5.0.0",
Expand All @@ -43,11 +46,13 @@
"jsbi": "^4.3.0",
"lodash.debounce": "^4.0.8",
"next": "13.4.19",
"next-pwa": "^5.6.0",
"react": "18.2.0",
"react-dom": "18.2.0",
"react-hotkeys-hook": "^4.4.1",
"react-katex": "^3.0.1",
"react-number-format": "^5.2.2",
"react-responsive": "^9.0.2",
"react-spinners": "^0.13.8",
"react-toastify": "^9.1.1",
"sharp": "^0.31.3",
Expand Down
22 changes: 22 additions & 0 deletions apps/marginfi-v2-ui/public/manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"name": "marginfi",
"short_name": "marginfi",
"icons": [
{
"src": "/mrgn_logo_192.png",
"sizes": "192x192",
"type": "image/png",
"purpose": "any maskable"
},
{
"src": "/mrgn_logo_512.png",
"sizes": "512x512",
"type": "image/png"
}
],
"theme_color": "#0F1111",
"background_color": "#0F1111",
"start_url": "/",
"display": "standalone",
"orientation": "portrait"
}
Binary file added apps/marginfi-v2-ui/public/mrgn_logo_192.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added apps/marginfi-v2-ui/public/mrgn_logo_512.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

This file was deleted.

180 changes: 0 additions & 180 deletions apps/marginfi-v2-ui/src/components/AccountSummary/GlobalStats.tsx

This file was deleted.

Loading

3 comments on commit 726e9ba

@vercel
Copy link

@vercel vercel bot commented on 726e9ba Oct 10, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

marginfi-landing-page – ./apps/marginfi-landing-page

marginfi-landing-page.vercel.app
marginfi-landing-page-mrgn.vercel.app
marginfi-landing-page-git-production-mrgn.vercel.app
www.marginfi.com
marginfi.com

@vercel
Copy link

@vercel vercel bot commented on 726e9ba Oct 10, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

omni – ./apps/omni

omni-mrgn.vercel.app
omni-git-production-mrgn.vercel.app
omni-one.vercel.app
omni.marginfi.com

@vercel
Copy link

@vercel vercel bot commented on 726e9ba Oct 10, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.