No description, website, or topics provided.
Switch branches/tags
Nothing to show
Clone or download
victorgcramos and tiagoalvesdulce Feature/highlight new comments (#897)
* adding highlight comments

* WIP requests to get and post access times

* highlighting new comments

* added request handle when logging out

* fixed proposal access time handler on react lifecycle

* removed SubmitPage log

* removed componentWillMount

* route refactor

* removed console logs

* changed requests according to new structure on politeia

* removed logs

* upgrade snew-classic-ui on yarn.lock

* add user access time handler according to the new schema

* - highlight new comments

- add request handle when logging out

- fix proposal access time handler on react lifecycle

- remove SubmitPage log

- remove componentWillMount

- route refactor

- remove console logs

- change requests according to new structure on politeia

- remove logs

upgrade snew-classic-ui on yarn.lock

add user access time handler according to the new schema

* fixed conflicts

* new comments made by the user are not marked as new

* removed comments

* getting userid from selector for listed replies
Latest commit fbea4e0 Dec 12, 2018

README.md

Politeia GUI

Development

Requirements

With mock APIs

yarn && yarn uidev

Against politeiawww

yarn && yarn start

Production

yarn && yarn build
ls build

package.json

The package.json file has the field "network" (testnet or mainnet),
which we need in order to get the last block height.

This way it is possible to determine when a vote has finished or not.

Testing

This code has currently unit tests for the core logic. Currently covering lib files (/src/lib/*) and actions files (/src/actions/*). Relevant libraries/modules used for testing are:

There is more testing to be done, you can check it on this opened issue: https://github.com/decred/politeiagui/issues/376

Docker

politeia can be hosted in a docker container. To build the site and the docker container:

$ ./build_docker.sh

The container can then be run with

$ docker run -d --rm -p <local port>:80 decred/politeiagui-serve:latest

This project was bootstrapped with Create React App. You can find the most recent version of this guide here.