Skip to content

Commit

Permalink
copy & paste website
Browse files Browse the repository at this point in the history
  • Loading branch information
angle943 committed Aug 4, 2021
0 parents commit fbafd11
Show file tree
Hide file tree
Showing 759 changed files with 85,800 additions and 0 deletions.
1 change: 1 addition & 0 deletions .env.development
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
REACT_APP_BACKEND_API=https://api-dev.thenewboston.com
1 change: 1 addition & 0 deletions .env.production
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
REACT_APP_BACKEND_API=https://api.thenewboston.com
68 changes: 68 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
{
"env": {
"browser": true,
"es6": true,
"jest": true
},
"extends": [
"airbnb-typescript",
"airbnb/hooks",
"plugin:@typescript-eslint/recommended",
"plugin:jest/recommended",
"prettier",
"prettier/react",
"prettier/@typescript-eslint",
"plugin:prettier/recommended"
],
"globals": {
"Atomics": "readonly",
"SharedArrayBuffer": "readonly"
},
"overrides": [
{
"files": ["*.test.tsx"],
"rules": {
"react/jsx-props-no-spreading": 0
}
}
],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaFeatures": {
"jsx": true
},
"ecmaVersion": 2020,
"sourceType": "module",
"project": "./tsconfig.json"
},
"plugins": ["react", "@typescript-eslint", "jest"],
"rules": {
"@typescript-eslint/camelcase": "off",
"@typescript-eslint/explicit-function-return-type": "off",
"@typescript-eslint/explicit-module-boundary-types": "off",
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/no-non-null-assertion": "off",
"@typescript-eslint/no-use-before-define": "off",
"consistent-return": "off",
"import/no-extraneous-dependencies": "off",
"import/prefer-default-export": "off",
"jest/expect-expect": "off",
"jsx-a11y/click-events-have-key-events": "off",
"jsx-a11y/control-has-associated-label": "off",
"jsx-a11y/no-noninteractive-element-interactions": "off",
"no-param-reassign": "off",
"prettier/prettier": [
"error",
{
"endOfLine": "auto"
}
],
"react/button-has-type": "off",
"react/jsx-curly-brace-presence": "off",
"react/no-array-index-key": "off",
"react/no-unescaped-entities": "off",
"react/prop-types": "off",
"react/require-default-props": "off",
"sort-keys": "error"
}
}
39 changes: 39 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
---
name: Bug report
about: Create a bug report to help us improve
title: ''
labels: 'bug, Not Ready'
assignees: ''

---

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

**Steps 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.

**Actual behavior**
A clear and concise description of what actually happened.

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

**OS and Browser**
- OS: [e.g. Windows 10]
- Browser [e.g. Chrome, Safari]

**Additional context**
Add any other context about the problem here.

**Account Number**
Your account number where the reward coins for this bug bounty will be sent (pending review and approval).

[How to Create an Account](https://thenewboston.com/wallet/create-an-account)
32 changes: 32 additions & 0 deletions .github/ISSUE_TEMPLATE/job_opening.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
---
name: Job description
about: Post a job description
title: ''
labels: 1000, Job Description, engineering
assignees: ''

---

Add the following job opening to the website.

***

#### Job Title
Sample Job Title

#### Job Description
Write a few sentences describing the position here.

#### Responsibilities
- a
- b
- c

#### Requirements
- a
- b
- c

#### Reports To
- First Name: [FIRST NAME HERE]
- Discord Username: [DISCORD USERNAME HERE]
22 changes: 22 additions & 0 deletions .github/ISSUE_TEMPLATE/new-contributor.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
---
name: New Contributor
about: Add a new contributor.
title: New Contributor
labels: engineering, 500
assignees: ''

---

Team: [TEAM NAME]

{
"title": [JOB TITLE],
"isLead": [true OR false],
"hourlyRate": [HOURLY RATE],
"contributor": {
"discordUsername": [DISCORD USERNAME],
"displayName": [DISPLAY NAME],
"githubUsername": [GITHUB USERNAME],
"profileImage": [PROFILE IMAGE URL (GitHub URL)]
}
}
18 changes: 18 additions & 0 deletions .github/workflows/linting.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: Lint Action

on:
push:
branches: [master, development]
pull_request:
branches: [development]

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Install dependencies
run: npm ci
- name: Run linters
run: npm run lint
43 changes: 43 additions & 0 deletions .github/workflows/testing.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: Test
on:
push:
branches: [master, development]
pull_request:
branches: [development]
jobs:
build:
name: Running test on Node ${{ matrix.node }} and ${{ matrix.os }}

runs-on: ${{ matrix.os }}
strategy:
matrix:
node: ['12.x', '14.x']
os: [ubuntu-latest, windows-latest, macOS-latest]

steps:
- name: Checkout repo
uses: actions/checkout@v2

- name: Use Node ${{ matrix.node }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node }}

