From 1c403feed436f7d08035e313dbe7190a4fe77f46 Mon Sep 17 00:00:00 2001 From: John Coburn Date: Thu, 3 Apr 2025 11:23:05 -0500 Subject: [PATCH 1/3] alphabetize visible apps by display name --- stripes.config.js | 97 +++++++++++++++++++++++++++-------------------- 1 file changed, 56 insertions(+), 41 deletions(-) diff --git a/stripes.config.js b/stripes.config.js index 2d1da652b4..2fbe170363 100644 --- a/stripes.config.js +++ b/stripes.config.js @@ -1,3 +1,7 @@ +// const platformCore = require('@folio/platform-core/stripes.config.js'); +// const platformERM = require('@folio/platform-erm/stripes.config.js'); +// const { merge } = require('lodash'); + module.exports = { okapi: { 'url':'http://localhost:9130', 'tenant':'diku' }, config: { @@ -8,81 +12,92 @@ module.exports = { preserveConsole: true, useSecureTokens: true, }, + modules: { - '@folio/acquisition-units': {}, - '@folio/agreements': {}, + // user-visible apps + '@folio/agreements' : {}, '@folio/bulk-edit': {}, - '@folio/calendar' : {}, '@folio/checkin' : {}, '@folio/checkout' : {}, - '@folio/circulation' : {}, '@folio/circulation-log' : {}, + '@folio/claims' : {}, '@folio/courses' : {}, - "@folio/claims": {}, - '@folio/dashboard': {}, + '@folio/dashboard' : {}, '@folio/data-export' : {}, '@folio/data-import' : {}, - '@folio/developer' : {}, - '@folio/erm-comparisons' : {}, - '@folio/erm-usage': {}, '@folio/eholdings' : {}, + '@folio/erm-comparisons': {}, + '@folio/erm-usage' : {}, '@folio/export-manager': {}, '@folio/finance' : {}, - "@folio/gobi-settings": {}, - '@folio/handler-stripes-registry': {}, + '@folio/inn-reach' : {}, '@folio/inventory' : {}, - '@folio/invoice': {}, - "@folio/ld-folio-wrapper": {}, - '@folio/ldp': {}, - '@folio/licenses': {}, - '@folio/lists': {}, + '@folio/invoice' : {}, + '@folio/licenses' : {}, + '@folio/lists' : {}, '@folio/local-kb-admin': {}, '@folio/marc-authorities': {}, + '@folio/requests-mediated' : {}, + '@folio/oa' : {}, + '@folio/orders' : {}, + '@folio/organizations' : {}, + '@folio/reading-room' : {}, + '@folio/receiving' : {}, + '@folio/remote-storage' : {}, + '@folio/ldp' : {}, + '@folio/requests' : {}, + '@folio/serials-management': {}, + '@folio/users' : {}, + + // settings-only apps, plugins, etc + // always listed alphabetically, if at all + '@folio/acquisition-units': {}, + '@folio/calendar' : {}, + '@folio/circulation' : {}, + '@folio/developer' : {}, + '@folio/handler-stripes-registry': {}, + "@folio/gobi-settings": {}, '@folio/myprofile' : {}, '@folio/notes' : {}, '@folio/oai-pmh' : {}, - '@folio/orders': {}, - '@folio/organizations' : {}, - '@folio/plugin-bursar-export' : {}, + '@folio/plugin-bursar-export': {}, '@folio/plugin-create-inventory-records' : {}, - '@folio/plugin-find-agreement': {}, + '@folio/plugin-find-agreement' : {}, '@folio/plugin-find-authority' : {}, - '@folio/plugin-find-contact': {}, - '@folio/plugin-find-eresource': {}, - '@folio/plugin-find-erm-usage-data-provider': {}, - '@folio/plugin-find-fund': {}, + '@folio/plugin-find-erm-usage-data-provider' : {}, + '@folio/plugin-find-fund' : {}, + '@folio/plugin-eusage-reports': {}, '@folio/plugin-find-import-profile' : {}, '@folio/plugin-find-instance' : {}, + '@folio/plugin-find-contact' : {}, + '@folio/plugin-find-eresource': {}, '@folio/plugin-find-interface' : {}, - '@folio/plugin-find-license': {}, - '@folio/plugin-find-organization': {}, + '@folio/plugin-find-license' : {}, + '@folio/plugin-find-organization' : {}, '@folio/plugin-find-package-title': {}, '@folio/plugin-find-po-line': {}, '@folio/plugin-find-user' : {}, '@folio/plugin-query-builder' : {}, - '@folio/quick-marc': {}, - '@folio/reading-room': {}, - '@folio/receiving' : {}, - '@folio/remote-storage' : {}, - '@folio/requests' : {}, - '@folio/servicepoints' : {}, + '@folio/quick-marc' : {}, '@folio/service-interaction': {}, - '@folio/plugin-eusage-reports': {}, + '@folio/servicepoints' : {}, '@folio/stripes-authority-components' : {}, - '@folio/stripes-erm-components': {}, - '@folio/tags': {}, + '@folio/stripes-erm-components' : {}, + '@folio/stripes-inventory-components' : {}, + '@folio/stripes-marc-components' : {}, + '@folio/tags' : {}, '@folio/tenant-settings' : {}, - '@folio/users' : {}, - '@folio/serials-management' : {}, - '@folio/stripes-marc-components' : {} }, + branding: { logo: { src: './tenant-assets/opentown-libraries-logo.png', alt: 'Opentown Libraries', }, favicon: { - src: './tenant-assets/opentown-libraries-favicon.png', + src: './tenant-assets/folio-favicon.png', }, - } -}; \ No newline at end of file + }, +}; + +// module.exports = merge({}, platformCore, platformERM, platformComplete); \ No newline at end of file From 21590e86faa892e3238f7c7a0d00cfbbe47285c7 Mon Sep 17 00:00:00 2001 From: John Coburn Date: Thu, 3 Apr 2025 11:25:02 -0500 Subject: [PATCH 2/3] add ld-folio-wrapper, sync branding --- stripes.config.js | 15 ++++----------- 1 file changed, 4 insertions(+), 11 deletions(-) diff --git a/stripes.config.js b/stripes.config.js index 2fbe170363..c84fdcd0c0 100644 --- a/stripes.config.js +++ b/stripes.config.js @@ -1,7 +1,3 @@ -// const platformCore = require('@folio/platform-core/stripes.config.js'); -// const platformERM = require('@folio/platform-erm/stripes.config.js'); -// const { merge } = require('lodash'); - module.exports = { okapi: { 'url':'http://localhost:9130', 'tenant':'diku' }, config: { @@ -12,7 +8,6 @@ module.exports = { preserveConsole: true, useSecureTokens: true, }, - modules: { // user-visible apps '@folio/agreements' : {}, @@ -57,6 +52,7 @@ module.exports = { '@folio/developer' : {}, '@folio/handler-stripes-registry': {}, "@folio/gobi-settings": {}, + "@folio/ld-folio-wrapper": {}, '@folio/myprofile' : {}, '@folio/notes' : {}, '@folio/oai-pmh' : {}, @@ -88,16 +84,13 @@ module.exports = { '@folio/tags' : {}, '@folio/tenant-settings' : {}, }, - branding: { logo: { src: './tenant-assets/opentown-libraries-logo.png', alt: 'Opentown Libraries', }, favicon: { - src: './tenant-assets/folio-favicon.png', + src: './tenant-assets/opentown-libraries-favicon.png', }, - }, -}; - -// module.exports = merge({}, platformCore, platformERM, platformComplete); \ No newline at end of file + } +}; \ No newline at end of file From b8a0dc1a5b0d7c194cd23b07ca2ac18221ef30c6 Mon Sep 17 00:00:00 2001 From: John Coburn Date: Fri, 4 Apr 2025 09:29:03 -0500 Subject: [PATCH 3/3] Remove stripes.config.js items that are not present in package.json/should be omitted from config. --- stripes.config.js | 4 ---- 1 file changed, 4 deletions(-) diff --git a/stripes.config.js b/stripes.config.js index c84fdcd0c0..1c45f86e50 100644 --- a/stripes.config.js +++ b/stripes.config.js @@ -25,15 +25,12 @@ module.exports = { '@folio/erm-usage' : {}, '@folio/export-manager': {}, '@folio/finance' : {}, - '@folio/inn-reach' : {}, '@folio/inventory' : {}, '@folio/invoice' : {}, '@folio/licenses' : {}, '@folio/lists' : {}, '@folio/local-kb-admin': {}, '@folio/marc-authorities': {}, - '@folio/requests-mediated' : {}, - '@folio/oa' : {}, '@folio/orders' : {}, '@folio/organizations' : {}, '@folio/reading-room' : {}, @@ -79,7 +76,6 @@ module.exports = { '@folio/servicepoints' : {}, '@folio/stripes-authority-components' : {}, '@folio/stripes-erm-components' : {}, - '@folio/stripes-inventory-components' : {}, '@folio/stripes-marc-components' : {}, '@folio/tags' : {}, '@folio/tenant-settings' : {},