Skip to content

Commit

Permalink
chore: merge dev into main
Browse files Browse the repository at this point in the history
  • Loading branch information
agus-xyz authored Jul 25, 2022
2 parents ff0df07 + 50b6845 commit ef38879
Show file tree
Hide file tree
Showing 105 changed files with 10,265 additions and 1,154 deletions.
2 changes: 2 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
NEXT_PUBLIC_RPC_API_DEVNET = https://api.mainnet-beta.solana.com
NEXT_PUBLIC_RPC_API_DEVNET =https://api.devnet.solana.com
38 changes: 38 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
---
name: Bug report
about: Create a report to help us improve
title: ''
labels: ''
assignees: ''

---

**Describe the bug**
A clear and concise description of what the bug is.

**To Reproduce**
Steps to reproduce the behavior:
1. Go to '...'
2. Click on '....'
3. Scroll down to '....'
4. See error

**Expected behavior**
A clear and concise description of what you expected to happen.

**Screenshots**
If applicable, add screenshots to help explain your problem.

**Desktop (please complete the following information):**
- OS: [e.g. iOS]
- Browser [e.g. chrome, safari]
- Version [e.g. 22]

**Smartphone (please complete the following information):**
- Device: [e.g. iPhone6]
- OS: [e.g. iOS8.1]
- Browser [e.g. stock browser, safari]
- Version [e.g. 22]

**Additional context**
Add any other context about the problem here.
1 change: 1 addition & 0 deletions .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
blank_issues_enabled: false
14 changes: 14 additions & 0 deletions .github/ISSUE_TEMPLATE/create-task.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
---
name: New task
about: Create a new work task
title: '[Task]: '
labels: ''
assignees: ''

---

**Task description.**
Describe the task that needs to be completed.

**Requirements.**
What are the requirements for this task, this could be a checklist of subtasks.
20 changes: 20 additions & 0 deletions .github/ISSUE_TEMPLATE/feature_request.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
---
name: Feature request
about: Suggest an idea for this project
title: ''
labels: ''
assignees: ''

---

**Is your feature request related to a problem? Please describe.**
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

**Describe the solution you'd like**
A clear and concise description of what you want to happen.

**Describe alternatives you've considered**
A clear and concise description of any alternative solutions or features you've considered.

**Additional context**
Add any other context or screenshots about the feature request here.
102 changes: 102 additions & 0 deletions .github/ISSUE_TEMPLATE/not used/bug_report.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,102 @@
---
name: Found a bug?
description: Please use this form to report a bug
title: '[Bug report]: '
labels: 'bug report'

body:
- type: markdown
attributes:
value: '## Device details'
- type: dropdown
id: device
attributes:
label: Device type
description: What kind of device does this issue occur on?
multiple: true
options:
- Desktop
- Mobile
validations:
required: true
- type: dropdown
id: os
attributes:
label: Operating System
description: Which OS does this issue occur on?
multiple: true
options:
- Linux
- Mac
- Windows
- iOS
- Android
validations:
required: true
- type: input
id: browser
attributes:
label: Browser
description: What browser are you using?
placeholder: "Chrome"
validations:
required: true
- type: input
id: wallet
attributes:
label: Browser extension wallet
description: What browser extension wallet are you using?
placeholder: "Phantom"
validations:
required: true
- type: markdown
attributes:
value: '## Application details'
- type: input
id: version
attributes:
label: Version
description: What version are you using?
placeholder: "1.4.0"
validations:
required: false
- type: markdown
attributes:
value: '## Issue report'
- type: textarea
id: description
attributes:
label: Description
description: Briefly describe the issue.
validations:
required: true
- type: dropdown
id: can_repro
attributes:
label: Can the issue reliably be reproduced?
options:
- 'Yes'
- 'No'
validations:
required: true
- type: textarea
id: repro_steps
attributes:
label: Steps to reproduce the issue
description: Explain how can be reproduced the issue.
placeholder: |
1.
2.
3.
...
- type: markdown
attributes:
value: '## Declarations'
- type: checkboxes
id: duplicate_declaration
attributes:
label: Duplicate declaration
description: Please confirm that you are not creating a duplicate issue.
options:
- label: I have searched the issues tracker this issue and there is none
required: true
14 changes: 14 additions & 0 deletions .github/pull_request_template.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
Fixes #

## Changes

-

### Checks

* [ ] Have you catchup your branch with the latest state in base?
* [ ] Have you lint your code locally prior to submission?
* [ ] Have you reviewed your proposed changes and removed debris?
* [ ] Have you successfully ran due tests with your changes?


19 changes: 19 additions & 0 deletions .github/workflows/deploy_preview.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: Deploy preview
on:
pull_request:
branches: [dev]
jobs:
deploy:
runs-on: ubuntu-latest
if: "!contains(github.event.head_commit.message, '[skip ci]')"
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Deploy to Vercel Action
uses: BetaHuhn/deploy-to-vercel-action@v1
with:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
VERCEL_TOKEN: ${{ secrets.VERCEL_TOKEN }}
VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }}
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }}
PRODUCTION: false # Don't deploy to production environment
20 changes: 20 additions & 0 deletions .github/workflows/deploy_prod.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Deploy to production
on:
push:
branches:
- dev
jobs:
deploy:
runs-on: ubuntu-latest
if: "!contains(github.event.head_commit.message, '[skip ci]')"
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Deploy to Vercel Action
uses: BetaHuhn/deploy-to-vercel-action@v1
with:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
VERCEL_TOKEN: ${{ secrets.VERCEL_TOKEN }}
VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }}
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }}
PRODUCTION: true
25 changes: 25 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Release
on:
push:
tags:
- v*
jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Preparing release body
run: |
touch CHANGELOG.md
echo '### Changelog' >> CHANGELOG.md
echo '------' >> CHANGELOG.md
cat CHANGELOG.md
- name: Create Release
uses: actions/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: Sugar Rush ${{ github.ref }}
body_path: CHANGELOG.md
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -33,3 +33,7 @@ yarn-error.log*

# typescript
*.tsbuildinfo

# linter
.eslintcache
.env
1 change: 1 addition & 0 deletions .husky/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
_
4 changes: 4 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

npx lint-staged
12 changes: 12 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"arrowParens": "always",
"bracketSpacing": true,
"endOfLine": "lf",
"jsxSingleQuote": true,
"printWidth": 120,
"semi": false,
"singleQuote": true,
"tabWidth": 4,
"trailingComma": "es5",
"useTabs": false
}
Loading

0 comments on commit ef38879

Please sign in to comment.