From 2d5991dbf7c408f790b8095d3557bd8914e951ac Mon Sep 17 00:00:00 2001 From: Mosiur Rahman Date: Sun, 5 Jan 2025 00:21:30 +0600 Subject: [PATCH] Login Component added --- docker-compose.yml | 1 - src/app/app.routes.ts | 2 + .../backup-list/backup-list.component.html | 2 - .../pages/login/login.component.html | 7 ++ .../pages/login/login.component.scss | 0 .../pages/login/login.component.spec.ts | 23 ++++ .../components/pages/login/login.component.ts | 14 +++ src/app/urls.ts.bkp | 112 ++++++++++++++++++ 8 files changed, 158 insertions(+), 3 deletions(-) create mode 100644 src/app/components/pages/login/login.component.html create mode 100644 src/app/components/pages/login/login.component.scss create mode 100644 src/app/components/pages/login/login.component.spec.ts create mode 100644 src/app/components/pages/login/login.component.ts create mode 100644 src/app/urls.ts.bkp diff --git a/docker-compose.yml b/docker-compose.yml index 9f032c1..634cf5b 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,4 +1,3 @@ -version: '3.9' services: navigator: build: . diff --git a/src/app/app.routes.ts b/src/app/app.routes.ts index 3d4b175..bce33ed 100644 --- a/src/app/app.routes.ts +++ b/src/app/app.routes.ts @@ -3,11 +3,13 @@ import { BackupListComponent } from './components/pages/backup-list/backup-list. import { ShiftUpdateComponent } from './components/pages/shift-update/shift-update.component'; import { NoMansLandComponent } from './components/pages/no-mans-land/no-mans-land.component'; import { ToolListComponent } from './components/pages/tool-list/tool-list.component'; +import { LoginComponent } from './components/pages/login/login.component'; export const routes: Routes = [ {path: "", component: NoMansLandComponent}, {path: "backup", component: BackupListComponent}, {path: "update", component: ShiftUpdateComponent}, {path: "creds", component: ToolListComponent }, + {path: "login", component: LoginComponent }, {path: "**", component: NoMansLandComponent}, ]; diff --git a/src/app/components/pages/backup-list/backup-list.component.html b/src/app/components/pages/backup-list/backup-list.component.html index e6029dd..7a11521 100644 --- a/src/app/components/pages/backup-list/backup-list.component.html +++ b/src/app/components/pages/backup-list/backup-list.component.html @@ -16,7 +16,6 @@ backup volume Copy Name - @@ -24,7 +23,6 @@ {{backup.projectName}} {{backup.volumeName}} {{backup.volumeName}}-{{currentDate | date: 'dd-MM-YYYY'}}-Cloud - diff --git a/src/app/components/pages/login/login.component.html b/src/app/components/pages/login/login.component.html new file mode 100644 index 0000000..dc1bd8f --- /dev/null +++ b/src/app/components/pages/login/login.component.html @@ -0,0 +1,7 @@ +
+
+
+ login works! +
+
+
\ No newline at end of file diff --git a/src/app/components/pages/login/login.component.scss b/src/app/components/pages/login/login.component.scss new file mode 100644 index 0000000..e69de29 diff --git a/src/app/components/pages/login/login.component.spec.ts b/src/app/components/pages/login/login.component.spec.ts new file mode 100644 index 0000000..18f3685 --- /dev/null +++ b/src/app/components/pages/login/login.component.spec.ts @@ -0,0 +1,23 @@ +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/src/app/components/pages/login/login.component.ts b/src/app/components/pages/login/login.component.ts new file mode 100644 index 0000000..20c1110 --- /dev/null +++ b/src/app/components/pages/login/login.component.ts @@ -0,0 +1,14 @@ +import { CommonModule } from '@angular/common'; +import { Component } from '@angular/core'; +import { ReactiveFormsModule } from '@angular/forms'; + +@Component({ + selector: 'app-login', + standalone: true, + imports: [ReactiveFormsModule, CommonModule], + templateUrl: './login.component.html', + styleUrl: './login.component.scss' +}) +export class LoginComponent { + +} diff --git a/src/app/urls.ts.bkp b/src/app/urls.ts.bkp new file mode 100644 index 0000000..3aec58b --- /dev/null +++ b/src/app/urls.ts.bkp @@ -0,0 +1,112 @@ +import { Tool } from "./shared/model/tool.model"; + +export const all_tools: any[] = [ +{ + name: 'Nagios', + url: "http://nagios.brilliant.com.bd/nagios", + userName: "nagiosadmin", + password: "Icloud-#@!!@#" +}, +{ + name: "Graphana", + url: "https://grafana.brilliant.com.bd/login", + userName: "cloud-operation", + password: "Br!ll!ant-#@!!@#", +}, +{ + name: "Cacti", + url: "http://cacti.brilliant.com.bd/cacti", + userName: "admin", + password: "Icl0ud#@!", +}, +{ + name: "Fortigate", + url: "https://118.67.210.46/", + userName: "cloud-operation", + password: "ic-FW-Cl0ud-ops132267" +}, +{ + name: "Forti Analyzer", + url: "https://118.67.209.115/", + userName: "cloud-operation", + password: "ic-FW-Cl0ud-ops132267" + }, + { + name: "Observium", + url: "http://observium.brilliant.com.bd/", + userName: "admin", + password: "Icloud-#@!!@#" + }, + { + name: "VM 1", + url: "http://118.67.215.11/dashboard/", + userName: "mosiur.rahman", + password: " brilliant-mosiur.rahman" + }, + { + name: "VM 2", + url: "http://118.67.215.12/dashboard/", + userName: "mosiur.rahman", + password: " brilliant-mosiur.rahman" + }, + { + name: "VM 3", + url: "http://118.67.215.13/dashboard/", + userName: "mosiur.rahman", + password: " brilliant-mosiur.rahman" + }, + { + name: "VM 4", + url: "https://cloud.brilliant.com.bd/", + userName: "mosiur.rahman", + password: " brilliant-mosiur.rahman" + }, + { + name: "BCP Portal", + url: "https://bcp.brilliant.com.bd/", + userName: "mosiur.rahman@brilliant.com.bd", + password: "brilliant-mosiur.rahman" + }, + { + name: "Cloud File Serve", + url: "http://118.67.215.251", + userName: "cloud-support", + password: "Icl0ud-Supp0rt!@#" + }, + { + name: "CA Admin", + url: " https://ca.brilliant.com.bd", + userName: "admin@brilliant.com.bd", + password: "@Dm!NBr!ll!@nt" + }, + { + name: "BCP Portal", + url: "http://118.67.215.13/dashboard/", + userName: "core-system", + password: "F91@cPR20L!kRe0651096hjQ#2072" +}, +{ + name: "CommVault Support Portal", + url: "https://support.commvault.com/", + userName: "core.system@intercloud.com.bd", + password: "mBSrdN&I/d90" +}, +{ + name: "Backup Portal RDP", + url: "baas.brilliant.com.bd", + userName: "administrator", + password: "kjferi_lfbDSNQK@#346" +}, +{ + name: "Backup Portal main RDP", + url: "backup.brilliant.com.bd", + userName: "administrator", + password: "kjferi_lfbDSNQK@#346" +}, +{ + name: "Remote VPN Password", + url: "103.248.13.66:10443", + userName: "mosiur.rahman", + password: "Hgd%4st#4d" +}, +] \ No newline at end of file