Skip to content

Commit

Permalink
Adiciona componente de participação
Browse files Browse the repository at this point in the history
  • Loading branch information
geraldovictor committed Nov 11, 2023
1 parent 70e669d commit 1fc574d
Show file tree
Hide file tree
Showing 6 changed files with 38 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/app/app-routing.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import { ResetPasswordComponent } from './pages/reset-password/reset-password.co
import { AuthGuard } from './services/auth.guard';
import { EditUserComponent } from './pages/edit-user/edit-user.component';
import { SuggestAgendaComponent } from './pages/suggest-agenda/suggest-agenda.component';
import { ParticipateComponent } from './pages/participate/participate.component';

const routes: Routes = [
{ path: 'login', component: LoginComponent },
Expand All @@ -24,6 +25,7 @@ const routes: Routes = [
{ path: 'sendCodeResetPassword', component: CheckCodeRestPasswordComponent },
{ path: 'changePassword', component: ResetPasswordComponent },
{ path: 'suggestAgenda', component: SuggestAgendaComponent },
{ path: 'participate', component: ParticipateComponent },
{ path: 'profile', component: ProfileComponent, canActivate: [AuthGuard], },
{ path: 'editUser/:id', component: EditUserComponent, canActivate: [AuthGuard], },
{ path: '', component: HomePageComponent, canActivate: [AuthGuard], }
Expand Down
2 changes: 2 additions & 0 deletions src/app/app.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ import { AuthGuard } from './services/auth.guard';
import { AuthService } from './services/auth.service';
import { EditUserComponent } from './pages/edit-user/edit-user.component';
import { SuggestAgendaComponent } from './pages/suggest-agenda/suggest-agenda.component';
import { ParticipateComponent } from './pages/participate/participate.component';

@NgModule({
declarations: [
Expand All @@ -42,6 +43,7 @@ import { SuggestAgendaComponent } from './pages/suggest-agenda/suggest-agenda.co
CheckCodeRestPasswordComponent,
EditUserComponent,
SuggestAgendaComponent,
ParticipateComponent,
],
imports: [
BrowserModule,
Expand Down
Empty file.
1 change: 1 addition & 0 deletions src/app/pages/participate/participate.component.html
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<p>participate works!</p>
23 changes: 23 additions & 0 deletions src/app/pages/participate/participate.component.spec.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
import { ComponentFixture, TestBed } from '@angular/core/testing';

import { ParticipateComponent } from './participate.component';

describe('ParticipateComponent', () => {
let component: ParticipateComponent;
let fixture: ComponentFixture<ParticipateComponent>;

beforeEach(async () => {
await TestBed.configureTestingModule({
declarations: [ ParticipateComponent ]
})
.compileComponents();

fixture = TestBed.createComponent(ParticipateComponent);
component = fixture.componentInstance;
fixture.detectChanges();
});

it('should create', () => {
expect(component).toBeTruthy();
});
});
10 changes: 10 additions & 0 deletions src/app/pages/participate/participate.component.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import { Component } from '@angular/core';

@Component({
selector: 'app-participate',
templateUrl: './participate.component.html',
styleUrls: ['./participate.component.css']
})
export class ParticipateComponent {

}

0 comments on commit 1fc574d

Please sign in to comment.