Commit e6102d46 authored by Florent Poittevin's avatar Florent Poittevin
Browse files

Move store in specifics folders

parent 53b681b6
import {NgModule} from "@angular/core";
import {RouterModule, Routes} from "@angular/router";
import {AccessView} from "@app/access/views/access/access.view";
import {TRANSLATE} from "@app/shared/utils/translate.util";
import {TRANSLATE} from "@app/core/utils/translate.util";
const routes: Routes = [
{
......
import {NgModule} from "@angular/core";
import {AccessRoutingModule} from "@app/access/access-routing.module";
import {AccessState} from "@app/access/access.state";
import {AccessState} from "@app/access/stores/access.state";
import {AccessView} from "@app/access/views/access/access.view";
import {SharedModule} from "@app/shared/shared.module";
import {TranslateModule} from "@ngx-translate/core";
......
import {AccessChangeQueryParameters, AccessSearch, AccessSearchFail, AccessSearchSuccess} from "@app/access/access.action";
import {AccessChangeQueryParameters, AccessSearch, AccessSearchFail, AccessSearchSuccess} from "@app/access/stores/access.action";
import {ApiService} from "@app/core/http/api.service";
import {isNullOrUndefined} from "@app/core/tools/is/is.tool";
import {CrudStateModel} from "@app/shared/crud.state";
import {CrudStateModel} from "@app/core/stores/crud/crud.state";
import {AccessResourceApiEnum} from "@app/shared/enums/api.enum";
import {StateEnum} from "@app/shared/enums/state.enum";
import {ArchiveMetadataModel} from "@app/shared/models/business/archive-metadata.model";
import {CollectionTypedModel} from "@app/shared/models/collection-typed.model";
import {QueryParametersModel} from "@app/shared/models/query-parameters.model";
import {CrudHelperUtil} from "@app/shared/utils/crud-helper.util";
import {MapUtil} from "@app/shared/utils/map.util";
import {StringUtil} from "@app/shared/utils/string.util";
import {CrudHelperUtil} from "@app/core/utils/crud-helper.util";
import {MapUtil} from "@app/core/utils/map.util";
import {StringUtil} from "@app/core/utils/string.util";
import {Action, State, StateContext, Store} from "@ngxs/store";
import {Observable} from "rxjs";
import {tap} from "rxjs/internal/operators/tap";
......
import {ChangeDetectionStrategy, Component, OnInit} from "@angular/core";
import {AccessChangeQueryParameters, AccessSearch} from "@app/access/access.action";
import {AccessChangeQueryParameters, AccessSearch} from "@app/access/stores/access.action";
import {ArchiveModel} from "@app/access/models/archive.model";
import {isNotNullNorUndefined} from "@app/core/tools/is/is.tool";
import {DepositsModel, OrganizationalUnitsModel} from "@app/generated-api";
......@@ -10,9 +10,9 @@ import {ArchiveMetadataModel} from "@app/shared/models/business/archive-metadata
import {DataTableColumnsModel} from "@app/shared/models/data-table-columns.model";
import {QueryParametersModel} from "@app/shared/models/query-parameters.model";
import {StateModel} from "@app/shared/models/state.model";
import {OrgUnitAction} from "@app/shared/organizational-unit.action";
import {OrgUnitAction} from "@app/shared/stores/organizational-unit/organizational-unit.action";
import {MetadataUtil} from "@app/shared/utils/metadata.util";
import {TRANSLATE} from "@app/shared/utils/translate.util";
import {TRANSLATE} from "@app/core/utils/translate.util";
import {TranslateService} from "@ngx-translate/core";
import {Select, Store} from "@ngxs/store";
import {BehaviorSubject, combineLatest, Observable} from "rxjs";
......
......@@ -4,7 +4,7 @@ import {LoginComponent} from "@app/components/login/login.component";
import {PageNotFoundComponent} from "@app/components/page-not-found/page-not-found.component";
import {AppRoutesEnum} from "@app/shared/enums/routes.enum";
import {AuthGuardService} from "@app/core/guards/auth-guard.service";
import {TRANSLATE} from "@app/shared/utils/translate.util";
import {TRANSLATE} from "@app/core/utils/translate.util";
const routes: Routes = [
......
import {CrudAction} from "@app/shared/crud.action";
import {CrudNameSpace} from "@app/shared/crud.namespace";
import {CrudAction} from "@app/core/stores/crud/crud.action";
import {CrudNameSpace} from "@app/core/stores/crud.namespace";
export class CrudActionHelper {
static loadResource(crudNameSpace: CrudNameSpace, ...args: ConstructorParameters<typeof CrudAction.LoadResource>): CrudAction.LoadResource {
......
......@@ -5,7 +5,7 @@ import {CustomHttpUrlEncodingCodec} from "@app/generated-api/encoder";
import {ResourceApiEnum} from "@app/shared/enums/api.enum";
import {CollectionTypedModel} from "@app/shared/models/collection-typed.model";
import {QueryParametersModel} from "@app/shared/models/query-parameters.model";
import {QueryParametersUtil} from "@app/shared/utils/query-parameters.util";
import {QueryParametersUtil} from "@app/core/utils/query-parameters.util";
import {Observable} from "rxjs";
@Injectable({
......
import {CrudTwoTiersNameSpace} from "@app/shared/crud.namespace";
import {CrudTwoTiersNameSpace} from "@app/core/stores/crud.namespace";
import {CollectionTypedModel} from "@app/shared/models/collection-typed.model";
import {QueryParametersModel} from "@app/shared/models/query-parameters.model";
......
import {ApiService} from "@app/core/http/api.service";
import {NotificationService} from "@app/core/services/notification.service";
import {ResourceStateModel} from "@app/resource.state";
import {CrudTwoTiersAction} from "@app/shared/crud-two-tiers.action";
import {CrudTwoTiersNameSpace} from "@app/shared/crud.namespace";
import {CrudTwoTiersAction} from "@app/core/stores/crud-two-tiers/crud-two-tiers.action";
import {CrudTwoTiersNameSpace} from "@app/core/stores/crud.namespace";
import {RegisterCrudAction} from "@app/shared/decorators/crud.decorator";
import {ApiResourceNameEnum} from "@app/shared/enums/api-resource-name.enum";
import {ResourceApiEnum} from "@app/shared/enums/api.enum";
......@@ -11,9 +11,9 @@ import {StateEnum} from "@app/shared/enums/state.enum";
import {CollectionTypedModel} from "@app/shared/models/collection-typed.model";
import {QueryParametersModel} from "@app/shared/models/query-parameters.model";
import {SubResourceUpdateModel} from "@app/shared/models/sub-resource-update.model";
import {CrudHelperUtil} from "@app/shared/utils/crud-helper.util";
import {CrudTwoTiersActionHelper} from "@app/shared/utils/crud-two-tiers-action.helper";
import {CrudUtil} from "@app/shared/utils/crud.util";
import {CrudHelperUtil} from "@app/core/utils/crud-helper.util";
import {CrudTwoTiersActionHelper} from "@app/core/utils/crud-two-tiers-action.helper";
import {CrudUtil} from "@app/core/utils/crud.util";
import {StateContext, Store} from "@ngxs/store";
import _ from "lodash";
import {Observable} from "rxjs";
......
import {CrudNameSpace} from "@app/shared/crud.namespace";
import {CrudNameSpace} from "@app/core/stores/crud.namespace";
import {CollectionTypedModel} from "@app/shared/models/collection-typed.model";
import {QueryParametersModel} from "@app/shared/models/query-parameters.model";
......
import {ApiService} from "@app/core/http/api.service";
import {NotificationService} from "@app/core/services/notification.service";
import {ResourceStateModel} from "@app/resource.state";
import {CrudAction} from "@app/shared/crud.action";
import {CrudNameSpace} from "@app/shared/crud.namespace";
import {CrudAction} from "@app/core/stores/crud/crud.action";
import {CrudNameSpace} from "@app/core/stores/crud.namespace";
import {RegisterCrudAction} from "@app/shared/decorators/crud.decorator";
import {ResourceApiEnum} from "@app/shared/enums/api.enum";
import {ModelAttributeEnum} from "@app/shared/enums/model-attribute.enum";
import {StateEnum} from "@app/shared/enums/state.enum";
import {CollectionTypedModel} from "@app/shared/models/collection-typed.model";
import {QueryParametersModel} from "@app/shared/models/query-parameters.model";
import {CrudActionHelper} from "@app/shared/utils/crud-action.helper";
import {CrudHelperUtil} from "@app/shared/utils/crud-helper.util";
import {CrudRouteUtil} from "@app/shared/utils/crud-route.util";
import {CrudUtil} from "@app/shared/utils/crud.util";
import {TRANSLATE} from "@app/shared/utils/translate.util";
import {CrudActionHelper} from "@app/core/helpers/crud-action.helper";
import {CrudHelperUtil} from "@app/core/utils/crud-helper.util";
import {CrudRouteUtil} from "@app/core/utils/crud-route.util";
import {CrudUtil} from "@app/core/utils/crud.util";
import {TRANSLATE} from "@app/core/utils/translate.util";
import {Navigate} from "@ngxs/router-plugin";
import {StateContext, Store} from "@ngxs/store";
import {Observable} from "rxjs";
......
......@@ -2,7 +2,7 @@ import {Component} from "@angular/core";
import {DeleteDialog as DepositDeleteDialog} from "@app/deposit/dialogs/delete/delete.dialog";
import {DeleteDialog as OrgUnitDeleteDialog} from "@app/organizational-unit/dialogs/delete/delete.dialog";
import {StateEnum} from "@app/shared/enums/state.enum";
import {StringUtil} from "@app/shared/utils/string.util";
import {StringUtil} from "@app/core/utils/string.util";
export class CrudDialogUtil {
private static readonly messageNotFound: string = "There is no dialog declared for the state '{0}'.";
......
import {ResourceStateModel} from "@app/resource.state";
import {CrudStateModel} from "@app/shared/crud.state";
import {CrudStateModel} from "@app/core/stores/crud/crud.state";
import {CollectionTypedModel} from "@app/shared/models/collection-typed.model";
import {PagingModel} from "@app/shared/models/paging.model";
import {QueryParametersModel} from "@app/shared/models/query-parameters.model";
import {ObjectUtil} from "@app/shared/utils/object.util";
import {ObjectUtil} from "@app/core/utils/object.util";
import {StateContext} from "@ngxs/store";
export class CrudHelperUtil {
......
import {RoutesEnum} from "@app/shared/enums/routes.enum";
import {StateEnum} from "@app/shared/enums/state.enum";
import {StringUtil} from "@app/shared/utils/string.util";
import {StringUtil} from "@app/core/utils/string.util";
export class CrudRouteUtil {
private static readonly messageNotFound: string = "There is no route declared for the state '{0}'.";
......
import {CrudTwoTiersAction} from "@app/shared/crud-two-tiers.action";
import {CrudTwoTiersNameSpace} from "@app/shared/crud.namespace";
import {CrudTwoTiersAction} from "@app/core/stores/crud-two-tiers/crud-two-tiers.action";
import {CrudTwoTiersNameSpace} from "@app/core/stores/crud.namespace";
export class CrudTwoTiersActionHelper {
static getAllSubResource(crudTwoTiersNameSpace: CrudTwoTiersNameSpace, ...args: ConstructorParameters<typeof CrudTwoTiersAction.GetAllSubResource>): CrudTwoTiersAction.GetAllSubResource {
......
import {CrudActionClass} from "@app/shared/crud.namespace";
import {SolidifyMetadataUtil} from "@app/shared/utils/solidify-metadata.util";
import {CrudActionClass} from "@app/core/stores/crud.namespace";
import {SolidifyMetadataUtil} from "@app/core/utils/solidify-metadata.util";
import {ActionOptions, ensureStoreMetadata} from "@ngxs/store";
export class CrudUtil {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment