Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions src/app/admin/admin.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import { DealAdminRoutingModule } from '../features/deal/admin/deal-admin-routin
import { EventAdminRoutingModule } from '../features/event/admin/event-admin-routing.module';
import { GuestArticleAdminRoutingModule } from '../features/guest-article/admin/guest-article-admin-routing.module';
import { MediaAdminRoutingModule } from '../features/media/admin/media-admin-routing.module';
import { NavigatorAdminRoutingModule } from '../features/navigator/admin/navigator-admin-routing.module';
import { OrganisationAdminRoutingModule } from '../features/organisation/admin/organisation-admin-routing.module';
import { ReportAdminRoutingModule } from '../features/report/admin/report-admin-routing.module';
import { SurveyAdminRoutingModule } from '../features/survey/admin/survey-admin-routing.module';
Expand All @@ -35,6 +36,7 @@ const routes = [
ReportAdminRoutingModule,
GuestArticleAdminRoutingModule,
AuthorAdminRoutingModule,
NavigatorAdminRoutingModule,
AdminRoutingModule, //TODO: always last entry duet to order and redirect to 404, Remove 404 and put in AppRouter
];

Expand Down
274 changes: 274 additions & 0 deletions src/app/core/api/generated/schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1820,6 +1820,12 @@ export type Mutation = {
deleteMilestoneMedia?: Maybe<Scalars['Boolean']['output']>;
deleteMilestoneMedium?: Maybe<Scalars['Boolean']['output']>;
deleteMilestones?: Maybe<Scalars['Boolean']['output']>;
deleteNavigatorChoice?: Maybe<Scalars['Boolean']['output']>;
deleteNavigatorChoices?: Maybe<Scalars['Boolean']['output']>;
deleteNavigatorPage?: Maybe<Scalars['Boolean']['output']>;
deleteNavigatorPages?: Maybe<Scalars['Boolean']['output']>;
deleteNavigatorResultPage?: Maybe<Scalars['Boolean']['output']>;
deleteNavigatorResultPages?: Maybe<Scalars['Boolean']['output']>;
deleteNotification?: Maybe<Scalars['Boolean']['output']>;
deleteNotifications?: Maybe<Scalars['Boolean']['output']>;
deleteOrganisation?: Maybe<Scalars['Boolean']['output']>;
Expand Down Expand Up @@ -1971,6 +1977,12 @@ export type Mutation = {
saveMilestoneMedia?: Maybe<Array<Maybe<MilestoneMediaEntity>>>;
saveMilestoneMedium?: Maybe<MilestoneMediaEntity>;
saveMilestones?: Maybe<Array<Maybe<MilestoneEntity>>>;
saveNavigatorChoice?: Maybe<NavigatorChoiceEntity>;
saveNavigatorChoices?: Maybe<Array<Maybe<NavigatorChoiceEntity>>>;
saveNavigatorPage?: Maybe<NavigatorPageEntity>;
saveNavigatorPages?: Maybe<Array<Maybe<NavigatorPageEntity>>>;
saveNavigatorResultPage?: Maybe<NavigatorResultLinkEntity>;
saveNavigatorResultPages?: Maybe<Array<Maybe<NavigatorResultLinkEntity>>>;
saveNotification?: Maybe<NotificationEntity>;
saveNotifications?: Maybe<Array<Maybe<NotificationEntity>>>;
saveOrganisation?: Maybe<OrganisationEntity>;
Expand Down Expand Up @@ -2617,6 +2629,42 @@ export type MutationDeleteMilestonesArgs = {
};


/** Mutation root */
export type MutationDeleteNavigatorChoiceArgs = {
id?: InputMaybe<Scalars['String']['input']>;
};


/** Mutation root */
export type MutationDeleteNavigatorChoicesArgs = {
ids?: InputMaybe<Array<InputMaybe<Scalars['String']['input']>>>;
};


/** Mutation root */
export type MutationDeleteNavigatorPageArgs = {
id?: InputMaybe<Scalars['String']['input']>;
};


/** Mutation root */
export type MutationDeleteNavigatorPagesArgs = {
ids?: InputMaybe<Array<InputMaybe<Scalars['String']['input']>>>;
};


/** Mutation root */
export type MutationDeleteNavigatorResultPageArgs = {
id?: InputMaybe<Scalars['String']['input']>;
};


/** Mutation root */
export type MutationDeleteNavigatorResultPagesArgs = {
ids?: InputMaybe<Array<InputMaybe<Scalars['String']['input']>>>;
};


/** Mutation root */
export type MutationDeleteNotificationArgs = {
id?: InputMaybe<Scalars['String']['input']>;
Expand Down Expand Up @@ -3524,6 +3572,42 @@ export type MutationSaveMilestonesArgs = {
};


/** Mutation root */
export type MutationSaveNavigatorChoiceArgs = {
entity?: InputMaybe<NavigatorChoiceEntityInput>;
};


/** Mutation root */
export type MutationSaveNavigatorChoicesArgs = {
entities?: InputMaybe<Array<InputMaybe<NavigatorChoiceEntityInput>>>;
};


/** Mutation root */
export type MutationSaveNavigatorPageArgs = {
entity?: InputMaybe<NavigatorPageEntityInput>;
};


/** Mutation root */
export type MutationSaveNavigatorPagesArgs = {
entities?: InputMaybe<Array<InputMaybe<NavigatorPageEntityInput>>>;
};


/** Mutation root */
export type MutationSaveNavigatorResultPageArgs = {
entity?: InputMaybe<NavigatorResultLinkEntityInput>;
};


/** Mutation root */
export type MutationSaveNavigatorResultPagesArgs = {
entities?: InputMaybe<Array<InputMaybe<NavigatorResultLinkEntityInput>>>;
};


/** Mutation root */
export type MutationSaveNotificationArgs = {
entity?: InputMaybe<NotificationEntityInput>;
Expand Down Expand Up @@ -3973,6 +4057,135 @@ export type MutationVerifyAddressArgs = {
entity?: InputMaybe<AddressEntityInput>;
};

export type NavigatorChoiceEntity = {
__typename?: 'NavigatorChoiceEntity';
created?: Maybe<Scalars['OffsetDateTime']['output']>;
description?: Maybe<Scalars['String']['output']>;
id?: Maybe<Scalars['String']['output']>;
modified?: Maybe<Scalars['OffsetDateTime']['output']>;
name?: Maybe<Scalars['String']['output']>;
nextPage?: Maybe<NavigatorPageEntity>;
parent?: Maybe<NavigatorPageEntity>;
resultPage?: Maybe<NavigatorResultLinkEntity>;
slug?: Maybe<Scalars['String']['output']>;
translatables?: Maybe<Array<Maybe<NavigatorChoiceTranslatableEntity>>>;
};

export type NavigatorChoiceEntityInput = {
created?: InputMaybe<Scalars['OffsetDateTime']['input']>;
description?: InputMaybe<Scalars['String']['input']>;
id?: InputMaybe<Scalars['String']['input']>;
modified?: InputMaybe<Scalars['OffsetDateTime']['input']>;
name?: InputMaybe<Scalars['String']['input']>;
nextPage?: InputMaybe<NavigatorPageEntityInput>;
parent?: InputMaybe<NavigatorPageEntityInput>;
resultPage?: InputMaybe<NavigatorResultLinkEntityInput>;
slug?: InputMaybe<Scalars['String']['input']>;
translatables?: InputMaybe<Array<InputMaybe<NavigatorChoiceTranslatableEntityInput>>>;
};

export type NavigatorChoiceTranslatableEntity = {
__typename?: 'NavigatorChoiceTranslatableEntity';
created?: Maybe<Scalars['OffsetDateTime']['output']>;
description?: Maybe<Scalars['String']['output']>;
id?: Maybe<Scalars['String']['output']>;
language?: Maybe<LanguageEntity>;
modified?: Maybe<Scalars['OffsetDateTime']['output']>;
name?: Maybe<Scalars['String']['output']>;
};

export type NavigatorChoiceTranslatableEntityInput = {
created?: InputMaybe<Scalars['OffsetDateTime']['input']>;
description?: InputMaybe<Scalars['String']['input']>;
id?: InputMaybe<Scalars['String']['input']>;
modified?: InputMaybe<Scalars['OffsetDateTime']['input']>;
name?: InputMaybe<Scalars['String']['input']>;
};

export type NavigatorPageEntity = {
__typename?: 'NavigatorPageEntity';
additionalInformation?: Maybe<Scalars['String']['output']>;
choices?: Maybe<Array<Maybe<NavigatorChoiceEntity>>>;
created?: Maybe<Scalars['OffsetDateTime']['output']>;
id?: Maybe<Scalars['String']['output']>;
isResultPage?: Maybe<Scalars['Boolean']['output']>;
links?: Maybe<Array<Maybe<NavigatorResultLinkEntity>>>;
modified?: Maybe<Scalars['OffsetDateTime']['output']>;
parentChoices?: Maybe<Array<Maybe<NavigatorChoiceEntity>>>;
slug?: Maybe<Scalars['String']['output']>;
title?: Maybe<Scalars['String']['output']>;
translatables?: Maybe<Array<Maybe<NavigatorPageTranslatableEntity>>>;
};

export type NavigatorPageEntityInput = {
additionalInformation?: InputMaybe<Scalars['String']['input']>;
choices?: InputMaybe<Array<InputMaybe<NavigatorChoiceEntityInput>>>;
created?: InputMaybe<Scalars['OffsetDateTime']['input']>;
id?: InputMaybe<Scalars['String']['input']>;
isResultPage?: InputMaybe<Scalars['Boolean']['input']>;
links?: InputMaybe<Array<InputMaybe<NavigatorResultLinkEntityInput>>>;
modified?: InputMaybe<Scalars['OffsetDateTime']['input']>;
parentChoices?: InputMaybe<Array<InputMaybe<NavigatorChoiceEntityInput>>>;
slug?: InputMaybe<Scalars['String']['input']>;
title?: InputMaybe<Scalars['String']['input']>;
translatables?: InputMaybe<Array<InputMaybe<NavigatorPageTranslatableEntityInput>>>;
};

export type NavigatorPageTranslatableEntity = {
__typename?: 'NavigatorPageTranslatableEntity';
additionalInformation?: Maybe<Scalars['String']['output']>;
created?: Maybe<Scalars['OffsetDateTime']['output']>;
id?: Maybe<Scalars['String']['output']>;
language?: Maybe<LanguageEntity>;
modified?: Maybe<Scalars['OffsetDateTime']['output']>;
title?: Maybe<Scalars['String']['output']>;
};

export type NavigatorPageTranslatableEntityInput = {
additionalInformation?: InputMaybe<Scalars['String']['input']>;
created?: InputMaybe<Scalars['OffsetDateTime']['input']>;
id?: InputMaybe<Scalars['String']['input']>;
modified?: InputMaybe<Scalars['OffsetDateTime']['input']>;
title?: InputMaybe<Scalars['String']['input']>;
};

export type NavigatorResultLinkEntity = {
__typename?: 'NavigatorResultLinkEntity';
created?: Maybe<Scalars['OffsetDateTime']['output']>;
id?: Maybe<Scalars['String']['output']>;
modified?: Maybe<Scalars['OffsetDateTime']['output']>;
name?: Maybe<Scalars['String']['output']>;
parent?: Maybe<NavigatorPageEntity>;
translatables?: Maybe<Array<Maybe<NavigatorResultLinkTranslatableEntity>>>;
url?: Maybe<Scalars['String']['output']>;
};

export type NavigatorResultLinkEntityInput = {
created?: InputMaybe<Scalars['OffsetDateTime']['input']>;
id?: InputMaybe<Scalars['String']['input']>;
modified?: InputMaybe<Scalars['OffsetDateTime']['input']>;
name?: InputMaybe<Scalars['String']['input']>;
parent?: InputMaybe<NavigatorPageEntityInput>;
translatables?: InputMaybe<Array<InputMaybe<NavigatorResultLinkTranslatableEntityInput>>>;
url?: InputMaybe<Scalars['String']['input']>;
};

export type NavigatorResultLinkTranslatableEntity = {
__typename?: 'NavigatorResultLinkTranslatableEntity';
created?: Maybe<Scalars['OffsetDateTime']['output']>;
id?: Maybe<Scalars['String']['output']>;
language?: Maybe<LanguageEntity>;
modified?: Maybe<Scalars['OffsetDateTime']['output']>;
name?: Maybe<Scalars['String']['output']>;
};

export type NavigatorResultLinkTranslatableEntityInput = {
created?: InputMaybe<Scalars['OffsetDateTime']['input']>;
id?: InputMaybe<Scalars['String']['input']>;
modified?: InputMaybe<Scalars['OffsetDateTime']['input']>;
name?: InputMaybe<Scalars['String']['input']>;
};

export type NotificationEntity = {
__typename?: 'NotificationEntity';
created?: Maybe<Scalars['OffsetDateTime']['output']>;
Expand Down Expand Up @@ -4687,6 +4900,24 @@ export type PageableList_MilestoneMediaEntity = {
total: Scalars['Long']['output'];
};

export type PageableList_NavigatorChoiceEntity = {
__typename?: 'PageableList_NavigatorChoiceEntity';
result?: Maybe<Array<Maybe<NavigatorChoiceEntity>>>;
total: Scalars['Long']['output'];
};

export type PageableList_NavigatorPageEntity = {
__typename?: 'PageableList_NavigatorPageEntity';
result?: Maybe<Array<Maybe<NavigatorPageEntity>>>;
total: Scalars['Long']['output'];
};

export type PageableList_NavigatorResultLinkEntity = {
__typename?: 'PageableList_NavigatorResultLinkEntity';
result?: Maybe<Array<Maybe<NavigatorResultLinkEntity>>>;
total: Scalars['Long']['output'];
};

export type PageableList_NotificationEntity = {
__typename?: 'PageableList_NotificationEntity';
result?: Maybe<Array<Maybe<NotificationEntity>>>;
Expand Down Expand Up @@ -5065,6 +5296,13 @@ export type Query = {
getMilestoneMedia?: Maybe<PageableList_MilestoneMediaEntity>;
getMilestoneMedium?: Maybe<MilestoneMediaEntity>;
getMilestones?: Maybe<PageableList_MilestoneEntity>;
getNavigatorChoice?: Maybe<NavigatorChoiceEntity>;
getNavigatorChoices?: Maybe<PageableList_NavigatorChoiceEntity>;
getNavigatorPage?: Maybe<NavigatorPageEntity>;
getNavigatorPages?: Maybe<PageableList_NavigatorPageEntity>;
getNavigatorResultPage?: Maybe<NavigatorResultLinkEntity>;
getNavigatorResultPages?: Maybe<PageableList_NavigatorResultLinkEntity>;
getNavigatorStartPage?: Maybe<NavigatorPageEntity>;
getNotification?: Maybe<NotificationEntity>;
getNotifications?: Maybe<PageableList_NotificationEntity>;
getOrganisation?: Maybe<OrganisationEntity>;
Expand Down Expand Up @@ -5615,6 +5853,42 @@ export type QueryGetMilestonesArgs = {
};


/** Query root */
export type QueryGetNavigatorChoiceArgs = {
entity?: InputMaybe<NavigatorChoiceEntityInput>;
};


/** Query root */
export type QueryGetNavigatorChoicesArgs = {
params?: InputMaybe<FilterSortPaginateInput>;
};


/** Query root */
export type QueryGetNavigatorPageArgs = {
entity?: InputMaybe<NavigatorPageEntityInput>;
};


/** Query root */
export type QueryGetNavigatorPagesArgs = {
params?: InputMaybe<FilterSortPaginateInput>;
};


/** Query root */
export type QueryGetNavigatorResultPageArgs = {
entity?: InputMaybe<NavigatorResultLinkEntityInput>;
};


/** Query root */
export type QueryGetNavigatorResultPagesArgs = {
params?: InputMaybe<FilterSortPaginateInput>;
};


/** Query root */
export type QueryGetNotificationArgs = {
entity?: InputMaybe<NotificationEntityInput>;
Expand Down
1 change: 1 addition & 0 deletions src/app/core/constants/feature.constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ export const formsFeatureKey = 'forms';
export const guestArticlesFeatureKey = 'guestarticle';
export const mapFeatureKey = 'map';
export const mediaFeatureKey = 'media';
export const navigatorFeatureKey = 'navigator';
export const organisationsFeatureKey = 'organisations';
export const reportsFeatureKey = 'reports';
export const surveysFeatureKey = 'surveys';
Expand Down
3 changes: 2 additions & 1 deletion src/app/core/typings/privilege.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,5 @@ export type Privilege = 'addresses_admin'
| 'surveys_admin'
| 'surveys_manage'
| 'translator_admin'
| 'user_admin';
| 'user_admin'
| 'navigator_admin';
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ const routes: Routes = [
.then((imported) => imported.ArticleAdminDetailsLandingModule),
component: ArticleAdminDetailsLandingComponent
},
{
{
path: searchRoute,
loadChildren: () => import('./modules/search/article-admin-details-search.module')
.then((imported) => imported.ArticleAdminDetailsSearchModule),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ const components = [
ContestPortalDetailsCommentComponent,
ContestPortalDetailsSummaryComponent,
PortalContestDetailsMediaComponent

];

const framework = [
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
export const pageRoute = 'page';
export const choiceRoute = 'choice';
export const overviewRoute = 'overview';
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import { Component } from '@angular/core';

@Component({
selector: 'app-navigator-admin-form-choice',
templateUrl: './navigator-admin-form-choice.component.html',
styleUrls: ['./navigator-admin-form-choice.component.scss']
})
export class NavigatorAdminFormChoiceComponent {
}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export const navigatorAdminFormChoiceStateKey = 'navigatorAdminFormChoiceState';
Loading