Commit 3b8d2507 authored by Florent POITTEVIN's avatar Florent POITTEVIN
Browse files

chore: [DLCM-1876] update third party librairies

parent 2105c1f9
/*
👋 Hi! This file was autogenerated by tslint-to-eslint-config.
https://github.com/typescript-eslint/tslint-to-eslint-config
It represents the closest reasonable ESLint configuration to this
project's original TSLint configuration.
We recommend eventually switching this configuration to extend from
the recommended rulesets in typescript-eslint.
https://github.com/typescript-eslint/tslint-to-eslint-config/blob/master/docs/FAQs.md
Happy linting! 💖
*/
module.exports = {
"env": {
"browser": true,
"node": true
},
"parser": "@typescript-eslint/parser",
"parserOptions": {
"project": "tsconfig.json",
"sourceType": "module"
},
"plugins": [
"@angular-eslint/eslint-plugin",
"eslint-plugin-import",
"eslint-plugin-jsdoc",
"@typescript-eslint",
"@typescript-eslint/tslint"
],
"rules": {
"@angular-eslint/component-class-suffix": [
"error",
{
"suffixes": [
"AppComponent",
"Routable",
"Presentational",
"Container",
"Dialog",
"Form"
]
}
],
"@angular-eslint/component-selector": [
"error",
{
"type": "element",
"prefix": "",
"style": "kebab-case"
}
],
"@angular-eslint/directive-class-suffix": "off",
"@angular-eslint/directive-selector": [
"error",
{
"type": "attribute",
"prefix": "",
"style": "camelCase"
}
],
"@angular-eslint/no-host-metadata-property": "error",
"@angular-eslint/no-input-rename": "off",
"@angular-eslint/no-inputs-metadata-property": "error",
"@angular-eslint/no-output-on-prefix": "off",
"@angular-eslint/no-output-rename": "off",
"@angular-eslint/no-outputs-metadata-property": "error",
"@angular-eslint/use-pipe-transform-interface": "error",
"@typescript-eslint/array-type": [
"error",
{
"default": "array"
}
],
"@typescript-eslint/consistent-type-definitions": "error",
"@typescript-eslint/dot-notation": "off",
"@typescript-eslint/explicit-member-accessibility": [
"off",
{
"accessibility": "explicit"
}
],
"@typescript-eslint/indent": [
"error",
4,
{
"FunctionDeclaration": {
"parameters": "first"
},
"FunctionExpression": {
"parameters": "first"
}
}
],
"@typescript-eslint/member-delimiter-style": [
"error",
{
"multiline": {
"delimiter": "none",
"requireLast": true
},
"singleline": {
"delimiter": "semi",
"requireLast": false
}
}
],
"@typescript-eslint/member-ordering": "off",
"@typescript-eslint/naming-convention": "error",
"@typescript-eslint/no-empty-function": "off",
"@typescript-eslint/no-empty-interface": "off",
"@typescript-eslint/no-inferrable-types": [
"off",
{
"ignoreParameters": true
}
],
"@typescript-eslint/no-misused-new": "error",
"@typescript-eslint/no-non-null-assertion": "error",
"@typescript-eslint/no-shadow": [
"error",
{
"hoist": "all"
}
],
"@typescript-eslint/no-unused-expressions": "error",
"@typescript-eslint/no-use-before-define": "off",
"@typescript-eslint/prefer-function-type": "error",
"@typescript-eslint/prefer-namespace-keyword": "error",
"@typescript-eslint/quotes": [
"error",
"double"
],
"@typescript-eslint/semi": [
"error",
null
],
"@typescript-eslint/type-annotation-spacing": "error",
"@typescript-eslint/unified-signatures": "error",
"arrow-body-style": [
"error",
"always"
],
"brace-style": [
"error",
"1tbs"
],
"comma-dangle": "error",
"complexity": [
"error",
{
"max": 200
}
],
"constructor-super": "error",
"curly": "error",
"dot-notation": "off",
"eol-last": "error",
"eqeqeq": [
"error",
"smart"
],
"guard-for-in": "error",
"id-denylist": [
"error",
"any",
"Number",
"number",
"String",
"string",
"Boolean",
"boolean",
"Undefined",
"undefined"
],
"id-match": "error",
"import/no-deprecated": "off",
"indent": "error",
"jsdoc/no-types": "off",
"max-len": "off",
"no-bitwise": "error",
"no-caller": "error",
"no-console": [
"error",
{
"allow": [
"warn",
"dir",
"timeLog",
"assert",
"clear",
"count",
"countReset",
"group",
"groupEnd",
"table",
"dirxml",
"error",
"groupCollapsed",
"Console",
"profile",
"profileEnd",
"timeStamp",
"context"
]
}
],
"no-debugger": "error",
"no-empty": "off",
"no-empty-function": "off",
"no-eval": "error",
"no-fallthrough": "error",
"no-new-wrappers": "error",
"no-redeclare": "error",
"no-restricted-imports": [
"error",
"rxjs/Rx",
"@app/generated-api"
],
"no-shadow": "error",
"no-throw-literal": "error",
"no-trailing-spaces": "error",
"no-undef-init": "off",
"no-underscore-dangle": "error",
"no-unused-expressions": "error",
"no-unused-labels": "error",
"no-use-before-define": "off",
"no-var": "error",
"prefer-const": "error",
"quotes": "error",
"radix": "error",
"semi": "error",
"use-isnan": "error",
"@typescript-eslint/tslint/config": [
"error",
{
"rules": {
"ban": [
true,
[
"fdescribe"
],
[
"fit"
],
[
"describe",
"only"
],
[
"it",
"only"
]
],
"no-mergeable-namespace": true,
"typedef": [
true,
"call-signature",
"parameter",
"property-declaration",
"member-variable-declaration"
],
"use-life-cycle-interface": true,
"whitespace": [
true,
"check-branch",
"check-decl",
"check-operator",
"check-separator",
"check-type"
]
}
}
]
}
};
{
"$schema": "node_modules/@openapitools/openapi-generator-cli/config.schema.json",
"spaces": 2,
"generator-cli": {
"version": "5.2.1"
}
}
This diff is collapsed.
......@@ -38,7 +38,7 @@
"extract-translations:csv-to-json": "ngx-translate-extract-csv -r -i ./src/assets/i18n/translate.csv -o ./src/assets/i18n -s ;",
"extract-translations:json-to-csv": "ngx-translate-extract-csv -l fr,en,de -i ./src/assets/i18n -o ./src/assets/i18n/translate.csv -s ;",
"generate-version": "ts-node --project tsconfig-ts-node.json git.version.ts",
"generate-models": "(rm src/app/generated-api -fr || echo generated-api directory is absent) && set env JAVA_OPTS='-Dmodels -DsupportingFiles' && openapi-generator generate -i src/assets/openapi/DLCM-APIs.json -g typescript-angular -o src/app/generated-api --additional-properties=\"ngVersion=7.2.0,providedInRoot=true,modelSuffix=,modelFileSuffix=.partial.model,fileNaming=kebab-case,prependFormOrBodyParameters=true,modelPropertyNaming=original\" --skip-validate-spec && npm run clean-after-models-generation",
"generate-models": "(rm src/app/generated-api -fr || echo generated-api directory is absent) && set env JAVA_OPTS='-Dmodels -DsupportingFiles' && openapi-generator-cli generate -i src/assets/openapi/DLCM-APIs.json -g typescript-angular -o src/app/generated-api --additional-properties=\"ngVersion=7.2.0,providedInRoot=true,modelSuffix=,modelFileSuffix=.partial.model,fileNaming=kebab-case,prependFormOrBodyParameters=true,modelPropertyNaming=original,enumPropertyNaming=UPPERCASE\" --skip-validate-spec && npm run clean-after-models-generation",
"clean-after-models-generation": "cd src/app/generated-api && rm -fr .openapi-generator .gitignore .openapi-generator-ignore git_push.sh api api.module.ts configuration.ts encoder.ts index.ts variables.ts README.md && cp ../../assets/files-to-copy/README-open-api-txt-to-copy.txt README.txt",
"build:sourcemaps": "node --max_old_space_size=8192 node_modules/@angular/cli/bin/ng build --sourceMap --base-href /",
"build:sourcemaps-prod": "npm run build:sourcemaps -- --configuration production",
......@@ -49,24 +49,24 @@
"build-solidify": "rm -rf ./node_modules/Solidify-Frontend && cd ../Solidify-Frontend && npm run build && cp -fr dist/solidify-frontend ../DLCM-Portal/node_modules"
},
"dependencies": {
"@angular/animations": "12.2.6",
"@angular/animations": "12.2.7",
"@angular/cdk": "12.2.6",
"@angular/common": "12.2.6",
"@angular/compiler": "12.2.6",
"@angular/core": "12.2.6",
"@angular/forms": "12.2.6",
"@angular/common": "12.2.7",
"@angular/compiler": "12.2.7",
"@angular/core": "12.2.7",
"@angular/forms": "12.2.7",
"@angular/material": "12.2.6",
"@angular/material-moment-adapter": "12.2.6",
"@angular/platform-browser": "12.2.6",
"@angular/platform-browser-dynamic": "12.2.6",
"@angular/router": "12.2.6",
"@angular/service-worker": "12.2.6",
"@angular/platform-browser": "12.2.7",
"@angular/platform-browser-dynamic": "12.2.7",
"@angular/router": "12.2.7",
"@angular/service-worker": "12.2.7",
"@fortawesome/angular-fontawesome": "0.9.0",
"@fortawesome/fontawesome-svg-core": "1.2.36",
"@fortawesome/free-solid-svg-icons": "5.15.4",
"@ngx-formly/core": "5.9.3",
"@ngx-formly/material": "5.9.3",
"@ngx-formly/schematics": "5.9.3",
"@ngx-formly/core": "5.10.23",
"@ngx-formly/material": "5.10.23",
"@ngx-formly/schematics": "5.10.23",
"@ngx-translate/core": "13.0.0",
"@ngx-translate/http-loader": "6.0.0",
"@ngxs/logger-plugin": "3.7.2",
......@@ -74,55 +74,58 @@
"@ngxs/store": "3.7.2",
"backoff-rxjs": "6.5.7",
"blobjs": "1.1.1",
"change-case": "4.1.1",
"core-js": "3.6.5",
"decimal.js": "10.2.0",
"file-saver": "2.0.2",
"highlight.js": "10.1.2",
"http-status-codes": "1.4.0",
"iso3166-2-db": "2.3.6",
"change-case": "4.1.2",
"core-js": "3.18.0",
"decimal.js": "10.3.1",
"file-saver": "2.0.5",
"highlight.js": "11.2.0",
"http-status-codes": "2.1.4",
"iso3166-2-db": "2.3.8",
"jsme": "2017.2.26",
"jsmol": "1.1.0",
"material-design-icons": "3.0.1",
"moment": "2.27.0",
"ng2-pdf-viewer": "6.3.2",
"ngx-cookie": "5.0.0",
"ngx-doc-viewer": "1.2.3",
"ngx-highlightjs": "4.1.1",
"ngx-image-cropper": "3.2.1",
"moment": "2.29.1",
"ng2-pdf-viewer": "7.0.1",
"ngx-cookie": "5.0.2",
"ngx-doc-viewer": "2.0.4",
"ngx-highlightjs": "5.0.0",
"ngx-image-cropper": "4.0.1",
"ngx-ui-tour-core": "7.0.1",
"ngx-ui-tour-md-menu": "7.0.1",
"ngx-xml2json": "1.0.2",
"normalize.css": "8.0.1",
"patch-package": "6.2.2",
"rxjs": "6.6.0",
"solidify-frontend": "2.0.0",
"streamsaver": "2.0.4",
"sync-pom-version-to-package": "1.5.0",
"ts-key-enum": "2.0.3",
"patch-package": "6.4.7",
"rxjs": "7.3.0",
"solidify-frontend": "2.0.1",
"streamsaver": "2.0.5",
"sync-pom-version-to-package": "1.6.1",
"ts-key-enum": "2.0.7",
"tslib": "2.3.1",
"videojs-wavesurfer": "3.2.0",
"wavesurfer.js": "4.0.1",
"web-streams-polyfill": "3.0.0",
"videojs-wavesurfer": "3.8.0",
"wavesurfer.js": "5.2.0",
"web-streams-polyfill": "3.1.1",
"zone.js": "0.11.4"
},
"devDependencies": {
"@angular-devkit/build-angular": "12.1.4",
"@angular/cli": "12.2.6",
"@angular/compiler-cli": "12.2.6",
"@angular/language-service": "12.2.6",
"@angular/cli": "12.2.7",
"@angular/compiler-cli": "12.2.7",
"@angular/language-service": "12.2.7",
"@biesbjerg/ngx-translate-extract": "3.0.2",
"@cypress/webpack-preprocessor": "5.4.2",
"@cypress/webpack-preprocessor": "5.9.1",
"@ngxs/devtools-plugin": "3.7.2",
"@openapitools/openapi-generator-cli": "cli-4.3.1",
"@openapitools/openapi-generator-cli": "2.4.4",
"@types/jasmine": "3.9.1",
"@types/jasminewd2": "2.0.8",
"@types/node": "14.0.26",
"codelyzer": "6.0.0",
"concurrently": "5.2.0",
"cypress": "4.11.0",
"cypress-file-upload": "4.0.7",
"jasmine-core": "3.6.0",
"@types/jasminewd2": "2.0.10",
"@types/node": "16.9.6",
"@typescript-eslint/eslint-plugin": "4.31.2",
"@typescript-eslint/parser": "4.31.2",
"codelyzer": "6.0.2",
"concurrently": "6.2.1",
"cypress": "8.4.1",
"cypress-file-upload": "5.0.8",
"eslint": "7.32.0",
"jasmine-core": "3.9.0",
"jasmine-spec-reporter": "7.0.0",
"karma": "6.3.4",
"karma-chrome-launcher": "3.1.0",
......@@ -130,13 +133,13 @@
"karma-jasmine": "4.0.1",
"karma-jasmine-html-reporter": "1.7.0",
"karma-junit-reporter": "2.0.1",
"local-web-server": "4.2.1",
"local-web-server": "5.1.1",
"ngx-translate-extract-csv": "1.1.1",
"protractor": "7.0.0",
"ts-loader": "8.0.1",
"ts-node": "8.10.2",
"tslint": "6.1.2",
"ts-loader": "9.2.6",
"ts-node": "10.2.1",
"tslint": "6.1.3",
"typescript": "4.3.5",
"webpack": "4.44.0"
"webpack": "5.53.0"
}
}
......@@ -508,12 +508,12 @@ export namespace Enums {
export const StatusEnum = DepositPartial.StatusEnum;
export const StatusEnumTranslate: StatusModel[] = [
{
key: StatusEnum.INPROGRESS,
key: StatusEnum.IN_PROGRESS,
value: MARK_AS_TRANSLATABLE("IN_PROGRESS"),
backgroundColorHexa: ColorHexaEnum.orange,
},
{
key: StatusEnum.INVALIDATION,
key: StatusEnum.IN_VALIDATION,
value: MARK_AS_TRANSLATABLE("IN_VALIDATION"),
backgroundColorHexa: ColorHexaEnum.blue,
},
......@@ -522,7 +522,7 @@ export namespace Enums {
value: MARK_AS_TRANSLATABLE("REJECTED"),
},
{
key: StatusEnum.INERROR,
key: StatusEnum.IN_ERROR,
value: MARK_AS_TRANSLATABLE("IN_ERROR"),
backgroundColorHexa: ColorHexaEnum.red,
},
......@@ -648,19 +648,19 @@ export namespace Enums {
export const OdConformanceEnum = LicensePartial.OdConformanceEnum;
export const OdConformanceEnumTranslate: KeyValue[] = [
{
key: License.OdConformanceEnum.Empty,
key: License.OdConformanceEnum.EMPTY,
value: StringUtil.stringEmpty,
},
{
key: License.OdConformanceEnum.Approved,
key: License.OdConformanceEnum.APPROVED,
value: MARK_AS_TRANSLATABLE("enum.license.odConformance.approved"),
},
{
key: License.OdConformanceEnum.NotReviewed,
key: License.OdConformanceEnum.NOT_REVIEWED,
value: MARK_AS_TRANSLATABLE("enum.license.odConformance.notReviewed"),
},
{
key: License.OdConformanceEnum.Rejected,
key: License.OdConformanceEnum.REJECTED,
value: MARK_AS_TRANSLATABLE("enum.license.odConformance.rejected"),
},
];
......@@ -668,19 +668,19 @@ export namespace Enums {
export const OsdConformanceEnum = LicensePartial.OsdConformanceEnum;
export const OsdConformanceEnumTranslate: KeyValue[] = [
{
key: License.OsdConformanceEnum.Empty,
key: License.OsdConformanceEnum.EMPTY,
value: StringUtil.stringEmpty,
},
{
key: License.OsdConformanceEnum.Approved,
key: License.OsdConformanceEnum.APPROVED,
value: MARK_AS_TRANSLATABLE("enum.license.osdConformance.approved"),
},
{
key: License.OsdConformanceEnum.NotReviewed,
key: License.OsdConformanceEnum.NOT_REVIEWED,
value: MARK_AS_TRANSLATABLE("enum.license.osdConformance.notReviewed"),
},
{
key: License.OsdConformanceEnum.Rejected,
key: License.OsdConformanceEnum.REJECTED,
value: MARK_AS_TRANSLATABLE("enum.license.osdConformance.rejected"),
},
];
......@@ -688,15 +688,15 @@ export namespace Enums {
export const StatusEnum = LicensePartial.StatusEnum;
export const StatusEnumTranslate: KeyValue[] = [
{
key: License.StatusEnum.Active,
key: License.StatusEnum.ACTIVE,
value: MARK_AS_TRANSLATABLE("enum.license.status.active"),
},
{
key: License.StatusEnum.Superseded,
key: License.StatusEnum.SUPERSEDED,
value: MARK_AS_TRANSLATABLE("enum.license.status.superseded"),
},
{
key: License.StatusEnum.Retired,
key: License.StatusEnum.RETIRED,
value: MARK_AS_TRANSLATABLE("enum.license.status.retired"),
},
];
......@@ -707,7 +707,7 @@ export namespace Enums {
export const MetadataFormatEnum = MetadataTypePartial.MetadataFormatEnum;
export const MetadataFormatEnumTranslate: KeyValue[] = [
{
key: MetadataType.MetadataFormatEnum.SCHEMALESS,
key: MetadataType.MetadataFormatEnum.SCHEMA_LESS,
value: MARK_AS_TRANSLATABLE("enum.metadataFormatEnum.schemaless"),
},
{
......@@ -889,12 +889,12 @@ export namespace Enums {
export const StatusEnum = OrderPartial.StatusEnum;
export const StatusEnumTranslate: StatusModel[] = [
{
key: StatusEnum.INERROR,
key: StatusEnum.IN_ERROR,
value: MARK_AS_TRANSLATABLE("order.enum.status.inError"),
backgroundColorHexa: ColorHexaEnum.red,
},
{
key: StatusEnum.INPREPARATION,
key: StatusEnum.IN_PREPARATION,
value: MARK_AS_TRANSLATABLE("order.enum.status.inPreparation"),
},
{
......@@ -906,7 +906,7 @@ export namespace Enums {
value: MARK_AS_TRANSLATABLE("order.enum.status.submitted"),
},
{
key: StatusEnum.INPROGRESS,
key: StatusEnum.IN_PROGRESS,
value: MARK_AS_TRANSLATABLE("order.enum.status.inProgress"),
},
{
......@@ -919,7 +919,7 @@ export namespace Enums {
value: MARK_AS_TRANSLATABLE("order.enum.status.completed"),
},
{
key: StatusEnum.INDISSEMINATIONPREPARATION,
key: StatusEnum.IN_DISSEMINATION_PREPARATION,
value: MARK_AS_TRANSLATABLE("order.enum.status.inDisseminationPreparation"),
},
];
......@@ -1107,7 +1107,7 @@ export namespace Enums {
export const TypeEnum = PreservationJobPartial.JobTypeEnum;
export const TypeEnumTranslate: KeyValue[] = [
{
key: TypeEnum.CLEANSUBMISSION,
key: TypeEnum.CLEAN_SUBMISSION,
value: MARK_AS_TRANSLATABLE("preservation.job.jobTypeEnum.cleanSubmission"),
},
{
......@@ -1119,11 +1119,11 @@ export namespace Enums {
value: MARK_AS_TRANSLATABLE("preservation.job.jobTypeEnum.migration"),
},
{
key: TypeEnum.PURGESUBMISSIONTEMPFILES,
key: TypeEnum.PURGE_SUBMISSION_TEMP_FILES,
value: MARK_AS_TRANSLATABLE("preservation.job.jobTypeEnum.purgeSubmissionTempFiles"),
},
{
key: TypeEnum.REBUILDREGISTRY,
key: TypeEnum.REBUILD_REGISTRY,
value: MARK_AS_TRANSLATABLE("preservation.job.jobTypeEnum.rebuildRegistry"),
},