Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Code Block
languagejs
module.exports = {
  okapi: {
    // application gateway
    'url': 'https://folio-snapshot-okapi.dev.folio.org',
    
    // tenant to include in X-Okapi-Tenant HTTP request headers
    'tenant': 'diku',
  },
  config: {
    // act as though user has all perms, i.e. <IfPermission> always returns true
    // default: FALSE
    // since A
    hasAllPerms: true,

    // stripes logger categories
    // since A
    logCategories: 'core,path,action,xhr',
    logPrefix: '--',

    // lookup table rows to retrieve en-masse
    maxUnpagedResourceCount: 2000,
    
    // prevent the console from being cleared on logout
    // default: FALSE
    // since Q
    preserveConsole: true,

    // list permissions in the userprofile menu?
    // default: FALSE
    // since A
    showPerms: true,

    // true to hide verbose react-intl complaints
    // default: false
    suppressIntlErrors: true,   // since H
    suppressIntlWarnings: true, // since O

    // use RTR instead of insecure legacy endpoints
    // since Q, default: FALSE
    // since R, default: TRUE, cannot be overridden
    useSecureTokens: true,
  },

  modules: {
     // ...
     '@folio/users' : {}
  },

  branding: {
    // login page img and alt-text
    // since A
    logo: {
      src: './path/to/login-logo.png',
      alt: 'Opentown Libraries',
    },
    // browser tab icon
    // since A
    favicon: {
      src: './path/to/favicon.png',
    },
    style: {
      mainNav: {
        // background color of the main navicationnavigation bar
        // default: #000c
        // since M
        backgroundColor: "#036",
      },  
      login: {
        // background color of the login screen
        // default: #fff
        // since M
        backgroundColor: "#fcb",
      },  
    },    
  },
};