Skip to end of banner
Go to start of banner

stripes.config.js properties

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

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 navication bar
        // default: #000c
        // since M
        backgroundColor: "#036",
      },  
      login: {
        // background color of the login screen
        // default: #fff
        // since M
        backgroundColor: "#fcb",
      },  
    },    
  },
};

  • No labels