-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'Greenstand:v1' into wallet-home-header
- Loading branch information
Showing
27 changed files
with
1,879 additions
and
748 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
REACT_APP_WALLET_API_ROOT=https://test-k8s.treetracker.org/wallet/v2 | ||
REACT_APP_WALLET_API_KEY=FKVGtpK9KTAZZTvFtCK0VbGp36fKBOSV | ||
REACT_APP_WALLET_API_KEY=SM2rkbt8Kn95GX3aoKNRTiAlhcq78OJe | ||
|
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,61 @@ | ||
# Contributor Covenant Code of Conduct | ||
|
||
## Our Pledge | ||
|
||
In the interest of fostering an open and welcoming environment, we as contributors and maintainers pledge to making | ||
participation in our project and our community a harassment-free experience for everyone, regardless of age, body size, | ||
disability, ethnicity, gender identity and expression, level of experience, nationality, personal appearance, race, | ||
religion, or sexual identity and orientation. | ||
|
||
## Our Standards | ||
|
||
Examples of behavior that contributes to creating a positive environment include: | ||
|
||
* Using welcoming and inclusive language | ||
* Being respectful of differing viewpoints and experiences | ||
* Gracefully accepting constructive criticism | ||
* Focusing on what is best for the community | ||
* Showing empathy towards other community members | ||
|
||
Examples of unacceptable behavior by participants include: | ||
|
||
* The use of sexualized language or imagery and unwelcome sexual attention or advances | ||
* Trolling, insulting/derogatory comments, and personal or political attacks | ||
* Public or private harassment | ||
* Publishing others' private information, such as a physical or electronic address, without explicit permission | ||
* Other conduct which could reasonably be considered inappropriate in a professional setting | ||
|
||
## Our Responsibilities | ||
|
||
Project maintainers are responsible for clarifying the standards of acceptable behavior and are expected to take | ||
appropriate and fair corrective action in response to any instances of unacceptable behavior. | ||
|
||
Project maintainers have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, | ||
issues, and other contributions that are not aligned to this Code of Conduct, or to ban temporarily or permanently any | ||
contributor for other behaviors that they deem inappropriate, threatening, offensive, or harmful. | ||
|
||
## Scope | ||
|
||
This Code of Conduct applies both within project spaces and in public spaces when an individual is representing the | ||
project or its community. Examples of representing a project or community include using an official project e-mail | ||
address, posting via an official social media account, or acting as an appointed representative at an online or offline | ||
event. Representation of a project may be further defined and clarified by project maintainers. | ||
|
||
## Enforcement | ||
|
||
Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by contacting the project team at | ||
info@Greenstand.org. The project team will review and investigate all complaints, and will respond in a way that it | ||
deems appropriate to the circumstances. The project team is obligated to maintain confidentiality with regard to the | ||
reporter of an incident. Further details of specific enforcement policies may be posted separately. | ||
|
||
Project maintainers who do not follow or enforce the Code of Conduct in good faith may face temporary or permanent | ||
repercussions as determined by other members of the project's leadership. | ||
|
||
## Attribution | ||
|
||
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4, available | ||
at [http://contributor-covenant.org/version/1/4][version] | ||
|
||
[homepage]: http://contributor-covenant.org | ||
|
||
[version]: http://contributor-covenant.org/version/1/4/ |
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,160 @@ | ||
# Contributing | ||
|
||
Thank you for taking the time and effort to contribute to Greenstand! | ||
|
||
See the [Table of Contents](#table-of-contents) for different ways to help and details about how this project handles | ||
them. | ||
Please make sure to read the relevant section before making your contribution. | ||
It will make project maintenance a lot easier and smooths out the experience for all involved. | ||
The community looks forward to your contributions. | ||
|
||
### Note | ||
|
||
Contributing to this project can sometimes involve a steep learning curve. Please do not give up and come and find us on | ||
Slack to get support setting you up. This is a fun project with an amazing potential to disrupt untransparent practices | ||
and open reforestation to the digital world. | ||
|
||
## Table of Contents | ||
|
||
- [Code of Conduct](#code-of-conduct) | ||
- [Getting an issue assigned](#getting-an-issue-assigned) | ||
- [Working on an issue](#working-on-an-issue) | ||
- [Keeping your fork in sync](#keeping-your-fork-in-sync) | ||
- [Code style guide](#code-style-guide) | ||
- [Connect with Us](#connect-with-us) | ||
|
||
## Code of Conduct | ||
|
||
This project and everyone participating in it is governed by the | ||
[Code of Conduct](./CODE_OF_CONDUCT.md). | ||
By participating, you are expected to uphold this code. | ||
|
||
## Getting an issue assigned | ||
|
||
- Look through the [open issues](https://github.com/Greenstand/treetracker-wallet-admin-client/issues) for one that | ||
looks interesting. | ||
- Use the labels to help you find an issue: | ||
- `good first issue`: easy and good for getting started. | ||
- `medium`: medium difficulty or needs more work. | ||
- `challenge`: hardest or big tasks, or needs some special skill or tricky or even hack in some way. | ||
- `documentation`: writing job, sometimes it's good for new dev to learn and do some simple job. | ||
- `bug`: just bug. | ||
- `wontfix`: some issue still in discussion, or can not be implemented at current stage, or just outdated problem. | ||
- `high-priority`: urgent problem, like some crucial bug or feature. | ||
- We also tag issue with other aspects like the skill needed, the device related and so on. | ||
|
||
- If you're not sure what to work on, ask in the `#wallet-admin-client channel` | ||
on [Slack](https://greenstand.slack.com/) | ||
and we'll find a good issue for | ||
you. | ||
- Add a comment to the selected issue to say you'd like to work on it, and ask for any clarification you need. Some of | ||
the info you need to solve the problem may be missing from the description of the issue. | ||
- One of the Greenstand leads will then assign it to you and try to help with any questions. | ||
|
||
There are lots of opportunities to offer ideas and take ownership of larger pieces of work, so don't be afraid to ask! | ||
|
||
## Working on an issue | ||
|
||
- Create a branch for the issue in your local repo | ||
- Make your changes and test everything works locally | ||
- Push your changes to your fork on GitHub and create a pull request | ||
into `treetracker-wallet-admin-client/<target_branch>`. The target branch is currently `v1`. | ||
- Fill in as much info as you can in the PR, including screenshots or videos of the change to help the reviewer | ||
understand what you've done | ||
- A member of the review team will review your changes and may request changes | ||
- Make the requested changes, asking for clarification in the PR if necessary, and push the updated code | ||
- After the code review and all code changes are done, the reviewer will approve and merge your changes | ||
|
||
You can work one more than one issue at a time, while you wait for your PR to be reviewed or questions to be answered, | ||
but remember to keep each issue on a separate branch. | ||
|
||
## Keeping your fork in sync | ||
|
||
Your forked repo won't automatically stay in sync with Greenstand, so you'll need to occasionally sync manually ( | ||
typically before starting work on a new feature). | ||
|
||
``` | ||
git checkout <target_branch> | ||
git pull upstream <target_branch> --rebase | ||
git push origin <target_branch> | ||
``` | ||
|
||
If there are merge conflicts in your PR, you may need to rebase your branch. Ask a member of the team if you need help | ||
with this. | ||
|
||
``` | ||
git checkout <feature_branch> | ||
git pull upstream <target_branch> --rebase | ||
git push origin <feature_branch> --force | ||
``` | ||
|
||
## Code style guide | ||
|
||
### Rules | ||
|
||
**Indention** 2 Spaces for indentation | ||
|
||
**Semicolon** Use semicolons at the end of each line | ||
|
||
**Characters** 80 characters per line | ||
|
||
**Quotes** Use single quotes unless you are writing JSON | ||
|
||
```js | ||
const foo = 'bar'; | ||
``` | ||
|
||
**Braces** Opening braces go on the same line as the statement | ||
|
||
```js | ||
if (true) { | ||
console.log('here'); | ||
} | ||
``` | ||
|
||
**Variable declaration** Declare one Variable per statement | ||
|
||
```js | ||
const dog = ['bark', 'woof']; | ||
let cat = ['meow', 'sleep']; | ||
``` | ||
|
||
**Variable, properties and function names** Use lowerCamelCase for variables, properties and function names | ||
|
||
```js | ||
const adminUser = db.query('SELECT * From users ...'); | ||
``` | ||
|
||
**Class names** Use UpperCamelCase for class names | ||
|
||
```js | ||
class Dog { | ||
bark() { | ||
console.log('woof'); | ||
} | ||
} | ||
``` | ||
|
||
**Descriptive conditions** Make sure to have a descriptive name that tells the use and meaning of the code | ||
|
||
```js | ||
const isValidPassword = | ||
password.length >= 4 && /^(?=.*\d).{4,}$/.test(password); | ||
``` | ||
|
||
**Object/Array creation** Use trailing commas and put short declarations on a single line. Only quote keys when your | ||
interpreter complains: | ||
|
||
```js | ||
var a = ['hello', 'world']; | ||
var b = { | ||
good: 'code', | ||
'is generally': 'pretty', | ||
}; | ||
``` | ||
|
||
## Connect with Us | ||
|
||
If you have any questions, comments, suggestions, of any sort, please join our community! | ||
We collaborate primarily through [Slack](https://greenstand.slack.com). | ||
The corresponding channel `#wallet-admin-client` is a good place to find additional support. |
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.