From 5e69d6e5c576d06da6132da5435bf9a969966d0c Mon Sep 17 00:00:00 2001 From: gofnnp Date: Thu, 12 Jan 2023 01:57:32 +0400 Subject: [PATCH] =?UTF-8?q?dev=20#13538=20=D0=BF=D0=B5=D1=80=D0=B5=D0=BD?= =?UTF-8?q?=D0=B5=D1=81=20=D0=BA=D0=BD=D0=BE=D0=BF=D0=BA=D1=83,=20=D0=B2?= =?UTF-8?q?=D1=8B=D0=BD=D0=B5=D1=81=20=D1=84=D1=83=D0=BD=D0=BA=D1=86=D0=B8?= =?UTF-8?q?=D0=BE=D0=BD=D0=B0=D0=BB=20=D0=B2=20=D0=B4=D0=B8=D1=80=D0=B5?= =?UTF-8?q?=D0=BA=D1=82=D0=B8=D0=B2=D1=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- angular/package.json | 2 +- angular/src/app/app.constants.ts | 2 +- angular/src/app/app.module.ts | 4 +- .../footer-buttons.component.html | 5 +- .../footer-buttons.component.ts | 22 --- .../directives/download-app.directive.spec.ts | 8 + .../app/directives/download-app.directive.ts | 60 ++++++ .../app/pages/account/account.component.html | 70 +++++-- .../app/pages/account/account.component.ts | 4 + .../bonus-program/bonus-program.component.ts | 181 +++++++++++------- .../account/orders/orders.component.html | 6 +- .../pages/account/orders/orders.component.ts | 28 ++- .../ref-system/ref-system.component.ts | 1 - .../account/user-data/user-data.component.ts | 4 + .../src/app/pages/main/main.component.html | 4 +- angular/src/app/pages/main/main.component.ts | 45 ----- .../src/assets/menu-icons/download-app.png | Bin 0 -> 8858 bytes 17 files changed, 272 insertions(+), 174 deletions(-) create mode 100644 angular/src/app/directives/download-app.directive.spec.ts create mode 100644 angular/src/app/directives/download-app.directive.ts create mode 100644 angular/src/assets/menu-icons/download-app.png diff --git a/angular/package.json b/angular/package.json index 99a138c..3f3f911 100644 --- a/angular/package.json +++ b/angular/package.json @@ -3,7 +3,7 @@ "version": "0.0.3", "scripts": { "ng": "ng", - "start": "ng serve --host 192.168.0.12", + "start": "ng serve --host 192.168.0.14", "build": "ng build", "watch": "ng build --watch --configuration development", "test": "ng test" diff --git a/angular/src/app/app.constants.ts b/angular/src/app/app.constants.ts index fec3e2c..5dd5046 100644 --- a/angular/src/app/app.constants.ts +++ b/angular/src/app/app.constants.ts @@ -49,7 +49,7 @@ export const PageListWithBonus: Page[] = [ description: '', resName: 'ref-system', onSideBar: true, - }, + } ]; export const orderStatuses: OrderStatus = { diff --git a/angular/src/app/app.module.ts b/angular/src/app/app.module.ts index 0f44a05..716954a 100644 --- a/angular/src/app/app.module.ts +++ b/angular/src/app/app.module.ts @@ -33,6 +33,7 @@ import { ShareButtonsModule } from 'ngx-sharebuttons/buttons'; import { ShareIconsModule } from 'ngx-sharebuttons/icons'; import { MessagingService } from './services/messaging.service'; import { NotFoundComponent } from './pages/not-found/not-found.component'; +import { DownloadAppDirective } from './directives/download-app.directive'; @NgModule({ declarations: [ @@ -49,7 +50,8 @@ import { NotFoundComponent } from './pages/not-found/not-found.component'; FooterButtonsComponent, UserDataComponent, RefSystemComponent, - NotFoundComponent + NotFoundComponent, + DownloadAppDirective ], imports: [ BrowserModule, diff --git a/angular/src/app/components/footer-buttons/footer-buttons.component.html b/angular/src/app/components/footer-buttons/footer-buttons.component.html index 42f39f5..942bb0d 100644 --- a/angular/src/app/components/footer-buttons/footer-buttons.component.html +++ b/angular/src/app/components/footer-buttons/footer-buttons.component.html @@ -1,12 +1,11 @@