CovidCode UI is a web application that allows physicians to generate authorization code. Patient can then submit his seed secret key in the proximity tracing app, in order to inform that he is infected. It works together with the CovidCode-Service which provides the API. | Read-only mirror of https://github.com/admin-ch/CovidCode-UI — Bundesamt für Informatik und Telekommunikation. Issues & pull requests at the source.
  • HTML 55.2%
  • CSS 31.9%
  • TypeScript 11.9%
  • JavaScript 0.5%
  • SCSS 0.4%
  • Other 0.1%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Armin-Isenring-Bit 1ca7c8486f
Merge pull request #29 from admin-ch/feature/PTAPP-1048-locked-frontend
Feature/ptapp 1048 locked frontend
2022-03-28 15:03:13 +02:00
.github/workflows chore(toolchain): update dependencies and refactor accordingly 2021-02-18 17:22:19 +01:00
.husky chore(toolchain): update dependencies and refactor accordingly 2021-02-18 17:22:19 +01:00
scripts chore(toolchain): improve git hooks scripts 2020-11-25 09:22:34 +01:00
src format: clean code 2022-03-28 14:56:29 +02:00
tests chore(toolchain): update dependencies and refactor accordingly 2021-02-18 17:22:19 +01:00
.browserslistrc chore(toolchain): update dependencies and refactor accordingly 2021-02-18 17:22:19 +01:00
.editorconfig feat(toolchain): add oblique 2020-05-15 13:44:55 +02:00
.gitignore feat(toolchain): create a default Angular app 2020-04-15 13:32:51 +02:00
.npmrc chore(toolchain): update dependencies and refactor accordingly 2021-02-18 17:22:19 +01:00
.prettierrc feat(toolchain): add husky and prettier 2020-05-15 13:55:36 +02:00
angular.json feat: reset budget 2022-03-02 11:35:43 +01:00
babel.config.js feat(security): add keyCloak integration 2020-05-15 13:55:36 +02:00
LICENSE feat(toolchain): add LISENSE file (MIT) 2020-05-15 13:55:34 +02:00
package-lock.json feat: added static html page 2022-03-02 07:14:12 +01:00
package.json chore(toolchain): version 1.0.11 2021-02-18 17:30:43 +01:00
proxy.conf.json feat(toolchain): add connection to back-end for LOCAL env 2020-05-15 13:55:36 +02:00
README.md feat(security): add keyCloak integration 2020-05-15 13:55:36 +02:00
tsconfig.app.json refactor(toolchain): remove unnecessary features 2020-04-15 14:58:33 +02:00
tsconfig.json chore(toolchain): update dependencies and refactor accordingly 2021-02-18 17:22:19 +01:00
tsconfig.spec.json feat(toolchain): replace karma/jasmine with jest 2020-05-15 13:55:36 +02:00
tslint.json feat(toolchain): add husky and prettier 2020-05-15 13:55:36 +02:00

This Readme only contains technical information. Documentation can be found in the Wiki pages: https://github.com/admin-ch/CovidCode-UI/wiki

CovidCode-UI

Technical information

This repository contains everything to build & test the project. Each tag corresponds to a release done internally by the FOITT.

Prerequisites

  • GIT
  • nodejs & npm
  • AngularCli installed globally: npm i -g @angular/cli

Setup the environment

  • Install project dependencies: npm ci
  • Start the project: npm start
  • Test the project: npm test

Commit message

We have very precise rules over how our git commit messages can be formatted. This leads to more readable messages that are easy to follow when looking through the project history. The git commit messages will also be used to generate Oblique's change log. A git hook is set up to enforce the rules described below.

For better readability, please follow the following rules:

  • 1 commit per change, fixes have to be squashed together.
  • A change includes its tests, mocks, documentation and schematics.
  • 1 commit concerns 1 scope (see below), if a commit spans multiple scopes, split it into several commits. Exception: changes that spans most of the library can be grouped together. In that case, there is no scope
  • no line of the commit message can be longer than 100 characters.
  • changes to the showcase should NEVER come with another type (see below) as showcase. All showcase changes of an issue should be squashed together

Format

Each commit message consists of a header, a body and a footer. The header has a special format that includes a type, a scope and a subject:

<type>(<scope>): <subject>

<body>

<footer>

Header

The header is mandatory and lowercase only. The scope of the header is optional. There no space between type and scope.

Type

The type is mandatory and must be one of the following:

  • feat: Changes that creates, improves or removes a feature
  • fix: Changes that fixes a bug
  • refactor: Changes to a feature that neither adds, removes nor fixes a behavior
  • test: Changes that affect tests and their configuration only
  • docs: Changes that affect the documentation only
  • showcase: Changes that affect the showcase only
  • format: Changes that do not affect the meaning of the code (white-space, formatting, missing semi-colons, etc)
  • chore: Anything that do not fit in any previous types (e.g. release, dependencies update, ...)
Scope

The scope is optional and should be the name of the Oblique feature affected:

  • generate-code
  • home
  • shared
  • security
  • toolchain (for configuration, build, releases, schematics,...)
Subject

The subject is mandatory and contains a succinct description of the change:

  • use the imperative, present tense: "change" not "changed" nor "changes"
  • don't capitalize the first letter
  • no dot (.) at the end

Body

The body is optional. Just as in the subject, use the imperative, present tense: "change" not "changed" nor "changes". The body should include the motivation for the change and contrast this with previous behavior.

The footer is optional and should contain a reference to a JIRA issue if any, e.g.: PTAPP-715.

It should also contain any information about Breaking Changes.

Breaking Changes have to start with the words BREAKING CHANGE: followed by a newline. The rest of the commit message is then used for this. Multiple breaking changes can be displayed with bullet points

PTAPP-715
BREAKING CHANGE:
* function `funcA` has been removed in favor of `funcB`
* property `prop` has been removed with no replacement
* file `fileName` has been renamed into `myFile`