Commit 34e43ac0 authored by Florent Poittevin's avatar Florent Poittevin
Browse files

Rename local state enum file

parent 983ac9b7
......@@ -138,7 +138,7 @@ With solidify, we introduce a new convention of component :
You can use solidify schematics project to generate this types of component.
Please refer to the `README.md` of the project `DLCM-Solidify-Tools/solidify-schematics`.
You can use the command `npm run install-solidify-schematics` to install the `.tgz` file (the folder `DLCM-Solidify-Tools` should be a sibling folder of the current folder).
You can use the command `npm run install-solidify-schematics` to install the `.tgz` file (the folder `Solidify-Frontend` should be a sibling folder of the current folder).
As reminder, the shortcut to generate this new type of components are :
ng g @schematics/solidify:routable my-routable
......
......@@ -17,7 +17,7 @@
"e2e": "ng e2e",
"extract-translations": "ngx-translate-extract --input ./src --output ./src/assets/i18n/fr.json ./src/assets/i18n/en.json ./src/assets/i18n/de.json --clean --sort --format namespaced-json --marker TRANSLATE",
"generate-dlcm-api": "rm -fR src/app/generated-api && openapi-generator generate -Dmodels -DsupportingFiles -i ../DLCM-Backend/DLCM-Solution/target/classes/static/openapi/openapi-3.0.json -g typescript-angular -o src/app/generated-api --additional-properties=\"ngVersion=7.2.0,providedInRoot=true,modelSuffix=Model,modelFileSuffix=.model,fileNaming=kebab-case,prependFormOrBodyParameters=true,modelPropertyNaming=original\" --skip-validate-spec && clean-after-api-generation.sh",
"install-solidify-schematics": "npm i --no-save ../DLCM-Solidify-Tools/solidify-schematics/schematics-solidify-1.0.0.tgz",
"install-solidify-schematics": "npm i --no-save ../Solidify-Frontend/solidify-schematics/schematics-solidify-1.0.0.tgz",
"build:sourcemaps": "ng build --prod --sourceMap --base-href /",
"serve:prod": "http-server dist/DLCM-Frontend -o -a localhost -p 8000"
},
......
......@@ -14,7 +14,7 @@ import {Observable} from "rxjs";
import {tap} from "rxjs/internal/operators/tap";
import {OAuth2Service} from "solidify-frontend";
import {environment} from "../environments/environment";
import {LocalStateEnum} from "./shared/enums/localStateEnum";
import {LocalStateEnum} from "./shared/enums/local-state.enum";
@Component({
selector: "dlcm-root",
......
......@@ -4,7 +4,7 @@ import {UploadFileStatus} from "@app/features/deposit/models/upload-file-status.
import {DepositDataFileAction} from "@app/features/deposit/stores/data-file/deposit-data-file.action";
import {DepositAction} from "@app/features/deposit/stores/deposit.action";
import {SharedAbstractContainer} from "@app/shared/components/containers/shared-abstract/shared-abstract.container";
import {LocalStateEnum} from "../../../../../shared/enums/localStateEnum";
import {LocalStateEnum} from "../../../../../shared/enums/local-state.enum";
import {LocalStateModel} from "@app/shared/models/localStateModel";
import {Select, Store} from "@ngxs/store";
import {Observable} from "rxjs";
......
......@@ -4,7 +4,7 @@ import {depositActionNameSpace} from "@app/features/deposit/stores/deposit.actio
import {DepositStateModel} from "@app/features/deposit/stores/deposit.state";
import {DepositsModel} from "@app/generated-api";
import {SharedAbstractDeleteDialog} from "@app/shared/components/dialogs/shared-abstract-delete/shared-abstract-delete.dialog";
import {LocalStateEnum} from "../../../../../shared/enums/localStateEnum";
import {LocalStateEnum} from "../../../../../shared/enums/local-state.enum";
import {DeleteDialog} from "@app/shared/models/delete-dialog.model";
import {Store} from "@ngxs/store";
import {TRANSLATE} from "solidify-frontend";
......
......@@ -3,7 +3,7 @@ import {depositActionNameSpace} from "@app/features/deposit/stores/deposit.actio
import {DepositStateModel} from "@app/features/deposit/stores/deposit.state";
import {DepositsModel, LanguagesModel, LicensesModel, PreservationPoliciesModel, SubmissionPoliciesModel} from "@app/generated-api";
import {OrganizationalUnitModule} from "@app/features/organizational-unit/organizational-unit.module";
import {LocalStateEnum} from "../../../../../shared/enums/localStateEnum";
import {LocalStateEnum} from "../../../../../shared/enums/local-state.enum";
import {LocalStateModel} from "@app/shared/models/localStateModel";
import {OrgUnitAction} from "@app/shared/stores/organizational-unit/organizational-unit.action";
import {SharedAbstractCreateRoutable} from "@app/shared/components/routables/shared-abstract-create/shared-abstract-create.routable";
......
......@@ -7,7 +7,7 @@ import {depositActionNameSpace} from "@app/features/deposit/stores/deposit.actio
import {DepositStateModel} from "@app/features/deposit/stores/deposit.state";
import {DepositsModel, LanguagesModel, LicensesModel, PreservationPoliciesModel, SubmissionPoliciesModel} from "@app/generated-api";
import {OrganizationalUnitModule} from "@app/features/organizational-unit/organizational-unit.module";
import {LocalStateEnum} from "../../../../../shared/enums/localStateEnum";
import {LocalStateEnum} from "../../../../../shared/enums/local-state.enum";
import {LocalStateModel} from "@app/shared/models/localStateModel";
import {OrgUnitAction} from "@app/shared/stores/organizational-unit/organizational-unit.action";
import {SharedAbstractDetailRoutable} from "@app/shared/components/routables/shared-abstract-detail/shared-abstract-detail.routable";
......
......@@ -5,7 +5,7 @@ import {depositActionNameSpace} from "@app/features/deposit/stores/deposit.actio
import {DepositStateModel} from "@app/features/deposit/stores/deposit.state";
import {DepositsModel, LanguagesModel, LicensesModel, PreservationPoliciesModel, SubmissionPoliciesModel} from "@app/generated-api";
import {OrganizationalUnitModule} from "@app/features/organizational-unit/organizational-unit.module";
import {LocalStateEnum} from "../../../../../shared/enums/localStateEnum";
import {LocalStateEnum} from "../../../../../shared/enums/local-state.enum";
import {LocalStateModel} from "@app/shared/models/localStateModel";
import {OrgUnitAction} from "@app/shared/stores/organizational-unit/organizational-unit.action";
import {SharedAbstractEditRoutable} from "@app/shared/components/routables/shared-abstract-edit/shared-abstract-edit.routable";
......
......@@ -4,7 +4,7 @@ import {DepositStateModel} from "@app/features/deposit/stores/deposit.state";
import {DepositsModel} from "@app/generated-api";
import {SharedAbstractListRoutable} from "@app/shared/components/routables/shared-abstract-list/shared-abstract-list.routable";
import {FieldTypeEnum} from "@app/shared/enums/field-type.enum";
import {LocalStateEnum} from "../../../../../shared/enums/localStateEnum";
import {LocalStateEnum} from "../../../../../shared/enums/local-state.enum";
import {TranslateService} from "@ngx-translate/core";
import {Store} from "@ngxs/store";
import {TRANSLATE} from "solidify-frontend";
......
import {DepositDataFile} from "@app/features/deposit/models/deposit-data-file.model";
import {SubmissionPoliciesModel} from "@app/generated-api";
import {LocalStateEnum} from "../../../../shared/enums/localStateEnum";
import {CompositionAction, TypeDefaultAction, CompositionNameSpace} from "solidify-frontend";
import {CompositionAction, CompositionNameSpace, TypeDefaultAction} from "solidify-frontend";
import {LocalStateEnum} from "../../../../shared/enums/local-state.enum";
const state = LocalStateEnum.deposit_dataFile;
......@@ -11,7 +10,7 @@ export namespace DepositDataFileAction {
}
@TypeDefaultAction(state)
export class GetAllSuccess extends CompositionAction.GetAllSuccess<SubmissionPoliciesModel> {
export class GetAllSuccess extends CompositionAction.GetAllSuccess<DepositDataFile> {
}
@TypeDefaultAction(state)
......
......@@ -3,7 +3,7 @@ import {DepositDataFileAction, depositDataFileActionNameSpace} from "@app/featur
import {ApiActionEnum} from "@app/shared/enums/api-action.enum";
import {ApiResourceNameEnum} from "@app/shared/enums/api-resource-name.enum";
import {PreIngestResourceApiEnum} from "@app/shared/enums/api.enum";
import {LocalStateEnum} from "../../../../shared/enums/localStateEnum";
import {LocalStateEnum} from "../../../../shared/enums/local-state.enum";
import {Action, State, StateContext, Store} from "@ngxs/store";
import {Observable} from "rxjs";
import {tap} from "rxjs/internal/operators/tap";
......
import {DepositsModel} from "@app/generated-api";
import {LocalStateEnum} from "../../../shared/enums/localStateEnum";
import {LocalStateEnum} from "../../../shared/enums/local-state.enum";
import {TypeDefaultAction, ResourceAction, ResourceNameSpace} from "solidify-frontend";
const state = LocalStateEnum.deposit;
......
......@@ -25,7 +25,7 @@ import {
ResourceStateModel,
NotificationService,
} from "solidify-frontend";
import {LocalStateEnum} from "../../../shared/enums/localStateEnum";
import {LocalStateEnum} from "../../../shared/enums/local-state.enum";
export interface DepositStateModel extends ResourceStateModel<DepositsModel> {
[LocalStateEnum.deposit_dataFile]: DepositDataFileStateModel;
......
......@@ -5,7 +5,7 @@ import {AccessChangeQueryParameters, AccessSearch, ChangeSearchScope} from "@app
import {DepositsModel, OrganizationalUnitsModel} from "@app/generated-api";
import {SharedAbstractPresentational} from "@app/shared/components/presentationals/shared-abstract/shared-abstract.presentational";
import {FieldTypeEnum} from "@app/shared/enums/field-type.enum";
import {LocalStateEnum} from "../../../../../shared/enums/localStateEnum";
import {LocalStateEnum} from "../../../../../shared/enums/local-state.enum";
import {ArchiveMetadata} from "@app/shared/models/business/archive-metadata.model";
import {DataTableColumns} from "@app/shared/models/data-table-columns.model";
import {LocalStateModel} from "@app/shared/models/localStateModel";
......
......@@ -7,7 +7,7 @@ import {
ChangeSearchScope,
} from "@app/features/home/stores/home.action";
import {AccessResourceApiEnum} from "@app/shared/enums/api.enum";
import {LocalStateEnum} from "../../../shared/enums/localStateEnum";
import {LocalStateEnum} from "../../../shared/enums/local-state.enum";
import {ArchiveMetadata} from "@app/shared/models/business/archive-metadata.model";
import {AppStateModel} from "@app/stores/app.state";
import {Action, State, StateContext, Store} from "@ngxs/store";
......
......@@ -2,7 +2,7 @@ import {ChangeDetectionStrategy, Component, Inject} from "@angular/core";
import {MAT_DIALOG_DATA, MatDialogRef} from "@angular/material";
import {OrganizationalUnitsModel} from "@app/generated-api";
import {SharedAbstractDeleteDialog} from "@app/shared/components/dialogs/shared-abstract-delete/shared-abstract-delete.dialog";
import {LocalStateEnum} from "../../../../../shared/enums/localStateEnum";
import {LocalStateEnum} from "../../../../../shared/enums/local-state.enum";
import {DeleteDialog} from "@app/shared/models/delete-dialog.model";
import {orgUnitActionNameSpace} from "@app/shared/stores/organizational-unit/organizational-unit.action";
import {OrganizationalUnitStateModel} from "@app/shared/stores/organizational-unit/organizational-unit.state";
......
import {ChangeDetectionStrategy, Component, OnInit} from "@angular/core";
import {OrganizationalUnitsModel, PreservationPoliciesModel, SubmissionPoliciesModel} from "@app/generated-api";
import {LocalStateEnum} from "../../../../../shared/enums/localStateEnum";
import {LocalStateEnum} from "../../../../../shared/enums/local-state.enum";
import {LocalStateModel} from "@app/shared/models/localStateModel";
import {orgUnitActionNameSpace} from "@app/shared/stores/organizational-unit/organizational-unit.action";
import {OrganizationalUnitStateModel} from "@app/shared/stores/organizational-unit/organizational-unit.state";
......
......@@ -2,7 +2,7 @@ import {ChangeDetectionStrategy, Component} from "@angular/core";
import {MatDialog} from "@angular/material";
import {ActivatedRoute} from "@angular/router";
import {OrganizationalUnitsModel, PreservationPoliciesModel, SubmissionPoliciesModel} from "@app/generated-api";
import {LocalStateEnum} from "../../../../../shared/enums/localStateEnum";
import {LocalStateEnum} from "../../../../../shared/enums/local-state.enum";
import {LocalStateModel} from "@app/shared/models/localStateModel";
import {OrgUnitSubmissionPolicyAction} from "@app/shared/stores/organizational-unit/submission-policy/organizational-unit-submission-policy.action";
import {orgUnitActionNameSpace} from "@app/shared/stores/organizational-unit/organizational-unit.action";
......
......@@ -2,7 +2,7 @@ import {ChangeDetectionStrategy, Component, OnInit} from "@angular/core";
import {ActivatedRoute} from "@angular/router";
import {OrganizationalUnitsModel, PreservationPoliciesModel, SubmissionPoliciesModel} from "@app/generated-api";
import {SharedAbstractEditRoutable} from "@app/shared/components/routables/shared-abstract-edit/shared-abstract-edit.routable";
import {LocalStateEnum} from "../../../../../shared/enums/localStateEnum";
import {LocalStateEnum} from "../../../../../shared/enums/local-state.enum";
import {LocalStateModel} from "@app/shared/models/localStateModel";
import {orgUnitActionNameSpace} from "@app/shared/stores/organizational-unit/organizational-unit.action";
import {OrganizationalUnitStateModel} from "@app/shared/stores/organizational-unit/organizational-unit.state";
......
......@@ -6,7 +6,7 @@ import {orgUnitActionNameSpace} from "@app/shared/stores/organizational-unit/org
import {OrganizationalUnitStateModel} from "@app/shared/stores/organizational-unit/organizational-unit.state";
import {Store} from "@ngxs/store";
import {TRANSLATE} from "solidify-frontend";
import {LocalStateEnum} from "../../../../../shared/enums/localStateEnum";
import {LocalStateEnum} from "../../../../../shared/enums/local-state.enum";
@Component({
selector: "dlcm-orgunit-list-routable",
......
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