Skip to content
Snippets Groups Projects

Compare revisions

Changes are shown as if the source revision was being merged into the target revision. Learn more about comparing revisions.

Source

Select target project
No results found
Select Git revision
  • main
  • 24-everything-from-git
  • 45-create-new-poc-deployment-with-docker
  • 44-add-a-cli-tool
  • improve-deployment
  • 31-backend
  • bash-script-bug-fix
  • upgrades_submodules
  • 24-dependencies-build-nested-watch
  • 24-dependencies-build-using-workspaces
  • 24-dependencies-build
  • wip-all-local
  • 10-annotot
  • 3-annotation-plugin-showing-up
14 results

Target

Select target project
  • IIIF / POC Mirador
1 result
Select Git revision
  • main
  • 24-everything-from-git
  • 45-create-new-poc-deployment-with-docker
  • 44-add-a-cli-tool
  • improve-deployment
  • 31-backend
  • bash-script-bug-fix
  • upgrades_submodules
  • 24-dependencies-build-nested-watch
  • 24-dependencies-build-using-workspaces
  • 24-dependencies-build
  • wip-all-local
  • 10-annotot
  • 3-annotation-plugin-showing-up
14 results
Show changes

Commits on Source 8

4 files
+ 14604
11
Compare changes
  • Side-by-side
  • Inline

Files

+0 −1
Original line number Diff line number Diff line
@@ -2,6 +2,5 @@ www/
.env
node_modules/
dist/
package-lock.json
.cache/
.*.sw?

package-lock.json

0 → 100644
+14585 −0

File added.

Preview size limit exceeded, changes collapsed.

+1 −0
Original line number Diff line number Diff line
@@ -12,6 +12,7 @@
  "dependencies": {
    "css-loader": "^3.6.0",
    "mirador": "git+https://gitlab.tetras-libre.fr/iiif/mirador-video-annotation#wip-webpack-from-git",
    "mirador-annotations": "0.4.0",
    "react": "^16.13.1",
    "react-dom": "^16.13.1",
    "style-loader": "^1.2.1"
+18 −10
Original line number Diff line number Diff line
import Mirador from 'mirador/dist/es/src/index';
import annotationPlugins from 'mirador-annotations/es/index';
import LocalStorageAdapter from 'mirador-annotations/es/LocalStorageAdapter';
import AnnototAdapter from 'mirador-annotations/es/AnnototAdapter';


const endpointUrl = 'http://127.0.0.1:3000/annotations';
const config = {
  annotation: {
    adapter: (canvasId) => new LocalStorageAdapter(`localStorage://?canvasId=${canvasId}`),
    // adapter: (canvasId) => new AnnototAdapter(canvasId, endpointUrl),
    exportLocalStorageAnnotations: false, // display annotation JSON export button
  },
  id: 'demo',
  theme: { transitions: window.location.port === '4488' ?  { create: () => 'none' } : {}, },
  window: {
    defaultSideBarPanel: 'annotations',
    sideBarOpenByDefault: true,
  },
  windows: [{
    loadedManifest: 'https://iiif.harvardartmuseums.org/manifests/object/299843',
  }],
  catalog: [
    { manifestId: 'http://localhost/dzkimgs_annotated_video.json' },
    { manifestId: 'http://localhost/video_split_annopage.json' },
    { manifestId: 'http://localhost/fediverse.json' },
    { manifestId: 'http://localhost/localvideo.json' },
    { manifestId: 'http://localhost/local_catvideo.json' },
    { manifestId: 'https://dzkimgs.l.u-tokyo.ac.jp/videos/iiif_in_japan_2017/manifest.json' },
    { manifestId: 'https://iiif.bodleian.ox.ac.uk/iiif/manifest/e32a277e-91e2-4a6d-8ba6-cc4bad230410.json' },
    { manifestId: 'https://iiif.harvardartmuseums.org/manifests/object/299843' }
  ]
}
};

Mirador.viewer(config, [
]);
Mirador.viewer(config, [...annotationPlugins]);