Skip to content
Snippets Groups Projects
Verified Commit a4867fc0 authored by Loïs Poujade's avatar Loïs Poujade
Browse files

Fix linter + add demo manifests

parent 2681b842
No related branches found
No related tags found
1 merge request!4Add / edit annotation on video
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
"page": true, "page": true,
"document": true "document": true
}, },
"parser": "babel-eslint", "parser": "@babel/eslint-parser",
"plugins": ["jest"], "plugins": ["jest"],
"rules": { "rules": {
"import/prefer-default-export": "off", "import/prefer-default-export": "off",
......
import mirador from 'mirador/dist/es/src/index'; import mirador from 'mirador/dist/es/src/index';
import annotationPlugins from '../../src'; import annotationPlugins from '../../src';
import LocalStorageAdapter from '../../src/LocalStorageAdapter'; import LocalStorageAdapter from '../../src/LocalStorageAdapter';
...@@ -16,9 +15,16 @@ const config = { ...@@ -16,9 +15,16 @@ const config = {
defaultSideBarPanel: 'annotations', defaultSideBarPanel: 'annotations',
sideBarOpenByDefault: true, sideBarOpenByDefault: true,
}, },
windows: [{ catalog: [
loadedManifest: 'https://iiif.harvardartmuseums.org/manifests/object/299843', { manifestId: 'https://dzkimgs.l.u-tokyo.ac.jp/videos/iiif_in_japan_2017/manifest.json' },
}], { manifestId: 'https://iiif.io/api/cookbook/recipe/0219-using-caption-file/manifest.json' },
{ manifestId: 'https://preview.iiif.io/cookbook/master/recipe/0003-mvm-video/manifest.json' },
{ manifestId: 'https://iiif.io/api/cookbook/recipe/0065-opera-multiple-canvases/manifest.json' },
{ manifestId: 'https://iiif.io/api/cookbook/recipe/0064-opera-one-canvas/manifest.json' },
{ manifestId: 'https://iiif.io/api/cookbook/recipe/0074-multiple-language-captions/manifest.json' },
{ manifestId: 'https://iiif.harvardartmuseums.org/manifests/object/299843' },
{ manifestId: 'https://iiif.io/api/cookbook/recipe/0002-mvm-audio/manifest.json' },
]
}; };
mirador.viewer(config, [...annotationPlugins]); mirador.viewer(config, [...annotationPlugins]);
This diff is collapsed.
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
"umd" "umd"
], ],
"scripts": { "scripts": {
"build": "nwb build-react-component --no-demo", "build": "nwb build-react-component",
"clean": "nwb clean-module", "clean": "nwb clean-module",
"lint": "eslint ./src ./__tests__", "lint": "eslint ./src ./__tests__",
"prepublishOnly": "npm run build", "prepublishOnly": "npm run build",
...@@ -44,21 +44,22 @@ ...@@ -44,21 +44,22 @@
}, },
"devDependencies": { "devDependencies": {
"@babel/core": "^7.10.4", "@babel/core": "^7.10.4",
"@babel/eslint-parser": "^7.19.1",
"@babel/preset-env": "^7.10.4", "@babel/preset-env": "^7.10.4",
"@babel/preset-react": "^7.10.4", "@babel/preset-react": "^7.10.4",
"@material-ui/core": "^4.11.0", "@material-ui/core": "^4.11.0",
"@material-ui/icons": "^4.9.1", "@material-ui/icons": "^4.9.1",
"@material-ui/lab": "^4.0.0-alpha.56", "@material-ui/lab": "^4.0.0-alpha.56",
"babel-eslint": "^10.1.0",
"canvas": "^2.6.1", "canvas": "^2.6.1",
"enzyme": "^3.11.0", "enzyme": "^3.11.0",
"enzyme-adapter-react-16": "^1.15.2", "enzyme-adapter-react-16": "^1.15.2",
"eslint": "^7.2", "eslint": "^8.11.0",
"eslint-config-airbnb": "^18.2.0", "eslint-config-airbnb": "^19.0.4",
"eslint-plugin-flowtype": "^5.6.0", "eslint-config-react-app": "^7.0.0",
"eslint-plugin-import": "^2.22.0", "eslint-plugin-flowtype": "^8.0.3",
"eslint-plugin-jest": "^23.18.0", "eslint-plugin-import": "^2.25.4",
"eslint-plugin-jsx-a11y": "^6.3.1", "eslint-plugin-jest": "^26.1.1",
"eslint-plugin-jsx-a11y": "^6.4.1",
"eslint-plugin-react": "^7.20.3", "eslint-plugin-react": "^7.20.3",
"jest": "^26.1.0", "jest": "^26.1.0",
"jest-canvas-mock": "^2.2.0", "jest-canvas-mock": "^2.2.0",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment