Skip to content

Commit

Permalink
Merge pull request #347 from node-real/feat/opt-codes
Browse files Browse the repository at this point in the history
feat(dcellar-web-ui): opt codes for open source
  • Loading branch information
devinxl authored Mar 14, 2024
2 parents 3da0b38 + bc0d3fc commit 84704c5
Show file tree
Hide file tree
Showing 401 changed files with 12,288 additions and 10,830 deletions.
2 changes: 1 addition & 1 deletion .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
@@ -1 +1 @@
* @devinxl @rickieNodereal @wenty22 @ybgbob @Miyaww @aiden-cao @declangg @Rosyya
* @devinxl @aiden-cao @wenty22 @ybgbob @Miyaww @declangg @Rosyya
56 changes: 56 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
name: Bug Report
description: File a bug/issue
title: '[bug]'
labels: [bug]
body:
- type: markdown
attributes:
value: |
Thanks for taking the time to fill out this bug report! The more info you provide, the more we can help you.
- type: input
attributes:
label: Package Name & Version
description: What package are you using?
placeholder: '@node-real/dcellar-web-ui'
validations:
required: true

- type: input
attributes:
label: '@bnb-chain/greenfield-js-sdk Version'
description: What version of @bnb-chain/greenfield-js-sdk are you using?
placeholder: 1.0.0
validations:
required: true

- type: textarea
attributes:
label: Describe the bug
description: A clear and concise description of what the bug is.
validations:
required: false

- type: textarea
attributes:
label: Expected behavior
description: A concise description of what you expected to happen.
validations:
required: false

- type: textarea
attributes:
label: Steps to reproduce
description: Steps or code snippets to reproduce the behavior.
validations:
required: false

- type: textarea
attributes:
label: Anything else?
description: |
Browser info? Screenshots? Anything that will give us more context about the issue you are encountering!
Tip: You can attach images or log files by clicking this area to highlight it and then dragging files in.
validations:
required: false
32 changes: 32 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
## Description

<!--- Describe your changes in detail -->

## Issue ticket number and link

<!--- This project only accepts pull requests related to open issues -->
<!--- If suggesting a new feature or change, please discuss it in an issue first -->
<!--- If fixing a bug, there should be an issue describing it with steps to reproduce -->
<!--- Please link to the issue here: -->

## Types of changes

<!--- What types of changes does your code introduce? Put an `x` in all the boxes that apply: -->

- [ ] Docs refactoring / dependency upgrade
- [ ] Bug fix (non-breaking change which fixes an issue)
- [ ] New feature (non-breaking change which adds functionality)
- [ ] Breaking change (fix or feature that would cause existing functionality to change)

## Checklist

<!--- Go over all the following points, and put an `x` in all the boxes that apply. -->
<!--- If you're unsure about any of these, don't hesitate to ask. We're here to help! -->

- [ ] My code follows the code style of this project.
- [ ] I have updated changeset
- [ ] My change requires a change to the documentation.
- [ ] I have updated the documentation accordingly.
- [ ] I have read the **CONTRIBUTING** document.
- [ ] I have added tests to cover my changes.
- [ ] All new and existing tests passed.
10 changes: 1 addition & 9 deletions .github/workflows/comment-deploy-scheduler.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:
jobs:
pre-check:
runs-on: ubuntu-latest
if: (contains(github.event.comment.body, '/e2e-deploy') || contains(github.event.comment.body, '/new-e2e-deploy') || contains(github.event.comment.body, '/qa-deploy'))
if: (contains(github.event.comment.body, '/e2e-deploy') || contains(github.event.comment.body, '/qa-deploy'))
outputs:
codeowners: ${{ steps.codeowners.outputs.content }}
steps:
Expand Down Expand Up @@ -60,14 +60,6 @@ jobs:
with:
app_name: dcellar-web-ui
env: mainnet
dcellar-web-ui-new-e2e-deploy-with-qa:
needs: [pre-check]
if: (contains(needs.pre-check.outputs.codeowners, github.event.comment.user.login) && (github.event.comment.body == '/new-e2e-deploy-qa:dcellar-web-ui'))
uses: node-real/dcellar/.github/workflows/dcellar-web-ui-new-e2e-cicd.yml@main
secrets: inherit
with:
app_name: dcellar-web-ui
env: qa
dcellar-web-ui-qa-deploy:
needs: [pre-check]
if: (contains(needs.pre-check.outputs.codeowners, github.event.comment.user.login) && (github.event.comment.body == '/qa-deploy:dcellar-web-ui'))
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/dcellar-web-ui-e2e-cicd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ on:

jobs:
CICD:
uses: node-real/github-workflows/.github/workflows/dcellar-web-ui-e2e-cicd.yml@feat/opt-fe/devin
uses: node-real/public-github-workflow/.github/workflows/dcellar-web-ui-e2e-cicd.yml@main
secrets: inherit
with:
app_name: ${{ inputs.app_name }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/dcellar-web-ui-e2e-housekeeping.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:

jobs:
remove-e2e-deployment:
uses: node-real/github-workflows/.github/workflows/dcellar-web-ui-e2e-housekeeping.yml@feat/opt-fe/devin
uses: node-real/public-github-workflow/.github/workflows/dcellar-web-ui-e2e-housekeeping.yaml@main
secrets: inherit
with:
app_name: dcellar-web-ui
23 changes: 0 additions & 23 deletions .github/workflows/dcellar-web-ui-new-e2e-cicd.yml

This file was deleted.

2 changes: 1 addition & 1 deletion .github/workflows/dcellar-web-ui-prod-mainnet-cicd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ jobs:
CICD:
needs: [pre-check]
if: (contains(needs.pre-check.outputs.codeowners, github.event.comment.user.login))
uses: node-real/github-workflows/.github/workflows/dcellar-web-ui-prod-mainnet-cicd.yml@feat/opt-fe/devin
uses: node-real/public-github-workflow/.github/workflows/dcellar-web-ui-prod-mainnet-cicd.yml@main
secrets: inherit
with:
app_name: dcellar-web-ui
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/dcellar-web-ui-prod-testnet-cicd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ on:
jobs:
pre-check:
runs-on: ubuntu-latest
if: (github.event.pull_request.merged && (contains(github.event.pull_request.labels.*.name, 'dcellar-web-ui'))) || ((github.event.inputs.project == 'dcellar-web-ui') && (github.event.inputs.env == 'testnet'))
if: (github.event.issue.pull_request.merged && (contains(github.event.issue.pull_request.labels.*.name, 'dcellar-web-ui'))) || ((github.event.inputs.project == 'dcellar-web-ui') && (github.event.inputs.env == 'testnet'))
outputs:
codeowners: ${{ steps.codeowners.outputs.content }}
steps:
Expand Down Expand Up @@ -60,7 +60,7 @@ jobs:
CICD:
needs: [pre-check]
if: (contains(needs.pre-check.outputs.codeowners, github.event.comment.user.login))
uses: node-real/github-workflows/.github/workflows/dcellar-web-ui-prod-testnet-cicd.yml@feat/opt-fe/devin
uses: node-real/public-github-workflow/.github/workflows/dcellar-web-ui-prod-testnet-cicd.yml@main
secrets: inherit
with:
app_name: dcellar-web-ui
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/dcellar-web-ui-qa-cicd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ on:

jobs:
CICD:
uses: node-real/github-workflows/.github/workflows/dcellar-web-ui-qa-cicd.yml@feat/opt-fe/devin
uses: node-real/public-github-workflow/.github/workflows/dcellar-web-ui-qa-cicd.yml@main
secrets: inherit
with:
app_name: ${{ inputs.app_name }}
Expand Down
147 changes: 147 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,147 @@
#-------------------------------------------------------------------------------------------------------------------
# Keep this section in sync with .gitignore
#-------------------------------------------------------------------------------------------------------------------

# Logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*

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

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

# Coverage directory used by tools like istanbul
coverage

# nyc test coverage
.nyc_output

# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
.grunt

# Bower dependency directory (https://bower.io/)
bower_components

# node-waf configuration
.lock-wscript

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

# Dependency directories
node_modules/
jspm_packages/

# Optional npm cache directory
.npm

# Optional eslint cache
.eslintcache

# Optional REPL history
.node_repl_history

# Output of 'npm pack'
*.tgz

# exclude ignore
!.github/.e2e-deploy/charts/nodereal-app-1.0.2.tgz

# Yarn Integrity file
.yarn-integrity

# dotenv environment variables file
.env

# next.js build output
.next

# OS X temporary files
.DS_Store

# Rush temporary files
common/deploy/
common/temp/*
!common/temp/build-cache
common/autoinstallers/*/.npmrc
**/.rush/temp/

# Heft
.heft


**/dist/**

**/logs/**

# Webstorm
**/.idea/**

# create-react-app builds
**/build/**

# Typescript
*.tsbuildinfo
.idea
next-env.d.ts

# next.js
/.next/
/out/

# production
/build

# local env files
.env*.local

# vercel
.vercel

# other
.history
.vscode

# Rush temporary files
common/deploy/
common/temp/*
!common/temp/build-cache
common/autoinstallers/*
**/.rush/temp/

#-------------------------------------------------------------------------------------------------------------------
# Prettier-specific overrides
#-------------------------------------------------------------------------------------------------------------------

# Rush files
common/changes/
common/scripts/
common/config/
CHANGELOG.*

# Package manager files
pnpm-lock.yaml
yarn.lock
package-lock.json
shrinkwrap.json

# Build outputs
dist
lib

# Prettier reformats code blocks inside Markdown, which affects rendered output
*.md


# github action
*.yaml
*.yml

# other
*.min.js
9 changes: 9 additions & 0 deletions .prettierrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
module.exports = {
arrowParens: 'always',
printWidth: 100,
proseWrap: 'always',
semi: true,
singleQuote: true,
trailingComma: 'all',
tabWidth: 2,
};
Loading

0 comments on commit 84704c5

Please sign in to comment.