github: https://github.com/hamster-shared/frontend
hamster is a blockchain-based blockchain infrastructure service. Any computing device can easily access the Hamster network.
frontend is the web UI of hamster-shared,it is based on vue and uses Ant Design Vue UI framework, it can interact with hamster chain nodes.
Hi! Thank you for choosing Hamster.
Hamster is a blockchain that providers infrastructure service.
We are excited that you are interested in contributing to Hamster. Before submitting your contribution though, please make sure to take a moment and read through the following guidelines.
-
Issues are exclusively for bug reports, feature requests and design-related topics. Other questions may be closed directly.
-
Before submitting an issue, please check if similar problems have already been issued.
-
Fork this repository to your own account. Do not create branches here.
-
Commit info should be formatted as
[File Name]: Info about commit.
(e.g.README.md: Fix xxx bug
) -
If your PR fixes a bug, please provide a description about the related bug.
-
Merging a PR takes two maintainers: one approves the changes after reviewing, and then the other reviews and merges.
- main: 1.0.0 code, for prod
- develop: 2.0.0 dev code, for test
- node version 14.16.1
- npm version 6.14.12
- yarn version >= 1.22.10
With yarn or npm
- Install dependencies
yarn install
or
npm install
- Compiles and hot-reloads for development
yarn serve
or
npm run serve
- Compiles and minifies for production
yarn run build
or
npm run build
- Lints and fixes files
yarn run lint
or
npm run lint
- Customize Vue configuration
- Frontend: using Vue based on Ant Design Vue ,to code the page.
├── babel.config.js # babel-loader configuration
├── default.conf # nginx configuration file
├── Dockerfile # Dockerfile configuration file
├── LICENSE # Apache License
├── package.json # package.json dependencies
├── public # static resources
│ ├── favicon.ico # favicon icon
│ ├── images # images
│ │ ├── logo-ct-black.png # logo icon on black background
│ │ └── logo-ct-white.png # logo icon on white background
│ └── index.html # html template
├── src # source code
│ ├── api # all requests
│ │ ├── index.js # polkadot api
│ │ └── types.js # polkadot types
│ ├── App.vue # entry page
│ ├── common # Internationalized language configuration
│ ├── components # global component
│ ├── layouts # global layout
│ ├── main.js # entry file
│ ├── plugins # plugins
│ ├── router # routing configuration
│ ├── scss # global style
│ ├── store # global vuex store
│ ├── utils # global method
│ └── views # all pages
└── vue.config.js # vue-cli configuration
frontend mainly includes the following functions:
- Connect polkat wallet
- Computing resource market
- List of resources available for purchase
- Conditional query resource information
- Buy resources
- My shared resources
- List of resources I rent
- Conditional query my rental resource information list
- Modify the unit price of rental resources
- Increase rental time
- Rent again
- Pledge amount
- Get back the pledge amount
- Pledge information display
- List of resource agreements I rent
- Receive benefits
- Resources I use
- List of resources I purchased
- Purchase Resource Renewal
- Receive penalty amount
- Order List
- Cancel order
Thank you for considering your contribution to hamster!
If you use this project for commercial purposes, please comply with the Apache2.0 agreement and retain the author's technical support statement.