Cartographer User and Technical Documentation
Home
User Docs
Technical Docs
Home
User Docs
Technical Docs
  • User Documentation
    • Introduction
    • Cartographer App
    • User Interface
    • Actions
  • Technical Documentation
    • Components

      • AppFooter Component
      • AppHeader Component
      • AppSidebar Component
      • ContentPreviewMdiv Component
      • Content Preview Measure
      • Content Preview Pane
      • ImageSelection Modal
      • LoadGitModal Component
      • LoadIIIFModal Component
      • LoadXMLModal Component
      • MainMenu Component
      • MeasureModal Component
      • MdivModal Component
      • OsdComponent Component
      • PageImportModal Component
      • PagesListEntry Component
      • PagesModal Component
    • Store
      • Vuex Store (src/store/index.js)
    • Tools
      • IIIF Tools (src/tools/iiif.js)
      • MEI Mapping Tools (src/tools/meimapping.js)

PageImportModal Component

Displays a modal dialog for importing new page images by URL.


Overview

The PageImportModal component:

  • Shows a modal dialog for importing new page images.
  • Allows users to input multiple image URLs (separated by spaces).
  • Displays a table with the status and dimensions of images being imported.
  • Provides Import and Cancel actions.
  • Uses Vuex store for state management and actions.

Layout

  • Header: Modal title and close button.
  • Body:
    • If no images are being imported: shows instructions and a textarea for URLs.
    • If images are being imported: shows a table with image index, URL, status, and dimensions.
  • Footer: Import and Cancel buttons.

Props

None


Computed Properties

NameDescription
importingImagesReturns the list of images being imported
readyForImageImportReturns whether the import is ready to be accepted

Methods

NameDescription
loadImagesLoads images from the textarea input and dispatches to store
acceptAccepts the imported images and closes the modal
closeModalCancels the import and closes the modal

Example

<PageImportModal />
Prev
OsdComponent Component
Next
PagesListEntry Component