commit | 90066000e53ff7b2debcae66a2cce306e58d3bf8 | [log] [tgz] |
---|---|---|
author | Simon Reis <simon.reis@pta.de> | Tue Dec 15 17:00:25 2020 +0100 |
committer | Simon Reis <simon.reis@pta.de> | Tue Dec 15 17:00:25 2020 +0100 |
tree | af1f6c06d650f45ab418f212b1f5e268ac784968 | |
parent | a026f23ff1fe3d569ec830e5cb4ca1b2ad293fa1 [diff] |
KON-616 Als Administrator möchte ich die Stammdaten auf einer Seite konfigurieren können um nicht zwischen verschiedenen Seiten wechseln zu müssen KON-613 Als Anwender möchte ich, dass Expandables nur so hoch sind wie es aktuell sichtbare Inhalte erforderlich machen, um unnötige Weißflächen zu vermeiden. KON-680 LDAP-Synchronisationsnotiz in eigenes Feld packen
This application represents a core module for OpenKonsequenz.
Run npm run start
for a dev server. Navigate to http://localhost:4200/
. The app will automatically reload if you change any of the source files. The command will run custom hooks which will set environment to development and merge all i18n files needed for multi language support. The application uses proxy file to connect with the API. Proxy settings are defined in proxy.conf.json
Run npm run sy-build
to build the application for production which includes tree shaking, AOT and other cool stuff for minification. This command is defined in package.json
file under the scripts section and includes regular Angular CLI build command, custom made hooks and generation of service worker file.
When application is built for production it's copied in /dist
folder which is the public folder for Angular CLI.
Hooks are located in /hooks
folder and they are responsible for merging and copying configuration and localization files for development and production.
Copying files is not necessary on angular-cli v1.0.4 and above because it has built in login for this action. You just need to specify which files/folders need to be copied into your destination folder (default dist
) and you can do that in .angular-cli.json
file by specifing the assets array:
"assets": [ "assets", "favicon.ico", "service-worker.js", { "glob": "**/*", "input": "../config", "output": "./config/" }, { "glob": "en.json", "input": "../i18n", "output": "./i18n/" }, { "glob": "de.json", "input": "../i18n", "output": "./i18n/" } ]
FormDisableDirective automatically disables all tags when a user has only reader rights.
VisibleByRightDirective hides(when user has only reader rights) or shows(when user has admin or writer rights) a html tag and must be added as a structural directive (*visibleByRight) to HTML manually
Example
<div class="pull-right" *visibleByRight>