-
-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* deps: added mongoose * feat(*): added mongo and saving invited count * chore(env): updated mongo configuration * chore: updated next-env.d.ts * chore(*): changed categories to botCategories * chore(Image): maded image component * feat(ServerCard): added ServerCard component * feat(ServerIcon): added ServerIcon component * feat(Tools): added server related functions * feat(Mongo): added serverSchema * chore(Hero): support serverlist * feat(Owner): added crown * feat(icons): added icons api * feat(Yup): added AddServerSubmitSchema * types: added server related types * chore(BotCard): changed bot category link * chore(Hero): changed category links * feat(ServerCard): added unreachable state display * feat(Yup): added ManageServerSchema * feat(Query): added server related queries * feat(Constants): added server related stuffs * types: added updatedAt field for ServerData * feat(pages/servers/*): added server pages * feat(*): moved bot category rotue * typo: fixed typo issue * feat(pages/addserver/*): added add server page * feat(api/servers): added server related api * feat(pages/servers): added server edit page * feat(pages/bots): changed bot list route * feat(*): server categories * feat(pages/users): added owned server list * chore(pages/bots): changed image size * feat(docker-compose): added bot * ci: made some changes * types: fixed type * types(Search): fixed type * types(*): fixed type * fix(*): missing fields * fix: Hero type typo issue * ci(*): missing sentry org slug * ci(*): fix * feat(*): added and changed search pages * Update pages/addserver/[id].tsx Co-authored-by: Ryu JuHeon <[email protected]> * feat(api/search): added servers search api * feat(pages/panel): added server list in manage page * feat(Search): supporting server search at SearchBox * feat(pages/apllications/servers): added server application page * chore(docker-compose): changed image link * chore(utils): removing server cache at submit * chore(image/icons): added debug code * chore(*): changed component names * chore(Query): decreased server cache ttl * fix(Query): error on addserver page close: koreanbots/serverlist-testing#10 * fix(Query): not using vote type close: koreanbots/serverlist-testing#9 * fix(Constants): fixed category unexpected char close: koreanbots/serverlist-testing#8 * fix(Query): serialize server data * fix(Query): returning null on boost level 0 * fix(page/servers): displaying n/a on boostTier null close: koreanbots/serverlist-testing#4 * fix(pages/servers): hiding emoji list if no emoji close: koreanbots/serverlist-testing#1 * typo(pages/servers): bot to server close: koreanbots/serverlist-testing#2 * fix(components/Hero): editing vote list link close: koreanbots/serverlist-testing#11 * chore(*): changed list route * feat(pages/servers/list/votes): added server vote list page close: koreanbots/serverlist-testing#12 * feat(Dockerfile): added pre-build * fix(Image): image broken when fallbackSrc not given close: koreanbots/serverlist-testing#5 * ci: checking out submodules * fix(ServerCard): bot category displayed at ServerCard close: koreanbots/serverlist-testing#16 * feat(*): supporting opengraph image for server * fix(utils/Constants): fixed type missing on og * feat(pages/servers): not forcing emoji width * chore(utils/Yup): fixed agree checkbox error message * typo(utils/Yup): fixed bot to server * feat(pages/servers): improved emoji display * chore(api/images/discord/icons): removed debug code * chore(pages/servers): removed crown for owner close: koreanbots/serverlist-testing#19 * fix(utils/Query): returning date as string close: koreanbots/serverlist-testing#23 * fix(ServerCard): changed manage link from bot manage link * fix(ServerCard): same height for every card * chore: removed debug code * chore(pages/addserver): showing as invite for server kicked bot * typo(*): fixed typo issues * types: added nullable type * feat(Navbar): added list menu * chore: showing warning for server data not fetched * chore: changed main page (combined bots and servers) * typo(*): replace '한국 디스코드봇 리스트' with '한국 디스코드 리스트' * chore: added Hero component combined state * typo: changed name * fix(Navbar): fix link href * typo: fix about page for serverlist * chore: decrease font size * fix: server category tag link * fix: bot category link * feat: added server widget * fix(ServerCard): fixed servername overflowing * chore: forcing re-login when discord server data fetch fails * fix: error causing on owner not registered * fix: making state same for join button * fix: filtering owner if null * fix(servers/[id]): fix error causing if owner is null * fix(addserver): fixed error occuring for users not logged in * fix(Constant): fixed og image extension getting popped * typo: fixed typo issue * fix: showing forbidden page for non-owner users * feat: invite guide for server which bot left * fix: invalid path for paginator on bot page Co-authored-by: Hajin Lim <[email protected]> Co-authored-by: Ryu JuHeon <[email protected]>
- Loading branch information
1 parent
1fbb685
commit 678fae4
Showing
79 changed files
with
3,935 additions
and
395 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
name: Publish | ||
on: | ||
push: | ||
branches: [master] | ||
pull_request: # debug | ||
branches: '*' | ||
tags: '*' | ||
|
||
jobs: | ||
image-push: | ||
name: Push docker image | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
with: | ||
submodules: true | ||
- uses: docker/setup-buildx-action@v1 | ||
- name: Parse image tag | ||
run: | | ||
parsed=${GITHUB_REF#refs/*/} | ||
echo "RELEASE_TAG=${parsed//\//-}" >> $GITHUB_ENV | ||
- name: Configure AWS credentials | ||
uses: aws-actions/configure-aws-credentials@v1 | ||
with: | ||
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }} | ||
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | ||
aws-region: ap-northeast-2 | ||
- name: Login to Amazon ECR | ||
id: login-ecr | ||
uses: aws-actions/amazon-ecr-login@v1 | ||
- name: Build and push | ||
env: | ||
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }} | ||
NEXT_PUBLIC_SENTRY_DSN: ${{ secrets.SENTRY_DSN }} | ||
SENTRY_DSN: ${{ secrets.SENTRY_DSN }} | ||
ECR_REGISTRY: ${{ steps.login-ecr.outputs.registry }} | ||
IMAGE_TAG: ${{ github.sha }} | ||
run: | | ||
printf 'defaults.url=https://sentry.io/\ndefaults.org=koreanbots\ndefaults.project=client' > sentry.properties | ||
docker build --build-arg SENTRY_AUTH_TOKEN=$SENTRY_AUTH_TOKEN --build-arg NEXT_PUBLIC_SENTRY_DSN=$NEXT_PUBLIC_SENTRY_DSN --build-arg SENTRY_DSN=$SENTRY_DSN --build-arg SOURCE_COMMIT=${{ env.GITHUB_SHA }} --build-arg TAG=${{ env.RELEASE_TAG }} -t koreanlist . | ||
docker tag koreanlist:latest ${{ secrets.AWS_IMAGE_URL }}:latest | ||
docker tag koreanlist:latest ${{ secrets.AWS_IMAGE_URL }}:${{ env.RELEASE_TAG == 'master' && 'nightly' || env.RELEASE_TAG }} | ||
docker push ${{ secrets.AWS_IMAGE_URL }} --all-tags |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,7 +24,7 @@ jobs: | |
env: | ||
CI: true | ||
test: | ||
name: Run Test | ||
name: Test | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
|
@@ -34,56 +34,25 @@ jobs: | |
node-version: 14 | ||
- name: yarn install | ||
run: yarn install | ||
- name: Setup MySQL | ||
uses: getong/[email protected] | ||
with: | ||
mysql database: 'discordbots' | ||
mysql root password: 'test' | ||
- name: Run Jest | ||
run: yarn test | ||
- name: Generate RSA Key Pair | ||
run: | | ||
ssh-keygen -b 2048 -t rsa -f key -q -P "" | ||
ssh-keygen -b 2048 -e -m pem -f key -q -P "" > private.key | ||
mv key public.pem | ||
rm key.pub | ||
- name: Setup environments | ||
build: | ||
name: Build | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: install node v14 | ||
uses: actions/setup-node@v2 | ||
with: | ||
node-version: 14 | ||
- name: yarn install | ||
run: yarn install | ||
- name: Build | ||
run: | | ||
mv .env.demo.local .env.production.local | ||
printf 'MARIADB_ROOT_PASSWORD=YOUSHALLNOTPASS\nCOMMIT_HASH=${{ github.sha }}' > .env | ||
printf 'defaults.url=https://sentry.io/\ndefaults.org=koreanbots\ndefaults.project=client' > sentry.properties | ||
- name: Build | ||
run: yarn build | ||
yarn build | ||
env: | ||
CI: true | ||
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }} | ||
NEXT_PUBLIC_SENTRY_DSN: ${{ secrets.SENTRY_DSN }} | ||
SENTRY_DSN: ${{ secrets.SENTRY_DSN }} | ||
|
||
# docker: | ||
# needs: | ||
# - eslint | ||
# - build | ||
# - test | ||
# name: Docker Image CI | ||
# runs-on: ubuntu-latest | ||
# steps: | ||
# - uses: actions/checkout@v2 | ||
# - name: install node v14 | ||
# uses: actions/setup-node@v1 | ||
# with: | ||
# node-version: 14 | ||
# - name: Generate RSA Key Pair | ||
# run: | | ||
# ssh-keygen -b 2048 -t rsa -f key -q -P "" | ||
# ssh-keygen -b 2048 -e -m pem -f key -q -P "" > private.key | ||
# mv key public.pem | ||
# rm key.pub | ||
# - name: Setup environments | ||
# run: | | ||
# mv .env.demo.local .env.production.local | ||
# printf 'MARIADB_ROOT_PASSWORD=YOUSHALLNOTPASS\nCOMMIT_HASH=${{ github.sha }}' > .env | ||
# - name: Create needed files | ||
# run: echo '{"tester":"DEMO_KEY"}' > secret.json | ||
# - name: Docker Compose | ||
# run: docker-compose up -d |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.