Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
…into nav-dao-toggle
  • Loading branch information
carina-akaia committed Jun 25, 2024
2 parents ebd0a59 + a77002f commit fed520a
Show file tree
Hide file tree
Showing 144 changed files with 5,547 additions and 4,635 deletions.
3 changes: 2 additions & 1 deletion .env.example
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
NEXT_PUBLIC_NETWORK=mainnet
NEXT_PUBLIC_PAGODA_API_KEY=a1b2c3d4-e5f6-7890-ab12-3cd4ef5g678h
NEXT_PUBLIC_CONTRACT_NAME=potlock.near
NEXT_PUBLIC_SOCIAL_DB_CONTRACT_ID=social.near
NEXT_PUBLIC_NADABOT_CONTRACT_ID=v1.nadabot.near
NEXT_PUBLIC_POTLOCK_LISTS_CONTRACT_ID=lists.potlock.near
NEXT_PUBLIC_POTLOCK_DONATE_CONTRACT_ID=donate.potlock.near
NEXT_PUBLIC_POTLOCK_POT_FACTORY_CONTRACT_ID=v1.potfactory.potlock.near
NEXT_PUBLIC_POTLOCK_POT_FACTORY_CONTRACT_ID=v1.potfactory.potlock.near
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,9 @@ Open [http://localhost:3000](http://localhost:3000) in your browser.
This project is using an indexer service.
You can access its docs here: <https://github.com/PotLock/django-indexer?tab=readme-ov-file#api-endpoints>

**URI**: `http://ec2-100-27-57-47.compute-1.amazonaws.com/api/v1`
**URI**: <http://ec2-100-27-57-47.compute-1.amazonaws.com/api/v1>

**Swagger UI**: <https://dev.potlock.io/api/schema/swagger-ui/#/>

### Project Structure

Expand Down
33 changes: 0 additions & 33 deletions kubb.config.ts

This file was deleted.

30 changes: 12 additions & 18 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,27 +5,20 @@
"type": "module",
"scripts": {
"lint": "next lint",
"format": "yarn lint --fix",
"format": "yarn lint --fix ./",
"typecheck": "tsc --noEmit",
"generate:api": "kubb --config kubb.config.ts",
"generate:api-pagoda": "orval --config pagoda-eapi.cjs",
"generate:api-potlock": "orval --config potlock-indexer.cjs",
"generate:api": "concurrently 'yarn generate:api-potlock' 'yarn generate:api-pagoda'",
"dev:test": "yarn && yarn generate:api && vitest watch",
"dev": "yarn && yarn generate:api; next dev",
"build": "yarn generate:api; next build",
"build": "next build",
"start": "next start",
"test:unit": "vitest run"
},
"dependencies": {
"@ebay/nice-modal-react": "^1.2.13",
"@hookform/resolvers": "^3.6.0",
"@kubb/cli": "^2.19.5",
"@kubb/core": "^2.19.5",
"@kubb/plugin-oas": "^2.19.5",
"@kubb/react": "^2.19.5",
"@kubb/swagger": "^2.19.5",
"@kubb/swagger-client": "^2.19.5",
"@kubb/swagger-swr": "^2.19.5",
"@kubb/swagger-ts": "^2.19.5",
"@kubb/swagger-zod": "^2.19.5",
"@near-wallet-selector/bitget-wallet": "^8.9.5",
"@near-wallet-selector/coin98-wallet": "^8.9.5",
"@near-wallet-selector/here-wallet": "^8.9.5",
Expand Down Expand Up @@ -64,7 +57,6 @@
"@rematch/persist": "^2.1.2",
"@unocss/reset": "^0.60.4",
"@wpdas/naxios": "^2.1.0",
"@zodios/core": "^10.9.6",
"axios": "^1.7.2",
"big.js": "^6.2.1",
"class-variance-authority": "^0.7.0",
Expand All @@ -74,15 +66,15 @@
"near-api-js": "^2.1.4",
"next": "^14.2.3",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"react-hook-form": "^7.51.5",
"react-copy-to-clipboard": "^5.1.0",
"react-dom": "^18.3.1",
"react-hook-form": "^7.52.0",
"react-infinite-scroll-component": "^6.1.0",
"react-redux": "^9.1.2",
"redux": "^5.0.1",
"sass": "^1.77.2",
"swr": "^2.2.5",
"styled-components": "^6.1.11",
"swr": "^2.2.5",
"tailwind-merge": "^2.3.0",
"tailwindcss-animate": "^1.0.7",
"zod": "^3.23.8"
Expand All @@ -92,21 +84,23 @@
"@types/big.js": "^6.2.2",
"@types/node": "^20",
"@types/react": "^18.3.3",
"@types/react-dom": "^18.3.0",
"@types/react-copy-to-clipboard": "^5.0.7",
"@types/react-dom": "^18.3.0",
"@typescript-eslint/eslint-plugin": "^7.9.0",
"@typescript-eslint/parser": "^7.9.0",
"@unocss/preset-attributify": "^0.60.4",
"@unocss/preset-wind": "^0.60.4",
"@unocss/webpack": "^0.60.4",
"@vitejs/plugin-react": "^4.3.0",
"concurrently": "^8.2.2",
"eslint": "^8",
"eslint-config-next": "14.2.3",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-import": "^2.29.1",
"eslint-plugin-prettier": "^5.1.3",
"eslint-plugin-testing-library": "^6.2.2",
"jsdom": "^24.1.0",
"orval": "^6.30.2",
"postcss": "^8",
"prettier": "^3.2.5",
"prettier-plugin-tailwindcss": "^0.5.14",
Expand All @@ -120,4 +114,4 @@
"vite-tsconfig-paths": "^4.3.2",
"vitest": "^1.6.0"
}
}
}
14 changes: 14 additions & 0 deletions pagoda-eapi.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
module.exports = {
"pagoda-eapi": {
input: "./pagoda-eapi.json",

output: {
target: "./src/common/api/pagoda/generated/client.ts",
client: "swr",
},

hooks: {
afterAllFilesWrite: "yarn format",
},
},
};
Loading

0 comments on commit fed520a

Please sign in to comment.