diff --git a/.vscode/settings.json b/.vscode/settings.json index 44e740ed..4b0df2e5 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -10,5 +10,6 @@ "eslint.validate": [ "json" ], -"angular.enable-strict-mode-prompt": false +"angular.enable-strict-mode-prompt": false, +"angular.log": "verbose" } diff --git a/.yarn/cache/@alloc-quick-lru-npm-5.2.0-eb83517088-bdc35758b5.zip b/.yarn/cache/@alloc-quick-lru-npm-5.2.0-eb83517088-bdc35758b5.zip new file mode 100644 index 00000000..683fd043 Binary files /dev/null and b/.yarn/cache/@alloc-quick-lru-npm-5.2.0-eb83517088-bdc35758b5.zip differ diff --git a/.yarn/cache/@nx-nx-win32-x64-msvc-npm-16.2.2-fbdd6512ee-8.zip b/.yarn/cache/@nx-nx-win32-x64-msvc-npm-16.2.2-fbdd6512ee-8.zip new file mode 100644 index 00000000..ea96ac11 Binary files /dev/null and b/.yarn/cache/@nx-nx-win32-x64-msvc-npm-16.2.2-fbdd6512ee-8.zip differ diff --git a/.yarn/cache/any-promise-npm-1.3.0-f34eeaa7e7-0ee8a9bdbe.zip b/.yarn/cache/any-promise-npm-1.3.0-f34eeaa7e7-0ee8a9bdbe.zip new file mode 100644 index 00000000..2f709d5c Binary files /dev/null and b/.yarn/cache/any-promise-npm-1.3.0-f34eeaa7e7-0ee8a9bdbe.zip differ diff --git a/.yarn/cache/arg-npm-5.0.2-2f5805a547-6c69ada1a9.zip b/.yarn/cache/arg-npm-5.0.2-2f5805a547-6c69ada1a9.zip new file mode 100644 index 00000000..1ffd22e8 Binary files /dev/null and b/.yarn/cache/arg-npm-5.0.2-2f5805a547-6c69ada1a9.zip differ diff --git a/.yarn/cache/camelcase-css-npm-2.0.1-90d1b6df08-1cec2b3b3d.zip b/.yarn/cache/camelcase-css-npm-2.0.1-90d1b6df08-1cec2b3b3d.zip new file mode 100644 index 00000000..f2286f38 Binary files /dev/null and b/.yarn/cache/camelcase-css-npm-2.0.1-90d1b6df08-1cec2b3b3d.zip differ diff --git a/.yarn/cache/commander-npm-4.1.1-22a0fe921b-d7b9913ff9.zip b/.yarn/cache/commander-npm-4.1.1-22a0fe921b-d7b9913ff9.zip new file mode 100644 index 00000000..0e48a7d8 Binary files /dev/null and b/.yarn/cache/commander-npm-4.1.1-22a0fe921b-d7b9913ff9.zip differ diff --git a/.yarn/cache/didyoumean-npm-1.2.2-fd568ec571-d5d98719d5.zip b/.yarn/cache/didyoumean-npm-1.2.2-fd568ec571-d5d98719d5.zip new file mode 100644 index 00000000..c4ed417d Binary files /dev/null and b/.yarn/cache/didyoumean-npm-1.2.2-fd568ec571-d5d98719d5.zip differ diff --git a/.yarn/cache/dlv-npm-1.1.3-187c903a21-d7381bca22.zip b/.yarn/cache/dlv-npm-1.1.3-187c903a21-d7381bca22.zip new file mode 100644 index 00000000..882709b3 Binary files /dev/null and b/.yarn/cache/dlv-npm-1.1.3-187c903a21-d7381bca22.zip differ diff --git a/.yarn/cache/glob-npm-7.1.6-1ce3a5189a-351d549dd9.zip b/.yarn/cache/glob-npm-7.1.6-1ce3a5189a-351d549dd9.zip new file mode 100644 index 00000000..a696eebd Binary files /dev/null and b/.yarn/cache/glob-npm-7.1.6-1ce3a5189a-351d549dd9.zip differ diff --git a/.yarn/cache/jiti-npm-1.18.2-112a8d9b37-46c41cd82d.zip b/.yarn/cache/jiti-npm-1.18.2-112a8d9b37-46c41cd82d.zip new file mode 100644 index 00000000..1f7841e0 Binary files /dev/null and b/.yarn/cache/jiti-npm-1.18.2-112a8d9b37-46c41cd82d.zip differ diff --git a/.yarn/cache/libphonenumber-js-npm-1.10.30-ebdb6a4c1d-677bdd25b7.zip b/.yarn/cache/libphonenumber-js-npm-1.10.31-dbbcca6cba-c205c489a1.zip similarity index 63% rename from .yarn/cache/libphonenumber-js-npm-1.10.30-ebdb6a4c1d-677bdd25b7.zip rename to .yarn/cache/libphonenumber-js-npm-1.10.31-dbbcca6cba-c205c489a1.zip index 8aab9f95..d7bfe464 100644 Binary files a/.yarn/cache/libphonenumber-js-npm-1.10.30-ebdb6a4c1d-677bdd25b7.zip and b/.yarn/cache/libphonenumber-js-npm-1.10.31-dbbcca6cba-c205c489a1.zip differ diff --git a/.yarn/cache/mz-npm-2.7.0-ec3cef4ec2-8427de0ece.zip b/.yarn/cache/mz-npm-2.7.0-ec3cef4ec2-8427de0ece.zip new file mode 100644 index 00000000..faf79cab Binary files /dev/null and b/.yarn/cache/mz-npm-2.7.0-ec3cef4ec2-8427de0ece.zip differ diff --git a/.yarn/cache/object-hash-npm-3.0.0-d941e0cabe-80b4904bb3.zip b/.yarn/cache/object-hash-npm-3.0.0-d941e0cabe-80b4904bb3.zip new file mode 100644 index 00000000..866d803c Binary files /dev/null and b/.yarn/cache/object-hash-npm-3.0.0-d941e0cabe-80b4904bb3.zip differ diff --git a/.yarn/cache/postcss-js-npm-4.0.1-2c4ee70bf3-5c1e83efea.zip b/.yarn/cache/postcss-js-npm-4.0.1-2c4ee70bf3-5c1e83efea.zip new file mode 100644 index 00000000..d9b86026 Binary files /dev/null and b/.yarn/cache/postcss-js-npm-4.0.1-2c4ee70bf3-5c1e83efea.zip differ diff --git a/.yarn/cache/postcss-load-config-npm-4.0.1-351eb776f5-b61f890499.zip b/.yarn/cache/postcss-load-config-npm-4.0.1-351eb776f5-b61f890499.zip new file mode 100644 index 00000000..77a854b3 Binary files /dev/null and b/.yarn/cache/postcss-load-config-npm-4.0.1-351eb776f5-b61f890499.zip differ diff --git a/.yarn/cache/postcss-nested-npm-6.0.1-5cdc427fe8-7ddb0364cd.zip b/.yarn/cache/postcss-nested-npm-6.0.1-5cdc427fe8-7ddb0364cd.zip new file mode 100644 index 00000000..79b46905 Binary files /dev/null and b/.yarn/cache/postcss-nested-npm-6.0.1-5cdc427fe8-7ddb0364cd.zip differ diff --git a/.yarn/cache/rxjs-npm-7.5.7-602d5c56e4-edabcdb73b.zip b/.yarn/cache/rxjs-npm-7.5.7-602d5c56e4-edabcdb73b.zip new file mode 100644 index 00000000..63c9c28d Binary files /dev/null and b/.yarn/cache/rxjs-npm-7.5.7-602d5c56e4-edabcdb73b.zip differ diff --git a/.yarn/cache/sucrase-npm-3.32.0-77d3fb5106-79f760aef5.zip b/.yarn/cache/sucrase-npm-3.32.0-77d3fb5106-79f760aef5.zip new file mode 100644 index 00000000..f27188ba Binary files /dev/null and b/.yarn/cache/sucrase-npm-3.32.0-77d3fb5106-79f760aef5.zip differ diff --git a/.yarn/cache/sweetalert2-npm-11.7.6-df98affe37-6f7547066a.zip b/.yarn/cache/sweetalert2-npm-11.7.6-df98affe37-6f7547066a.zip new file mode 100644 index 00000000..6d591404 Binary files /dev/null and b/.yarn/cache/sweetalert2-npm-11.7.6-df98affe37-6f7547066a.zip differ diff --git a/.yarn/cache/tailwindcss-npm-3.3.2-9311a8c9fc-4897c70e67.zip b/.yarn/cache/tailwindcss-npm-3.3.2-9311a8c9fc-4897c70e67.zip new file mode 100644 index 00000000..e8ab6034 Binary files /dev/null and b/.yarn/cache/tailwindcss-npm-3.3.2-9311a8c9fc-4897c70e67.zip differ diff --git a/.yarn/cache/thenify-all-npm-1.6.0-96309bbc8b-dba7cc8a23.zip b/.yarn/cache/thenify-all-npm-1.6.0-96309bbc8b-dba7cc8a23.zip new file mode 100644 index 00000000..59a2bc6c Binary files /dev/null and b/.yarn/cache/thenify-all-npm-1.6.0-96309bbc8b-dba7cc8a23.zip differ diff --git a/.yarn/cache/thenify-npm-3.3.1-030bedb22c-84e1b804bf.zip b/.yarn/cache/thenify-npm-3.3.1-030bedb22c-84e1b804bf.zip new file mode 100644 index 00000000..4710c403 Binary files /dev/null and b/.yarn/cache/thenify-npm-3.3.1-030bedb22c-84e1b804bf.zip differ diff --git a/.yarn/cache/ts-interface-checker-npm-0.1.13-0c7b064494-20c29189c2.zip b/.yarn/cache/ts-interface-checker-npm-0.1.13-0c7b064494-20c29189c2.zip new file mode 100644 index 00000000..db41941a Binary files /dev/null and b/.yarn/cache/ts-interface-checker-npm-0.1.13-0c7b064494-20c29189c2.zip differ diff --git a/.yarn/cache/typescript-patch-ecf29fafbd-d26b6ba97b.zip b/.yarn/cache/typescript-patch-8abdc1c0d6-6a1fe9a77b.zip similarity index 56% rename from .yarn/cache/typescript-patch-ecf29fafbd-d26b6ba97b.zip rename to .yarn/cache/typescript-patch-8abdc1c0d6-6a1fe9a77b.zip index 31c23c00..92d1b5ee 100644 Binary files a/.yarn/cache/typescript-patch-ecf29fafbd-d26b6ba97b.zip and b/.yarn/cache/typescript-patch-8abdc1c0d6-6a1fe9a77b.zip differ diff --git a/.yarn/cache/yaml-npm-2.3.1-743f5688d1-2c7bc9a7cd.zip b/.yarn/cache/yaml-npm-2.3.1-743f5688d1-2c7bc9a7cd.zip new file mode 100644 index 00000000..abc6f7ce Binary files /dev/null and b/.yarn/cache/yaml-npm-2.3.1-743f5688d1-2c7bc9a7cd.zip differ diff --git a/.yarn/releases/yarn-3.5.1.cjs b/.yarn/releases/yarn-3.5.1.cjs old mode 100755 new mode 100644 diff --git a/apps/shiv-bull-clone/.eslintrc.json b/apps/shiv-bull-clone/.eslintrc.json new file mode 100644 index 00000000..bb157d98 --- /dev/null +++ b/apps/shiv-bull-clone/.eslintrc.json @@ -0,0 +1,36 @@ +{ + "extends": ["../../.eslintrc.json"], + "ignorePatterns": ["!**/*"], + "overrides": [ + { + "files": ["*.ts"], + "rules": { + "@angular-eslint/directive-selector": [ + "error", + { + "type": "attribute", + "prefix": "shivBullApp", + "style": "camelCase" + } + ], + "@angular-eslint/component-selector": [ + "error", + { + "type": "element", + "prefix": "shiv-bull-app", + "style": "kebab-case" + } + ] + }, + "extends": [ + "plugin:@nrwl/nx/angular", + "plugin:@angular-eslint/template/process-inline-templates" + ] + }, + { + "files": ["*.html"], + "extends": ["plugin:@nrwl/nx/angular-template"], + "rules": {} + } + ] +} diff --git a/apps/shiv-bull-clone/jest.config.ts b/apps/shiv-bull-clone/jest.config.ts new file mode 100644 index 00000000..fa4046c1 --- /dev/null +++ b/apps/shiv-bull-clone/jest.config.ts @@ -0,0 +1,23 @@ +/* eslint-disable */ +export default { + displayName: 'shiv-bull-clone', + preset: '../../jest.preset.js', + setupFilesAfterEnv: ['/src/test-setup.ts'], + globals: {}, + coverageDirectory: '../../coverage/apps/shiv-bull-clone', + transform: { + '^.+\\.(ts|mjs|js|html)$': [ + 'jest-preset-angular', + { + tsconfig: '/tsconfig.spec.json', + stringifyContentPathRegex: '\\.(html|svg)$', + }, + ], + }, + transformIgnorePatterns: ['node_modules/(?!.*\\.mjs$)'], + snapshotSerializers: [ + 'jest-preset-angular/build/serializers/no-ng-attributes', + 'jest-preset-angular/build/serializers/ng-snapshot', + 'jest-preset-angular/build/serializers/html-comment', + ], +}; diff --git a/apps/shiv-bull-clone/project.json b/apps/shiv-bull-clone/project.json new file mode 100644 index 00000000..c0661d0e --- /dev/null +++ b/apps/shiv-bull-clone/project.json @@ -0,0 +1,100 @@ +{ + "name": "shiv-bull-clone", + "$schema": "../../node_modules/nx/schemas/project-schema.json", + "projectType": "application", + "sourceRoot": "apps/shiv-bull-clone/src", + "prefix": "shiv-bull-app", + "targets": { + "build": { + "executor": "@angular-devkit/build-angular:browser", + "outputs": ["{options.outputPath}"], + "options": { + "outputPath": "dist/apps/shiv-bull-clone", + "index": "apps/shiv-bull-clone/src/index.html", + "main": "apps/shiv-bull-clone/src/main.ts", + "polyfills": ["zone.js"], + "tsConfig": "apps/shiv-bull-clone/tsconfig.app.json", + "inlineStyleLanguage": "scss", + "assets": [ + "apps/shiv-bull-clone/src/favicon.ico", + "apps/shiv-bull-clone/src/assets" + ], + "styles": ["apps/shiv-bull-clone/src/styles.scss"], + "scripts": [] + }, + "configurations": { + "production": { + "budgets": [ + { + "type": "initial", + "maximumWarning": "500kb", + "maximumError": "1mb" + }, + { + "type": "anyComponentStyle", + "maximumWarning": "2kb", + "maximumError": "4kb" + } + ], + "outputHashing": "all" + }, + "development": { + "buildOptimizer": false, + "optimization": false, + "vendorChunk": true, + "extractLicenses": false, + "sourceMap": true, + "namedChunks": true + } + }, + "defaultConfiguration": "production" + }, + "serve": { + "executor": "@angular-devkit/build-angular:dev-server", + "configurations": { + "production": { + "browserTarget": "shiv-bull-clone:build:production" + }, + "development": { + "browserTarget": "shiv-bull-clone:build:development" + } + }, + "defaultConfiguration": "development", + "options": { + "port": 5555, + "host": "0.0.0.0" + } + }, + "extract-i18n": { + "executor": "@angular-devkit/build-angular:extract-i18n", + "options": { + "browserTarget": "shiv-bull-clone:build" + } + }, + "lint": { + "executor": "@nrwl/linter:eslint", + "outputs": ["{options.outputFile}"], + "options": { + "lintFilePatterns": [ + "apps/shiv-bull-clone/**/*.ts", + "apps/shiv-bull-clone/**/*.html" + ] + } + }, + "test": { + "executor": "@nrwl/jest:jest", + "outputs": ["{workspaceRoot}/coverage/{projectRoot}"], + "options": { + "jestConfig": "apps/shiv-bull-clone/jest.config.ts", + "passWithNoTests": true + }, + "configurations": { + "ci": { + "ci": true, + "codeCoverage": true + } + } + } + }, + "tags": [] +} diff --git a/apps/shiv-bull-clone/src/app/about/about.component.html b/apps/shiv-bull-clone/src/app/about/about.component.html new file mode 100644 index 00000000..ab2c271c --- /dev/null +++ b/apps/shiv-bull-clone/src/app/about/about.component.html @@ -0,0 +1,22 @@ +
+
+
+

