mattwr18 e8c6941142 Follow @roschaefer's PR review suggestions
- disable button if form.reasonCategory is falsy
- extract valuesReasonCategoryOptions to global constant
- extract reasonCategoryOptions to created lifecycle hook to keep data()
clean and use map
- extract formSchema to components/utils and test
- remove validator from formSchema and validate based on "Deep Rules" https://github.com/yiminghe/async-validator#deep-rules
- Use v-model to update reasonCategory and reasonDescription
- default to error message in English from backend
- Update template slot to use new syntax
2019-10-15 20:28:25 +02:00
..
2019-09-12 18:33:50 +02:00
2019-09-22 22:21:12 +02:00
2019-07-03 08:51:39 -03:00
2019-07-03 08:51:39 -03:00
2019-09-22 23:27:56 +02:00
2019-07-03 08:51:39 -03:00
2019-09-22 22:21:12 +02:00
2019-07-03 08:51:39 -03:00
2019-07-10 13:58:11 +02:00
2019-07-10 13:58:11 +02:00
2019-07-10 13:58:11 +02:00
2019-07-03 08:51:39 -03:00
2019-07-10 13:58:11 +02:00
2019-07-03 08:51:39 -03:00
2019-07-10 13:58:11 +02:00
2019-07-03 08:51:39 -03:00
2019-07-03 08:51:39 -03:00
2019-07-10 13:58:11 +02:00
2019-07-10 13:58:11 +02:00
2019-07-03 08:51:39 -03:00
2019-07-03 08:51:39 -03:00

Webapp

UI Screenshot

Installation

# install all dependencies
$ yarn install

Copy:

cp .env.template .env
cp cypress.env.template.json cypress.env.json

Configure the files according to your needs and your local setup.

Build for Development

# serve with hot reload at localhost:3000
$ yarn dev

Build for Production

# build for production and launch server
$ yarn build
$ yarn start

Storybook

We encourage contributors to use Storybook to test out new components in an isolated way, and benefit from its many features. See the docs for live examples and answers to FAQ, among other helpful information. Storybook docs

{% tabs %} {% tab title="Docker" %}

After you have started the application following the instructions above, in another terminal run:

$ docker-compose exec webapp yarn storybook

The output should look similar to this:

Storybook output

Click on the link http://localhost:3002/ to open the browser to your interactive storybook.

{% endtab %}

{% tab title="Without Docker" %} Run the following command:

# in webapp/
yarn storybook

Open http://localhost:3002/ in your browser

{% endtab %} {% endtabs %}

Styleguide

All reusable Components for example avatar should be done inside the Nitro-Styleguide repository.

Styleguide Screenshot

More information can be found here: https://github.com/Human-Connection/Nitro-Styleguide

If you need to change something in the styleguide and want to see the effects on the frontend immediately, then we have you covered. You need to clone the styleguide to the parent directory ../Nitro-Styleguide and run yarn && yarn run dev. After that you run yarn run dev:styleguide instead of yarn run dev and you will see your changes reflected inside the frontend!