diff --git a/minify.sh b/minify.sh
deleted file mode 100755
index 2b47016..0000000
--- a/minify.sh
+++ /dev/null
@@ -1,15 +0,0 @@
-#!/usr/bin/env bash
-
-# execute script in its location folder
-cd $(dirname $0)
-
-# array of files to minify
-FILES=(inline.bundle main.bundle polyfills.bundle scripts.bundle styles.bundle vendor.bundle admin.module.chunk common.chunk decoration.module.chunk ranks.module.chunk request.module.chunk squads.module.chunk stats.module.chunk users.module.chunk)
-OPTIONS="-c toplevel,dead_code=true,unused=true"
-
-for i in "${FILES[@]}"
-do
- echo "minify ${i} ..."
- $(npm bin)/uglifyjs public/${i}.js ${OPTIONS} -o public/${i}.js
- rm -f public/${i}.js.map
-done
diff --git a/package.json b/package.json
index 1e1a860..e0598a5 100644
--- a/package.json
+++ b/package.json
@@ -1,13 +1,13 @@
{
"name": "opt-cc",
- "version": "1.5.2",
+ "version": "1.5.3",
"license": "MIT",
"private": true,
"scripts": {
"start": "npm run deploy-static-prod && npm start --prefix ./api",
"dev": "npm run deploy-static && npm run dev --prefix ./api",
"deploy-static": "cd ./static && $(npm bin)/ng build && ln -s ../api/resource/ ../public/resource",
- "deploy-static-prod": "cd ./static && $(npm bin)/ng build --env=prod && ln -s ../api/resource/ ../public/resource && .././minify.sh",
+ "deploy-static-prod": "cd ./static && $(npm bin)/ng build --prod --aot && ln -s ../api/resource/ ../public/resource",
"postinstall": "npm install --prefix ./static && npm install --prefix ./api",
"mongodb": "mkdir -p mongodb-data && mongod --dbpath ./mongodb-data",
"test": "npm test --prefix ./api",
diff --git a/static/src/app/app.component.ts b/static/src/app/app.component.ts
index 3211123..855a37d 100644
--- a/static/src/app/app.component.ts
+++ b/static/src/app/app.component.ts
@@ -16,7 +16,7 @@ export class AppComponent {
loading: boolean = false;
- constructor(private loginService: LoginService,
+ constructor(public loginService: LoginService,
private promotionService: PromotionService,
private awardingService: AwardingService,
private router: Router) {
diff --git a/static/src/app/decorations/decoration-list/decoration-list.component.html b/static/src/app/decorations/decoration-list/decoration-list.component.html
index 7fe14fe..f06c42b 100644
--- a/static/src/app/decorations/decoration-list/decoration-list.component.html
+++ b/static/src/app/decorations/decoration-list/decoration-list.component.html
@@ -4,28 +4,28 @@
Alle
+ (change)="filterDecorations(query.value, '')">Alle
-
+
Auszeichnung hinzufügen
@@ -33,11 +33,11 @@