Skip to content

Commit

Permalink
cleanup: remove old code and create a new base template
Browse files Browse the repository at this point in the history
  • Loading branch information
BrickheadJohnny committed Nov 18, 2024
1 parent 6dc028c commit 6aea6f0
Show file tree
Hide file tree
Showing 1,989 changed files with 5,876 additions and 163,062 deletions.
14 changes: 0 additions & 14 deletions .env
Original file line number Diff line number Diff line change
@@ -1,14 +0,0 @@
NEXT_PUBLIC_API=https://api.guild.xyz/v1
NEXT_PUBLIC_URL=https://$NEXT_PUBLIC_VERCEL_URL
NEXT_PUBLIC_DISCORD_CLIENT_ID=868172385000509460
NEXT_PUBLIC_IPFS_GATEWAY=https://guild-xyz.mypinata.cloud/ipfs/
NEXT_PUBLIC_PINATA_API=https://api.pinata.cloud
NEXT_PUBLIC_BALANCY_API=https://balancy.guild.xyz/api
NEXT_PUBLIC_TG_BOT_USERNAME=guildxyz_bot
NEXT_PUBLIC_GOOGLE_CLIENT_ID=639132320574-9v9b8d9mq7rjctmjmolsjeklkl2rlcsh.apps.googleusercontent.com
NEXT_PUBLIC_GOOGLE_SERVICE_ACCOUNT_EMAIL=[email protected]
NEXT_PUBLIC_POSTHOG_KEY=phc_Pu6Xv72B95fHVTAKT5Xs2FPgNxrsNP4LecBqPiVAAxi
NEXT_PUBLIC_WALLETCONNECT_PROJECT_ID=d851f25304d67fc8e2dd3b354223e4fa
NEXT_PUBLIC_EDGE_CONFIG_ID=ecfg_buc5l6124c4koymyvseasbd1k3hs
NEXT_PUBLIC_RECAPTCHA_SITE_KEY=6LcQm4onAAAAAOcoqkw9A5txg5SbuddONchMZKrF
NEXT_PUBLIC_BUGSNAG_KEY=4bd5799ac2cb4a34887513b80b845554
23 changes: 0 additions & 23 deletions .env.example
Original file line number Diff line number Diff line change
@@ -1,23 +0,0 @@
ALCHEMY_KEY=""
ARBITRUM_ALCHEMY_KEY=""
BALANCY_TOKEN=""
BASE_ALCHEMY_KEY=""
EDGE_CONFIG=""
GOERLI_ALCHEMY_KEY=""
GUILD_API_KEY=""
IPFS_GATEWAY=""
MAINNET_ALCHEMY_KEY=""
NACL_PUBLIC=""
NETWORK_NAME=""
NOOX_KEY=""
OPENSEA_API_KEY=""
OPTIMISM_ALCHEMY_KEY=""
PINATA_ADMIN_JWT=""
PINATA_ADMIN_KEY=""
PINATA_ADMIN_SECRET=""
POLYGON_ALCHEMY_KEY=""
POLYGON_MUMBAI_ALCHEMY_KEY=""
SECRET_WORDS=""
SEPOLIA_ALCHEMY_KEY=""
SOUND_API_KEY=""
ZEROX_API_KEY=""
12 changes: 0 additions & 12 deletions .snyk

This file was deleted.

5 changes: 0 additions & 5 deletions .storybook/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,5 @@ const config: StorybookConfig = {
options: {},
},
staticDirs: ["../public", { from: "../public/fonts", to: "/public/fonts" }],
refs: {
"@chakra-ui/react": {
disable: true,
},
},
};
export default config;
24 changes: 3 additions & 21 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,13 @@ Open source interface for Guild.xyz -- a tool for platformless membership manage
## Key dependencies overview

- Framework
- React with Next.js
- Next.js
- Styling:
- Chakra UI (migration to Tailwind CSS and Radix UI in progress)
- Tailwind CSS
- Radix UI
- Phosphor icons
- Framer motion
- State management:
- SWR for fetching and caching
- React Hook Form for form state
- jotai for custom, simple global state
- Testing:
Expand All @@ -27,15 +27,10 @@ Open source interface for Guild.xyz -- a tool for platformless membership manage
- Web3 related:
- viem
- wagmi for connection management
- Data visualization, graphics:
- visx
- threejs
- Deployment:
- Vercel
- Product analytics:
- PostHog
- Error monitoring:
- BugSnag

## Development

Expand All @@ -47,19 +42,6 @@ Open source interface for Guild.xyz -- a tool for platformless membership manage

