diff --git a/client/angular.json b/client/angular.json index 1d5834b..1b7f0b3 100644 --- a/client/angular.json +++ b/client/angular.json @@ -31,6 +31,8 @@ "node_modules/popper.js/dist/umd/popper.min.js", "node_modules/bootstrap/dist/js/bootstrap.js", "node_modules/quill/dist/quill.js", + "node_modules/easy-pie-chart/dist/easypiechart.js", + "node_modules/easy-pie-chart/dist/jquery.easypiechart.js", "node_modules/howler/dist/howler.js" ] }, @@ -73,32 +75,6 @@ "browserTarget": "podnoms-web:build" } }, - "test": { - "builder": "@angular-devkit/build-angular:karma", - "options": { - "main": "src/test.ts", - "karmaConfig": "./karma.conf.js", - "polyfills": "src/polyfills.ts", - "tsConfig": "src/tsconfig.spec.json", - "scripts": [ - "node_modules/jquery/dist/jquery.js", - "node_modules/cookieconsent/build/cookieconsent.min.js", - "node_modules/tether/dist/js/tether.js", - "node_modules/popper.js/dist/umd/popper.min.js", - "node_modules/bootstrap/dist/js/bootstrap.js", - "node_modules/quill/dist/quill.js", - "node_modules/howler/dist/howler.js" - ], - "styles": ["src/styles.css"], - "assets": [ - "src/assets", - "src/favicon.ico", - "src/firebase-messaging-sw.js", - "src/facebook-auth.html", - "src/manifest.json" - ] - } - }, "lint": { "builder": "@angular-devkit/build-angular:tslint", "options": { @@ -110,27 +86,6 @@ } } } - }, - "podnoms-web-e2e": { - "root": "", - "sourceRoot": "", - "projectType": "application", - "architect": { - "e2e": { - "builder": "@angular-devkit/build-angular:protractor", - "options": { - "protractorConfig": "./protractor.conf.js", - "devServerTarget": "podnoms-web:serve" - } - }, - "lint": { - "builder": "@angular-devkit/build-angular:tslint", - "options": { - "tsConfig": ["e2e/tsconfig.e2e.json"], - "exclude": [] - } - } - } } }, "defaultProject": "podnoms-web", diff --git a/client/package.json b/client/package.json index b519169..c239cf1 100644 --- a/client/package.json +++ b/client/package.json @@ -6,7 +6,6 @@ "ng": "ng", "start": "ng serve --aot", "build": "ng build", - "test": "ng test", "lint": "ng lint" }, "ngrxGen": { @@ -29,6 +28,7 @@ "@ngrx/store": "^5.1.0", "@ngrx/store-devtools": "^5.1.0", "@qontu/ngx-inline-editor": "^0.2.0-alpha.12", + "@types/jquery": "^3.3.1", "angular2-jwt": "^0.2.3", "angular2-moment": "^1.8.0", "angularfire2": "^5.0.0-rc.7", @@ -38,12 +38,14 @@ "cookieconsent": "^3.0.6", "core-js": "^2.5.3", "dropzone": "^5.3.0", + "easy-pie-chart": "^2.1.7", "firebase": "^4.12.1", "font-awesome": "^4.7.0", "howler": "^2.0.9", "jquery": "^3.3.1", "lodash": "^4.17.5", "ng2-toasty": "^4.0.3", + "ng2modules-easypiechart": "0.0.4", "ngx-bootstrap": "^2.0.4", "ngx-clipboard": "^10.0.0", "ngx-cookieconsent": "^1.0.1", @@ -70,12 +72,6 @@ "codelyzer": "~4.2.1", "jasmine-core": "~2.99.1", "jasmine-spec-reporter": "~4.2.1", - "karma": "~1.7.1", - "karma-chrome-launcher": "~2.2.0", - "karma-coverage-istanbul-reporter": "~1.4.2", - "karma-jasmine": "~1.1.1", - "karma-jasmine-html-reporter": "^0.2.2", - "protractor": "~5.3.0", "ts-node": "~5.0.1", "tslint": "~5.9.1", "@types/applicationinsights-js": "^1.0.5" diff --git a/client/src/app/app.module.ts b/client/src/app/app.module.ts index 54852c6..1b5f225 100644 --- a/client/src/app/app.module.ts +++ b/client/src/app/app.module.ts @@ -18,6 +18,7 @@ import { AngularFireAuthModule } from 'angularfire2/auth'; import { AngularFireModule } from 'angularfire2'; import { AngularFirestoreModule } from 'angularfire2/firestore'; import { QuillModule } from 'ngx-quill'; +import { EasyPieChartModule } from 'ng2modules-easypiechart'; import { SocialLoginModule, AuthServiceConfig } from 'angularx-social-login'; import { @@ -81,6 +82,7 @@ import { BoilerplateComponent } from './components/boilerplate/boilerplate.compo import { BasePageComponent } from './components/base-page/base-page.component'; import { ChatWidgetComponent } from './components/chat-widget/chat-widget.component'; import { ChatService } from 'app/services/chat.service'; +import { BytesToHumanPipe } from './pipes/bytes-to-human.pipe'; const cookieConfig: NgcCookieConsentConfig = { cookie: { @@ -130,6 +132,7 @@ export function provideConfig() { NavbarComponent, FilterEntryPipe, + BytesToHumanPipe, OrderByPipe, PrettyPrintPipe, EntryListItemComponent, @@ -148,7 +151,8 @@ export function provideConfig() { SideOverlayComponent, BoilerplateComponent, BasePageComponent, - ChatWidgetComponent + ChatWidgetComponent, + BytesToHumanPipe ], imports: [ BrowserModule, @@ -172,6 +176,7 @@ export function provideConfig() { InlineEditorModule, MomentModule, QuillModule, + EasyPieChartModule, ModalModule.forRoot(), ProgressbarModule.forRoot(), ToastyModule.forRoot(), diff --git a/client/src/app/components/profile/profile.component.html b/client/src/app/components/profile/profile.component.html index fa2976b..b13640a 100644 --- a/client/src/app/components/profile/profile.component.html +++ b/client/src/app/components/profile/profile.component.html @@ -2,10 +2,17 @@
- Tell us as much or as little as you like, nobody sees this anyway -
-Storage space used
+