ABOUT US

+
+
+ + +

+ {{item.tittle}} +

+
+

+ {{para}} + +

+
+ +
+
diff --git a/apps/shiv-bull-clone/src/app/about/about.component.scss b/apps/shiv-bull-clone/src/app/about/about.component.scss new file mode 100644 index 00000000..3a3cd9a6 --- /dev/null +++ b/apps/shiv-bull-clone/src/app/about/about.component.scss @@ -0,0 +1,5 @@ +@media screen and (max-width:768px) { + .welcome{ + margin-bottom: 90px; + } +} \ No newline at end of file diff --git a/apps/shiv-bull-clone/src/app/about/about.component.spec.ts b/apps/shiv-bull-clone/src/app/about/about.component.spec.ts new file mode 100644 index 00000000..4268361b --- /dev/null +++ b/apps/shiv-bull-clone/src/app/about/about.component.spec.ts @@ -0,0 +1,29 @@ +import { ComponentFixture, TestBed } from '@angular/core/testing'; + +import { AboutComponent } from './about.component'; + +describe('AboutComponent', () => { + let component: AboutComponent; + let fixture: ComponentFixture; + + beforeEach(async () => { + await TestBed.configureTestingModule({ + imports: [AboutComponent], + }).compileComponents(); + + fixture = TestBed.createComponent(AboutComponent); + component = fixture.componentInstance; + fixture.detectChanges(); + }); + + it('should create', () => { + expect(component).toBeTruthy(); + }); + it('first', () => { + expect(2+2).toBe(4); + }); + it('second', () => { + expect(2+2).toBe(5); + }); + +}); diff --git a/apps/shiv-bull-clone/src/app/about/about.component.ts b/apps/shiv-bull-clone/src/app/about/about.component.ts new file mode 100644 index 00000000..980f8854 --- /dev/null +++ b/apps/shiv-bull-clone/src/app/about/about.component.ts @@ -0,0 +1,46 @@ +import { NgFor } from '@angular/common'; +import { Component } from '@angular/core'; + +interface comments { + tittle: string; + content: string[]; +} + +@Component({ + selector: 'shiv-bull-app-about', + standalone: true, + imports: [NgFor], + templateUrl: './about.component.html', + styleUrls: ['./about.component.scss'], +}) +export class AboutComponent { + data: comments[] = [ + { + tittle: 'WELCOME TO SHIV BULLION', + content: [ + 'Located in the beautiful city of Rajkot, SHIV BULLION is one of the biggest bullion dealers in the city. SHIV BULLION is also a direct importer of precious metals. It is a fast-growing organization with an excellent track record and reputation with suppliers all over the region and in the industry. ', + ], + }, + { + tittle: 'STRENGTH', + content: [ + 'We believe delivery on time and transparent trade policies have made it possible to achieve a prominent place in the industry over the years.', + 'We have been focusing mainly on purity and commitment. The company’s continuous desire to serve its customers in the best possible way makes it the best among the rest. We’ve developed immense customer faith and value through our excellent service and high-quality products. We strive hard for constant development to enhance our customer service, and the long-term bond that we share with our customers has helped us reach new heights.', + 'Our young, dynamic and qualified operation team delivers impeccable service to the clients. These factors drive our organization to succeed and have drawn hundreds of prestigious customers to put immense trust and faith in our business.', + ], + }, + { + tittle: 'VISION', + content: [ + 'Our company has vision of expanding its presence very soon in the refinery segment with the brand name SHIV BULLION. In order to serve you better and reach a wider network, we have focused to launch our outlets all over the region. ', + ], + }, + { + tittle: 'MANAGEMENT TEAM', + content: [ + 'Jaydeep Bhai – (Founder & Owner)', + 'SHIV BULLION was founded by Jaydeep Bhai, who has been in this business for many years. The blend of his passion and experience in the Gold & Silver industry gave birth to the organization. ', + ], + }, + ]; +} diff --git a/apps/shiv-bull-clone/src/app/app.component.html b/apps/shiv-bull-clone/src/app/app.component.html new file mode 100644 index 00000000..2e1b7de9 --- /dev/null +++ b/apps/shiv-bull-clone/src/app/app.component.html @@ -0,0 +1,3 @@ +
+ +
diff --git a/apps/shiv-bull-clone/src/app/app.component.scss b/apps/shiv-bull-clone/src/app/app.component.scss new file mode 100644 index 00000000..12be1907 --- /dev/null +++ b/apps/shiv-bull-clone/src/app/app.component.scss @@ -0,0 +1,6 @@ +.main-div { + background-image: url('../assets/images/backgroundimage_of_shivbullion.jpg'); + width: 100%; + height: 100vh; + overflow: auto; +} diff --git a/apps/shiv-bull-clone/src/app/app.component.spec.ts b/apps/shiv-bull-clone/src/app/app.component.spec.ts new file mode 100644 index 00000000..2347d40a --- /dev/null +++ b/apps/shiv-bull-clone/src/app/app.component.spec.ts @@ -0,0 +1,40 @@ +import { TestBed } from '@angular/core/testing'; +import { AppComponent } from './app.component'; +import { RouterTestingModule } from '@angular/router/testing'; + +describe('AppComponent', () => { + beforeEach(async () => { + await TestBed.configureTestingModule({ + imports: [AppComponent, RouterTestingModule], + }).compileComponents(); + }); + + it('should create the app', () => { + const fixture = TestBed.createComponent(AppComponent); + const app = fixture.componentInstance; + expect(app).toBeTruthy(); + }); + + it(`should have as title 'shiv-bull-clone'`, () => { + const fixture = TestBed.createComponent(AppComponent); + const app = fixture.componentInstance; + expect(app.title).toEqual('shiv-bull-clone'); + }); + + it('should render Main Div', () => { + const fixture = TestBed.createComponent(AppComponent); + fixture.detectChanges(); + const compiled = fixture.nativeElement as HTMLElement; + const MAinDiv = compiled.getElementsByClassName('main-div') + expect(MAinDiv).toHaveLength(1) + expect(MAinDiv[0]).toBeInstanceOf(HTMLElement) + }); + it('should render Router Outlet', () => { + const fixture = TestBed.createComponent(AppComponent); + fixture.detectChanges(); + const compiled = fixture.nativeElement as HTMLElement; + const RouterOutLet = compiled.querySelectorAll('router-outlet') + expect(RouterOutLet).toHaveLength(1) + expect(RouterOutLet[0]).toBeInstanceOf(HTMLElement) + }); +}); diff --git a/apps/shiv-bull-clone/src/app/app.component.ts b/apps/shiv-bull-clone/src/app/app.component.ts new file mode 100644 index 00000000..b0e39bda --- /dev/null +++ b/apps/shiv-bull-clone/src/app/app.component.ts @@ -0,0 +1,16 @@ +import { Component } from '@angular/core'; +import { RouterOutlet } from '@angular/router'; +import { FooterComponent } from './footer/footer.component'; +import { HeaderComponent } from './header/header.component'; +import { HttpClientModule } from '@angular/common/http'; + +@Component({ + standalone: true, + imports: [HeaderComponent, FooterComponent, RouterOutlet,HttpClientModule], + selector: 'shiv-bull-app-root', + templateUrl: './app.component.html', + styleUrls: ['./app.component.scss'], +}) +export class AppComponent { + title = 'shiv-bull-clone'; +} diff --git a/apps/shiv-bull-clone/src/app/app.routes.ts b/apps/shiv-bull-clone/src/app/app.routes.ts new file mode 100644 index 00000000..eec7cbb5 --- /dev/null +++ b/apps/shiv-bull-clone/src/app/app.routes.ts @@ -0,0 +1,74 @@ +import { Route } from '@angular/router'; +// import { AppComponent } from './app.component'; +import { HomeComponent } from './home/home.component'; +import { LoginComponent } from './login/login.component'; +import { AuthGuard } from './auth.guard'; + +export const appRoutes: Route[] = [ + { + path: 'login', + component: LoginComponent, + }, + { + path: 'home', + component: HomeComponent, + children: [ + { + path: '', + redirectTo: 'about', + pathMatch: 'full', + }, + { + path: 'about', + loadComponent: () => + import('./about/about.component').then((a) => a.AboutComponent), + }, + { + path: 'live-rate', + loadComponent: () => + import('./live-rate/live-rate.component').then( + (a) => a.LiveRateComponent + ), + }, + { + path: 'update', + loadComponent: () => + import('./update/update.component').then((a) => a.UpdateComponent), + }, + + { + path: 'bank-details', + loadComponent: () => + import('./bank-details/bank-details.component').then( + (a) => a.BankDetailsComponent + ), + canActivate:[AuthGuard] + }, + { + path: 'eco-calendar', + loadComponent: () => + import('./eco-calendar/eco-calendar.component').then( + (a) => a.EcoCalendarComponent + ), + canActivate:[AuthGuard] + }, + { + path: 'contact-us', + loadComponent: () => + import('./contact-us/contact-us.component').then( + (a) => a.ContactUsComponent + ), + }, + ], + }, + { + path: '', + redirectTo: 'home', + pathMatch: 'prefix', + }, + { + path: '**', + redirectTo: 'home/about', + pathMatch: 'full', + }, +]; diff --git a/apps/shiv-bull-clone/src/app/auth.guard.spec.ts b/apps/shiv-bull-clone/src/app/auth.guard.spec.ts new file mode 100644 index 00000000..68889d22 --- /dev/null +++ b/apps/shiv-bull-clone/src/app/auth.guard.spec.ts @@ -0,0 +1,16 @@ +import { TestBed } from '@angular/core/testing'; + +import { AuthGuard } from './auth.guard'; + +describe('AuthGuard', () => { + let guard: AuthGuard; + + beforeEach(() => { + TestBed.configureTestingModule({}); + guard = TestBed.inject(AuthGuard); + }); + + it('should be created', () => { + expect(guard).toBeTruthy(); + }); +}); diff --git a/apps/shiv-bull-clone/src/app/auth.guard.ts b/apps/shiv-bull-clone/src/app/auth.guard.ts new file mode 100644 index 00000000..16c49f5e --- /dev/null +++ b/apps/shiv-bull-clone/src/app/auth.guard.ts @@ -0,0 +1,54 @@ +import { Injectable } from '@angular/core'; +import { ActivatedRouteSnapshot, CanActivate, Router, RouterStateSnapshot, UrlTree } from '@angular/router'; +import { Observable } from 'rxjs'; +import { loginServices } from './services/login.service'; + +@Injectable({ + providedIn: 'root' +}) +export class AuthGuard implements CanActivate { + constructor(public rememberdata: loginServices, private router:Router) { } + + canActivate( + route: ActivatedRouteSnapshot, + state: RouterStateSnapshot): Observable | Promise | boolean | UrlTree { + + if (this.rememberdata.isUserLogin === true) { + console.log(); + return true; + + } + else { + return this.router.createUrlTree(['']); + } + + } + +} + + +// import { Injectable } from '@angular/core'; +// import { ActivatedRouteSnapshot, CanActivate, Router, RouterStateSnapshot, UrlTree } from '@angular/router'; +// import { Observable } from 'rxjs'; +// import { loginServices } from './services/login.service'; + +// @Injectable({ +// providedIn: 'root' +// }) +// export class AuthGuard implements CanActivate { + +// constructor(public router: Router, public rememberdata: loginServices) { } +// canActivate( +// router: ActivatedRouteSnapshot, +// state: RouterStateSnapshot): Observable | Promise | boolean | UrlTree { +// return true; +// // if (this.rememberdata.isUserLogin === true) { +// // console.log(); + +// // } +// // else { +// // return this.router.createUrlTree(['']); +// // } +// } + +// } diff --git a/apps/shiv-bull-clone/src/app/bank-details/bank-details.component.html b/apps/shiv-bull-clone/src/app/bank-details/bank-details.component.html new file mode 100644 index 00000000..c5e67302 --- /dev/null +++ b/apps/shiv-bull-clone/src/app/bank-details/bank-details.component.html @@ -0,0 +1,90 @@ +
+
+
+
+ image not found +
+
+
Account Name
+
+
::  {{ details.accountname }}
+
+
+
+ +
+
::  {{ details.accountnumber }}
+ + +
+
+
+
Bank Name
+ +
+
::  {{ details.bankname }}
+
+
+
+
Branch Name
+
+
::  {{ details.branchname }}
+
+
+
+
IFSC Code
+
+
::  {{ details.IFSCCode }}
+ +
+
+
+
+ + +
\ No newline at end of file diff --git a/apps/shiv-bull-clone/src/app/bank-details/bank-details.component.scss b/apps/shiv-bull-clone/src/app/bank-details/bank-details.component.scss new file mode 100644 index 00000000..9da5c8f0 --- /dev/null +++ b/apps/shiv-bull-clone/src/app/bank-details/bank-details.component.scss @@ -0,0 +1,20 @@ +.g1{ + display: flex; + flex-wrap: wrap ; + font-family: Roboto,helvetica Neue,sans-serif; + // grid-template-columns: auto auto auto; + justify-content: center; + align-items: center; +} +.hide:active{ + display: none; +} + +@media only screen and (max-width: 768px) +{ + .text_box { + height: 40px; + font-size: 15px; + } + +} diff --git a/apps/shiv-bull-clone/src/app/bank-details/bank-details.component.spec.ts b/apps/shiv-bull-clone/src/app/bank-details/bank-details.component.spec.ts new file mode 100644 index 00000000..4046b43a --- /dev/null +++ b/apps/shiv-bull-clone/src/app/bank-details/bank-details.component.spec.ts @@ -0,0 +1,22 @@ +import { ComponentFixture, TestBed } from '@angular/core/testing'; + +import { BankDetailsComponent } from './bank-details.component'; + +describe('BankDetailsComponent', () => { + let component: BankDetailsComponent; + let fixture: ComponentFixture; + + beforeEach(async () => { + await TestBed.configureTestingModule({ + imports: [BankDetailsComponent], + }).compileComponents(); + + fixture = TestBed.createComponent(BankDetailsComponent); + component = fixture.componentInstance; + fixture.detectChanges(); + }); + + it('should create', () => { + expect(component).toBeTruthy(); + }); +}); diff --git a/apps/shiv-bull-clone/src/app/bank-details/bank-details.component.ts b/apps/shiv-bull-clone/src/app/bank-details/bank-details.component.ts new file mode 100644 index 00000000..3473b1cd --- /dev/null +++ b/apps/shiv-bull-clone/src/app/bank-details/bank-details.component.ts @@ -0,0 +1,77 @@ +import { NgFor } from '@angular/common'; +import { Component } from '@angular/core'; +import { ClipboardModule} from "@angular/cdk/clipboard"; + +interface bankdata { + id: number; + accountname: string; + accountnumber: string; + bankname: string; + branchname: string; + IFSCCode: string; + img: string; +} +@Component({ + selector: 'shiv-bull-app-bank-details', + standalone: true, + imports: [NgFor,ClipboardModule], + templateUrl: './bank-details.component.html', + styleUrls: ['./bank-details.component.scss'], +}) +export class BankDetailsComponent { + alay = false; + // copyText:[string]; + // copyNumber{}{ + // navigator.clipboard.writeText(copyText.value); + + // } + banks: bankdata[] = [ + { + id: 1, + accountname: 'SHIV ENTERPRISE', + accountnumber: '138305500445', + bankname: 'ICICI BANK', + branchname: 'PALACE ROAD,RAJKOT', + IFSCCode: 'ICIC0001383', + img: '../../assets/images/icic_logo.jpg', + }, + // { + // id: 4, + // accountname: 'SHIV ENTERPRISE', + // accountnumber: '138305500445', + // bankname: 'ICICI BANK', + // branchname: 'PALACE ROAD,RAJKOT', + // IFSCCode: 'ICIC0001383', + // img:'../../assets/images/AXISbanklogo.png' + // }, + + // { + // id: 2, + // accountname: 'SHIV ENTERPRISE', + // accountnumber: '138305500445', + // bankname: 'ICICI BANK', + // branchname: 'PALACE ROAD,RAJKOT', + // IFSCCode: 'ICIC0001383', + // img:'../../assets/images/AXISbanklogo.png' + // }, + + // { + // id: 3, + // accountname: 'SHIV ENTERPRISE', + // accountnumber: '138305500445', + // bankname: 'ICICI BANK', + // branchname: 'PALACE ROAD,RAJKOT', + // IFSCCode: 'ICIC0001383', + // img:'../../assets/images/icic_logo.jpg' + // }, + ]; + + showHide() { + const popupBox = document.querySelector('#popUpId') as HTMLDivElement; + popupBox.style.display = 'flex'; + setTimeout(() => { + popupBox.style.display = 'none'; + }, 1000) + + } +} diff --git a/apps/shiv-bull-clone/src/app/contact-us/contact-us.component.html b/apps/shiv-bull-clone/src/app/contact-us/contact-us.component.html new file mode 100644 index 00000000..1ed44047 --- /dev/null +++ b/apps/shiv-bull-clone/src/app/contact-us/contact-us.component.html @@ -0,0 +1,51 @@ +
+
+
CONTACT US
+
+ + + + +
+
+ map logo not found +
+

{{item.name}}

+

{{para}}

+
+ + +
+
+ map logo not found +
+

{{item.name}}

+ {{para}} +
+ + + + + +
+
+ map logo not found +
+

{{item.name}}

+

+ + + + {{para}} + + +

+
+ +
+
+
+ + + diff --git a/apps/shiv-bull-clone/src/app/contact-us/contact-us.component.scss b/apps/shiv-bull-clone/src/app/contact-us/contact-us.component.scss new file mode 100644 index 00000000..0a80ad1d --- /dev/null +++ b/apps/shiv-bull-clone/src/app/contact-us/contact-us.component.scss @@ -0,0 +1,27 @@ +.address{ + + box-shadow: 1px 1px 4px #00000059; + margin: 0 0 10px; +} +.phone{ + box-shadow: 1px 1px 4px #00000059; + +} +.main{ + font-family: Roboto,Helvetica Neue,sans-serif;} + + + +@media screen and (max-width:768px){ + .text{ + font-size: 14px; + } + .fulladdres{ + font-size: 12px; + text-align: center; + } + .info{ + margin-bottom: 100px; + } + +} \ No newline at end of file diff --git a/apps/shiv-bull-clone/src/app/contact-us/contact-us.component.spec.ts b/apps/shiv-bull-clone/src/app/contact-us/contact-us.component.spec.ts new file mode 100644 index 00000000..373e3c0a --- /dev/null +++ b/apps/shiv-bull-clone/src/app/contact-us/contact-us.component.spec.ts @@ -0,0 +1,22 @@ +import { ComponentFixture, TestBed } from '@angular/core/testing'; + +import { ContactUsComponent } from './contact-us.component'; + +describe('ContactUsComponent', () => { + let component: ContactUsComponent; + let fixture: ComponentFixture; + + beforeEach(async () => { + await TestBed.configureTestingModule({ + imports: [ContactUsComponent], + }).compileComponents(); + + fixture = TestBed.createComponent(ContactUsComponent); + component = fixture.componentInstance; + fixture.detectChanges(); + }); + + it('should create', () => { + expect(component).toBeTruthy(); + }); +}); diff --git a/apps/shiv-bull-clone/src/app/contact-us/contact-us.component.ts b/apps/shiv-bull-clone/src/app/contact-us/contact-us.component.ts new file mode 100644 index 00000000..3b0f95d0 --- /dev/null +++ b/apps/shiv-bull-clone/src/app/contact-us/contact-us.component.ts @@ -0,0 +1,39 @@ +import { Component } from '@angular/core'; +import {NgFor } from '@angular/common'; +// interface comments{ +// logo:string; +// name:string; +// info:string[]; +// } +@Component({ + selector: 'shiv-bull-app-contact-us', + standalone: true, + imports: [NgFor], + templateUrl: './contact-us.component.html', + styleUrls: ['./contact-us.component.scss'], +}) +export class ContactUsComponent { + data1= [ + { + logo: "../../assets/images/mapicon.svg", + name: "ADDRESS", + info:['BRAHMANIYA PARA ,STREET NO 4, B/H.JINIVA DYING,SANTKABIR ROAD,RAJKOT - 360003 '] + + },] + data2=[ + { + logo: "../../assets/images/mailicon.svg", + name: "EMAIL", + info:['SHIVENTERPRISE.JP@GMAIL.COM'] + + },] + data3=[ + { + logo: "../../assets/images/phone-callicon.svg", + logo2: "../../assets/images/phone-callicon copy.svg", + name: "PHONE", + info:[' 145843436413','131355456454','4514543356535'] + + }, + ] +} diff --git a/apps/shiv-bull-clone/src/app/eco-calendar/eco-calendar.component.html b/apps/shiv-bull-clone/src/app/eco-calendar/eco-calendar.component.html new file mode 100644 index 00000000..0f1349d4 --- /dev/null +++ b/apps/shiv-bull-clone/src/app/eco-calendar/eco-calendar.component.html @@ -0,0 +1,4 @@ +
+ + +
\ No newline at end of file diff --git a/apps/shiv-bull-clone/src/app/eco-calendar/eco-calendar.component.scss b/apps/shiv-bull-clone/src/app/eco-calendar/eco-calendar.component.scss new file mode 100644 index 00000000..e69de29b diff --git a/apps/shiv-bull-clone/src/app/eco-calendar/eco-calendar.component.spec.ts b/apps/shiv-bull-clone/src/app/eco-calendar/eco-calendar.component.spec.ts new file mode 100644 index 00000000..fa043cb5 --- /dev/null +++ b/apps/shiv-bull-clone/src/app/eco-calendar/eco-calendar.component.spec.ts @@ -0,0 +1,22 @@ +import { ComponentFixture, TestBed } from '@angular/core/testing'; + +import { EcoCalendarComponent } from './eco-calendar.component'; + +describe('EcoCalendarComponent', () => { + let component: EcoCalendarComponent; + let fixture: ComponentFixture; + + beforeEach(async () => { + await TestBed.configureTestingModule({ + imports: [EcoCalendarComponent], + }).compileComponents(); + + fixture = TestBed.createComponent(EcoCalendarComponent); + component = fixture.componentInstance; + fixture.detectChanges(); + }); + + it('should create', () => { + expect(component).toBeTruthy(); + }); +}); diff --git a/apps/shiv-bull-clone/src/app/eco-calendar/eco-calendar.component.ts b/apps/shiv-bull-clone/src/app/eco-calendar/eco-calendar.component.ts new file mode 100644 index 00000000..a759d284 --- /dev/null +++ b/apps/shiv-bull-clone/src/app/eco-calendar/eco-calendar.component.ts @@ -0,0 +1,12 @@ +import { Component } from '@angular/core'; +import { CommonModule } from '@angular/common'; + +@Component({ + selector: 'shiv-bull-app-eco-calendar', + standalone: true, + imports: [CommonModule], + templateUrl: './eco-calendar.component.html', + styleUrls: ['./eco-calendar.component.scss'], +}) +export class EcoCalendarComponent { +} diff --git a/apps/shiv-bull-clone/src/app/footer/footer.component.html b/apps/shiv-bull-clone/src/app/footer/footer.component.html new file mode 100644 index 00000000..0aa16fe4 --- /dev/null +++ b/apps/shiv-bull-clone/src/app/footer/footer.component.html @@ -0,0 +1,25 @@ +
+
+
+ © Copyright 2020 By SHIV ENTERPRISE BULLION MERCHANT. +
+
+ Powerd By: + ALAY PATEL +
+
+
+ +
+ + +
diff --git a/apps/shiv-bull-clone/src/app/footer/footer.component.scss b/apps/shiv-bull-clone/src/app/footer/footer.component.scss new file mode 100644 index 00000000..698c0b98 --- /dev/null +++ b/apps/shiv-bull-clone/src/app/footer/footer.component.scss @@ -0,0 +1,46 @@ +.color { + position: fixed; + bottom: 0%; +} +.nav { + --indicator-border-color: var(--header-bg); + --bg-color: #543e12; + --icon-bg: black !important; + --icon-heigh-width: 23px; + --menu-border-radius: 0px; + + +} +.line{ + background-color: var(--header-bg); + bottom: 0px; + position: fixed; + height: 80px; + font-family: Roboto,helvetica Neue,sans-serif; +} + + + + +@media screen and (min-width: 769px) { + .nav{ + display: none; + } + .line{ + display: none; + } +} + + @media screen and (max-width: 768px) { + .color { + display: none; + } + .nav{ + display: box; + + + } + .line{ + display: flex; + } + } \ No newline at end of file diff --git a/apps/shiv-bull-clone/src/app/footer/footer.component.spec.ts b/apps/shiv-bull-clone/src/app/footer/footer.component.spec.ts new file mode 100644 index 00000000..0070205d --- /dev/null +++ b/apps/shiv-bull-clone/src/app/footer/footer.component.spec.ts @@ -0,0 +1,22 @@ +import { ComponentFixture, TestBed } from '@angular/core/testing'; + +import { FooterComponent } from './footer.component'; + +describe('FooterComponent', () => { + let component: FooterComponent; + let fixture: ComponentFixture; + + beforeEach(async () => { + await TestBed.configureTestingModule({ + imports: [FooterComponent], + }).compileComponents(); + + fixture = TestBed.createComponent(FooterComponent); + component = fixture.componentInstance; + fixture.detectChanges(); + }); + + it('should create', () => { + expect(component).toBeTruthy(); + }); +}); diff --git a/apps/shiv-bull-clone/src/app/footer/footer.component.ts b/apps/shiv-bull-clone/src/app/footer/footer.component.ts new file mode 100644 index 00000000..b44595db --- /dev/null +++ b/apps/shiv-bull-clone/src/app/footer/footer.component.ts @@ -0,0 +1,103 @@ +import { CommonModule, NgFor } from '@angular/common'; +import { Component } from '@angular/core'; +import { Router, RouterModule, } from '@angular/router'; +import { NavBar3Component } from '@rps/angular-nav-bars'; +interface navigationBar { + // uid: string; + router_link: string; +} + +interface navbar3 extends navigationBar { + uid: string; + icon: { + url: string; + inactive_color: string; + active_color: string; + }; + name: string; + indicator_color: string; +} +@Component({ + selector: 'shiv-bull-app-footer', + standalone: true, + imports: [CommonModule, NgFor, NavBar3Component, RouterModule], + templateUrl: './footer.component.html', + styleUrls: ['./footer.component.scss'], +}) +export class FooterComponent { + navbar: navbar3[] = [ + { + uid: '1', + router_link: 'home/update', + + icon: { + url: '../../assets/images/newspaper-outline.svg', + inactive_color: 'var(--header-bg)', + active_color: 'white', + }, + name: 'News', + indicator_color: '#543e12', + }, + { + uid: '2', + router_link: '/home/bank-details', + + icon: { + url: '../../assets/images/icon_bank_detail.svg', + inactive_color: 'var(--header-bg)', + active_color: 'white', + }, + name: 'Bank Details', + indicator_color: '#543e12', + }, + { + uid: '3', + router_link: '/home/live-rate', + + icon: { + url: '../../assets/images/nav_Lagdi_logo.svg', + inactive_color: 'var(--header-bg)', + active_color: 'white', + }, + name: 'Live-Rate', + indicator_color: '#543e12', + }, + { + uid: '4', + router_link: '/home/contact-us', + + icon: { + url: '../../assets/images/nav_contact_logo.svg', + inactive_color: 'var(--header-bg', + active_color: 'white', + }, + name: 'Contact-us', + indicator_color: '#543e12', + }, + { + uid: '5', + router_link: '/home/eco-calendar', + + icon: { + url: '../../assets/images/calendar-outline.svg', + inactive_color: 'var(--header-bg', + active_color: 'white', + }, + name: 'Eco Calendar', + indicator_color: '#543e12', + }, + ]; + active_uid = '3'; + constructor(private routes: Router) {} + + OnChnageEvent(vlueEitted: string) { + if (this.active_uid === vlueEitted) { + return; + } + this.active_uid = vlueEitted; + const found = this.navbar.find(({ uid }) => uid === this.active_uid); + if (found) { + this.routes.navigateByUrl(`${found?.router_link}`); + } + } +} diff --git a/apps/shiv-bull-clone/src/app/header/header.component.html b/apps/shiv-bull-clone/src/app/header/header.component.html new file mode 100644 index 00000000..02cfcac8 --- /dev/null +++ b/apps/shiv-bull-clone/src/app/header/header.component.html @@ -0,0 +1,72 @@ +
+ +
+
+
+
+
+ + + + +
+ +
+

+ BOOKING NUMBER +

+
+ + 9904280700 | 0281-2702324 +
+
+
+ +
+
+
+
+ +
+
+
+ diff --git a/apps/shiv-bull-clone/src/app/header/header.component.scss b/apps/shiv-bull-clone/src/app/header/header.component.scss new file mode 100644 index 00000000..03676c18 --- /dev/null +++ b/apps/shiv-bull-clone/src/app/header/header.component.scss @@ -0,0 +1,106 @@ +:host { +// --primary-dark: #543e12; +// --primary-medium: #f5eeda; +// --header-bg: #fef8e8; + + + --background-color: #fef8e8; + // } +} +.transition { + transition: 0.6s ease-in-out; +} +.click { + background-color: #fef8e8; + color: var(--primary-dark); +} +.childheader { + width: 1100px; +} +//-------------------------------------media query---------------------------------------------------------- +@media screen and (max-width: 1300px) { + .childheader { + width: 80%; + } +} + +@media screen and (max-width: 1200px) { + .childheader { + width: 95%; + } + .imageLogo { + height: 124px; + width: 250px; + } + .color { + height: 22px; + } +} + +@media screen and (max-width: 950px) { + .ul { + font-size: 12px; + width: 100%; + } + .middleheader { + h4 { + font-size: 25px; + } + } + .downloadlogo { + display: flex; + flex-direction: column; + } + .icon { + height: 45px; + width: 148px; + } +} + +@media screen and (max-width: 768px) { + .downloadlogo { + display: none; + } + .main{ + width: 100%; + position: fixed; + top: 0; + } + .middleheader { + display: none; + } + .childheader { + justify-content: center; + align-items: center; + } + + .ul { + li { + a { + display: none; + } + } + } + .color { + display: none; + } + .imageLogo { + width: 160px; + height: 84px; + } +} +@media screen and (max-width: 500px){ + .imageLogo { + width: 160px; + height: 84px; + + + } + .logoheader{ + width: 80%; + height: 80%; + + + + } +} \ No newline at end of file diff --git a/apps/shiv-bull-clone/src/app/header/header.component.spec.ts b/apps/shiv-bull-clone/src/app/header/header.component.spec.ts new file mode 100644 index 00000000..cf577957 --- /dev/null +++ b/apps/shiv-bull-clone/src/app/header/header.component.spec.ts @@ -0,0 +1,22 @@ +import { ComponentFixture, TestBed } from '@angular/core/testing'; + +import { HeaderComponent } from './header.component'; + +describe('HeaderComponent', () => { + let component: HeaderComponent; + let fixture: ComponentFixture; + + beforeEach(async () => { + await TestBed.configureTestingModule({ + imports: [HeaderComponent], + }).compileComponents(); + + fixture = TestBed.createComponent(HeaderComponent); + component = fixture.componentInstance; + fixture.detectChanges(); + }); + + it('should create', () => { + expect(component).toBeTruthy(); + }); +}); diff --git a/apps/shiv-bull-clone/src/app/header/header.component.ts b/apps/shiv-bull-clone/src/app/header/header.component.ts new file mode 100644 index 00000000..bce84471 --- /dev/null +++ b/apps/shiv-bull-clone/src/app/header/header.component.ts @@ -0,0 +1,57 @@ +import { NgFor } from '@angular/common'; +import { Component } from '@angular/core'; +import { RouterModule,Router } from '@angular/router'; + +interface navbar { + name: string; + router_link: string; +} + +@Component({ + selector: 'shiv-bull-app-header', + standalone: true, + imports: [NgFor, RouterModule], + templateUrl: './header.component.html', + styleUrls: ['./header.component.scss'], +}) +export class HeaderComponent { + data: navbar[] = [ + { + name: 'About', + router_link: '/home/about', + }, + { + name: 'Live Rate', + router_link: '/home/live-rate', + }, + { + name: 'Updates', + router_link: '/home/update', + }, + { + name: 'Bank Details', + router_link: '/home/bank-details', + }, + { + name: 'Economic Calendar', + router_link: '/home/eco-calendar', + }, + { + name: 'Contact Us', + router_link: '/home/contact-us', + }, + + ]; + + constructor(private router: Router) { } + expression(){ + this.router.navigateByUrl('login'); + } + + // eslint-disable-next-line @typescript-eslint/member-ordering + link ={ + androrid_link: "", + ios_link: "", + }; + +} diff --git a/apps/shiv-bull-clone/src/app/home/home.component.html b/apps/shiv-bull-clone/src/app/home/home.component.html new file mode 100644 index 00000000..f63b1c4f --- /dev/null +++ b/apps/shiv-bull-clone/src/app/home/home.component.html @@ -0,0 +1,23 @@ +
+ +
+ +
+ + + + +
diff --git a/apps/shiv-bull-clone/src/app/home/home.component.scss b/apps/shiv-bull-clone/src/app/home/home.component.scss new file mode 100644 index 00000000..af9cc8d5 --- /dev/null +++ b/apps/shiv-bull-clone/src/app/home/home.component.scss @@ -0,0 +1,18 @@ +@media screen and (max-width: 768px) { + .footer{ + flex-grow: 0; + flex-shrink: 1; + flex-basis: 80px; + } + .main{ + margin-top: 90px; + } +} +@media screen and (min-width: 768px) { + .footer{ + flex-grow: 0; + flex-shrink: 1; + flex-basis: 24px; + } + +} \ No newline at end of file diff --git a/apps/shiv-bull-clone/src/app/home/home.component.spec.ts b/apps/shiv-bull-clone/src/app/home/home.component.spec.ts new file mode 100644 index 00000000..7737f1c8 --- /dev/null +++ b/apps/shiv-bull-clone/src/app/home/home.component.spec.ts @@ -0,0 +1,22 @@ +import { ComponentFixture, TestBed } from '@angular/core/testing'; + +import { HomeComponent } from './home.component'; + +describe('HomeComponent', () => { + let component: HomeComponent; + let fixture: ComponentFixture; + + beforeEach(async () => { + await TestBed.configureTestingModule({ + imports: [HomeComponent], + }).compileComponents(); + + fixture = TestBed.createComponent(HomeComponent); + component = fixture.componentInstance; + fixture.detectChanges(); + }); + + it('should create', () => { + expect(component).toBeTruthy(); + }); +}); diff --git a/apps/shiv-bull-clone/src/app/home/home.component.ts b/apps/shiv-bull-clone/src/app/home/home.component.ts new file mode 100644 index 00000000..b2183691 --- /dev/null +++ b/apps/shiv-bull-clone/src/app/home/home.component.ts @@ -0,0 +1,18 @@ +import { Component } from '@angular/core'; +import { CommonModule } from '@angular/common'; +import { RouterOutlet } from '@angular/router'; +import { HeaderComponent } from '../header/header.component'; +import { FooterComponent } from '../footer/footer.component'; + +@Component({ + selector: 'shiv-bull-app-home', + standalone: true, + imports: [CommonModule, HeaderComponent, RouterOutlet, FooterComponent], + templateUrl: './home.component.html', + styleUrls: ['./home.component.scss'], +}) +export class HomeComponent { + activate() { + window.scroll(1, 0); + } +} diff --git a/apps/shiv-bull-clone/src/app/live-rate/live-rate.component.html b/apps/shiv-bull-clone/src/app/live-rate/live-rate.component.html new file mode 100644 index 00000000..53730e81 --- /dev/null +++ b/apps/shiv-bull-clone/src/app/live-rate/live-rate.component.html @@ -0,0 +1,22 @@ +
+ + + +
+ + +
+ +
diff --git a/apps/shiv-bull-clone/src/app/live-rate/live-rate.component.scss b/apps/shiv-bull-clone/src/app/live-rate/live-rate.component.scss new file mode 100644 index 00000000..1f93b965 --- /dev/null +++ b/apps/shiv-bull-clone/src/app/live-rate/live-rate.component.scss @@ -0,0 +1,28 @@ +.alay{ + --small-display:none; + --big-display:flex; +} +.lastTable{ + margin-bottom: 80px; +} + +@media screen and (max-width:768px){ + .alay{ + --small-display:flex; + --big--display:none !important; + margin-top: 10px; + } + .laptopTable{ + + width: 100%; + flex-wrap: wrap; + justify-content: center; + } + .lastTable{ + font-size: 16px !important; + display: none; + } + // .table7{ + // margin-bottom: 200px !important; + // } +} \ No newline at end of file diff --git a/apps/shiv-bull-clone/src/app/live-rate/live-rate.component.spec.ts b/apps/shiv-bull-clone/src/app/live-rate/live-rate.component.spec.ts new file mode 100644 index 00000000..981eedf9 --- /dev/null +++ b/apps/shiv-bull-clone/src/app/live-rate/live-rate.component.spec.ts @@ -0,0 +1,22 @@ +import { ComponentFixture, TestBed } from '@angular/core/testing'; + +import { LiveRateComponent } from './live-rate.component'; + +describe('LiveRateComponent', () => { + let component: LiveRateComponent; + let fixture: ComponentFixture; + + beforeEach(async () => { + await TestBed.configureTestingModule({ + imports: [LiveRateComponent], + }).compileComponents(); + + fixture = TestBed.createComponent(LiveRateComponent); + component = fixture.componentInstance; + fixture.detectChanges(); + }); + + it('should create', () => { + expect(component).toBeTruthy(); + }); +}); diff --git a/apps/shiv-bull-clone/src/app/live-rate/live-rate.component.ts b/apps/shiv-bull-clone/src/app/live-rate/live-rate.component.ts new file mode 100644 index 00000000..421ddb51 --- /dev/null +++ b/apps/shiv-bull-clone/src/app/live-rate/live-rate.component.ts @@ -0,0 +1,57 @@ +import { RateTables1Component } from '@rps/bullion-rate-tables/table1'; +import { RateTables3Component } from '@rps/bullion-rate-tables/table3'; +import { RateTables2Component } from '@rps/bullion-rate-tables/table2'; +import { RateTables4Component } from '@rps/bullion-rate-tables/table4'; +import { RateTables5Component } from '@rps/bullion-rate-tables/table5'; +import { RateTables6Component } from '@rps/bullion-rate-tables/table6'; +import { RateTables7Component } from '@rps/bullion-rate-tables/table7'; +import { LiveRateService, RateObserDataType } from '@rps/buillion-frontend-core'; +import { DemoLiveRateService } from '@rps/buillion-frontend-core/mock'; +import { Component, Inject } from '@angular/core'; +import { CommonModule } from '@angular/common'; +import { + RateTables10Component, + RateTables11Component, + RateTables8Component, + RateTables9Component, +} from '@rps/bullion-rate-tables'; +import { Observable } from 'rxjs'; +// import { Inject } from '@nestjs/common'; + +@Component({ + selector: 'shiv-bull-app-live-rate', + standalone: true, + imports: [ + CommonModule, + RateTables1Component, + RateTables2Component, + RateTables3Component, + RateTables4Component, + RateTables5Component, + RateTables6Component, + RateTables7Component, + RateTables8Component, + RateTables9Component, + RateTables10Component, + RateTables11Component, + ], + providers: [ + { + provide: LiveRateService, + useClass: DemoLiveRateService, + }, + ], + templateUrl: './live-rate.component.html', + styleUrls: ['./live-rate.component.scss'], +}) +export class LiveRateComponent { + Gold_rate: Observable; + Silver_rate: Observable; + Inr_rate: Observable; + + constructor(@Inject(LiveRateService) sahil: LiveRateService) { + this.Gold_rate = sahil.RateObser$.GOLD_SPOT.asObservable(); + this.Silver_rate = sahil.RateObser$.SILVER_SPOT.asObservable(); + this.Inr_rate = sahil.RateObser$.INR.asObservable(); + } +} diff --git a/apps/shiv-bull-clone/src/app/login/login.component.html b/apps/shiv-bull-clone/src/app/login/login.component.html new file mode 100644 index 00000000..65342576 --- /dev/null +++ b/apps/shiv-bull-clone/src/app/login/login.component.html @@ -0,0 +1,98 @@ + +
+
+ + LOGIN +
+ +
+
+
+
+ +
+ +
+
+
USER ID:
+
+
+ +
+ +
+
+ +
+
PASSWORD:
+
+
+ +
+ + + assets/images/eye-outline.svg + assets/images/eye-off-outline.svg + + + +
+
+ +
+
+ + +
+
+
+
+ +
+
+
+
+
diff --git a/apps/shiv-bull-clone/src/app/login/login.component.scss b/apps/shiv-bull-clone/src/app/login/login.component.scss new file mode 100644 index 00000000..b1e47764 --- /dev/null +++ b/apps/shiv-bull-clone/src/app/login/login.component.scss @@ -0,0 +1,11 @@ +.main{ + font-family: Roboto,Helvetica Neue,sans-serif; + color: var(--primary-dark); +} + +@media screen and (max-width:425px) { + .loginpage{ + width: 90%; + } + +} \ No newline at end of file diff --git a/apps/shiv-bull-clone/src/app/login/login.component.spec.ts b/apps/shiv-bull-clone/src/app/login/login.component.spec.ts new file mode 100644 index 00000000..251a67f8 --- /dev/null +++ b/apps/shiv-bull-clone/src/app/login/login.component.spec.ts @@ -0,0 +1,22 @@ +import { ComponentFixture, TestBed } from '@angular/core/testing'; + +import { LoginComponent } from './login.component'; + +describe('LoginComponent', () => { + let component: LoginComponent; + let fixture: ComponentFixture; + + beforeEach(async () => { + await TestBed.configureTestingModule({ + imports: [LoginComponent], + }).compileComponents(); + + fixture = TestBed.createComponent(LoginComponent); + component = fixture.componentInstance; + fixture.detectChanges(); + }); + + it('should create', () => { + expect(component).toBeTruthy(); + }); +}); diff --git a/apps/shiv-bull-clone/src/app/login/login.component.ts b/apps/shiv-bull-clone/src/app/login/login.component.ts new file mode 100644 index 00000000..fc039e8c --- /dev/null +++ b/apps/shiv-bull-clone/src/app/login/login.component.ts @@ -0,0 +1,135 @@ +/* eslint-disable @typescript-eslint/no-explicit-any */ +import { Component, OnInit } from '@angular/core'; +import { NgIf, NgFor } from '@angular/common'; +import { RouterModule, Router } from '@angular/router'; +import { + FormGroup, + FormControl, + ReactiveFormsModule, + Validators, +} from '@angular/forms'; + +import Swal from 'sweetalert2'; +import { loginServices } from '../services/login.service'; + +@Component({ + selector: 'shiv-bull-app-login', + standalone: true, + imports: [RouterModule, NgFor, NgIf, ReactiveFormsModule], + templateUrl: './login.component.html', + styleUrls: ['./login.component.scss'], +}) +export class LoginComponent implements OnInit { + Email_id: string; + loginInfo: any; + password1: string; + show_Password = true; + constructor(private usersdata: loginServices, public router: Router) {} + data = { + router_link: '/home/live-rate', + }; + submitted = false; + loginForm = new FormGroup({ + user: new FormControl('', [Validators.required, Validators.email]), + checkbox: new FormControl(false), + password: new FormControl('', [ + Validators.required, + Validators.minLength(4), + ]), + }); + + get user() { + return this.loginForm.get('user'); + } + get checkbox() { + return this.loginForm.get('checkbox'); + } + get password() { + return this.loginForm.get('password'); + } + onSubmitbtn() { + this.submitted = true; + if (this.user?.untouched && this.password?.untouched) { + Swal.fire('', 'fill all details', 'error'); + } else if (this.user?.invalid) { + Swal.fire('', 'enter valid user id', 'error'); + } else if (this.password?.invalid) { + Swal.fire('', 'enter valid password', 'error'); + } else { + this.usersdata.users().subscribe((sahil: any[]) => { + const user = sahil.find( + (user) => user.Email_id === this.loginForm.controls.user.value + ); + if (user) { + if (user.password1 === this.loginForm.controls.password.value) { + Swal.fire('', 'successfully logged in', 'success'); + this.router.navigate(['/home/live-rate']); + this.usersdata.newuser = true; + this.usersdata.isUserLogin = true; + } else { + Swal.fire('', 'Incorrect password', 'warning'); + } + } else { + Swal.fire('', 'User Not Found', 'error'); + } + }); + } + + // const data= {Email_id:this.user.value ,pass:this.password.value}; + // localStorage.setItem('loginInfo', JSON.stringify(data)); + + // 1. and 2. where `items` is always an array of item-objects with 0..n elements + if (this.checkbox.value === true) { + const items = (() => { + const fieldValue = localStorage.getItem('loginInfo'); + return fieldValue === null ? [] : JSON.parse(fieldValue); + })(); + + // 3. + items.push({ Email_id: this.user.value, pass: this.password.value }); + + // 4. + localStorage.setItem('loginInfo', JSON.stringify(items)); + } + } + ngOnInit(): void { + const recivedData = localStorage.getItem('loginInfo'); + this.loginInfo = JSON.parse(recivedData); + + if (this.usersdata.newuser === false) { + return; + } else { + if (this.loginInfo) { + this.router.navigate(['/home/live-rate']); + Swal.fire({ + title: 'you are already logged in', + showDenyButton: true, + showCancelButton: true, + confirmButtonText: 'New User', + denyButtonText: `LogOut`, + }).then((result) => { + if (result.isConfirmed) { + // Swal.fire('Saved!', '', 'success') + this.router.navigate(['/login']); + this.usersdata.newuser = false; + // this.usersdata.isUserLogin = false; + + } else if (result.isDenied) { + Swal.fire('You are logged Out', '', 'info'); + this.usersdata.newuser = false; + this.usersdata.isUserLogin = false; + + const delitems = (() => { + const fieldValue = localStorage.getItem('loginInfo'); + return fieldValue === null ? [] : JSON.parse(fieldValue); + })(); + delitems.pop(); + localStorage.setItem('loginInfo', JSON.stringify(delitems)); + } + }); + } + } + } + + // } +} diff --git a/apps/shiv-bull-clone/src/app/services/login.service.ts b/apps/shiv-bull-clone/src/app/services/login.service.ts new file mode 100644 index 00000000..40a267cf --- /dev/null +++ b/apps/shiv-bull-clone/src/app/services/login.service.ts @@ -0,0 +1,14 @@ +import { Injectable } from '@angular/core'; +import { HttpClient } from '@angular/common/http'; +@Injectable({ + providedIn: 'root', +}) +export class loginServices { + isUserLogin = false; + newuser = true; + url = 'http://localhost:3000/users'; + constructor(private http: HttpClient) {} + users() { + return this.http.get('http://localhost:3000/users') + } +} diff --git a/apps/shiv-bull-clone/src/app/update/update.component.html b/apps/shiv-bull-clone/src/app/update/update.component.html new file mode 100644 index 00000000..33997395 --- /dev/null +++ b/apps/shiv-bull-clone/src/app/update/update.component.html @@ -0,0 +1,20 @@ +
+ +
+ +
+

{{item.tittle}}

+

{{item.details}}

+

+ + {{item.date}} + + + + {{item.time}} + + +

+
+
+
diff --git a/apps/shiv-bull-clone/src/app/update/update.component.scss b/apps/shiv-bull-clone/src/app/update/update.component.scss new file mode 100644 index 00000000..466986d9 --- /dev/null +++ b/apps/shiv-bull-clone/src/app/update/update.component.scss @@ -0,0 +1,10 @@ +.main{ + font-family: Roboto,Helvetica Neue,sans-serif; +} + +@media screen and (max-width:500px){ + .main{ + margin-top: 10px; + } + +} \ No newline at end of file diff --git a/apps/shiv-bull-clone/src/app/update/update.component.spec.ts b/apps/shiv-bull-clone/src/app/update/update.component.spec.ts new file mode 100644 index 00000000..158cda20 --- /dev/null +++ b/apps/shiv-bull-clone/src/app/update/update.component.spec.ts @@ -0,0 +1,22 @@ +import { ComponentFixture, TestBed } from '@angular/core/testing'; + +import { UpdateComponent } from './update.component'; + +describe('UpdateComponent', () => { + let component: UpdateComponent; + let fixture: ComponentFixture; + + beforeEach(async () => { + await TestBed.configureTestingModule({ + imports: [UpdateComponent], + }).compileComponents(); + + fixture = TestBed.createComponent(UpdateComponent); + component = fixture.componentInstance; + fixture.detectChanges(); + }); + + it('should create', () => { + expect(component).toBeTruthy(); + }); +}); diff --git a/apps/shiv-bull-clone/src/app/update/update.component.ts b/apps/shiv-bull-clone/src/app/update/update.component.ts new file mode 100644 index 00000000..420e3af3 --- /dev/null +++ b/apps/shiv-bull-clone/src/app/update/update.component.ts @@ -0,0 +1,76 @@ +import { Component } from '@angular/core'; +import { CommonModule, NgFor } from '@angular/common'; + +@Component({ + selector: 'shiv-bull-app-update', + standalone: true, + imports: [CommonModule,NgFor], + templateUrl: './update.component.html', + styleUrls: ['./update.component.scss'], +}) +export class UpdateComponent { + data =[ + { + tittle:'RATE UPDATES', + details:'RATE UPDATES', + date:'07/02/2023 ', + time:'12:03' + }, + { + tittle:'ONLINE TRADING ', + date:'28/11/2022 ', + + details:'PLEASE CALL ON THIS NUMBER FOR OPEN ONLINE TRADING ACCOUNT -8866524872 ', + time:'11:17' + }, + { + tittle:'ONLINE TRADING STARTED ', + date:'03/11/2022 ', + + details:'ONLINE TRADING STARTED ', + time:'11:44' + }, + { + tittle:'OUR OFFICE IS NOW CLOSED ', + date:'01/09/2022 ', + + details:'PLEASE CALL TOMORROW ', + time:'20:22' + }, + { + tittle:'PLEASE NOTE THAT, ', + date:'22/08/2022 ', + + details:'ALL ORDERS ARE TRADE+2 DAYS DELIVERY , THEN LATE FEE IS 15 RS. PER KG ,PER DAY WILL BE CHARGED ON ALL PENDING ORDERS ', + time:' 18:38' + }, + { + tittle:'PLEASE NOTE THAT, ', + date:'22/08/2022 ', + + details:'ALL ORDERS ARE TRADE+2 DAYS DELIVERY , THEN LATE FEE IS 15 RS. PER KG ,PER DAY WILL BE CHARGED ON ALL PENDING ORDERS ', + time:'18:38' + }, + { + tittle:'PLEASE NOTE THAT, ', + date:'22/08/2022 ', + + details:'ALL ORDERS ARE TRADE+2 DAYS DELIVERY , THEN LATE FEE IS 15 RS. PER KG ,PER DAY WILL BE CHARGED ON ALL PENDING ORDERS ', + time:'18:35' + }, + { + tittle:'PLEASE NOTE THAT, ', + date:'17/08/2022 ', + + details:'OUR OFFICE WILL REMAIN CLOSE FROM 18/08 TO 21/08 DUE TO JANMASHTMI HOLIDAYS. OFFICE WILL RESUME FROM 22/08 ( MONDAY ) ', + time:'17:05' + }, + { + tittle:'Wlcome', + date:'18/07/2022 ', + + details:'Welcome To Shiv Bullion ', + time:'04:09' + }, + ] +} diff --git a/apps/shiv-bull-clone/src/assets/.gitkeep b/apps/shiv-bull-clone/src/assets/.gitkeep new file mode 100644 index 00000000..e69de29b diff --git a/apps/shiv-bull-clone/src/assets/images/AXISbanklogo.png b/apps/shiv-bull-clone/src/assets/images/AXISbanklogo.png new file mode 100644 index 00000000..4d2476e6 Binary files /dev/null and b/apps/shiv-bull-clone/src/assets/images/AXISbanklogo.png differ diff --git a/apps/shiv-bull-clone/src/assets/images/appstoreicon.png b/apps/shiv-bull-clone/src/assets/images/appstoreicon.png new file mode 100644 index 00000000..0c6f7913 Binary files /dev/null and b/apps/shiv-bull-clone/src/assets/images/appstoreicon.png differ diff --git a/apps/shiv-bull-clone/src/assets/images/arrow-back.svg b/apps/shiv-bull-clone/src/assets/images/arrow-back.svg new file mode 100644 index 00000000..07e781c4 --- /dev/null +++ b/apps/shiv-bull-clone/src/assets/images/arrow-back.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/apps/shiv-bull-clone/src/assets/images/backgroundimage_of_shivbullion.jpg b/apps/shiv-bull-clone/src/assets/images/backgroundimage_of_shivbullion.jpg new file mode 100644 index 00000000..ff45937e Binary files /dev/null and b/apps/shiv-bull-clone/src/assets/images/backgroundimage_of_shivbullion.jpg differ diff --git a/apps/shiv-bull-clone/src/assets/images/calendar-outline.svg b/apps/shiv-bull-clone/src/assets/images/calendar-outline.svg new file mode 100644 index 00000000..8c5b9f68 --- /dev/null +++ b/apps/shiv-bull-clone/src/assets/images/calendar-outline.svg @@ -0,0 +1 @@ +Calendar \ No newline at end of file diff --git a/apps/shiv-bull-clone/src/assets/images/checkmark-circle-outline.svg b/apps/shiv-bull-clone/src/assets/images/checkmark-circle-outline.svg new file mode 100644 index 00000000..810b7dd2 --- /dev/null +++ b/apps/shiv-bull-clone/src/assets/images/checkmark-circle-outline.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/apps/shiv-bull-clone/src/assets/images/copy.svg b/apps/shiv-bull-clone/src/assets/images/copy.svg new file mode 100644 index 00000000..5b8055fa --- /dev/null +++ b/apps/shiv-bull-clone/src/assets/images/copy.svg @@ -0,0 +1 @@ +Copy \ No newline at end of file diff --git a/apps/shiv-bull-clone/src/assets/images/copylogo.svg b/apps/shiv-bull-clone/src/assets/images/copylogo.svg new file mode 100644 index 00000000..fdb837b6 --- /dev/null +++ b/apps/shiv-bull-clone/src/assets/images/copylogo.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/apps/shiv-bull-clone/src/assets/images/eye-off-outline.svg b/apps/shiv-bull-clone/src/assets/images/eye-off-outline.svg new file mode 100644 index 00000000..95f4c307 --- /dev/null +++ b/apps/shiv-bull-clone/src/assets/images/eye-off-outline.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/apps/shiv-bull-clone/src/assets/images/eye-outline.svg b/apps/shiv-bull-clone/src/assets/images/eye-outline.svg new file mode 100644 index 00000000..663f3f1f --- /dev/null +++ b/apps/shiv-bull-clone/src/assets/images/eye-outline.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/apps/shiv-bull-clone/src/assets/images/icic_logo.jpg b/apps/shiv-bull-clone/src/assets/images/icic_logo.jpg new file mode 100644 index 00000000..dda70f7c Binary files /dev/null and b/apps/shiv-bull-clone/src/assets/images/icic_logo.jpg differ diff --git a/apps/shiv-bull-clone/src/assets/images/icon_bank_detail.svg b/apps/shiv-bull-clone/src/assets/images/icon_bank_detail.svg new file mode 100644 index 00000000..69b51d68 --- /dev/null +++ b/apps/shiv-bull-clone/src/assets/images/icon_bank_detail.svg @@ -0,0 +1,8 @@ + + + + + + + + diff --git a/apps/shiv-bull-clone/src/assets/images/icon_contact_us.svg b/apps/shiv-bull-clone/src/assets/images/icon_contact_us.svg new file mode 100644 index 00000000..fe36f26b --- /dev/null +++ b/apps/shiv-bull-clone/src/assets/images/icon_contact_us.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/apps/shiv-bull-clone/src/assets/images/icon_live_rate.svg b/apps/shiv-bull-clone/src/assets/images/icon_live_rate.svg new file mode 100644 index 00000000..bd9044b0 --- /dev/null +++ b/apps/shiv-bull-clone/src/assets/images/icon_live_rate.svg @@ -0,0 +1 @@ +stocks \ No newline at end of file diff --git a/apps/shiv-bull-clone/src/assets/images/icon_updates.svg b/apps/shiv-bull-clone/src/assets/images/icon_updates.svg new file mode 100644 index 00000000..d1dfc1e1 --- /dev/null +++ b/apps/shiv-bull-clone/src/assets/images/icon_updates.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/apps/shiv-bull-clone/src/assets/images/icons8-logo-48.png b/apps/shiv-bull-clone/src/assets/images/icons8-logo-48.png new file mode 100644 index 00000000..a2b77b68 Binary files /dev/null and b/apps/shiv-bull-clone/src/assets/images/icons8-logo-48.png differ diff --git a/apps/shiv-bull-clone/src/assets/images/lock-logo.svg b/apps/shiv-bull-clone/src/assets/images/lock-logo.svg new file mode 100644 index 00000000..3758d815 --- /dev/null +++ b/apps/shiv-bull-clone/src/assets/images/lock-logo.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/apps/shiv-bull-clone/src/assets/images/mailicon.svg b/apps/shiv-bull-clone/src/assets/images/mailicon.svg new file mode 100644 index 00000000..9e74d55c --- /dev/null +++ b/apps/shiv-bull-clone/src/assets/images/mailicon.svg @@ -0,0 +1 @@ +mail \ No newline at end of file diff --git a/apps/shiv-bull-clone/src/assets/images/mapicon.svg b/apps/shiv-bull-clone/src/assets/images/mapicon.svg new file mode 100644 index 00000000..7f57ead0 --- /dev/null +++ b/apps/shiv-bull-clone/src/assets/images/mapicon.svg @@ -0,0 +1 @@ +map \ No newline at end of file diff --git a/apps/shiv-bull-clone/src/assets/images/nav_Lagdi_logo.svg b/apps/shiv-bull-clone/src/assets/images/nav_Lagdi_logo.svg new file mode 100644 index 00000000..eac505fc --- /dev/null +++ b/apps/shiv-bull-clone/src/assets/images/nav_Lagdi_logo.svg @@ -0,0 +1,68 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/apps/shiv-bull-clone/src/assets/images/nav_contact_logo.svg b/apps/shiv-bull-clone/src/assets/images/nav_contact_logo.svg new file mode 100644 index 00000000..9eb5b02d --- /dev/null +++ b/apps/shiv-bull-clone/src/assets/images/nav_contact_logo.svg @@ -0,0 +1 @@ +>Call \ No newline at end of file diff --git a/apps/shiv-bull-clone/src/assets/images/newspaper-outline.svg b/apps/shiv-bull-clone/src/assets/images/newspaper-outline.svg new file mode 100644 index 00000000..828b70d5 --- /dev/null +++ b/apps/shiv-bull-clone/src/assets/images/newspaper-outline.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/apps/shiv-bull-clone/src/assets/images/phone-callicon copy.svg b/apps/shiv-bull-clone/src/assets/images/phone-callicon copy.svg new file mode 100644 index 00000000..f90dfe1f --- /dev/null +++ b/apps/shiv-bull-clone/src/assets/images/phone-callicon copy.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/apps/shiv-bull-clone/src/assets/images/phone-callicon.svg b/apps/shiv-bull-clone/src/assets/images/phone-callicon.svg new file mode 100644 index 00000000..d0526f5a --- /dev/null +++ b/apps/shiv-bull-clone/src/assets/images/phone-callicon.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/apps/shiv-bull-clone/src/assets/images/playstoricon.png b/apps/shiv-bull-clone/src/assets/images/playstoricon.png new file mode 100644 index 00000000..eb2bdc83 Binary files /dev/null and b/apps/shiv-bull-clone/src/assets/images/playstoricon.png differ diff --git a/apps/shiv-bull-clone/src/assets/images/shivbuliionLogo.png b/apps/shiv-bull-clone/src/assets/images/shivbuliionLogo.png new file mode 100644 index 00000000..8d2d5c82 Binary files /dev/null and b/apps/shiv-bull-clone/src/assets/images/shivbuliionLogo.png differ diff --git a/apps/shiv-bull-clone/src/assets/images/smartphone.png b/apps/shiv-bull-clone/src/assets/images/smartphone.png new file mode 100644 index 00000000..b74c0ec3 Binary files /dev/null and b/apps/shiv-bull-clone/src/assets/images/smartphone.png differ diff --git a/apps/shiv-bull-clone/src/assets/images/userlogo.svg b/apps/shiv-bull-clone/src/assets/images/userlogo.svg new file mode 100644 index 00000000..6c9d5496 --- /dev/null +++ b/apps/shiv-bull-clone/src/assets/images/userlogo.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/apps/shiv-bull-clone/src/favicon.ico b/apps/shiv-bull-clone/src/favicon.ico new file mode 100644 index 00000000..317ebcb2 Binary files /dev/null and b/apps/shiv-bull-clone/src/favicon.ico differ diff --git a/apps/shiv-bull-clone/src/index.html b/apps/shiv-bull-clone/src/index.html new file mode 100644 index 00000000..04769289 --- /dev/null +++ b/apps/shiv-bull-clone/src/index.html @@ -0,0 +1,20 @@ + + + + + ShivBullClone + + + + + + + + + + + + diff --git a/apps/shiv-bull-clone/src/main.ts b/apps/shiv-bull-clone/src/main.ts new file mode 100644 index 00000000..23805513 --- /dev/null +++ b/apps/shiv-bull-clone/src/main.ts @@ -0,0 +1,12 @@ +import { provideHttpClient } from '@angular/common/http'; +import { bootstrapApplication } from '@angular/platform-browser'; +import { + provideRouter, + withEnabledBlockingInitialNavigation +} from '@angular/router'; +import { AppComponent } from './app/app.component'; +import { appRoutes } from './app/app.routes'; + +bootstrapApplication(AppComponent, { + providers: [provideRouter(appRoutes, withEnabledBlockingInitialNavigation()),provideHttpClient()], +}).catch((err) => console.error(err)); diff --git a/apps/shiv-bull-clone/src/scss/globle.scss b/apps/shiv-bull-clone/src/scss/globle.scss new file mode 100644 index 00000000..5fffb875 --- /dev/null +++ b/apps/shiv-bull-clone/src/scss/globle.scss @@ -0,0 +1,3 @@ +.philosopher{ + font-family: 'Philosopher', sans-serif; +} \ No newline at end of file diff --git a/apps/shiv-bull-clone/src/scss/variables.scss b/apps/shiv-bull-clone/src/scss/variables.scss new file mode 100644 index 00000000..24ff264a --- /dev/null +++ b/apps/shiv-bull-clone/src/scss/variables.scss @@ -0,0 +1,6 @@ +:root { + --primary-dark: #543e12; + --primary-medium: #f5eeda; + --header-bg: #fef8e8; + --primary-gold:#d7c498; + } \ No newline at end of file diff --git a/apps/shiv-bull-clone/src/styles.scss b/apps/shiv-bull-clone/src/styles.scss new file mode 100644 index 00000000..bb3efc4e --- /dev/null +++ b/apps/shiv-bull-clone/src/styles.scss @@ -0,0 +1,7 @@ +@tailwind base; +@tailwind components; +@tailwind utilities; +@import './scss/variables.scss'; +@import './scss/globle.scss'; + +/* You can add global styles to this file, and also import other style files */ diff --git a/apps/shiv-bull-clone/src/test-setup.ts b/apps/shiv-bull-clone/src/test-setup.ts new file mode 100644 index 00000000..1100b3e8 --- /dev/null +++ b/apps/shiv-bull-clone/src/test-setup.ts @@ -0,0 +1 @@ +import 'jest-preset-angular/setup-jest'; diff --git a/apps/shiv-bull-clone/tailwind.config.js b/apps/shiv-bull-clone/tailwind.config.js new file mode 100644 index 00000000..f9b2a5e9 --- /dev/null +++ b/apps/shiv-bull-clone/tailwind.config.js @@ -0,0 +1,14 @@ +const { createGlobPatternsForDependencies } = require('@nrwl/angular/tailwind'); +const { join } = require('path'); + +/** @type {import('tailwindcss').Config} */ +module.exports = { + content: [ + join(__dirname, 'src/**/!(*.stories|*.spec).{ts,html}'), + ...createGlobPatternsForDependencies(__dirname), + ], + theme: { + extend: {}, + }, + plugins: [], +}; diff --git a/apps/shiv-bull-clone/tsconfig.app.json b/apps/shiv-bull-clone/tsconfig.app.json new file mode 100644 index 00000000..fff4a41d --- /dev/null +++ b/apps/shiv-bull-clone/tsconfig.app.json @@ -0,0 +1,10 @@ +{ + "extends": "./tsconfig.json", + "compilerOptions": { + "outDir": "../../dist/out-tsc", + "types": [] + }, + "files": ["src/main.ts"], + "include": ["src/**/*.d.ts"], + "exclude": ["jest.config.ts", "src/**/*.test.ts", "src/**/*.spec.ts"] +} diff --git a/apps/shiv-bull-clone/tsconfig.editor.json b/apps/shiv-bull-clone/tsconfig.editor.json new file mode 100644 index 00000000..8ae117d9 --- /dev/null +++ b/apps/shiv-bull-clone/tsconfig.editor.json @@ -0,0 +1,7 @@ +{ + "extends": "./tsconfig.json", + "include": ["src/**/*.ts"], + "compilerOptions": { + "types": ["jest", "node"] + } +} diff --git a/apps/shiv-bull-clone/tsconfig.json b/apps/shiv-bull-clone/tsconfig.json new file mode 100644 index 00000000..9c9d7b2c --- /dev/null +++ b/apps/shiv-bull-clone/tsconfig.json @@ -0,0 +1,32 @@ +{ + "compilerOptions": { + "target": "es2022", + "useDefineForClassFields": false, + "forceConsistentCasingInFileNames": true, + "strict": false, + "noImplicitOverride": true, + "noPropertyAccessFromIndexSignature": true, + "noImplicitReturns": true, + "noFallthroughCasesInSwitch": true + }, + "files": [], + "include": [], + "references": [ + { + "path": "./tsconfig.app.json" + }, + { + "path": "./tsconfig.spec.json" + }, + { + "path": "./tsconfig.editor.json" + } + ], + "extends": "../../tsconfig.base.json", + "angularCompilerOptions": { + "enableI18nLegacyMessageIdFormat": false, + "strictInjectionParameters": true, + "strictInputAccessModifiers": true, + "strictTemplates": true + } +} diff --git a/apps/shiv-bull-clone/tsconfig.spec.json b/apps/shiv-bull-clone/tsconfig.spec.json new file mode 100644 index 00000000..f6a7d97b --- /dev/null +++ b/apps/shiv-bull-clone/tsconfig.spec.json @@ -0,0 +1,15 @@ +{ + "extends": "./tsconfig.json", + "compilerOptions": { + "outDir": "../../dist/out-tsc", + "module": "commonjs", + "types": ["jest", "node"] + }, + "files": ["src/test-setup.ts"], + "include": [ + "jest.config.ts", + "src/**/*.test.ts", + "src/**/*.spec.ts", + "src/**/*.d.ts" + ] +} diff --git a/libs/frontend-core/src/mock/demo-live-rate.service.ts b/libs/frontend-core/src/mock/demo-live-rate.service.ts index de60f8ee..4a6a2a07 100644 --- a/libs/frontend-core/src/mock/demo-live-rate.service.ts +++ b/libs/frontend-core/src/mock/demo-live-rate.service.ts @@ -9,7 +9,7 @@ import { Env, JsonToItrable } from '../core'; import { RatesFixture } from '../fixtures'; import { InjectableRate, LiveRateService } from '../services/live-rate.service'; import { randNumber } from '@ngneat/falso'; - +export const InitialiseRemoteConnection = 'initialiseRemoteConnection'; @Injectable({ providedIn: 'root', }) diff --git a/libs/rate-tables/src/lib/rate-tables-1/rate-tables-1.component.html b/libs/rate-tables/src/lib/rate-tables-1/rate-tables-1.component.html index 776fa966..a060739a 100644 --- a/libs/rate-tables/src/lib/rate-tables-1/rate-tables-1.component.html +++ b/libs/rate-tables/src/lib/rate-tables-1/rate-tables-1.component.html @@ -4,7 +4,7 @@

GOLD PRODUCTS

SELL

-
+

{{ item.name }}

{ let component: RateTables1Component; let fixture: ComponentFixture; + let comp: ShadowRoot; beforeEach(async () => { await TestBed.configureTestingModule({ @@ -16,15 +17,33 @@ describe('RateTablesComponent', () => { provide: LiveRateService, useClass: DemoLiveRateService, }, + { + provide:InitialiseRemoteConnection, + useValue: false, + } ], }).compileComponents(); fixture = TestBed.createComponent(RateTables1Component); component = fixture.componentInstance; + // eslint-disable-next-line @typescript-eslint/no-non-null-assertion + comp = (fixture.nativeElement as HTMLElement).shadowRoot!; fixture.detectChanges(); }); it('should create', () => { expect(component).toBeTruthy(); }); + + it(`name of data should be corrected`, () => { + const dataL = comp.querySelectorAll('.child').length; + for (let i = 0; i < dataL; i++) { + const data = comp + .querySelectorAll('.child') + [i].querySelector('.child_left') + ?.textContent?.trim(); + expect(data).toBe(component.data[i].name); + } + }); + }); diff --git a/libs/rate-tables/src/lib/rate-tables-6/rate-tables-6.component.html b/libs/rate-tables/src/lib/rate-tables-6/rate-tables-6.component.html index e4ce456d..e3ba61b3 100644 --- a/libs/rate-tables/src/lib/rate-tables-6/rate-tables-6.component.html +++ b/libs/rate-tables/src/lib/rate-tables-6/rate-tables-6.component.html @@ -14,7 +14,7 @@ [class.rate_high]="gold['bid'].color === 'Green'" [class.rate_low]="gold['bid'].color === 'Red'" > - {{ gold['bid'].rate }} + {{ gold['bid'].rate}}

@@ -42,9 +42,9 @@ class="rate" [class.rate_high]="silver['ask'].color === 'Green'" [class.rate_low]="silver['ask'].color === 'Red'" - *ngIf="SILVER | async; let silver" + *ngIf="SILVER | async; let silver" > - {{ silver['ask'].rate }} + {{ silver['ask'].rate | number :'1.2-2'}} @@ -78,7 +78,7 @@ [class.rate_high]="gold['ask'].color === 'Green'" [class.rate_low]="gold['ask'].color === 'Red'" > - {{ gold['ask'].rate }} + {{ gold['ask'].rate | number :'1.2-2' }}
H-{{ gold['last-high'].rate }}
@@ -91,10 +91,10 @@ [class.rate_high]="gold['bid'].color === 'Green'" [class.rate_low]="gold['bid'].color === 'Red'" > - {{ gold['bid'].rate }} + {{ gold['bid'].rate | number :'1.2-2' }} -
H-{{ gold['last-high'].rate }}
+
H-{{ gold['last-high'].rate | number :'1.2-2'}}
@@ -110,7 +110,7 @@ [class.rate_high]="silver['ask'].color === 'Green'" [class.rate_low]="silver['ask'].color === 'Red'" > - {{ silver['ask'].rate }} + {{ silver['ask'].rate | number :'1.2-2' }}
H-{{ silver['last-high'].rate }}
@@ -123,10 +123,10 @@ [class.rate_high]="silver['bid'].color === 'Green'" [class.rate_low]="silver['bid'].color === 'Red'" > - {{ silver['bid'].rate }} + {{ silver['bid'].rate | number :'1.2-2' }} -
H-{{ silver['last-high'].rate }}
+
H-{{ silver['last-high'].rate | number :'1.2-2' }}
diff --git a/libs/rate-tables/src/lib/rate-tables-7/rate-tables-7.component.scss b/libs/rate-tables/src/lib/rate-tables-7/rate-tables-7.component.scss index aee9cc7d..e82629c5 100644 --- a/libs/rate-tables/src/lib/rate-tables-7/rate-tables-7.component.scss +++ b/libs/rate-tables/src/lib/rate-tables-7/rate-tables-7.component.scss @@ -1,24 +1,37 @@ :host { - --header-back-color: #543e12; + --header-back-color: #6e5115; --header-font-color: white; --header-border-color: #7c6533; --data-back-color: #fef8e8; --data-font-color: #000000; --rate-high-back-color: white; - --rate-high-font-color: black; - --rate-low-font-color: black; + --rate-high-font-color: #000000; + --rate-low-font-color: #000000; --data-border-color: #7c6533; --rate-low-font-color: #ffffff; --rate-low-back-color: #008000; --rate-high-font-color: #ffffff; --rate-high-back-color: #ff0000; + --font-family: Roboto, Helvetica Neue, sans-serif; } -.table { +.main_div{ + font-family: var(--font-family); + width: 100%; + display: flex; padding: 10px; - margin: 0px; - // width: 25%; + flex-direction: column; + justify-content: center; + align-items: center; +} +.table { + display: flex; + flex-direction: column; + padding-right: 20px; + // margin: 10px; + // margin-left:20px; + width: 98%; font-size: 12px; - font-weight: 700; + font-weight: 600; } .header_1 { @@ -28,8 +41,8 @@ width: 100%; grid-auto-flow: column; grid-template-columns: 1.9fr 1fr; - font-size: 15px; - font-weight: 700; + font-size: 14px; + font-weight: 600; } .product_group_left_header_1 { @@ -46,10 +59,10 @@ grid-auto-flow: column; grid-template-columns: 1.9fr 1fr; font-size: 12px; - font-weight: 900; + font-weight: 600; border-radius: 2px; background-color: var(--data-back-color); - border: 1px solid #7c6533; + border: 1px solid var(--header-back-color); } .product_2 { padding: 5px; @@ -59,10 +72,10 @@ grid-auto-flow: column; grid-template-columns: 2fr 1fr 1fr; font-size: 12px; - font-weight: 900; + font-weight: 600; border-radius: 2px; background-color: var(--data-back-color); - border: 1px solid #7c6533; + border: 1px solid var(--header-back-color); } .name_1 { width: 100%; @@ -90,7 +103,7 @@ border-radius: 10px; justify-content: center; align-items: center; - font-size: 15px; + font-size: 14px; } @@ -101,8 +114,8 @@ width: 100%; grid-auto-flow: column; grid-template-columns: 2fr 1fr 1fr; - font-size: 15px; - font-weight: 700; + font-size: 14px; + font-weight: 600; } .product_group_middle_header_2 { display: flex; @@ -164,4 +177,13 @@ padding: 5px; border-radius: 3px; + } + + + + + @media screen and (max-width:800px) { + .table{ + width: 90%; + } } \ No newline at end of file diff --git a/libs/rate-tables/src/lib/rate-tables-7/rate-tables-7.component.spec.ts b/libs/rate-tables/src/lib/rate-tables-7/rate-tables-7.component.spec.ts index ce61b0e9..746b4c99 100644 --- a/libs/rate-tables/src/lib/rate-tables-7/rate-tables-7.component.spec.ts +++ b/libs/rate-tables/src/lib/rate-tables-7/rate-tables-7.component.spec.ts @@ -27,4 +27,12 @@ describe('RateTablesComponent', () => { it('should create', () => { expect(component).toBeTruthy(); }); + it('first', () => { + expect(2+2).toBe(4); + }); + + it('should have html', () => { + const element=fixture.nativeElement + expect(element.querySelector('.main_div').textontent).toContain('Gold') + }); }); diff --git a/libs/rate-tables/src/lib/rate-tables-7/rate-tables-7.component.ts b/libs/rate-tables/src/lib/rate-tables-7/rate-tables-7.component.ts index 8d3819f1..1ad1ec14 100644 --- a/libs/rate-tables/src/lib/rate-tables-7/rate-tables-7.component.ts +++ b/libs/rate-tables/src/lib/rate-tables-7/rate-tables-7.component.ts @@ -1,4 +1,4 @@ -import { AsyncPipe, JsonPipe, NgFor, NgIf } from '@angular/common'; +import { AsyncPipe, CommonModule, JsonPipe, NgFor, NgIf } from '@angular/common'; import { Component, Inject, ViewEncapsulation } from '@angular/core'; import { LiveRateService, @@ -8,7 +8,7 @@ import { Observable } from 'rxjs'; @Component({ selector: 'rps-bull-rate-tables-7', standalone: true, - imports: [AsyncPipe, JsonPipe, NgFor, NgIf], + imports: [AsyncPipe, JsonPipe, NgFor, NgIf,CommonModule], encapsulation: ViewEncapsulation.ShadowDom, templateUrl: './rate-tables-7.component.html', styleUrls: ['./rate-tables-7.component.scss'], diff --git a/package.json b/package.json index 4412abb3..71a598a4 100644 --- a/package.json +++ b/package.json @@ -73,7 +73,7 @@ "@ngneat/falso": "^6.4.0", "@nx/angular": "16.2.2", "@rps/angular-nav-bars": "^1.0.3", - "axios": "^1.4.0", + "axios": "^1.0.0", "class-transformer": "^0.5.1", "class-validator": "^0.14.0", "eslint-plugin-unused-imports": "^2.0.0", @@ -83,10 +83,12 @@ "mongodb-memory-server": "^8.12.2", "redis": "^4.6.6", "reflect-metadata": "^0.1.13", - "rxjs": "~7.8.1", + "rxjs": "~7.5.0", + "sweetalert2": "^11.7.3", + "tailwindcss": "^3.3.1", "tslib": "^2.5.2", "uuid": "^9.0.0", "zone.js": "~0.13.0" }, - "packageManager": "yarn@3.5.1" + "packageManager": "yarn@3.5.0" } diff --git a/tsconfig.base.json b/tsconfig.base.json index d32973bb..5fa4bc87 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -38,6 +38,7 @@ "@rps/bullion-interfaces/calc": [ "libs/core/interfaces/src/calc/index.ts" ], + "@rps/bullion-interfaces/calc/*": ["libs/core/interfaces/src/calc/*"], "@rps/bullion-interfaces/core": [ "libs/core/interfaces/src/core/index.ts" ], diff --git a/yarn.lock b/yarn.lock index 45a1eef1..35f74db2 100644 --- a/yarn.lock +++ b/yarn.lock @@ -5,6 +5,13 @@ __metadata: version: 6 cacheKey: 8 +"@alloc/quick-lru@npm:^5.2.0": + version: 5.2.0 + resolution: "@alloc/quick-lru@npm:5.2.0" + checksum: bdc35758b552bcf045733ac047fb7f9a07c4678b944c641adfbd41f798b4b91fffd0fdc0df2578d9b0afc7b4d636aa6e110ead5d6281a2adc1ab90efd7f057f8 + languageName: node + linkType: hard + "@ampproject/remapping@npm:2.2.1, @ampproject/remapping@npm:^2.2.0": version: 2.2.1 resolution: "@ampproject/remapping@npm:2.2.1" @@ -6432,6 +6439,13 @@ __metadata: languageName: node linkType: hard +"any-promise@npm:^1.0.0": + version: 1.3.0 + resolution: "any-promise@npm:1.3.0" + checksum: 0ee8a9bdbe882c90464d75d1f55cf027f5458650c4bd1f0467e65aec38ccccda07ca5844969ee77ed46d04e7dded3eaceb027e8d32f385688523fe305fa7e1de + languageName: node + linkType: hard + "anymatch@npm:^3.0.3, anymatch@npm:~3.1.2": version: 3.1.3 resolution: "anymatch@npm:3.1.3" @@ -6473,6 +6487,13 @@ __metadata: languageName: node linkType: hard +"arg@npm:^5.0.2": + version: 5.0.2 + resolution: "arg@npm:5.0.2" + checksum: 6c69ada1a9943d332d9e5382393e897c500908d91d5cb735a01120d5f71daf1b339b7b8980cbeaba8fd1afc68e658a739746179e4315a26e8a28951ff9930078 + languageName: node + linkType: hard + "argparse@npm:^1.0.7": version: 1.0.10 resolution: "argparse@npm:1.0.10" @@ -6613,7 +6634,7 @@ __metadata: languageName: node linkType: hard -"axios@npm:^1.0.0, axios@npm:^1.4.0": +"axios@npm:^1.0.0": version: 1.4.0 resolution: "axios@npm:1.4.0" dependencies: @@ -7208,6 +7229,13 @@ __metadata: languageName: node linkType: hard +"camelcase-css@npm:^2.0.1": + version: 2.0.1 + resolution: "camelcase-css@npm:2.0.1" + checksum: 1cec2b3b3dcb5026688a470b00299a8db7d904c4802845c353dbd12d9d248d3346949a814d83bfd988d4d2e5b9904c07efe76fecd195a1d4f05b543e7c0b56b1 + languageName: node + linkType: hard + "camelcase@npm:^5.3.1": version: 5.3.1 resolution: "camelcase@npm:5.3.1" @@ -7531,6 +7559,13 @@ __metadata: languageName: node linkType: hard +"commander@npm:^4.0.0": + version: 4.1.1 + resolution: "commander@npm:4.1.1" + checksum: d7b9913ff92cae20cb577a4ac6fcc121bd6223319e54a40f51a14740a681ad5c574fd29a57da478a5f234a6fa6c52cbf0b7c641353e03c648b1ae85ba670b977 + languageName: node + linkType: hard + "commander@npm:^7.2.0": version: 7.2.0 resolution: "commander@npm:7.2.0" @@ -8291,6 +8326,13 @@ __metadata: languageName: node linkType: hard +"didyoumean@npm:^1.2.2": + version: 1.2.2 + resolution: "didyoumean@npm:1.2.2" + checksum: d5d98719d58b3c2fa59663c4c42ba9716f1fd01245c31d5fce31915bd3aa26e6aac149788e007358f778ebbd68a2256eb5973e8ca6f221df221ba060115acf2e + languageName: node + linkType: hard + "diff-sequences@npm:^29.4.3": version: 29.4.3 resolution: "diff-sequences@npm:29.4.3" @@ -8314,6 +8356,13 @@ __metadata: languageName: node linkType: hard +"dlv@npm:^1.1.3": + version: 1.1.3 + resolution: "dlv@npm:1.1.3" + checksum: d7381bca22ed11933a1ccf376db7a94bee2c57aa61e490f680124fa2d1cd27e94eba641d9f45be57caab4f9a6579de0983466f620a2cd6230d7ec93312105ae7 + languageName: node + linkType: hard + "dns-equal@npm:^1.0.0": version: 1.0.0 resolution: "dns-equal@npm:1.0.0" @@ -9628,6 +9677,20 @@ __metadata: languageName: node linkType: hard +"glob@npm:7.1.6": + version: 7.1.6 + resolution: "glob@npm:7.1.6" + dependencies: + fs.realpath: ^1.0.0 + inflight: ^1.0.4 + inherits: 2 + minimatch: ^3.0.4 + once: ^1.3.0 + path-is-absolute: ^1.0.0 + checksum: 351d549dd90553b87c2d3f90ce11aed9e1093c74130440e7ae0592e11bbcd2ce7f0ebb8ba6bfe63aaf9b62166a7f4c80cb84490ae5d78408bb2572bf7d4ee0a6 + languageName: node + linkType: hard + "glob@npm:8.1.0, glob@npm:^8.0.1": version: 8.1.0 resolution: "glob@npm:8.1.0" @@ -11179,6 +11242,15 @@ __metadata: languageName: node linkType: hard +"jiti@npm:^1.18.2": + version: 1.18.2 + resolution: "jiti@npm:1.18.2" + bin: + jiti: bin/jiti.js + checksum: 46c41cd82d01c6efdee3fc0ae9b3e86ed37457192d6366f19157d863d64961b07982ab04e9d5879576a1af99cc4d132b0b73b336094f86a5ce9fb1029ec2d29f + languageName: node + linkType: hard + "joi@npm:^17.9.2": version: 17.9.2 resolution: "joi@npm:17.9.2" @@ -11498,9 +11570,9 @@ __metadata: linkType: hard "libphonenumber-js@npm:^1.10.14": - version: 1.10.30 - resolution: "libphonenumber-js@npm:1.10.30" - checksum: 677bdd25b709cc55f10c599df09e67b501554578e4700ae31d9f2153b4e6847710d2454b4551f19df3e443eb836c0f287a12159ee6acd931150407c0eaf010a0 + version: 1.10.31 + resolution: "libphonenumber-js@npm:1.10.31" + checksum: c205c489a1917876110f686ab32b4b888d9c8a43c0015ec5c5139dbf96ebebbc13b8cbe00e306b514c7b4f0af4ae36a83856a3d27ba8c1e58d000af318a0f5d3 languageName: node linkType: hard @@ -11518,7 +11590,7 @@ __metadata: languageName: node linkType: hard -"lilconfig@npm:^2.0.3": +"lilconfig@npm:^2.0.3, lilconfig@npm:^2.0.5, lilconfig@npm:^2.1.0": version: 2.1.0 resolution: "lilconfig@npm:2.1.0" checksum: 8549bb352b8192375fed4a74694cd61ad293904eee33f9d4866c2192865c44c4eb35d10782966242634e0cbc1e91fe62b1247f148dc5514918e3a966da7ea117 @@ -11826,7 +11898,7 @@ __metadata: languageName: node linkType: hard -"micromatch@npm:^4.0.0, micromatch@npm:^4.0.2, micromatch@npm:^4.0.4": +"micromatch@npm:^4.0.0, micromatch@npm:^4.0.2, micromatch@npm:^4.0.4, micromatch@npm:^4.0.5": version: 4.0.5 resolution: "micromatch@npm:4.0.5" dependencies: @@ -12235,6 +12307,17 @@ __metadata: languageName: node linkType: hard +"mz@npm:^2.7.0": + version: 2.7.0 + resolution: "mz@npm:2.7.0" + dependencies: + any-promise: ^1.0.0 + object-assign: ^4.0.1 + thenify-all: ^1.0.0 + checksum: 8427de0ece99a07e9faed3c0c6778820d7543e3776f9a84d22cf0ec0a8eb65f6e9aee9c9d353ff9a105ff62d33a9463c6ca638974cc652ee8140cd1e35951c87 + languageName: node + linkType: hard + "nanoid@npm:^3.3.6": version: 3.3.6 resolution: "nanoid@npm:3.3.6" @@ -12694,13 +12777,20 @@ __metadata: languageName: node linkType: hard -"object-assign@npm:^4, object-assign@npm:^4.1.1": +"object-assign@npm:^4, object-assign@npm:^4.0.1, object-assign@npm:^4.1.1": version: 4.1.1 resolution: "object-assign@npm:4.1.1" checksum: fcc6e4ea8c7fe48abfbb552578b1c53e0d194086e2e6bbbf59e0a536381a292f39943c6e9628af05b5528aa5e3318bb30d6b2e53cadaf5b8fe9e12c4b69af23f languageName: node linkType: hard +"object-hash@npm:^3.0.0": + version: 3.0.0 + resolution: "object-hash@npm:3.0.0" + checksum: 80b4904bb3857c52cc1bfd0b52c0352532ca12ed3b8a6ff06a90cd209dfda1b95cee059a7625eb9da29537027f68ac4619363491eedb2f5d3dddbba97494fd6c + languageName: node + linkType: hard + "object-inspect@npm:^1.9.0": version: 1.12.3 resolution: "object-inspect@npm:1.12.3" @@ -13128,7 +13218,7 @@ __metadata: languageName: node linkType: hard -"pirates@npm:^4.0.4": +"pirates@npm:^4.0.1, pirates@npm:^4.0.4": version: 4.0.5 resolution: "pirates@npm:4.0.5" checksum: c9994e61b85260bec6c4fc0307016340d9b0c4f4b6550a957afaaff0c9b1ad58fbbea5cfcf083860a25cb27a375442e2b0edf52e2e1e40e69934e08dcc52d227 @@ -13422,29 +13512,29 @@ __metadata: languageName: node linkType: hard -"postcss-import@npm:~14.1.0": - version: 14.1.0 - resolution: "postcss-import@npm:14.1.0" +"postcss-import@npm:^15.1.0, postcss-import@npm:~15.1.0": + version: 15.1.0 + resolution: "postcss-import@npm:15.1.0" dependencies: postcss-value-parser: ^4.0.0 read-cache: ^1.0.0 resolve: ^1.1.7 peerDependencies: postcss: ^8.0.0 - checksum: cd45d406e90f67cdab9524352e573cc6b4462b790934a05954e929a6653ebd31288ceebc8ce3c3ed7117ae672d9ebbec57df0bceec0a56e9b259c2e71d47ca86 + checksum: 7bd04bd8f0235429009d0022cbf00faebc885de1d017f6d12ccb1b021265882efc9302006ba700af6cab24c46bfa2f3bc590be3f9aee89d064944f171b04e2a3 languageName: node linkType: hard -"postcss-import@npm:~15.1.0": - version: 15.1.0 - resolution: "postcss-import@npm:15.1.0" +"postcss-import@npm:~14.1.0": + version: 14.1.0 + resolution: "postcss-import@npm:14.1.0" dependencies: postcss-value-parser: ^4.0.0 read-cache: ^1.0.0 resolve: ^1.1.7 peerDependencies: postcss: ^8.0.0 - checksum: 7bd04bd8f0235429009d0022cbf00faebc885de1d017f6d12ccb1b021265882efc9302006ba700af6cab24c46bfa2f3bc590be3f9aee89d064944f171b04e2a3 + checksum: cd45d406e90f67cdab9524352e573cc6b4462b790934a05954e929a6653ebd31288ceebc8ce3c3ed7117ae672d9ebbec57df0bceec0a56e9b259c2e71d47ca86 languageName: node linkType: hard @@ -13457,6 +13547,17 @@ __metadata: languageName: node linkType: hard +"postcss-js@npm:^4.0.1": + version: 4.0.1 + resolution: "postcss-js@npm:4.0.1" + dependencies: + camelcase-css: ^2.0.1 + peerDependencies: + postcss: ^8.4.21 + checksum: 5c1e83efeabeb5a42676193f4357aa9c88f4dc1b3c4a0332c132fe88932b33ea58848186db117cf473049fc233a980356f67db490bd0a7832ccba9d0b3fd3491 + languageName: node + linkType: hard + "postcss-lab-function@npm:^5.2.2": version: 5.2.2 resolution: "postcss-lab-function@npm:5.2.2" @@ -13471,6 +13572,24 @@ __metadata: languageName: node linkType: hard +"postcss-load-config@npm:^4.0.1": + version: 4.0.1 + resolution: "postcss-load-config@npm:4.0.1" + dependencies: + lilconfig: ^2.0.5 + yaml: ^2.1.1 + peerDependencies: + postcss: ">=8.0.9" + ts-node: ">=9.0.0" + peerDependenciesMeta: + postcss: + optional: true + ts-node: + optional: true + checksum: b61f890499ed7dcda1e36c20a9582b17d745bad5e2b2c7bc96942465e406bc43ae03f270c08e60d1e29dab1ee50cb26970b5eb20c9aae30e066e20bd607ae4e4 + languageName: node + linkType: hard + "postcss-loader@npm:7.2.4": version: 7.2.4 resolution: "postcss-loader@npm:7.2.4" @@ -13636,6 +13755,17 @@ __metadata: languageName: node linkType: hard +"postcss-nested@npm:^6.0.1": + version: 6.0.1 + resolution: "postcss-nested@npm:6.0.1" + dependencies: + postcss-selector-parser: ^6.0.11 + peerDependencies: + postcss: ^8.2.14 + checksum: 7ddb0364cd797de01e38f644879189e0caeb7ea3f78628c933d91cc24f327c56d31269384454fc02ecaf503b44bfa8e08870a7c4cc56b23bc15640e1894523fa + languageName: node + linkType: hard + "postcss-nesting@npm:^11.2.1": version: 11.2.2 resolution: "postcss-nesting@npm:11.2.2" @@ -13919,7 +14049,7 @@ __metadata: languageName: node linkType: hard -"postcss-selector-parser@npm:^6.0.10, postcss-selector-parser@npm:^6.0.2, postcss-selector-parser@npm:^6.0.4, postcss-selector-parser@npm:^6.0.5, postcss-selector-parser@npm:^6.0.9": +"postcss-selector-parser@npm:^6.0.10, postcss-selector-parser@npm:^6.0.11, postcss-selector-parser@npm:^6.0.2, postcss-selector-parser@npm:^6.0.4, postcss-selector-parser@npm:^6.0.5, postcss-selector-parser@npm:^6.0.9": version: 6.0.13 resolution: "postcss-selector-parser@npm:6.0.13" dependencies: @@ -14447,7 +14577,7 @@ __metadata: languageName: node linkType: hard -"resolve@npm:^1.1.7, resolve@npm:^1.12.0, resolve@npm:^1.14.2, resolve@npm:^1.20.0, resolve@npm:^1.22.1": +"resolve@npm:^1.1.7, resolve@npm:^1.12.0, resolve@npm:^1.14.2, resolve@npm:^1.20.0, resolve@npm:^1.22.1, resolve@npm:^1.22.2": version: 1.22.3 resolution: "resolve@npm:1.22.3" dependencies: @@ -14473,7 +14603,7 @@ __metadata: languageName: node linkType: hard -"resolve@patch:resolve@^1.1.7#~builtin, resolve@patch:resolve@^1.12.0#~builtin, resolve@patch:resolve@^1.14.2#~builtin, resolve@patch:resolve@^1.20.0#~builtin, resolve@patch:resolve@^1.22.1#~builtin": +"resolve@patch:resolve@^1.1.7#~builtin, resolve@patch:resolve@^1.12.0#~builtin, resolve@patch:resolve@^1.14.2#~builtin, resolve@patch:resolve@^1.20.0#~builtin, resolve@patch:resolve@^1.22.1#~builtin, resolve@patch:resolve@^1.22.2#~builtin": version: 1.22.3 resolution: "resolve@patch:resolve@npm%3A1.22.3#~builtin::version=1.22.3&hash=c3c19d" dependencies: @@ -14567,7 +14697,7 @@ __metadata: languageName: node linkType: hard -"rxjs@npm:7.8.1, rxjs@npm:^7.5.5, rxjs@npm:^7.5.6, rxjs@npm:^7.8.0, rxjs@npm:~7.8.1": +"rxjs@npm:7.8.1, rxjs@npm:^7.5.5, rxjs@npm:^7.5.6, rxjs@npm:^7.8.0": version: 7.8.1 resolution: "rxjs@npm:7.8.1" dependencies: @@ -14576,6 +14706,15 @@ __metadata: languageName: node linkType: hard +"rxjs@npm:~7.5.0": + version: 7.5.7 + resolution: "rxjs@npm:7.5.7" + dependencies: + tslib: ^2.1.0 + checksum: edabcdb73b0f7e0f5f6e05c2077aff8c52222ac939069729704357d6406438acca831c24210db320aba269e86dbe1a400f3769c89101791885121a342fb15d9c + languageName: node + linkType: hard + "safe-buffer@npm:5.1.2, safe-buffer@npm:~5.1.0, safe-buffer@npm:~5.1.1": version: 5.1.2 resolution: "safe-buffer@npm:5.1.2" @@ -14925,7 +15064,7 @@ __metadata: "@types/uuid": ^9.0.1 "@typescript-eslint/eslint-plugin": 5.59.6 "@typescript-eslint/parser": 5.59.6 - axios: ^1.4.0 + axios: ^1.0.0 class-transformer: ^0.5.1 class-validator: ^0.14.0 eslint: ~8.41.0 @@ -14950,7 +15089,9 @@ __metadata: redis: ^4.6.6 reflect-metadata: ^0.1.13 rps-jsonvalidator: ^1.1.0 - rxjs: ~7.8.1 + rxjs: ~7.5.0 + sweetalert2: ^11.7.3 + tailwindcss: ^3.3.1 ts-essentials: ^9.3.2 ts-jest: 29.1.0 ts-node: 10.9.1 @@ -15486,6 +15627,24 @@ __metadata: languageName: node linkType: hard +"sucrase@npm:^3.32.0": + version: 3.32.0 + resolution: "sucrase@npm:3.32.0" + dependencies: + "@jridgewell/gen-mapping": ^0.3.2 + commander: ^4.0.0 + glob: 7.1.6 + lines-and-columns: ^1.1.6 + mz: ^2.7.0 + pirates: ^4.0.1 + ts-interface-checker: ^0.1.9 + bin: + sucrase: bin/sucrase + sucrase-node: bin/sucrase-node + checksum: 79f760aef513adcf22b882d43100296a8afa7f307acef3e8803304b763484cf138a3e2cebc498a6791110ab20c7b8deba097f6ce82f812ca8f1723e3440e5c95 + languageName: node + linkType: hard + "supports-color@npm:^5.3.0": version: 5.5.0 resolution: "supports-color@npm:5.5.0" @@ -15537,6 +15696,13 @@ __metadata: languageName: node linkType: hard +"sweetalert2@npm:^11.7.3": + version: 11.7.6 + resolution: "sweetalert2@npm:11.7.6" + checksum: 6f7547066aaf3e460a1b24a78ebd184a33bff435750ceda6c4ce73ce5fae6fd51b5a030b7ec89f8a23514e5a9e4431a2f9a8ea9d4d273355091c547046e4c8a4 + languageName: node + linkType: hard + "symbol-observable@npm:4.0.0": version: 4.0.0 resolution: "symbol-observable@npm:4.0.0" @@ -15551,6 +15717,40 @@ __metadata: languageName: node linkType: hard +"tailwindcss@npm:^3.3.1": + version: 3.3.2 + resolution: "tailwindcss@npm:3.3.2" + dependencies: + "@alloc/quick-lru": ^5.2.0 + arg: ^5.0.2 + chokidar: ^3.5.3 + didyoumean: ^1.2.2 + dlv: ^1.1.3 + fast-glob: ^3.2.12 + glob-parent: ^6.0.2 + is-glob: ^4.0.3 + jiti: ^1.18.2 + lilconfig: ^2.1.0 + micromatch: ^4.0.5 + normalize-path: ^3.0.0 + object-hash: ^3.0.0 + picocolors: ^1.0.0 + postcss: ^8.4.23 + postcss-import: ^15.1.0 + postcss-js: ^4.0.1 + postcss-load-config: ^4.0.1 + postcss-nested: ^6.0.1 + postcss-selector-parser: ^6.0.11 + postcss-value-parser: ^4.2.0 + resolve: ^1.22.2 + sucrase: ^3.32.0 + bin: + tailwind: lib/cli.js + tailwindcss: lib/cli.js + checksum: 4897c70e671c885e151f57434d87ccb806f468a11900f028245b351ffbca5245ff0c10ca5dbb6eb4c7c4df3de8a15a05fe08c2aea4b152cb07bee9bb1d8a14a8 + languageName: node + linkType: hard + "tapable@npm:^2.1.1, tapable@npm:^2.2.0, tapable@npm:^2.2.1": version: 2.2.1 resolution: "tapable@npm:2.2.1" @@ -15667,6 +15867,24 @@ __metadata: languageName: node linkType: hard +"thenify-all@npm:^1.0.0": + version: 1.6.0 + resolution: "thenify-all@npm:1.6.0" + dependencies: + thenify: ">= 3.1.0 < 4" + checksum: dba7cc8a23a154cdcb6acb7f51d61511c37a6b077ec5ab5da6e8b874272015937788402fd271fdfc5f187f8cb0948e38d0a42dcc89d554d731652ab458f5343e + languageName: node + linkType: hard + +"thenify@npm:>= 3.1.0 < 4": + version: 3.3.1 + resolution: "thenify@npm:3.3.1" + dependencies: + any-promise: ^1.0.0 + checksum: 84e1b804bfec49f3531215f17b4a6e50fd4397b5f7c1bccc427b9c656e1ecfb13ea79d899930184f78bc2f57285c54d9a50a590c8868f4f0cef5c1d9f898b05e + languageName: node + linkType: hard + "through@npm:^2.3.4, through@npm:^2.3.6": version: 2.3.8 resolution: "through@npm:2.3.8" @@ -15775,6 +15993,13 @@ __metadata: languageName: node linkType: hard +"ts-interface-checker@npm:^0.1.9": + version: 0.1.13 + resolution: "ts-interface-checker@npm:0.1.13" + checksum: 20c29189c2dd6067a8775e07823ddf8d59a33e2ffc47a1bd59a5cb28bb0121a2969a816d5e77eda2ed85b18171aa5d1c4005a6b88ae8499ec7cc49f78571cb5e + languageName: node + linkType: hard + "ts-jest@npm:29.1.0, ts-jest@npm:^29.0.0": version: 29.1.0 resolution: "ts-jest@npm:29.1.0" @@ -16001,11 +16226,11 @@ __metadata: "typescript@patch:typescript@5.0.4#~builtin": version: 5.0.4 - resolution: "typescript@patch:typescript@npm%3A5.0.4#~builtin::version=5.0.4&hash=b5f058" + resolution: "typescript@patch:typescript@npm%3A5.0.4#~builtin::version=5.0.4&hash=1f5320" bin: tsc: bin/tsc tsserver: bin/tsserver - checksum: d26b6ba97b6d163c55dbdffd9bbb4c211667ebebc743accfeb2c8c0154aace7afd097b51165a72a5bad2cf65a4612259344ff60f8e642362aa1695c760d303ac + checksum: 6a1fe9a77bb9c5176ead919cc4a1499ee63e46b4e05bf667079f11bf3a8f7887f135aa72460a4c3b016e6e6bb65a822cb8689a6d86cbfe92d22cc9f501f09213 languageName: node linkType: hard @@ -16851,6 +17076,13 @@ __metadata: languageName: node linkType: hard +"yaml@npm:^2.1.1": + version: 2.3.1 + resolution: "yaml@npm:2.3.1" + checksum: 2c7bc9a7cd4c9f40d3b0b0a98e370781b68b8b7c4515720869aced2b00d92f5da1762b4ffa947f9e795d6cd6b19f410bd4d15fdd38aca7bd96df59bd9486fb54 + languageName: node + linkType: hard + "yargs-parser@npm:21.1.1, yargs-parser@npm:>=21.1.1, yargs-parser@npm:^21.0.1, yargs-parser@npm:^21.1.1": version: 21.1.1 resolution: "yargs-parser@npm:21.1.1"