Skip to content
Snippets Groups Projects
Select Git revision
  • f281874e4119022c089351686a1f68aba67a2789
  • master default protected
  • 133-fail2ban-page
  • reorganisation
  • 16-maintenace-service
  • 11-fail2ban
  • 6-monit-update
  • 7-dolibarr-fail2ban
  • 6-surveillance-interne-des-serveur
  • test-glpi
  • 2-migrate-to-phpfpm
  • jessie
  • github
13 results

main.env.sample

Blame
  • settings.js 8.91 KiB
    import uuid from 'uuid/v4';
    
    export default {
      canvasNavigation: { // Set the hight and width of canvas thumbnails in the  CanvasNavigation companion window
        height: 50,
        width: 50,
      },
      selectedTheme: 'light', // dark also available
      themes: {
        dark: {
          palette: {
            type: 'dark',
            primary: {
              main: '#4db6ac',
            },
            secondary: {
              main: '#4db6ac',
            },
            shades: {
              dark: '#000000',
              main: '#424242',
              light: '#616161',
            }
          }
        },
        light: {
          palette: {
            type: 'light',
          }
        }
      },
      theme: { // Sets up a MaterialUI theme. See https://material-ui.com/customization/default-theme/
        palette: {
          type: 'light',
          primary: {
            main: '#1967d2', // Controls the color of the Add button and current window indicator
          },
          secondary: {
            main: '#1967d2', // Controls the color of Selects and FormControls
          },
          shades: { // Shades that can be used to offset color areas of the Workspace / Window
            dark: '#eeeeee',
            main: '#ffffff',
            light: '#f5f5f5',
          },
          error: {
            main: '#b00020',
          },
          notification: { // Color used in MUI Badge dots
            main: '#ffa224'
          },
          hitCounter: {
            default: '#bdbdbd',
          },
          highlights: {
            primary: '#ffff00',
            secondary: '#00BFFF',
          },
          section_divider: 'rgba(0, 0, 0, 0.25)',
        },
        typography: {
          body1: {
            fontSize: "1rem",
            letterSpacing: "0em",
            lineHeight: "1.6em",
          },
          body2: {
            fontSize: "0.878rem",
            letterSpacing: "0.015em",
            lineHeight: "1.6em",
          },
          button: {
            fontSize: "0.878rem",
            letterSpacing: "0.09em",
            lineHeight: "2.25rem",
            textTransform: "uppercase",
          },
          caption: {
            fontSize: "0.772rem",
            letterSpacing: "0.033em",
            lineHeight: "1.6rem",
          },
          body1Next: {
            fontSize: "1rem",
            letterSpacing: "0em",
            lineHeight: "1.6em",
          },
          body2Next: {
            fontSize: "0.878rem",
            letterSpacing: "0.015em",
            lineHeight: "1.6em",
          },
          buttonNext: {
            fontSize: "0.878rem",
            letterSpacing: "0.09em",
            lineHeight: "2.25rem",
          },
          captionNext: {
            fontSize: "0.772rem",
            letterSpacing: "0.33em",
            lineHeight: "1.6rem",
          },
          overline: {
            fontSize: "0.678rem",
            fontWeight: 500,
            letterSpacing: "0.166em",
            lineHeight: "2em",
            textTransform: "uppercase",
          },
          h1: {
            fontSize: "2.822rem",
            letterSpacing: "-0.015em",
            lineHeight: "1.2em",
          },
          h2: {
            fontSize: "1.575rem",
            letterSpacing: "0em",
            lineHeight: "1.33em",
          },
          h3: {
            fontSize: "1.383rem",
            fontWeight: 300,
            letterSpacing: "0em",
            lineHeight: "1.33em",
          },
          h4: {
            fontSize: "1.215rem",
            letterSpacing: "0.007em",
            lineHeight: "1.45em",
          },
          h5: {
            fontSize: "1.138rem",
            letterSpacing: "0.005em",
            lineHeight: "1.55em",
          },
          h6: {
            fontSize: "1.067rem",
            fontWeight: 400,
            letterSpacing: "0.01em",
            lineHeight: "1.6em",
          },
          subtitle1: {
            fontSize: "0.937rem",
            letterSpacing: "0.015em",
            lineHeight: "1.6em",
            fontWeight: 300,
          },
          subtitle2: {
            fontSize: "0.878rem",
            fontWeight: 500,
            letterSpacing: "0.02em",
            lineHeight: "1.75em",
          },
          useNextVariants: true // set so that console deprecation warning is removed
        },
        overrides: {
          MuiListSubheader: {
            root: {
              '&[role="presentation"]:focus': {
                outline: 0,
              },
            },
          },
          MuiTooltip: { // Overridden from https://github.com/mui-org/material-ui/blob/master/packages/material-ui/src/Tooltip/Tooltip.js#L40-L70
            tooltipPlacementLeft: {
              ['@media (min-width:600px)']: {
                margin: 0,
              },
            },
            tooltipPlacementRight: {
              ['@media (min-width:600px)']: {
                margin: 0,
              },
            },
            tooltipPlacementTop: {
              ['@media (min-width:600px)']: {
                margin: 0,
              },
            },
            tooltipPlacementBottom: {
              ['@media (min-width:600px)']: {
                margin: 0,
              },
            },
          },
          MuiTouchRipple: {
            childPulsate: {
              animation: 'none',
            },
            rippleVisible: {
              animation: 'none',
            },
          },
        },
        props: {
          MuiButtonBase: {
            disableTouchRipple: true,
          },
          MuiLink: {
            underline: 'always'
          },
        },
      },
      language: 'en', // The default language set in the application
      availableLanguages: { // All the languages available in the language switcher
        ar: 'العربية',
        de: 'Deutsch',
        en: 'English',
        fr: 'Français',
        ja: '日本語',
        nl: 'Nederlands',
        'pt-BR': 'Português do Brasil',
        'zh-CN': '中文(简体)',
        'zh-TW': '中文(繁體)',
        it: "Italiano",
      },
      annotations: {
        filteredMotivations: ['oa:commenting', 'sc:painting', 'commenting'],
      },
      classPrefix: 'mirador',
      displayAllAnnotations: false, // Configure if annotations to be displayed on the canvas by default when fetched
      resourceHeaders: {}, // Headers to send with IIIF Presentation API resource requests
      translations: { // Translations can be added to inject new languages or override existing labels
      },
      window: {
        allowClose: true, // Configure if windows can be closed or not
        allowFullscreen: false, // Configure to show a "fullscreen" button in the WindowTopBar
        allowMaximize: true, // Configure if windows can be maximized or not
        allowTopMenuButton: true, // Configure if window view and thumbnail display menu are visible or not
        allowWindowSideBar: true, // Configure if side bar menu is visible or not
        authNewWindowCenter: 'parent', // Configure how to center a new window created by the authentication flow. Options: parent, screen
        defaultSideBarPanel: 'info', // Configure which sidebar is selected by default. Options: info, attribution, canvas, annotations, search
        defaultSidebarPanelWidth: 235, // Configure default sidebar width in pixels
        defaultView: 'single',  // Configure which viewing mode (e.g. single, book, gallery) for windows to be opened in
        hideWindowTitle: false, // Configure if the window title is shown in the window title bar or not
        showLocalePicker: false, // Configure locale picker for multi-lingual metadata
        sideBarOpenByDefault: false, // Configure if the sidebar (and its content panel) is open by default
        panels: { // Configure which panels are visible in WindowSideBarButtons
          info: true,
          attribution: true,
          canvas: true,
          annotations: true,
          search: true,
        }
      },
      windows: [ // Array of windows to be open when mirador initializes (each object should at least provide a manifestId key with the value of the IIIF presentation manifest to load)
        /**
        Example Window:
        {
          manifestId: 'https://iiif.harvardartmuseums.org/manifests/object/299843',
          canvasId: 'https://iiif.harvardartmuseums.org/manifests/object/299843/page_2',
          thumbnailNavigationPosition: 'far-bottom',
        }
        // ../state/actions/window.js `defaultOptions`
        // ../lib/MiradorViewer.js `windowAction`
        */
      ],
      thumbnailNavigation: {
        defaultPosition: 'off', // Which position for the thumbnail navigation to be be displayed. Other possible values are "far-bottom" or "far-right"
        height: 130, // height of entire ThumbnailNavigation area when position is "far-bottom"
        width: 100, // width of one canvas (doubled for book view) in ThumbnailNavigation area when position is "far-right"
      },
      workspace: {
        draggingEnabled: true,
        id: uuid(),
        exposeModeOn: false, // unused?
        height: 5000, // height of the elastic mode's virtual canvas
        showZoomControls: false, // Configure if zoom controls should be displayed by default
        type: 'mosaic', // Which workspace type to load by default. Other possible values are "elastic"
        viewportPosition: { // center coordinates for the elastic mode workspace
          x: 0,
          y: 0,
        },
        width: 5000, // width of the elastic mode's virtual canvas
      },
      workspaceControlPanel: {
        enabled: true, // Configure if the control panel should be rendered.  Useful if you want to lock the viewer down to only the configured manifests
      },
      galleryView: {
        height: 120, // height of gallery view thumbnails
        width: null, // width of gallery view thumbnails (or null, to auto-calculate an aspect-ratio appropriate size)
      },
      osdConfig: { // Default config used for OpenSeadragon
        alwaysBlend: false,
        blendTime: 0.1,
        preserveImageSizeOnResize: true,
        preserveViewport: true,
        showNavigationControl: false,
      }
    };