From 3f9543b49d0955f04a14027757b1e9136c545b43 Mon Sep 17 00:00:00 2001
From: David Beniamine <david.beniamine@tetras-libre.fr>
Date: Tue, 20 Sep 2022 23:33:00 +0200
Subject: [PATCH] Basic mirador showing up

---
 src/index.js | 28 ++++------------------------
 1 file changed, 4 insertions(+), 24 deletions(-)

diff --git a/src/index.js b/src/index.js
index e8793ab..f0b501b 100644
--- a/src/index.js
+++ b/src/index.js
@@ -1,32 +1,9 @@
 import Mirador from 'mirador/dist/es/src/index';
 
-// const config = {
-//   id: 'demo',
-//   windows: [{
-//     imageToolsEnabled: true,
-//     imageToolsOpen: true,
-//     manifestId: 'https://purl.stanford.edu/sn904cj3429/iiif/manifest',
-//   }],
-//   theme: {
-//     palette: {
-//       primary: {
-//         main: '#1967d2',
-//       },
-//     },
-//   },
-// };
-
-Mirador.viewer(config, [
-  ...miradorImageToolsPlugin,
-]);
 
 const config = {
-  id: 'mirador',
+  id: 'demo',
   theme: { transitions: window.location.port === '4488' ?  { create: () => 'none' } : {}, },
-  annotation: {
-    adapter: (canvasId) => new LocalStorageAdapter(`localStorage://?canvasId=${canvasId}`),
-    exportLocalStorageAnnotations: true,
-  },
   catalog: [
     { manifestId: 'http://localhost/dzkimgs_annotated_video.json' },
     { manifestId: 'http://localhost/video_split_annopage.json' },
@@ -38,3 +15,6 @@ const config = {
     { manifestId: 'https://iiif.harvardartmuseums.org/manifests/object/299843' }
   ]
 }
+
+Mirador.viewer(config, [
+]);
-- 
GitLab