Skip to content

Commit

Permalink
dHealth Wallet v1.0.0: Public Blockchain Infrastructure for Healthcare
Browse files Browse the repository at this point in the history
  • Loading branch information
evias committed May 4, 2021
0 parents commit beb6742
Show file tree
Hide file tree
Showing 1,187 changed files with 96,895 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"env": {
"test": {
"plugins": [
"transform-es2015-modules-commonjs",
"syntax-dynamic-import"
]
}
}
}
2 changes: 2 additions & 0 deletions .browserslistrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
> 1%
last 2 versions
2 changes: 2 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
back_node_modules/
dist/
29 changes: 29 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
module.exports = {
root: true,
env: {
node: true,
},
extends: [
'eslint:recommended',
'plugin:@typescript-eslint/recommended',
'plugin:vue/recommended',
'@vue/typescript',
'prettier/vue',
'prettier/@typescript-eslint',
'plugin:prettier/recommended',
],
plugins: ['vue', '@typescript-eslint'],
rules: {
'@typescript-eslint/ban-ts-ignore': 'off',
'@typescript-eslint/explicit-function-return-type': 'off',
'@typescript-eslint/camelcase': 'off',
'@typescript-eslint/interface-name-prefix': 'off',
'@typescript-eslint/no-explicit-any': 'off',
'@typescript-eslint/no-inferrable-types': 'off',
curly: 2,
'no-extra-boolean-cast': 0,
// @TODO: remove v-html
'vue/no-v-html': 'off',
'no-useless-escape': 'off',
},
}
3 changes: 3 additions & 0 deletions .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
github: UsingBlockchain
patreon: usingblockchainltd
custom: ["https://www.paypal.me/usingblockchainltd"]
25 changes: 25 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
.quokka
.DS_Store
node_modules
/dist
/release
/tests
.git
.idea
.vscode
.run
*.iml
*.js.map
/www
src/**/*.map
src/**/*.js
coverage
build
__tests__/**/*.map
__tests__/**/*.js
__mocks__/**/*.map
__mocks__/**/*.js
/.templates
template.config.js
.env
keys-whitelist.json
8 changes: 8 additions & 0 deletions .prettierrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
module.exports = {
semi: true,
trailingComma: 'all',
singleQuote: true,
printWidth: 140,
tabWidth: 4,
endOfLine: 'auto',
};
54 changes: 54 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
language: node_js
services:
- docker
node_js:
- 12
os:
- linux
# - osx
#osx_image: xcode11.3
env:
global:
- ELECTRON_CACHE=$HOME/.cache/electron
- ELECTRON_BUILDER_CACHE=$HOME/.cache/electron-builder
cache:
directories:
- node_modules
- $HOME/.cache/electron
- $HOME/.cache/electron-builder
before_cache:
- rm -rf $HOME/.cache/electron-builder/wine
script:
- npm run build:web
jobs:
include:
- stage: test
name: lint tests
script: npm run lint
os: linux

- name: unit tests
script: npm run test
os: linux

# - stage: alpha
# name: publish alpha docker
# script: /bin/sh travis/docker.sh
# if: branch = env(DEV_BRANCH) AND type = push
# os: linux

- script: npm run release:all
name: build desktop artifacts
if: branch = env(DEV_BRANCH) AND type = push
os: linux

# - stage: release
# name: release docker
# script: /bin/sh travis/docker.sh
# if: branch = env(RELEASE_BRANCH) AND type = api AND commit_message = env(RELEASE_MESSAGE)
# os: linux

# - name: release desktop artifacts, tag and update version
# script: /bin/sh travis/release.sh
# if: branch = env(RELEASE_BRANCH) AND type = api AND commit_message = env(RELEASE_MESSAGE)
# os: linux
17 changes: 17 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# CHANGELOG
All notable changes to this project will be documented in this file.

The changelog format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).

## [1.0.0][1.0.0] - 03-May-2021

