Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace NextJS with Vite #1431

Merged
merged 36 commits into from
Mar 13, 2024
Merged
Show file tree
Hide file tree
Changes from 26 commits
Commits
Show all changes
36 commits
Select commit Hold shift + click to select a range
59f570d
Remove App Directory
Da-Colon Mar 7, 2024
215d2be
updates to next config
Da-Colon Mar 7, 2024
46104dc
refactor AppRouter pages for use in Page Router
Da-Colon Mar 7, 2024
3a6c1d8
refactor DAO Layout into Compontent that wraps apps (needed for new s…
Da-Colon Mar 7, 2024
06e0067
addresses issues with items loading now that component isn't remounted
Da-Colon Mar 7, 2024
6f17b18
move imports to _app.tsx (top of tree)
Da-Colon Mar 7, 2024
841c10c
Merge branch 'develop' of github.com:decent-dao/fractal-interface int…
Da-Colon Mar 7, 2024
29c045c
remove console log
Da-Colon Mar 8, 2024
8b400d0
remove export config property (for now)
Da-Colon Mar 8, 2024
40cf01b
Replace NextJS with Vite and React-Router-Dom
Da-Colon Mar 11, 2024
fa55121
add env typing
Da-Colon Mar 11, 2024
4119509
Kyrylo comments updates
Da-Colon Mar 11, 2024
2ce2934
run lint fix
Da-Colon Mar 11, 2024
780799b
remove Next SSR ClientOnly Component bandaid and 'use client' flags
Da-Colon Mar 11, 2024
b04ca55
update lock file
Da-Colon Mar 11, 2024
d92d292
configure vite for depreciated warning. `Vite CJS Node API deprecated`
Da-Colon Mar 11, 2024
03f8151
Fix for react-router-dom BrowserRouter on Netlify
Da-Colon Mar 11, 2024
0e4602c
replace APP_NAME const, with VITE_APP_NAME env
Da-Colon Mar 11, 2024
12bde8e
prettier ran
Da-Colon Mar 11, 2024
00f0ca2
Fix runtime env vars to get GIT HASH
adamgall Mar 11, 2024
43e92b7
Add typing to VITE_APP_GIT_HASH, remove undefined conditional
adamgall Mar 11, 2024
c8b5913
remove unused typing
Da-Colon Mar 11, 2024
76689aa
remove unneeded include
Da-Colon Mar 11, 2024
04f302a
add lint:fix script
Da-Colon Mar 11, 2024
a576237
Remove next ignores
adamgall Mar 11, 2024
c0ddfda
Standardize lint and pretty scritps
adamgall Mar 11, 2024
18452a3
let -> const
Da-Colon Mar 11, 2024
f7a70f6
Reorder package.json deps to be alphabetical
adamgall Mar 12, 2024
9edf39c
add `div` element missing from ClientOnly removal
Da-Colon Mar 12, 2024
45150fa
Fix env var references in the <head>
adamgall Mar 12, 2024
40a656c
fix heirarchy loading issue
Da-Colon Mar 12, 2024
d9f1f49
fix page header breadcrumb link re-rendering dao page when clicked
Da-Colon Mar 12, 2024
30916d4
fix new proposal-templates route
Da-Colon Mar 12, 2024
8935596
switch last few Router Links to `to` property from href
Da-Colon Mar 12, 2024
a5803ee
Switch Page navigation to React-Router Link component
Da-Colon Mar 13, 2024
c152334
Clean up some directory declarations in gitignore
adamgall Mar 13, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 11 additions & 10 deletions .env
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Don't forget to update local env files as well from NEXT_PUBLIC_ -> VITE_APP_

Original file line number Diff line number Diff line change
@@ -1,24 +1,25 @@
# CoinGecko API key
COINGECKO_API_KEY=""
VITE_APP_NAME=Fractal
# Alchemy provider API key, used on Mainnet
NEXT_PUBLIC_ALCHEMY_MAINNET_API_KEY=""
VITE_APP_ALCHEMY_MAINNET_API_KEY=""
# Alchemy provider API key, used on Sepolia
NEXT_PUBLIC_ALCHEMY_SEPOLIA_API_KEY=""
VITE_APP_ALCHEMY_SEPOLIA_API_KEY=""
# automated testing workflows
NEXT_PUBLIC_ALCHEMY_TESTING_API_KEY=""
VITE_APP_ALCHEMY_TESTING_API_KEY=""
# ABI selector (*)
NEXT_PUBLIC_ETHERSCAN_API_KEY=""
VITE_APP_ETHERSCAN_API_KEY=""
# IPFS pinning (*)
NEXT_PUBLIC_INFURA_IPFS_API_KEY=""
VITE_APP_INFURA_IPFS_API_KEY=""
# IPFS pinning (*)
NEXT_PUBLIC_INFURA_IPFS_API_SECRET=""
VITE_APP_INFURA_IPFS_API_SECRET=""
# Sentry DSN URL, not used locally
NEXT_PUBLIC_SENTRY_DSN_URL=""
VITE_APP_SENTRY_DSN_URL=""
# Shutter Public Key
NEXT_PUBLIC_SHUTTER_EON_PUBKEY=0x0e6493bbb4ee8b19aa9b70367685049ff01dc9382c46aed83f8bc07d2a5ba3e6030bd83b942c1fd3dff5b79bef3b40bf6b666e51e7f0be14ed62daaffad47435265f5c9403b1a801921981f7d8659a9bd91fe92fb1cf9afdb16178a532adfaf51a237103874bb03afafe9cab2118dae1be5f08a0a28bf488c1581e9db4bc23ca
VITE_APP_SHUTTER_EON_PUBKEY=0x0e6493bbb4ee8b19aa9b70367685049ff01dc9382c46aed83f8bc07d2a5ba3e6030bd83b942c1fd3dff5b79bef3b40bf6b666e51e7f0be14ed62daaffad47435265f5c9403b1a801921981f7d8659a9bd91fe92fb1cf9afdb16178a532adfaf51a237103874bb03afafe9cab2118dae1be5f08a0a28bf488c1581e9db4bc23ca
# site preview links
NEXT_PUBLIC_SITE_URL="https://app.dev.fractalframework.xyz/"
VITE_APP_SITE_URL="https://app.dev.fractalframework.xyz/"
# WalletConnect Cloud Project ID
NEXT_PUBLIC_WALLET_CONNECT_PROJECT_ID=""
VITE_APP_WALLET_CONNECT_PROJECT_ID=""
# Minutes to cache prices for token addresses
TOKEN_PRICE_CACHE_INTERVAL_MINUTES=""
4 changes: 3 additions & 1 deletion .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,11 @@
"es2021": true
},
"extends": [
"next/core-web-vitals",
"plugin:import/recommended",
"airbnb-typescript/base",
"plugin:react/recommended",
"plugin:react/jsx-runtime",
"plugin:react-hooks/recommended",
"prettier"
],
"parser": "@typescript-eslint/parser",
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/code-syntax.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
- name: Build GraphQL client
run: npm run graphql:build
- name: Run tests
run: npm run lint
run: npm run lint:check
pretty:
runs-on: ubuntu-latest
steps:
Expand Down
4 changes: 1 addition & 3 deletions .gitignore
adamgall marked this conversation as resolved.
Show resolved Hide resolved
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,7 @@
/coverage

# production
/build
.next/
/out
/dist

# misc
.DS_Store
Expand Down
42 changes: 0 additions & 42 deletions app/daos/[daoAddress]/new/page.tsx

This file was deleted.

23 changes: 0 additions & 23 deletions app/daos/[daoAddress]/page.tsx

This file was deleted.

218 changes: 0 additions & 218 deletions app/daos/[daoAddress]/proposal-templates/new/page.tsx

This file was deleted.

Loading