diff --git a/angular.json b/angular.json index 24d3f0227..10659eb88 100644 --- a/angular.json +++ b/angular.json @@ -162,7 +162,7 @@ } ], "styles": [ - "projects/public-search/src/app/scss/styles.scss" + "projects/public-search/src/app/scss/bootstrap_styles.scss" ], "scripts": [], "vendorChunk": true, @@ -187,6 +187,9 @@ "extractLicenses": true, "vendorChunk": false, "buildOptimizer": true, + "styles": [ + "projects/public-search/src/app/scss/styles.scss" + ], "budgets": [ { "type": "initial", @@ -397,7 +400,7 @@ } ], "styles": [ - "projects/public-search/src/app/scss/styles.scss" + "projects/public-search/src/app/scss/bootstrap_styles.scss" ], "scripts": [], "vendorChunk": true, @@ -422,6 +425,9 @@ "extractLicenses": true, "vendorChunk": false, "buildOptimizer": true, + "styles": [ + "projects/public-search/src/app/scss/styles.scss" + ], "budgets": [ { "type": "initial", @@ -520,6 +526,7 @@ "build": { "builder": "@angular-devkit/build-angular:browser", "options": { + "baseHref": "/highlands/patrons/profile", "allowedCommonJsDependencies": [ "crypto-js", "easymde", @@ -545,7 +552,7 @@ } ], "styles": [ - "projects/public-search/src/app/scss/styles.scss" + "projects/public-search/src/app/scss/bootstrap_styles.scss" ], "scripts": [], "vendorChunk": true, @@ -570,7 +577,11 @@ "extractLicenses": true, "vendorChunk": false, "buildOptimizer": true, + "styles": [ + "projects/public-search/src/app/scss/styles.scss" + ], "deployUrl": "/static/node_modules/@rero/rero-ils-ui/dist/public-patron-profile/", + "baseHref": "", "budgets": [ { "type": "initial", @@ -627,226 +638,6 @@ } } } - }, - "public-user-profile-edit": { - "projectType": "application", - "schematics": {}, - "root": "projects/public-user-profile-edit", - "sourceRoot": "projects/public-user-profile-edit/src", - "prefix": "app", - "architect": { - "build": { - "builder": "@angular-devkit/build-angular:browser", - "options": { - "allowedCommonJsDependencies": ["crypto-js", "easymde", "moment"], - "outputPath": "build/dist/public-user-profile-edit", - "index": "projects/public-user-profile-edit/src/index.html", - "main": "projects/public-user-profile-edit/src/main.ts", - "polyfills": "projects/public-user-profile-edit/src/polyfills.ts", - "tsConfig": "projects/public-user-profile-edit/tsconfig.app.json", - "assets": [ - { - "glob": "**/*.json", - "input": "projects/public-search/src/assets", - "output": "/assets/" - }, - { - "glob": "**/*.json", - "input": "projects/shared/src/assets", - "output": "/assets/" - } - ], - "styles": [ - "projects/public-search/src/app/scss/styles.scss" - ], - "scripts": [], - "vendorChunk": true, - "extractLicenses": false, - "buildOptimizer": false, - "sourceMap": true, - "optimization": false, - "namedChunks": true - }, - "configurations": { - "production": { - "fileReplacements": [ - { - "replace": "projects/public-user-profile-edit/src/environments/environment.ts", - "with": "projects/public-user-profile-edit/src/environments/environment.prod.ts" - } - ], - "optimization": true, - "outputHashing": "all", - "sourceMap": false, - "namedChunks": false, - "extractLicenses": true, - "vendorChunk": false, - "buildOptimizer": true, - "budgets": [ - { - "type": "initial", - "maximumWarning": "2mb", - "maximumError": "5mb" - }, - { - "type": "anyComponentStyle", - "maximumWarning": "6kb", - "maximumError": "10kb" - } - ] - } - } - }, - "serve": { - "builder": "@angular-devkit/build-angular:dev-server", - "options": { - "port": 4206, - "buildTarget": "public-user-profile-edit:build" - }, - "configurations": { - "production": { - "buildTarget": "public-user-profile-edit:build:production" - } - } - }, - "extract-i18n": { - "builder": "@angular-devkit/build-angular:extract-i18n", - "options": { - "buildTarget": "public-user-profile-edit:build" - } - }, - "e2e": { - "builder": "@angular-devkit/build-angular:protractor", - "options": { - "protractorConfig": "projects/public-user-profile-edit/e2e/protractor.conf.js", - "devServerTarget": "public-user-profile-edit:serve" - }, - "configurations": { - "production": { - "devServerTarget": "public-user-profile-edit:serve:production" - } - } - }, - "lint": { - "builder": "@angular-eslint/builder:lint", - "options": { - "lintFilePatterns": [ - "projects/public-user-profile-edit/src/**/*.ts", - "projects/public-user-profile-edit/src/**/*.html" - ] - } - } - } - }, - "public-user-password-change": { - "projectType": "application", - "schematics": {}, - "root": "projects/public-user-password-change", - "sourceRoot": "projects/public-user-password-change/src", - "prefix": "app", - "architect": { - "build": { - "builder": "@angular-devkit/build-angular:browser", - "options": { - "allowedCommonJsDependencies": ["crypto-js", "easymde", "moment"], - "outputPath": "build/dist/public-user-password-change", - "index": "projects/public-user-password-change/src/index.html", - "main": "projects/public-user-password-change/src/main.ts", - "polyfills": "projects/public-user-password-change/src/polyfills.ts", - "tsConfig": "projects/public-user-password-change/tsconfig.app.json", - "assets": [ - { - "glob": "**/*.json", - "input": "projects/public-search/src/assets", - "output": "/assets/" - }, - { - "glob": "**/*.json", - "input": "projects/shared/src/assets", - "output": "/assets/" - } - ], - "styles": [ - "projects/public-search/src/app/scss/styles.scss" - ], - "scripts": [], - "vendorChunk": true, - "extractLicenses": false, - "buildOptimizer": false, - "sourceMap": true, - "optimization": false, - "namedChunks": true - }, - "configurations": { - "production": { - "fileReplacements": [ - { - "replace": "projects/public-user-password-change/src/environments/environment.ts", - "with": "projects/public-user-password-change/src/environments/environment.prod.ts" - } - ], - "optimization": true, - "outputHashing": "all", - "sourceMap": false, - "namedChunks": false, - "extractLicenses": true, - "vendorChunk": false, - "buildOptimizer": true, - "budgets": [ - { - "type": "initial", - "maximumWarning": "2mb", - "maximumError": "5mb" - }, - { - "type": "anyComponentStyle", - "maximumWarning": "6kb", - "maximumError": "10kb" - } - ] - } - } - }, - "serve": { - "builder": "@angular-devkit/build-angular:dev-server", - "options": { - "port": 4205, - "buildTarget": "public-user-password-change:build" - }, - "configurations": { - "production": { - "buildTarget": "public-user-password-change:build:production" - } - } - }, - "extract-i18n": { - "builder": "@angular-devkit/build-angular:extract-i18n", - "options": { - "buildTarget": "public-user-password-change:build" - } - }, - "e2e": { - "builder": "@angular-devkit/build-angular:protractor", - "options": { - "protractorConfig": "projects/public-user-password-change/e2e/protractor.conf.js", - "devServerTarget": "public-user-password-change:serve" - }, - "configurations": { - "production": { - "devServerTarget": "public-user-password-change:serve:production" - } - } - }, - "lint": { - "builder": "@angular-eslint/builder:lint", - "options": { - "lintFilePatterns": [ - "projects/public-user-password-change/src/**/*.ts", - "projects/public-user-password-change/src/**/*.html" - ] - } - } - } } }, "cli": { diff --git a/package.json b/package.json index a8d05172d..1fd48b270 100644 --- a/package.json +++ b/package.json @@ -48,11 +48,9 @@ "start-public-patron-profile-proxy": "ng serve public-patron-profile --proxy-config proxy.conf.json", "start-public-holdings-items-proxy": "ng serve public-holdings-items --proxy-config proxy.conf.json", "start-public-search-proxy": "ng serve public-search --proxy-config proxy.conf.json", - "start-public-user-password-change-proxy": "ng serve public-user-password-change --proxy-config proxy.conf.json", - "start-public-user-profile-edit-proxy": "ng serve public-user-profile-edit --proxy-config proxy.conf.json", "start-search-bar-proxy": "ng serve search-bar --proxy-config proxy.conf.json", "build-shared": "ng build --configuration production shared", - "build": "npm run build-shared && ng build admin --configuration production && ng build public-patron-profile --configuration production && ng build public-user-password-change --configuration production && ng build public-user-profile-edit --configuration production && ng build public-search --configuration production && ng build public-holdings-items --configuration production && ng build search-bar --configuration production", + "build": "npm run build-shared && ng build admin --configuration production && ng build public-patron-profile --configuration production && ng build public-search --configuration production && ng build public-holdings-items --configuration production && ng build search-bar --configuration production", "pack": "npm run build && ./scripts/dist_pkg.js -o build && cd build && npm pack", "test": "ng test", "lint": "ng lint --cache", diff --git a/projects/public-holdings-items/src/app/app.module.ts b/projects/public-holdings-items/src/app/app.module.ts index b05a8351d..8f55c50b4 100644 --- a/projects/public-holdings-items/src/app/app.module.ts +++ b/projects/public-holdings-items/src/app/app.module.ts @@ -31,6 +31,7 @@ import { CoreConfigService, CoreModule, NgCoreTranslateService, RecordModule, Tr import { SharedModule } from '@rero/shared'; import { AccordionModule } from 'primeng/accordion'; import { DividerModule } from 'primeng/divider'; +import { MenubarModule } from 'primeng/menubar'; import { DocumentDetailViewComponent } from 'projects/public-search/src/app/document-detail/document-detail-view/document-detail-view.component'; import { ElectronicHoldingsComponent } from 'projects/public-search/src/app/document-detail/document-detail-view/holdings/electronic-holdings/electronic-holdings.component'; import { HoldingComponent } from 'projects/public-search/src/app/document-detail/holdings/holding/holding.component'; @@ -49,52 +50,50 @@ export function appInitFactory(appInitializerService: AppInitializerService): () } @NgModule({ - declarations: [ - HoldingComponent, - HoldingsComponent, - ItemComponent, - ItemsComponent, - PickupLocationComponent, - RequestComponent, - DocumentDetailViewComponent, - ElectronicHoldingsComponent - ], - imports: [ - AccordionModule, - BrowserModule, - BrowserAnimationsModule, - DividerModule, - RouterModule.forRoot([]), - HttpClientModule, - FormsModule, - FormlyModule.forRoot(), - FormlyPrimeNGModule, - CoreModule, - RecordModule, - ReactiveFormsModule, - TranslateModule.forRoot({ - loader: { - provide: BaseTranslateLoader, - useClass: TranslateLoader, - deps: [CoreConfigService, HttpClient] - }, - isolate: false - }), - SharedModule, - LoadingBarHttpClientModule, - LoadingBarModule - ], - providers: [ - { provide: TranslateService, useClass: NgCoreTranslateService }, - { provide: APP_INITIALIZER, useFactory: appInitFactory, deps: [AppInitializerService], multi: true }, - { provide: CoreConfigService, useClass: AppConfigService } - ], - schemas: [ - CUSTOM_ELEMENTS_SCHEMA - ] + declarations: [ + HoldingComponent, + HoldingsComponent, + ItemComponent, + ItemsComponent, + PickupLocationComponent, + RequestComponent, + DocumentDetailViewComponent, + ElectronicHoldingsComponent, + ], + imports: [ + AccordionModule, + MenubarModule, + BrowserModule, + BrowserAnimationsModule, + DividerModule, + RouterModule.forRoot([]), + HttpClientModule, + FormsModule, + FormlyModule.forRoot(), + FormlyPrimeNGModule, + CoreModule, + RecordModule, + ReactiveFormsModule, + TranslateModule.forRoot({ + loader: { + provide: BaseTranslateLoader, + useClass: TranslateLoader, + deps: [CoreConfigService, HttpClient], + }, + isolate: false, + }), + SharedModule, + LoadingBarHttpClientModule, + LoadingBarModule, + ], + providers: [ + { provide: TranslateService, useClass: NgCoreTranslateService }, + { provide: APP_INITIALIZER, useFactory: appInitFactory, deps: [AppInitializerService], multi: true }, + { provide: CoreConfigService, useClass: AppConfigService }, + ], + schemas: [CUSTOM_ELEMENTS_SCHEMA], }) export class AppModule implements DoBootstrap { - private injector: Injector = inject(Injector); ngDoBootstrap(): void { diff --git a/projects/public-holdings-items/src/index.html b/projects/public-holdings-items/src/index.html index ad9c950a8..662d7c6f4 100644 --- a/projects/public-holdings-items/src/index.html +++ b/projects/public-holdings-items/src/index.html @@ -23,24 +23,8 @@ - - -
@@ -49,9 +33,9 @@