Changes in / [45cf412:3b395c5]


Ignore:
Location:
src
Files:
16 deleted
10 edited

Legend:

Unmodified
Added
Removed
  • src/Clients/Angular/finki-chattery/src/app/app-routing.module.ts

    r45cf412 r3b395c5  
    1111  {
    1212    path: '**',
    13     redirectTo: 'questioning/preview'
     13    redirectTo: 'public/home'
    1414  }
    1515];
  • src/Clients/Angular/finki-chattery/src/app/app.component.ts

    r45cf412 r3b395c5  
    11import { Component, OnInit } from '@angular/core';
    2 import { LoaderService, RedirectService } from './core/services';
     2import { AuthService, LoaderService, RedirectService } from './core/services';
    33
    44@Component({
  • src/Clients/Angular/finki-chattery/src/app/core/core.module.ts

    r45cf412 r3b395c5  
    1616import { EffectsModule } from '@ngrx/effects';
    1717import { QuestionEffects } from './state/question-state/question.effects';
    18 import { CategoriesEffects } from './state/category-state/category.effects';
    1918
    2019@NgModule({
     
    3736      logOnly: !environment.production
    3837    }),
    39     EffectsModule.forRoot([QuestionEffects, CategoriesEffects])
     38    EffectsModule.forRoot([QuestionEffects])
    4039  ],
    4140  exports: [HttpClientModule, COMPONENTS]
  • src/Clients/Angular/finki-chattery/src/app/core/state/index.ts

    r45cf412 r3b395c5  
    22import { QuestionState } from './question-state/question.state';
    33import { 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';
    64
    75export interface State {
    86  question: QuestionState;
    9   category: CategoryState;
    107}
    118
    129export const reducers: ActionReducerMap<State, any> = {
    13   question: questionReducer,
    14   category: categoryReducer
     10  question: questionReducer
    1511};
  • src/Clients/Angular/finki-chattery/src/app/modules/questioning/components/questioning-components.ts

    r45cf412 r3b395c5  
    11import { QuestionPreviewGeneralComponent } from './question-preview-general/question-preview-general.component';
    2 import { QuestionsPreviewGeneralComponent } from './questions-preview-general/questions-preview-general.component';
    32
    4 export const QUESTIONING_COMPONENTS: any[] = [QuestionPreviewGeneralComponent, QuestionsPreviewGeneralComponent];
     3export const QUESTIONING_COMPONENTS: any[] = [QuestionPreviewGeneralComponent];
  • src/Clients/Angular/finki-chattery/src/app/modules/questioning/questioning.module.ts

    r45cf412 r3b395c5  
    44import { QUESTIONING_COMPONENTS } from './components/questioning-components';
    55import { SharedAppModule } from 'src/app/shared-app/shared-app.module';
     6
    67@NgModule({
    78  declarations: [QUESTIONING_COMPONENTS],
  • src/Clients/Angular/finki-chattery/src/app/modules/questioning/questioning.routes.ts

    r45cf412 r3b395c5  
    22import { Routes, RouterModule } from '@angular/router';
    33import { QuestionPreviewGeneralComponent } from './components/question-preview-general/question-preview-general.component';
    4 import { QuestionsPreviewGeneralComponent } from './components/questions-preview-general/questions-preview-general.component';
    54
    65const routes: Routes = [
    7   {
    8     path: 'preview',
    9     pathMatch: 'full',
    10     component: QuestionsPreviewGeneralComponent
    11   },
    126  {
    137    path: ':questionUid',
  • src/Clients/Angular/finki-chattery/src/app/shared-app/models/index.ts

    r45cf412 r3b395c5  
    22export * from './user.models';
    33export * 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  
    2424  "vote-correct-answer": "This has been accepted as the correct answer by the owner of the question",
    2525  "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"
    3127}
  • src/FinkiChattery/FinkiChattery.Api/Controllers/v1/CategoriesController.cs

    r45cf412 r3b395c5  
    1 using FinkiChattery.Api.ApplicationServices.Questioning;
     1using FinkiChattery.Api.ApplicationServices.Authentication;
     2using FinkiChattery.Api.ApplicationServices.Questioning;
     3using FinkiChattery.Commands.Questioning;
    24using FinkiChattery.Common.Mediator.Interfaces;
     5using FinkiChattery.Contracts.Questioning;
    36using FinkiChattery.Queries.Questioning;
     7using IdentityServer4.AccessTokenValidation;
    48using Microsoft.AspNetCore.Authorization;
    59using Microsoft.AspNetCore.Mvc;
     10using System;
    611using System.Threading.Tasks;
    712
     
    2429        public async Task<IActionResult> GetCategories()
    2530        {
    26             var categoriesList = await MediatorService.SendQueryAsync(new GetCategoriesQuery());
    27             return Ok(categoriesList.ToCategoryDtos());
     31            return Ok();
    2832        }
    2933    }
Note: See TracChangeset for help on using the changeset viewer.