Changes in / [45cf412:3b395c5]
- Location:
- src
- Files:
-
- 16 deleted
- 10 edited
Legend:
- Unmodified
- Added
- Removed
-
src/Clients/Angular/finki-chattery/src/app/app-routing.module.ts
r45cf412 r3b395c5 11 11 { 12 12 path: '**', 13 redirectTo: ' questioning/preview'13 redirectTo: 'public/home' 14 14 } 15 15 ]; -
src/Clients/Angular/finki-chattery/src/app/app.component.ts
r45cf412 r3b395c5 1 1 import { Component, OnInit } from '@angular/core'; 2 import { LoaderService, RedirectService } from './core/services';2 import { AuthService, LoaderService, RedirectService } from './core/services'; 3 3 4 4 @Component({ -
src/Clients/Angular/finki-chattery/src/app/core/core.module.ts
r45cf412 r3b395c5 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';19 18 20 19 @NgModule({ … … 37 36 logOnly: !environment.production 38 37 }), 39 EffectsModule.forRoot([QuestionEffects , CategoriesEffects])38 EffectsModule.forRoot([QuestionEffects]) 40 39 ], 41 40 exports: [HttpClientModule, COMPONENTS] -
src/Clients/Angular/finki-chattery/src/app/core/state/index.ts
r45cf412 r3b395c5 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';6 4 7 5 export interface State { 8 6 question: QuestionState; 9 category: CategoryState;10 7 } 11 8 12 9 export const reducers: ActionReducerMap<State, any> = { 13 question: questionReducer, 14 category: categoryReducer 10 question: questionReducer 15 11 }; -
src/Clients/Angular/finki-chattery/src/app/modules/questioning/components/questioning-components.ts
r45cf412 r3b395c5 1 1 import { QuestionPreviewGeneralComponent } from './question-preview-general/question-preview-general.component'; 2 import { QuestionsPreviewGeneralComponent } from './questions-preview-general/questions-preview-general.component';3 2 4 export const QUESTIONING_COMPONENTS: any[] = [QuestionPreviewGeneralComponent , QuestionsPreviewGeneralComponent];3 export const QUESTIONING_COMPONENTS: any[] = [QuestionPreviewGeneralComponent]; -
src/Clients/Angular/finki-chattery/src/app/modules/questioning/questioning.module.ts
r45cf412 r3b395c5 4 4 import { QUESTIONING_COMPONENTS } from './components/questioning-components'; 5 5 import { SharedAppModule } from 'src/app/shared-app/shared-app.module'; 6 6 7 @NgModule({ 7 8 declarations: [QUESTIONING_COMPONENTS], -
src/Clients/Angular/finki-chattery/src/app/modules/questioning/questioning.routes.ts
r45cf412 r3b395c5 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';5 4 6 5 const routes: Routes = [ 7 {8 path: 'preview',9 pathMatch: 'full',10 component: QuestionsPreviewGeneralComponent11 },12 6 { 13 7 path: ':questionUid', -
src/Clients/Angular/finki-chattery/src/app/shared-app/models/index.ts
r45cf412 r3b395c5 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
r45cf412 r3b395c5 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", 27 "internet-techologies": "Internet technologies", 28 "software-engineering": "Software engineering", 29 "visual-programming": "Visual programming", 30 "operating-systems": "Operating systems" 26 "answer-sort-votes": "Votes" 31 27 } -
src/FinkiChattery/FinkiChattery.Api/Controllers/v1/CategoriesController.cs
r45cf412 r3b395c5 1 using FinkiChattery.Api.ApplicationServices.Questioning; 1 using FinkiChattery.Api.ApplicationServices.Authentication; 2 using FinkiChattery.Api.ApplicationServices.Questioning; 3 using FinkiChattery.Commands.Questioning; 2 4 using FinkiChattery.Common.Mediator.Interfaces; 5 using FinkiChattery.Contracts.Questioning; 3 6 using FinkiChattery.Queries.Questioning; 7 using IdentityServer4.AccessTokenValidation; 4 8 using Microsoft.AspNetCore.Authorization; 5 9 using Microsoft.AspNetCore.Mvc; 10 using System; 6 11 using System.Threading.Tasks; 7 12 … … 24 29 public async Task<IActionResult> GetCategories() 25 30 { 26 var categoriesList = await MediatorService.SendQueryAsync(new GetCategoriesQuery()); 27 return Ok(categoriesList.ToCategoryDtos()); 31 return Ok(); 28 32 } 29 33 }
Note:
See TracChangeset
for help on using the changeset viewer.