add download library
This commit is contained in:
parent
f71afa7bb6
commit
d732737e72
5 changed files with 67 additions and 43 deletions
12
index.js
12
index.js
|
|
@ -1,16 +1,18 @@
|
|||
import Mirador from 'mirador/dist/es/src/index';
|
||||
import { miradorImageToolsPlugin } from 'mirador-image-tools';
|
||||
import miradorAnnotationPlugins from 'mirador-annotations';
|
||||
import LocalStorageAdapter from 'mirador-annotations/lib/LocalStorageAdapter'
|
||||
import AnnototAdapter from 'mirador-annotations/lib/AnnototAdapter';
|
||||
import LocalStorageAdapter from 'mirador-annotations/lib/LocalStorageAdapter'
|
||||
import miradorAnnotationPlugins from 'mirador-annotations';
|
||||
import miradorDownloadPlugins from 'mirador-dl-plugin';
|
||||
import { miradorImageToolsPlugin } from 'mirador-image-tools';
|
||||
|
||||
|
||||
window.Mirador = Mirador;
|
||||
// The used plugins is specified in the main js.
|
||||
window.miradorPlugins = [
|
||||
{name: "annotations", plugin: miradorAnnotationPlugins},
|
||||
{name: "image-tools", plugin: miradorImageToolsPlugin}
|
||||
,];
|
||||
{name: "image-tools", plugin: miradorImageToolsPlugin},
|
||||
{name: "dl-plugin", plugin: miradorDownloadPlugins},
|
||||
];
|
||||
|
||||
|
||||
// The endpoint of the external annotation server is set in the main js.
|
||||
|
|
|
|||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
21
package-lock.json
generated
21
package-lock.json
generated
|
|
@ -12,6 +12,7 @@
|
|||
"css-loader": "^3.6.0",
|
||||
"mirador": "^3.0.0",
|
||||
"mirador-annotations": "~0.4.0",
|
||||
"mirador-dl-plugin": "^0.13.0",
|
||||
"mirador-image-tools": "^0.10.0",
|
||||
"react": "^16.13.1",
|
||||
"react-dom": "^16.13.1",
|
||||
|
|
@ -3582,6 +3583,20 @@
|
|||
"resolved": "https://registry.npmjs.org/immutable/-/immutable-4.0.0.tgz",
|
||||
"integrity": "sha512-zIE9hX70qew5qTUjSS7wi1iwj/l7+m54KWU247nhM3v806UdGj1yDndXj+IOYxxtW9zyLI+xqFNZjTuDaLUqFw=="
|
||||
},
|
||||
"node_modules/mirador-dl-plugin": {
|
||||
"version": "0.13.0",
|
||||
"resolved": "https://registry.npmjs.org/mirador-dl-plugin/-/mirador-dl-plugin-0.13.0.tgz",
|
||||
"integrity": "sha512-I/6etIvpTtO1zgjxx2uEUFoyB9NxQ43JWg8CMkKmZqblW7AAeFqRn1/zUlQH7N8KFZft9Rah6D8qxtuNAo9jmA==",
|
||||
"peerDependencies": {
|
||||
"@material-ui/core": "^4.11.0",
|
||||
"@material-ui/icons": "^4.9.1",
|
||||
"lodash": "^4.17.11",
|
||||
"mirador": "^3.0.0-rc.7",
|
||||
"prop-types": "^15.7.2",
|
||||
"react": "16.x",
|
||||
"react-dom": "16.x"
|
||||
}
|
||||
},
|
||||
"node_modules/mirador-image-tools": {
|
||||
"version": "0.10.0",
|
||||
"resolved": "https://registry.npmjs.org/mirador-image-tools/-/mirador-image-tools-0.10.0.tgz",
|
||||
|
|
@ -9205,6 +9220,12 @@
|
|||
}
|
||||
}
|
||||
},
|
||||
"mirador-dl-plugin": {
|
||||
"version": "0.13.0",
|
||||
"resolved": "https://registry.npmjs.org/mirador-dl-plugin/-/mirador-dl-plugin-0.13.0.tgz",
|
||||
"integrity": "sha512-I/6etIvpTtO1zgjxx2uEUFoyB9NxQ43JWg8CMkKmZqblW7AAeFqRn1/zUlQH7N8KFZft9Rah6D8qxtuNAo9jmA==",
|
||||
"requires": {}
|
||||
},
|
||||
"mirador-image-tools": {
|
||||
"version": "0.10.0",
|
||||
"resolved": "https://registry.npmjs.org/mirador-image-tools/-/mirador-image-tools-0.10.0.tgz",
|
||||
|
|
|
|||
|
|
@ -30,6 +30,7 @@
|
|||
"css-loader": "^3.6.0",
|
||||
"mirador": "^3.0.0",
|
||||
"mirador-annotations": "~0.4.0",
|
||||
"mirador-dl-plugin": "^0.13.0",
|
||||
"mirador-image-tools": "^0.10.0",
|
||||
"react": "^16.13.1",
|
||||
"react-dom": "^16.13.1",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue