Skip to content

Commit

Permalink
Removed unwanted code.
Browse files Browse the repository at this point in the history
  • Loading branch information
keshavsingh4522 committed Aug 12, 2024
1 parent 608d600 commit 9daa7ea
Show file tree
Hide file tree
Showing 51 changed files with 1 addition and 1,420 deletions.
5 changes: 0 additions & 5 deletions src/app/app-routing.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import { NgModule } from '@angular/core';
import { RouterModule, Routes } from '@angular/router';
import { HomeComponent } from './components/home/home.component';
import { NotFoundComponent } from './components/general/not-found/not-found.component';
import { AdminLoginComponent } from './components/admin/auth/admin-login/admin-login.component';
import { MsalGuard } from '@azure/msal-angular';

const routes: Routes = [
Expand All @@ -13,10 +12,6 @@ const routes: Routes = [
loadChildren: () => import('./components/admin/admin.module').then(m => m.AdminModule),
canActivate: [MsalGuard]
},
{
path: "admin-login", component: AdminLoginComponent,
canActivate: [MsalGuard]
},
{ path: '404', component: NotFoundComponent },
{ path: '**', redirectTo: '/404', pathMatch: 'full' }
];
Expand Down
5 changes: 1 addition & 4 deletions src/app/app.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import { Location } from '@angular/common';

import * as AOS from 'aos';
import { VisitorDetail } from './models/admin/visitor/visitor-detail';
import { SessionService } from './services/session/session.service';

@Component({
selector: 'app-root',
Expand All @@ -28,14 +27,12 @@ export class AppComponent implements OnInit {
constructor(private router: Router, private titleService: Title,
private metaService: Meta,
private translateService: TranslateService,
private location: Location,
private sessionService: SessionService) {
private location: Location) {
translateService.setDefaultLang('en');
// or
translateService.use('en');

this.visitorData = this.getVisitorInfo();
sessionService.setLocalStorageIdentifier();
}

ngOnInit(): void {
Expand Down
2 changes: 0 additions & 2 deletions src/app/app.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ import { MatProgressBarModule } from '@angular/material/progress-bar';
import { QuestionEditDialogComponent } from './components/general/dialog/topic/question-edit-dialog/question-edit-dialog.component';
import { MatFormFieldModule } from '@angular/material/form-field';
import { MatChipsModule } from '@angular/material/chips';
import { AdminLoginComponent } from './components/admin/auth/admin-login/admin-login.component';

// Import MSAL and MSAL browser libraries.
import { MSAL_INTERCEPTOR_CONFIG, MsalGuard, MsalInterceptor, MsalModule, MsalRedirectComponent, MsalService } from '@azure/msal-angular';
Expand Down Expand Up @@ -76,7 +75,6 @@ export function HttpLoaderFactory(http: HttpClient) {
FileUploadComponent,
ConfirmDialogComponent,
QuestionEditDialogComponent,
AdminLoginComponent
],
// ...

Expand Down
8 changes: 0 additions & 8 deletions src/app/components/admin/admin-routing.module.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,7 @@
import { NgModule } from '@angular/core';
import { RouterModule, Routes } from '@angular/router';
import { AdminComponent } from './admin.component';
import { AddOrganizationComponent } from './organization/add-organization/add-organization.component';
import { ListOrganizationComponent } from './organization/list-organization/list-organization.component';
import { OrganizationComponent } from './organization/organization.component';
import { VisitorComponent } from './visitor/visitor.component';
import { ChatComponent } from './chat/chat.component';
import { MarkdownRendererComponent } from './markdown-renderer/markdown-renderer.component';
import { FileUploadComponent } from '../general/file/file-upload/file-upload.component';
import { CsharpInterviewQaComponent } from './topic/csharp-interview-qa/csharp-interview-qa.component';
Expand All @@ -14,11 +10,7 @@ import { MsalGuard } from '@azure/msal-angular';

const routes: Routes = [{
path: "", component: AdminComponent, children: [
{ path: "add-organization", component: AddOrganizationComponent },
{ path: "list-organization", component: ListOrganizationComponent },
{ path: "organization", component: OrganizationComponent },
{ path: "visitor", component: VisitorComponent },
{ path: "chat", component: ChatComponent },
{ path: "markdown-renderer", component: MarkdownRendererComponent },
{ path: "file", component: FileUploadComponent },
{ path: "topic", component: CsharpInterviewQaComponent },
Expand Down
10 changes: 0 additions & 10 deletions src/app/components/admin/admin.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@ import { CommonModule } from '@angular/common';

import { AdminRoutingModule } from './admin-routing.module';
import { AdminComponent } from './admin.component';
import { AddOrganizationComponent } from './organization/add-organization/add-organization.component';
import { ListOrganizationComponent } from './organization/list-organization/list-organization.component';
import { DashboardComponent } from './dashboard/dashboard.component';
import { SideNavComponent } from './navigation/side-nav/side-nav.component';
import { TopNavComponent } from './navigation/top-nav/top-nav.component';
Expand All @@ -26,36 +24,28 @@ import { ReactiveFormsModule, FormsModule } from '@angular/forms';
import { MatInputModule } from '@angular/material/input';
import { TopNavbarProfileDropdownComponent } from './navigation/dropdowns/top-navbar-profile-dropdown/top-navbar-profile-dropdown.component';
import { UserComponent } from './user/user/user.component';
import { OrganizationComponent } from './organization/organization.component';
import { MatPaginatorModule } from '@angular/material/paginator';
import { MatTableModule } from '@angular/material/table';
import { EditOrganizationComponent } from './organization/edit-organization/edit-organization.component';
import { MatDialogModule } from '@angular/material/dialog';
import { MatSelectModule } from '@angular/material/select';
import { MatOptionModule } from '@angular/material/core';
import { ConfirmDialogComponent } from './dialog/confirm-dialog/confirm-dialog.component';
import { VisitorComponent } from './visitor/visitor.component';
import { ChatComponent } from './chat/chat.component';
import { MarkdownRendererComponent } from './markdown-renderer/markdown-renderer.component';
import { CsharpInterviewQaComponent } from './topic/csharp-interview-qa/csharp-interview-qa.component';

@NgModule({
declarations: [
AdminComponent,
AddOrganizationComponent,
ListOrganizationComponent,
DashboardComponent,
SideNavComponent,
TopNavComponent,
BottomNavComponent,
NavigationComponent,
TopNavbarProfileDropdownComponent,
UserComponent,
OrganizationComponent,
EditOrganizationComponent,
ConfirmDialogComponent,
VisitorComponent,
ChatComponent,
MarkdownRendererComponent,
CsharpInterviewQaComponent,
],
Expand Down
193 changes: 0 additions & 193 deletions src/app/components/admin/auth/admin-login/admin-login.component.css

This file was deleted.

This file was deleted.

This file was deleted.

Loading

0 comments on commit 9daa7ea

Please sign in to comment.