diff --git a/.DS_Store b/.DS_Store index 84a8090..fd257a6 100644 Binary files a/.DS_Store and b/.DS_Store differ diff --git a/angular.json b/angular.json index eedcb61..30d7834 100644 --- a/angular.json +++ b/angular.json @@ -112,6 +112,7 @@ } }, "cli": { + "analytics": "173eaed1-7bb5-40f9-98fd-6a7163045565", "schematicCollections": [ "@angular-eslint/schematics" ] diff --git a/package.json b/package.json index e290ca7..bc63ae1 100644 --- a/package.json +++ b/package.json @@ -13,10 +13,10 @@ "private": true, "dependencies": { "@angular/animations": "^14.2.1", + "@angular/cdk": "^14.2.1", "@angular/common": "^14.2.1", "@angular/compiler": "^14.2.1", "@angular/core": "^14.2.1", - "@angular/cdk": "^14.2.1", "@angular/flex-layout": "^14.0.0-beta.40", "@angular/forms": "^14.2.1", "@angular/material": "^14.2.1", diff --git a/src/.DS_Store b/src/.DS_Store index f609d3e..0b8a21b 100644 Binary files a/src/.DS_Store and b/src/.DS_Store differ diff --git a/src/app/.DS_Store b/src/app/.DS_Store index 294f89b..3974319 100644 Binary files a/src/app/.DS_Store and b/src/app/.DS_Store differ diff --git a/src/app/app-routing.module.ts b/src/app/app-routing.module.ts index ef223db..39e786f 100644 --- a/src/app/app-routing.module.ts +++ b/src/app/app-routing.module.ts @@ -13,16 +13,7 @@ const appRoutes: Routes = [ loadChildren: () => import('./features/dashboard/dashboard.module').then(m => m.DashboardModule), canActivate: [AuthGuard] }, - { - path: 'customers', - loadChildren: () => import('./features/customers/customers.module').then(m => m.CustomersModule), - canActivate: [AuthGuard] - }, - { - path: 'users', - loadChildren: () => import('./features/users/users.module').then(m => m.UsersModule), - canActivate: [AuthGuard] - }, + { path: 'account', loadChildren: () => import('./features/account/account.module').then(m => m.AccountModule), @@ -43,6 +34,18 @@ const appRoutes: Routes = [ loadChildren: () => import('./features/about/about.module').then(m => m.AboutModule), canActivate: [AuthGuard] }, + {path:'stock-market', + loadChildren:()=>import('./features/stok-market/stock-market').then(m=>m.StockMarketModule), + canActivate:[AuthGuard] +}, +{path:'currency-market', +loadChildren:()=>import('./features/cur-market/cur-market').then(m=>m.CurMarketModule), +canActivate:[AuthGuard] +}, +{path:'derivative', +loadChildren:()=>import('./features/derivatives/derivative').then(m=>m.DerivativeModule), +canActivate:[AuthGuard] +}, { path: '**', redirectTo: 'dashboard', diff --git a/src/app/app.module.ts b/src/app/app.module.ts index 027530c..9c2f3aa 100644 --- a/src/app/app.module.ts +++ b/src/app/app.module.ts @@ -9,6 +9,7 @@ import { CustomMaterialModule } from './custom-material/custom-material.module'; import { AppRoutingModule } from './app-routing.module'; import { LoggerModule } from 'ngx-logger'; import { environment } from '../environments/environment'; +import { HttpClientModule } from '@angular/common/http'; @NgModule({ declarations: [ @@ -20,7 +21,9 @@ import { environment } from '../environments/environment'; CoreModule, SharedModule, CustomMaterialModule.forRoot(), + AppRoutingModule, + HttpClientModule, LoggerModule.forRoot({ serverLoggingUrl: `http://my-api/logs`, level: environment.logLevel, diff --git a/src/app/core/http/http.service.spec.ts b/src/app/core/http/http.service.spec.ts new file mode 100644 index 0000000..e69de29 diff --git a/src/app/core/http/http.service.ts b/src/app/core/http/http.service.ts new file mode 100644 index 0000000..6aea469 --- /dev/null +++ b/src/app/core/http/http.service.ts @@ -0,0 +1,17 @@ +import { Injectable } from '@angular/core'; +import {HttpClient} from "@angular/common/http"; +import {catchError, map, Observable} from "rxjs"; +import {environment} from "../../../environments/environment"; + +@Injectable({ + providedIn: 'root' +}) +export class HttpService { + + constructor(private http: HttpClient) { } + + getData(){ + return this.http.get('http://192.168.4.18:8084/stock?vDateStart=20221030&vDateEnd=20221102') + } + +} diff --git a/src/app/core/services/auth.service.ts b/src/app/core/services/auth.service.ts index a26e264..0fb8416 100644 --- a/src/app/core/services/auth.service.ts +++ b/src/app/core/services/auth.service.ts @@ -27,11 +27,11 @@ export class AuthenticationService { this.localStorage.setItem('currentUser', JSON.stringify({ token: 'aisdnaksjdn,axmnczm', isAdmin: true, - email: 'john.doe@gmail.com', + email: 'roman@mail.ru', id: '12312323232', - alias: 'john.doe@gmail.com'.split('@')[0], + alias: 'roman@mail.ru'.split('@')[0], expiration: moment().add(1, 'days').toDate(), - fullName: 'John Doe' + fullName: 'Roman Dubrovskiy' })); return true; @@ -49,11 +49,11 @@ export class AuthenticationService { return { token: 'aisdnaksjdn,axmnczm', isAdmin: true, - email: 'john.doe@gmail.com', + email: 'roman@mail.ru', id: '12312323232', - alias: 'john.doe@gmail.com'.split('@')[0], + alias: 'roman@mail.ru'.split('@')[0], expiration: moment().add(1, 'days').toDate(), - fullName: 'John Doe' + fullName: 'Roman Dubrovskiy' }; } diff --git a/src/app/features/auth/auth-routing.module.ts b/src/app/features/auth/auth-routing.module.ts index 9a934db..b3b3698 100644 --- a/src/app/features/auth/auth-routing.module.ts +++ b/src/app/features/auth/auth-routing.module.ts @@ -1,5 +1,6 @@ import { NgModule } from '@angular/core'; import { Routes, RouterModule } from '@angular/router'; +import { LoginCreateComponent } from './login-create/login-create.component'; import { LoginComponent } from './login/login.component'; import { PasswordResetRequestComponent } from './password-reset-request/password-reset-request.component'; @@ -8,7 +9,8 @@ import { PasswordResetComponent } from './password-reset/password-reset.componen const routes: Routes = [ { path: 'login', component: LoginComponent }, { path: 'password-reset-request', component: PasswordResetRequestComponent }, - { path: 'password-reset', component: PasswordResetComponent } + { path: 'password-reset', component: PasswordResetComponent }, + { path: 'login-create', component: LoginCreateComponent } ]; @NgModule({ diff --git a/src/app/features/auth/auth.module.ts b/src/app/features/auth/auth.module.ts index 3ef111a..b886f1d 100644 --- a/src/app/features/auth/auth.module.ts +++ b/src/app/features/auth/auth.module.ts @@ -6,6 +6,7 @@ import { LoginComponent } from './login/login.component'; import { PasswordResetRequestComponent } from './password-reset-request/password-reset-request.component'; import { PasswordResetComponent } from './password-reset/password-reset.component'; import { SharedModule } from 'src/app/shared/shared.module'; +import { LoginCreateComponent } from './login-create/login-create.component'; @NgModule({ imports: [ @@ -13,6 +14,6 @@ import { SharedModule } from 'src/app/shared/shared.module'; SharedModule, AuthRoutingModule ], - declarations: [LoginComponent, PasswordResetRequestComponent, PasswordResetComponent] + declarations: [LoginComponent, PasswordResetRequestComponent, PasswordResetComponent,LoginCreateComponent] }) export class AuthModule { } diff --git a/src/app/features/auth/login-create/login-create.component.css b/src/app/features/auth/login-create/login-create.component.css new file mode 100644 index 0000000..a0d2ed6 --- /dev/null +++ b/src/app/features/auth/login-create/login-create.component.css @@ -0,0 +1,31 @@ +.a{ + background-color: white; + padding: 50px 0 50px 0; +}.bb{ + align-items: center; + display: flex; + justify-content: center; + padding-top: 100px; +padding-bottom: 100px; + +} +.d{ + flex-flow: column!important; +} +.c{ + color: #525252; +} + + .mat-card:not([class*=mat-elevation-z]) { + box-shadow: none!important + } +mat{ + background-color: green; +} +.mat-slide-toggle.mat-checked .mat-slide-toggle-bar { + background-color:none!important; +} +.mat-slide-toggle.mat-checked .mat-slide-toggle-thumb { + background-color: + none !important; +} diff --git a/src/app/features/auth/login-create/login-create.component.html b/src/app/features/auth/login-create/login-create.component.html new file mode 100644 index 0000000..c07ff3b --- /dev/null +++ b/src/app/features/auth/login-create/login-create.component.html @@ -0,0 +1,70 @@ +