A web application showcasing annotations in different categories in a simulated Mirador 3 environment.
The app is written in TypeScript using React and Material UI to keep the interface as close as possible to Mirador.
Vite is used as development server and build tool.
Node.js is required to build or develop the app.
Install the dependencies:
npm installStart a development server:
npm run devFast refresh is disabled for now because of this bug in Vite.
Build a production version of the app:
npm run buildThe build output can be found in dist.
dist/index.html is an example of a page with the app embedded. The app will mount a div with id="annotation-demo" and needs the linked .css and .js files as seen there.
You can preview the built app with
npm run preview. This should not be used to serve the app in production.
publiccontains static assets like the images of the Liber Floridus used in the demo.srccontains the sourcecode of thesrc/main.tsxis the entrypoint of the React app.src/config.tscontains the available categories, their initial state and icon.src/annotations.jsoncontains the annotations using the Web Annotation Data Model with an addedcategorykey that maps to theidkey found in the categories insrc/config.tssrc/pages.jsoncontains a simplified subset of an IIIF-manifest. Thebody.srcin here maps to the files inpublic. The pageidis used as target by the annotations insrc/annotations.json.