Open [http://localhost:3000](http://localhost:3000) in your browser to see the result.

> [!WARNING]
> We've recently turned on `strict` and `strictNullChecks` tsconfig options, and decided to gradually fix the related TypeScript issues. The pre-commit hook will ignore these, but it is expected that you'll see different issues during local development. Feel free to open a PR if you fix some of them. :wink:
#### For Windows users

If you encounter the error `ERR_OSSL_EVP_UNSUPPORTED` you can do :

```bash
export NODE_OPTIONS=--openssl-legacy-provider
npm i --force
npm run dev
```

### Getting secret environment variables (for core team members):

1. Get added to the team on Vercel
Expand Down
109 changes: 27 additions & 82 deletions biome.json
Original file line number Diff line number Diff line change
@@ -1,101 +1,46 @@
{
"$schema": "https://biomejs.dev/schemas/1.8.3/schema.json",
"formatter": {
"enabled": true,
"formatWithErrors": false,
"indentStyle": "space",
"indentWidth": 2,
"lineEnding": "lf",
"lineWidth": 85,
"attributePosition": "auto"
},
"files": {
"include": ["src", "playwright", "playwright.config.ts"],
"ignore": [
"node_modules",
".next",
"public",
".out",
"package-lock.json",
"*.css"
]
},
"$schema": "https://biomejs.dev/schemas/1.8.1/schema.json",
"organizeImports": {
"enabled": true
},
"formatter": {
"indentStyle": "space"
},
"linter": {
"enabled": true,
"rules": {
"recommended": false,
"a11y": { "useValidAnchor": "warn" },
"complexity": {
"noBannedTypes": "error",
"noUselessConstructor": "error",
"noUselessTypeConstraint": "error",
"useLiteralKeys": "error"
},
"correctness": {
"noInvalidUseBeforeDeclaration": "off",
"noPrecisionLoss": "error",
"useArrayLiterals": "off",
"noConstAssign": "off",
"noGlobalObjectCalls": "off",
"noInvalidConstructorSuper": "off",
"noNewSymbol": "off",
"noSetterReturn": "off",
"noUndeclaredVariables": "off",
"noUnreachable": "off",
"noUnreachableSuper": "off",
"noUnusedImports": "error",
"useExhaustiveDependencies": "warn"
"recommended": true,
"nursery": {
"useSortedClasses": "info"
},
"style": {
"noInferrableTypes": "error",
"noNamespace": "error",
"noNonNullAssertion": "warn",
"useAsConstAssertion": "error",
"useBlockStatements": "off",
"useDefaultParameterLast": "error",
"noArguments": "error",
"noVar": "error",
"useConst": "error",
"noDefaultExport": "info"
"noNonNullAssertion": "warn"
},
"suspicious": {
"noExplicitAny": "info",
"noDuplicateClassMembers": "error",
"noEmptyBlockStatements": "warn",
"noExplicitAny": "off",
"noExtraNonNullAssertion": "error",
"noMisleadingInstantiator": "error",
"noRedeclare": "error",
"useAwait": "off",
"useNamespaceKeyword": "error",
"noDuplicateObjectKeys": "off",
"noDuplicateParameters": "off",
"noFunctionAssign": "off",
"noImportAssign": "off",
"noUnsafeNegation": "off",
"useGetterReturn": "off",
"useValidTypeof": "off"
},
"nursery": {
"useSortedClasses": "info"
"noArrayIndexKey": "info"
},
"performance": { "noBarrelFile": "warn" }
"complexity": { "noForEach": "warn" },
"correctness": {
"noUnusedVariables": "info",
"useExhaustiveDependencies": "warn",
"noUnusedImports": "info"
}
}
},
"files": {
"include": ["src"],
"ignore": [
"node_modules",
".next",
"public",
".out",
"package-lock.json",
"*.css"
]
},
"javascript": {
"formatter": {
"jsxQuoteStyle": "double",
"quoteProperties": "asNeeded",
"trailingCommas": "es5",
"semicolons": "asNeeded",
"arrowParentheses": "always",
"bracketSpacing": true,
"bracketSameLine": false,
"quoteStyle": "double",
"attributePosition": "auto"
"trailingCommas": "all"
}
}
}
17 changes: 0 additions & 17 deletions components.json

This file was deleted.

1 change: 0 additions & 1 deletion next-env.d.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
/// <reference types="next" />
/// <reference types="next/image-types/global" />
/// <reference types="next/navigation-types/compat/navigation" />

// NOTE: This file should not be edited
// see https://nextjs.org/docs/app/building-your-application/configuring/typescript for more information.
Loading

0 comments on commit 6aea6f0

Please sign in to comment.