#### Changed

- Changed default testnet network to dHealth Test Network
- Changed default mainnet network to dHealth Public Network

#### Known Issues

- Some missing re-branding items for dHealth logos.

[1.0.0]: https://github.com/dhealthproject/dhealth-wallet/releases/tag/v1.0.0
46 changes: 46 additions & 0 deletions CODE_OF_CONDUCT.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
# 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 support@nem.group. 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/
76 changes: 76 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
# Contributing to dhealth-wallet

First off, thank you for considering contributing to dhealth-wallet.

The dhealth-wallet is an open source project and we love to receive contributions from our community — you!

Following these guidelines helps to communicate that you respect the time of
the developers managing and developing this open source project. In return,
they should reciprocate that respect in addressing your issue, assessing changes,
and help you finalize your pull requests.

## Error reports

If you think you have found an error in the dhealth-wallet, first make sure that you
are testing against the latest version of dhealth-wallet - your issue may already
have been fixed. If not, search our issues list on GitHub in case a similar
issue has already been opened.

It is very helpful if you can prepare a reproduction of the error. It makes it easier to
find the problem and to fix it.

Please, take into consideration the next template to report your issue:

**Describe the error**
A clear and concise description of what the error 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.

Open a new issue [here][github-issues].

## Contributing code and documentation changes

To expand and improve the dhealth-wallet, please find or open an issue about it first.

Talk about what you would like to do. It may be that somebody is already working on it,
or that there are particular issues that you should know about before implementing the change.

We enjoy working with contributors to get their pull-requests accepted.

### Contributing License Notice

When you contribute code, you affirm that the contribution is your original work and that you license the work to the project under the project's open source license.

Whether or not you state this explicitly, by submitting any copyrighted material via pull request, email, or other means you agree to license the material under the project's open source license and warrant that you have the legal authority to do so.

### Submitting your changes

Once your changes and tests are ready to submit for review:

1. Test your changes.

``npm run dev``

Make sure that nothing is broken.

2. Submit a pull request.

Push your local changes to your forked copy of the repository and [submit a pull request](https://help.github.com/articles/about-pull-requests/) targeting the **master branch**. In the pull request, choose a title which sums up the changes that you have made, and in the body provide more details about what your changes do. Also mention the number of the issue where discussion has taken place, eg "Closes #123".

Then sit back and wait. There will probably be a discussion about the pull request and, if any changes are needed, we would love to work with you to get your pull request merged into dhealth-wallet.

*CONTRIBUTING.md is based on [CONTRIBUTING-template.md](https://github.com/nayafia/contributing-template/blob/master/CONTRIBUTING-template.md)* , [elasticsearch/CONTRIBUTING](https://github.com/elastic/elasticsearch/blob/master/CONTRIBUTING.md) and [spark/CONTRIBUTING](https://github.com/apache/spark/blob/master/CONTRIBUTING.md)

[pull-request]: https://help.github.com/articles/about-pull-requests/
[github-issues]: https://github.com/dhealthproject/dhealt-walleth/issues
21 changes: 21 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
FROM node:lts-alpine AS builder

# Python and Make
#ENV PYTHONUNBUFFERED=1
#RUN apk add --update --no-cache python3 && ln -sf python3 /usr/bin/python
#RUN python3 -m ensurepip
#RUN pip3 install --no-cache --upgrade pip setuptools
#RUN apk add g++ make python
#RUN node --version
#RUN apk add --update pkgconfig

WORKDIR /app
COPY . .
RUN export WEB=true && npm install && npm run build

FROM nginx:1.17-alpine AS runner
COPY --from=builder /app/dist /usr/share/nginx/html
COPY ./docker/default.conf /etc/nginx/conf.d/default.conf
WORKDIR /usr/share/nginx/html
EXPOSE 80
CMD ["nginx", "-g", "daemon off;"]
Loading

0 comments on commit beb6742

Please sign in to comment.