Merge branch 'designsystem' of https://github.com/snowball-tools/snowballtools-base into designsystem

This commit is contained in:
Eric Lewis 2024-02-26 17:45:38 -05:00
commit 04460a24ac
10 changed files with 34 additions and 56 deletions

5
.gitignore vendored
View File

@ -1 +1,6 @@
node_modules/ node_modules/
yarn-error.log
.yarnrc.yml
.yarn/
packages/backend/environments/local.toml

View File

@ -28,6 +28,12 @@
cd packages/backend cd packages/backend
``` ```
- Rename backend config file from [environments/local.toml.example](packages/backend/environments/local.toml.example) to `local.toml`
```bash
mv environments/local.toml.example environments/local.toml
```
- Set `gitHub.oAuth.clientId` and `gitHub.oAuth.clientSecret` in backend [config file](packages/backend/environments/local.toml) - Set `gitHub.oAuth.clientId` and `gitHub.oAuth.clientSecret` in backend [config file](packages/backend/environments/local.toml)
- Client ID and secret will be available after [creating an OAuth app](https://docs.github.com/en/apps/oauth-apps/building-oauth-apps/creating-an-oauth-app) - Client ID and secret will be available after [creating an OAuth app](https://docs.github.com/en/apps/oauth-apps/building-oauth-apps/creating-an-oauth-app)
- In "Homepage URL", type `http://localhost:3000` - In "Homepage URL", type `http://localhost:3000`
@ -181,6 +187,12 @@
cd packages/frontend cd packages/frontend
``` ```
- Rename [.env.example](packages/frontend/.env.example) to `.env`
```bash
mv .env.example .env
```
- Copy the GitHub OAuth app client ID from previous steps and set it in frontend [.env](packages/frontend/.env) file - Copy the GitHub OAuth app client ID from previous steps and set it in frontend [.env](packages/frontend/.env) file
```env ```env

View File

@ -1,2 +1,3 @@
db db
dist dist
environments/local.toml

View File

@ -1,6 +0,0 @@
REACT_APP_SERVER_URL = 'http://localhost:8000'
REACT_APP_GITHUB_CLIENT_ID =
REACT_APP_GITHUB_TEMPLATE_REPO =
REACT_APP_WALLET_CONNECT_ID =

View File

@ -0,0 +1,6 @@
REACT_APP_SERVER_URL = 'http://localhost:8000'
REACT_APP_GITHUB_CLIENT_ID =
REACT_APP_GITHUB_TEMPLATE_REPO =
REACT_APP_WALLET_CONNECT_ID =

View File

@ -16,5 +16,10 @@
"plugin:react/recommended", "plugin:react/recommended",
"plugin:@typescript-eslint/recommended", "plugin:@typescript-eslint/recommended",
"plugin:prettier/recommended" "plugin:prettier/recommended"
] ],
"settings": {
"react": {
"version": "detect"
}
}
} }

View File

@ -13,6 +13,7 @@
# misc # misc
.DS_Store .DS_Store
.env
.env.local .env.local
.env.development.local .env.development.local
.env.test.local .env.test.local

View File

@ -28,7 +28,9 @@ const metadata = {
name: 'Web3Modal', name: 'Web3Modal',
description: 'Snowball Web3Modal', description: 'Snowball Web3Modal',
url: window.location.origin, url: window.location.origin,
icons: ['https://avatars.githubusercontent.com/u/37784886'], icons: [
'https://raw.githubusercontent.com/snowball-tools/mediakit/main/assets/logo.svg',
],
}; };
const chains = [mainnet, arbitrum] as const; const chains = [mainnet, arbitrum] as const;

View File

@ -1,48 +0,0 @@
Arguments:
/Users/vivianphung/.nvm/versions/node/v18.19.0/bin/node /Users/vivianphung/Desktop/snowballtools-base/.yarn/releases/yarn-classic.cjs install
PATH:
/Users/vivianphung/.proto/shims:/Users/vivianphung/.proto/bin:/Users/vivianphung/.nvm/versions/node/v18.19.0/bin:/usr/local/share/npm/bin:/usr/local/bin:/usr/local/sbin:~/bin:/usr/local/share/npm/bin:/opt/local/bin:/opt/local/sbin:/opt/local/bin:/opt/local/sbin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:/Library/Apple/usr/bin:/Users/vivianphung/.proto/shims:/Users/vivianphung/.proto/bin:/Users/vivianphung/.nvm/versions/node/v18.19.0/bin:/usr/local/share/npm/bin:/usr/local/sbin:~/bin:/opt/local/bin:/opt/local/sbin:/Applications/Visual Studio Code.app/Contents/Resources/app/bin:/Users/vivianphung/.rvm/bin:/Applications/Visual Studio Code.app/Contents/Resources/app/bin
Yarn version:
1.22.19
Node version:
18.19.0
Platform:
darwin arm64
Trace:
SyntaxError: /Users/vivianphung/Desktop/snowballtools-base/packages/frontend/package.json: Unexpected token < in JSON at position 163
at JSON.parse (<anonymous>)
at /Users/vivianphung/Desktop/snowballtools-base/.yarn/releases/yarn-classic.cjs:1104:57
at Generator.next (<anonymous>)
at step (/Users/vivianphung/Desktop/snowballtools-base/.yarn/releases/yarn-classic.cjs:310:30)
at /Users/vivianphung/Desktop/snowballtools-base/.yarn/releases/yarn-classic.cjs:321:13
npm manifest:
{
"name": "snowball-tools",
"private": true,
"workspaces": [
"packages/*"
],
"dependencies": {},
"devDependencies": {
"husky": "^8.0.3",
"lerna": "^8.0.0",
"depcheck": "^1.4.2"
},
"scripts": {
"prepare": "husky install",
"build": "lerna run build --stream",
"lint": "lerna run lint --stream -- --max-warnings=0"
}
}
yarn manifest:
No manifest
Lockfile: