Commit bcdc6425 authored by Dennis Willers's avatar Dennis Willers
Browse files

Add Animation

parent 522d737a
Loading
Loading
Loading
Loading
+8 −2
Original line number Diff line number Diff line
@@ -31,10 +31,13 @@
              "src/assets"
            ],
            "styles": [
              "node_modules/aos/dist/aos.css",
              "./node_modules/@angular/material/prebuilt-themes/deeppurple-amber.css",
              "src/styles.scss"
            ],
            "scripts": []
            "scripts": [
              "node_modules/aos/dist/aos.js"
            ]
          },
          "configurations": {
            "production": {
@@ -95,10 +98,13 @@
              "src/assets"
            ],
            "styles": [
              "node_modules/aos/dist/aos.css",
              "./node_modules/@angular/material/prebuilt-themes/deeppurple-amber.css",
              "src/styles.scss"
            ],
            "scripts": []
            "scripts": [
              "node_modules/aos/dist/aos.js"
            ]
          }
        },
        "lint": {
+30 −0
Original line number Diff line number Diff line
@@ -1585,6 +1585,11 @@
        "semver-intersect": "1.4.0"
      }
    },
    "@types/aos": {
      "version": "3.0.3",
      "resolved": "https://registry.npmjs.org/@types/aos/-/aos-3.0.3.tgz",
      "integrity": "sha512-H9YIQ8vcCv1F68vdxrZzKsyI5I82FfqJ/D+RTwehau/+FmfpPALtWTBM8OqbnLied4I6yd0f6bbIj3/EtEAHaA=="
    },
    "@types/component-emitter": {
      "version": "1.2.10",
      "resolved": "https://registry.npmjs.org/@types/component-emitter/-/component-emitter-1.2.10.tgz",
@@ -2027,6 +2032,16 @@
        "picomatch": "^2.0.4"
      }
    },
    "aos": {
      "version": "2.3.4",
      "resolved": "https://registry.npmjs.org/aos/-/aos-2.3.4.tgz",
      "integrity": "sha512-zh/ahtR2yME4I51z8IttIt4lC1Nw0ktsFtmeDzID1m9naJnWXhCoARaCgNOGXb5CLy3zm+wqmRAEgMYB5E2HUw==",
      "requires": {
        "classlist-polyfill": "^1.0.3",
        "lodash.debounce": "^4.0.6",
        "lodash.throttle": "^4.0.1"
      }
    },
    "app-root-path": {
      "version": "3.0.0",
      "resolved": "https://registry.npmjs.org/app-root-path/-/app-root-path-3.0.0.tgz",
@@ -2951,6 +2966,11 @@
        }
      }
    },
    "classlist-polyfill": {
      "version": "1.2.0",
      "resolved": "https://registry.npmjs.org/classlist-polyfill/-/classlist-polyfill-1.2.0.tgz",
      "integrity": "sha1-k1vC39lFiodrJ5YXUUY4vKqWSi4="
    },
    "clean-stack": {
      "version": "2.2.0",
      "resolved": "https://registry.npmjs.org/clean-stack/-/clean-stack-2.2.0.tgz",
@@ -7213,12 +7233,22 @@
      "integrity": "sha512-PlhdFcillOINfeV7Ni6oF1TAEayyZBoZ8bcshTHqOYJYlrqzRK5hagpagky5o4HfCzzd1TRkXPMFq6cKk9rGmA==",
      "dev": true
    },
    "lodash.debounce": {
      "version": "4.0.8",
      "resolved": "https://registry.npmjs.org/lodash.debounce/-/lodash.debounce-4.0.8.tgz",
      "integrity": "sha1-gteb/zCmfEAF/9XiUVMArZyk168="
    },
    "lodash.memoize": {
      "version": "4.1.2",
      "resolved": "https://registry.npmjs.org/lodash.memoize/-/lodash.memoize-4.1.2.tgz",
      "integrity": "sha1-vMbEmkKihA7Zl/Mj6tpezRguC/4=",
      "dev": true
    },
    "lodash.throttle": {
      "version": "4.1.1",
      "resolved": "https://registry.npmjs.org/lodash.throttle/-/lodash.throttle-4.1.1.tgz",
      "integrity": "sha1-wj6RtxAkKscMN/HhzaknTMOb8vQ="
    },
    "lodash.uniq": {
      "version": "4.5.0",
      "resolved": "https://registry.npmjs.org/lodash.uniq/-/lodash.uniq-4.5.0.tgz",
+4 −2
Original line number Diff line number Diff line
@@ -23,11 +23,13 @@
    "@angular/platform-browser": "~11.0.5",
    "@angular/platform-browser-dynamic": "~11.0.5",
    "@angular/router": "~11.0.5",
    "@types/aos": "^3.0.3",
    "aos": "^2.3.4",
    "rxjs": "~6.6.0",
    "socket.io": "^3.0.4",
    "socket.io-client": "latest",
    "tslib": "^2.0.0",
    "zone.js": "~0.10.2",
    "socket.io-client": "latest"
    "zone.js": "~0.10.2"
  },
  "devDependencies": {
    "@angular-devkit/build-angular": "~0.1100.5",
+2 −0
Original line number Diff line number Diff line
import {Component, HostListener, OnInit} from '@angular/core';
import {ViewModus} from './dao/viewModus';
import * as AOS from 'aos';

@Component({
  selector: 'app-root',
@@ -11,6 +12,7 @@ export class AppComponent implements OnInit {
  view = 'desktopView';

  ngOnInit(): void {
    AOS.init();
    const width = window.innerWidth;
    this.setView(width);
  }
+1 −1
Original line number Diff line number Diff line
@@ -63,7 +63,7 @@ import {ViewModus} from './dao/viewModus';
    MatIconModule,
    MatTooltipModule,
    MatTableModule,
    MatTreeModule
    MatTreeModule,
  ],
  providers: [
    IsAllowedToPlay,
Loading