- Timestamp:
- 10/21/21 19:52:33 (3 years ago)
- Branches:
- dev
- Children:
- 1e33fad, 81c2e6f, dd731cd
- Parents:
- 3b395c5 (diff), 31c006c (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - Location:
- src
- Files:
-
- 16 added
- 10 edited
Legend:
- Unmodified
- Added
- Removed
-
src/Clients/Angular/finki-chattery/src/app/app-routing.module.ts
r3b395c5 r45cf412 11 11 { 12 12 path: '**', 13 redirectTo: ' public/home'13 redirectTo: 'questioning/preview' 14 14 } 15 15 ]; -
src/Clients/Angular/finki-chattery/src/app/app.component.ts
r3b395c5 r45cf412 1 1 import { Component, OnInit } from '@angular/core'; 2 import { AuthService,LoaderService, RedirectService } from './core/services';2 import { LoaderService, RedirectService } from './core/services'; 3 3 4 4 @Component({ -
src/Clients/Angular/finki-chattery/src/app/core/core.module.ts
r3b395c5 r45cf412 16 16 import { EffectsModule } from '@ngrx/effects'; 17 17 import { QuestionEffects } from './state/question-state/question.effects'; 18 import { CategoriesEffects } from './state/category-state/category.effects'; 18 19 19 20 @NgModule({ … … 36 37 logOnly: !environment.production 37 38 }), 38 EffectsModule.forRoot([QuestionEffects ])39 EffectsModule.forRoot([QuestionEffects, CategoriesEffects]) 39 40 ], 40 41 exports: [HttpClientModule, COMPONENTS] -
src/Clients/Angular/finki-chattery/src/app/core/state/index.ts
r3b395c5 r45cf412 2 2 import { QuestionState } from './question-state/question.state'; 3 3 import { reducer as questionReducer } from './question-state/question.reducers'; 4 import { CategoryState } from './category-state/category.state'; 5 import { reducer as categoryReducer } from './category-state/category.reducers'; 4 6 5 7 export interface State { 6 8 question: QuestionState; 9 category: CategoryState; 7 10 } 8 11 9 12 export const reducers: ActionReducerMap<State, any> = { 10 question: questionReducer 13 question: questionReducer, 14 category: categoryReducer 11 15 }; -
src/Clients/Angular/finki-chattery/src/app/modules/questioning/components/questioning-components.ts
r3b395c5 r45cf412 1 1 import { QuestionPreviewGeneralComponent } from './question-preview-general/question-preview-general.component'; 2 import { QuestionsPreviewGeneralComponent } from './questions-preview-general/questions-preview-general.component'; 2 3 3 export const QUESTIONING_COMPONENTS: any[] = [QuestionPreviewGeneralComponent ];4 export const QUESTIONING_COMPONENTS: any[] = [QuestionPreviewGeneralComponent, QuestionsPreviewGeneralComponent]; -
src/Clients/Angular/finki-chattery/src/app/modules/questioning/questioning.module.ts
r3b395c5 r45cf412 4 4 import { QUESTIONING_COMPONENTS } from './components/questioning-components'; 5 5 import { SharedAppModule } from 'src/app/shared-app/shared-app.module'; 6 7 6 @NgModule({ 8 7 declarations: [QUESTIONING_COMPONENTS], -
src/Clients/Angular/finki-chattery/src/app/modules/questioning/questioning.routes.ts
r3b395c5 r45cf412 2 2 import { Routes, RouterModule } from '@angular/router'; 3 3 import { QuestionPreviewGeneralComponent } from './components/question-preview-general/question-preview-general.component'; 4 import { QuestionsPreviewGeneralComponent } from './components/questions-preview-general/questions-preview-general.component'; 4 5 5 6 const routes: Routes = [ 7 { 8 path: 'preview', 9 pathMatch: 'full', 10 component: QuestionsPreviewGeneralComponent 11 }, 6 12 { 7 13 path: ':questionUid', -
src/Clients/Angular/finki-chattery/src/app/shared-app/models/index.ts
r3b395c5 r45cf412 2 2 export * from './user.models'; 3 3 export * from './question-state-view-models.models'; 4 export * from './category-state-view-models.models'; -
src/Clients/Angular/finki-chattery/src/assets/translations/en.json
r3b395c5 r45cf412 24 24 "vote-correct-answer": "This has been accepted as the correct answer by the owner of the question", 25 25 "answer-sort-oldest": "Oldest", 26 "answer-sort-votes": "Votes" 26 "answer-sort-votes": "Votes", 27 "internet-techologies": "Internet technologies", 28 "software-engineering": "Software engineering", 29 "visual-programming": "Visual programming", 30 "operating-systems": "Operating systems" 27 31 } -
src/FinkiChattery/FinkiChattery.Api/Controllers/v1/CategoriesController.cs
r3b395c5 r45cf412 1 using FinkiChattery.Api.ApplicationServices.Authentication; 2 using FinkiChattery.Api.ApplicationServices.Questioning; 3 using FinkiChattery.Commands.Questioning; 1 using FinkiChattery.Api.ApplicationServices.Questioning; 4 2 using FinkiChattery.Common.Mediator.Interfaces; 5 using FinkiChattery.Contracts.Questioning;6 3 using FinkiChattery.Queries.Questioning; 7 using IdentityServer4.AccessTokenValidation;8 4 using Microsoft.AspNetCore.Authorization; 9 5 using Microsoft.AspNetCore.Mvc; 10 using System;11 6 using System.Threading.Tasks; 12 7 … … 29 24 public async Task<IActionResult> GetCategories() 30 25 { 31 return Ok(); 26 var categoriesList = await MediatorService.SendQueryAsync(new GetCategoriesQuery()); 27 return Ok(categoriesList.ToCategoryDtos()); 32 28 } 33 29 }
Note:
See TracChangeset
for help on using the changeset viewer.