- name: Cache node modules
uses: actions/cache@v2
env:
cache-name: cache-node-modules
with:
# npm cache files are stored in `~/.npm` on Linux/macOS
path: ~/.npm
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-build-${{ env.cache-name }}-
${{ runner.os }}-build-
${{ runner.os }}-
- name: Install dependencies
run: yarn install --network-timeout 1000000

- name: Test
run: yarn test --ci --coverage --maxWorkers=2
103 changes: 103 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,103 @@
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
lerna-debug.log*

# Diagnostic reports (https://nodejs.org/api/report.html)
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json

# Runtime data
pids
*.pid
*.seed
*.pid.lock
.DS_Store

# Directory for instrumented libs generated by jscoverage/JSCover
lib-cov

# Coverage directory used by tools like istanbul
coverage
*.lcov

# nyc test coverage
.nyc_output

# node-waf configuration
.lock-wscript

# Compiled binary addons (https://nodejs.org/api/addons.html)
build/Release

# Dependency directories
node_modules/
jspm_packages/

# TypeScript v1 declaration files
typings/

# TypeScript cache
*.tsbuildinfo

# Optional npm cache directory
.npm

# Optional eslint cache
.eslintcache

# Optional stylelint cache
.stylelintcache

# Optional REPL history
.node_repl_history

# Output of 'npm pack'
*.tgz

# Yarn Integrity file
.yarn-integrity
yarn.lock

# dotenv environment variables file
.env
.env.local
.env.test

# parcel-bundler cache (https://parceljs.org/)
.cache

# next.js build output
.next

# nuxt.js build output
.nuxt

# vuepress build output
.vuepress/dist

# Serverless directories
.serverless/

# FuseBox cache
.fusebox/

# DynamoDB Local files
.dynamodb/

# Webpack
.webpack/

# Electron-Forge
out/

# Webstorm
.idea/

# VS Code
.vs/
.vscode/

build/
8 changes: 8 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"bracketSpacing": false,
"endOfLine": "auto",
"printWidth": 120,
"semi": true,
"singleQuote": true,
"trailingComma": "all"
}
26 changes: 26 additions & 0 deletions .stylelintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{
"plugins": ["stylelint-order"],
"rules": {
"block-no-empty": true,
"color-no-invalid-hex": true,
"comment-no-empty": true,
"declaration-block-single-line-max-declarations": 1,
"declaration-colon-space-after": "always",
"declaration-no-important": true,
"function-comma-space-before": "never",
"function-comma-space-after": "always",
"indentation": 2,
"max-empty-lines": 2,
"no-eol-whitespace": true,
"no-extra-semicolons": true,
"no-invalid-double-slash-comments": true,
"order/properties-alphabetical-order": true,
"number-no-trailing-zeros": true,
"property-case": "lower",
"property-no-unknown": true,
"selector-list-comma-newline-after": "always",
"string-no-newline": true,
"string-quotes": "single",
"unit-no-unknown": true
}
}
21 changes: 21 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2020 thenewboston-developers

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
Loading

0 comments on commit fbafd11

Please sign in to comment.