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
  • 14-bug-on-video-time-control
  • 14-wip-no-seek-to
  • 1836-add-card-layout
  • 1853-window-sidebar-open-close-behaviour
  • 1926-basic-setup-reducer-pattern
  • 1930-functionalOSD
  • 20-fetch-thumbnail-on-annotation
  • 2068-toc
  • 2184-initial-implementation-plugin-pattern
  • 2188-megotiating-hierarchy-of-plugins
  • 2200-refactor-mirador-viewer
  • 2214-topBar
  • 2404-disable-move-to-buttom-button
  • 2573-click-to-zoom
  • 2573-preventDefaultAction
  • 2684-startIndex
  • 2931-2-use-state-getter
  • 2949-multi-seq
  • 9_wip_videotests
  • Save
  • _ci_original_master
  • _upgrade_material_ui
  • a11y-testing
  • add-missing-keys
  • add-plugin
  • add-research-field
  • annotation-on-video
  • annotation-on-video-r17
  • annotation-on-video-v2
  • auth-status
  • bye-sass
  • cbeer-patch-1
  • ci-setup
  • clip
  • config-option-workspace-add
  • container-lint
  • defaultSearch
  • detached
  • develop
  • do-not-pass-function
  • elastic-minimap
  • embedded-test-page
  • extractCss
  • facing-pages
  • fix-auth-redirects
  • fix-av
  • fix-error-div-into-p
  • get_setter_canvasSizeInformations
  • gh-pages
  • iframecomm
  • implement_expose
  • issue-1703
  • issue-1703-b
  • jacob-test
  • master
  • mejackreed-patch-1
  • more-sequenceless-manifests
  • mui5
  • mui5-annotation-on-video-stable
  • mui5-react-18
  • perf-opt
  • reduce-plugin-rerenders
  • refactor-plugin-performance
  • refactor-state-update-patterns
  • release-2.x
  • remove-babel-plugin-lodash
  • revert-2482-2411-connect-plugins-on-start
  • shot-in-the-dark-ie
  • smart-align
  • test-antoinev1
  • update-configs
  • update-webpack
  • updated-manifest
  • why-did
  • why-did-you-update
  • wip-db
  • wip-lpo
  • 3.0.0-alpha.9
  • latest-tetras-16
  • v2.0.0
  • v2.1.0
  • v2.1.0-rc1
  • v2.1.0-rc2
  • v2.1.0-rc3
  • v2.1.0-rc4
  • v2.1.0-rc5
  • v2.1.1
  • v2.1.2
  • v2.1.3
  • v2.1.4
  • v2.2.0
  • v2.3.0
  • v2.4.0
  • v2.5.0
  • v2.5.1
  • v2.6.0
  • v2.7.0
  • v3.0.0
  • v3.0.0-alpha.0
  • v3.0.0-alpha.1
  • v3.0.0-alpha.10
  • v3.0.0-alpha.12
  • v3.0.0-alpha.13
  • v3.0.0-alpha.14
  • v3.0.0-alpha.15
  • v3.0.0-alpha.16
  • v3.0.0-alpha.2
  • v3.0.0-alpha.3
  • v3.0.0-alpha.4
  • v3.0.0-alpha.5
  • v3.0.0-alpha.6
  • v3.0.0-alpha.7
  • v3.0.0-alpha.8
  • v3.0.0-beta.0
  • v3.0.0-beta.10
  • v3.0.0-beta.2
  • v3.0.0-beta.3
  • v3.0.0-beta.5
  • v3.0.0-beta.6
  • v3.0.0-beta.7
  • v3.0.0-beta.8
  • v3.0.0-beta.9
  • v3.0.0-rc.1
  • v3.0.0-rc.2
  • v3.0.0-rc.3
  • v3.0.0-rc.4
  • v3.0.0-rc.5
  • v3.0.0-rc.6
  • v3.0.0-rc.7
  • v3.1.0
  • v3.1.1
  • v3.2.0
  • v3.3.0
133 results

Target

Select target project
  • iiif/mirador/mirador-video
1 result
Select Git revision
  • 14-bug-on-video-time-control
  • 14-wip-no-seek-to
  • 1836-add-card-layout
  • 1853-window-sidebar-open-close-behaviour
  • 1926-basic-setup-reducer-pattern
  • 1930-functionalOSD
  • 20-fetch-thumbnail-on-annotation
  • 2068-toc
  • 2184-initial-implementation-plugin-pattern
  • 2188-megotiating-hierarchy-of-plugins
  • 2200-refactor-mirador-viewer
  • 2214-topBar
  • 2404-disable-move-to-buttom-button
  • 2573-click-to-zoom
  • 2573-preventDefaultAction
  • 2684-startIndex
  • 2931-2-use-state-getter
  • 2949-multi-seq
  • 9_wip_videotests
  • Save
  • _ci_original_master
  • _upgrade_material_ui
  • a11y-testing
  • add-missing-keys
  • add-plugin
  • add-research-field
  • annotation-on-video
  • annotation-on-video-r17
  • annotation-on-video-v2
  • auth-status
  • bye-sass
  • cbeer-patch-1
  • ci-setup
  • clip
  • config-option-workspace-add
  • container-lint
  • defaultSearch
  • detached
  • develop
  • do-not-pass-function
  • elastic-minimap
  • embedded-test-page
  • extractCss
  • facing-pages
  • fix-auth-redirects
  • fix-av
  • fix-error-div-into-p
  • get_setter_canvasSizeInformations
  • gh-pages
  • iframecomm
  • implement_expose
  • issue-1703
  • issue-1703-b
  • jacob-test
  • master
  • mejackreed-patch-1
  • more-sequenceless-manifests
  • mui5
  • mui5-annotation-on-video-stable
  • mui5-react-18
  • perf-opt
  • reduce-plugin-rerenders
  • refactor-plugin-performance
  • refactor-state-update-patterns
  • release-2.x
  • remove-babel-plugin-lodash
  • revert-2482-2411-connect-plugins-on-start
  • shot-in-the-dark-ie
  • smart-align
  • test-antoinev1
  • update-configs
  • update-webpack
  • updated-manifest
  • why-did
  • why-did-you-update
  • wip-db
  • wip-lpo
  • 3.0.0-alpha.9
  • latest-tetras-16
  • v2.0.0
  • v2.1.0
  • v2.1.0-rc1
  • v2.1.0-rc2
  • v2.1.0-rc3
  • v2.1.0-rc4
  • v2.1.0-rc5
  • v2.1.1
  • v2.1.2
  • v2.1.3
  • v2.1.4
  • v2.2.0
  • v2.3.0
  • v2.4.0
  • v2.5.0
  • v2.5.1
  • v2.6.0
  • v2.7.0
  • v3.0.0
  • v3.0.0-alpha.0
  • v3.0.0-alpha.1
  • v3.0.0-alpha.10
  • v3.0.0-alpha.12
  • v3.0.0-alpha.13
  • v3.0.0-alpha.14
  • v3.0.0-alpha.15
  • v3.0.0-alpha.16
  • v3.0.0-alpha.2
  • v3.0.0-alpha.3
  • v3.0.0-alpha.4
  • v3.0.0-alpha.5
  • v3.0.0-alpha.6
  • v3.0.0-alpha.7
  • v3.0.0-alpha.8
  • v3.0.0-beta.0
  • v3.0.0-beta.10
  • v3.0.0-beta.2
  • v3.0.0-beta.3
  • v3.0.0-beta.5
  • v3.0.0-beta.6
  • v3.0.0-beta.7
  • v3.0.0-beta.8
  • v3.0.0-beta.9
  • v3.0.0-rc.1
  • v3.0.0-rc.2
  • v3.0.0-rc.3
  • v3.0.0-rc.4
  • v3.0.0-rc.5
  • v3.0.0-rc.6
  • v3.0.0-rc.7
  • v3.1.0
  • v3.1.1
  • v3.2.0
  • v3.3.0
133 results
Show changes
Commits on Source (46)
Showing
with 271 additions and 58 deletions
......@@ -38,6 +38,8 @@
"ignoreStrings": true,
"ignoreTemplateLiterals": true,
"ignoreRegExpLiterals": true
}]
}],
"react/jsx-uses-react": "off",
"react/react-in-jsx-scope": "off"
}
}
......@@ -14,15 +14,15 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [14.x, 16.x, 17.x]
node-version: [16.x, 18.x, 19.x]
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
- run: npm install -g codecov
- run: npm install
- run: npm test
- run: codecov
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
{
"@context": "http://iiif.io/api/presentation/3/context.json",
"id": "https://iiif.io/api/cookbook/recipe/0266-full-canvas-annotation/manifest.json",
"type": "Manifest",
"label": { "en": [ "Video Example 3" ] },
"items": [
{
"id": "https://iiif.io/api/cookbook/recipe/0003-mvm-video-annot/canvas",
"type": "Canvas",
"height": 360,
"width": 640,
"duration": 572.034,
"items": [
{
"id": "https://iiif.io/api/cookbook/recipe/0003-mvm-video-annot/canvas/page",
"type": "AnnotationPage",
"items": [
{
"id": "https://iiif.io/api/cookbook/recipe/0003-mvm-video-annot/canvas/page/annotation",
"type": "Annotation",
"motivation": "painting",
"body": {
"id": "https://fixtures.iiif.io/video/indiana/lunchroom_manners/high/lunchroom_manners_1024kb.mp4",
"type": "Video",
"height": 360,
"width": 480,
"duration": 572.034,
"format": "video/mp4"
},
"target": "https://iiif.io/api/cookbook/recipe/0003-mvm-video-annot/canvas"
}
]
}
],
"annotations": [
{
"id": "https://iiif.io/api/cookbook/recipe/0266-full-canvas-annotation/canvas-1/annopage-2",
"type": "AnnotationPage",
"items": [
{
"id": "https://iiif.io/api/cookbook/recipe/0266-full-canvas-annotation/canvas-1/annopage-2/anno-1",
"type": "Annotation",
"motivation": "commenting",
"body": {
"type": "TextualBody",
"language": "de",
"format": "text/plain",
"value": "Göttinger Marktplatz mit Gänseliesel Brunnen"
},
"target": "https://iiif.io/api/cookbook/recipe/0003-mvm-video-annot/canvas/page/annotation"
}
]
}
]
}
]
}
{
"@context": "http://iiif.io/api/presentation/3/context.json",
"id": "https://iiif.io/api/cookbook/recipe/0219-using-caption-file/manifest.json",
"type": "Manifest",
"label": {
"en": [
"Lunchroom Manners"
]
},
"items": [
{
"id": "https://iiif.io/api/cookbook/recipe/0219-using-caption-file/canvas",
"type": "Canvas",
"height": 360,
"width": 480,
"duration": 572.034,
"items": [
{
"id": "https://iiif.io/api/cookbook/recipe/0219-using-caption-file/canvas/page",
"type": "AnnotationPage",
"items": [
{
"id": "https://iiif.io/api/cookbook/recipe/0219-using-caption-file/canvas/page/annotation1",
"type": "Annotation",
"motivation": "painting",
"body": {
"id": "https://fixtures.iiif.io/video/indiana/lunchroom_manners/high/lunchroom_manners_1024kb.mp4",
"type": "Video",
"height": 360,
"width": 480,
"duration": 572.034,
"format": "video/mp4"
},
"target": "https://iiif.io/api/cookbook/recipe/0219-using-caption-file/canvas"
}
]
}
],
"annotations": [
{
"id": "https://iiif.io/api/cookbook/recipe/0219-using-caption-file/canvas/page2",
"type": "AnnotationPage",
"items": [
{
"id": "https://iiif.io/api/cookbook/recipe/0219-using-caption-file/canvas/page2/a1",
"type": "Annotation",
"motivation": "supplementing",
"body": {
"id": "https://fixtures.iiif.io/video/indiana/lunchroom_manners/lunchroom_manners.vtt",
"format": "text/vtt",
"language": "en"
},
"target": "https://iiif.io/api/cookbook/recipe/0219-using-caption-file/canvas"
}
]
}
]
}
]
}
{
"@context": "http://iiif.io/api/presentation/3/context.json",
"id": "https://iiif.io/api/cookbook/recipe/0219-using-caption-file/manifest.json",
"type": "Manifest",
"label": {
"en": [
"Lunchroom Manners"
]
},
"items": [
{
"id": "https://iiif.io/api/cookbook/recipe/0219-using-caption-file/canvas",
"type": "Canvas",
"height": 360,
"width": 480,
"duration": 572.034,
"items": [
{
"id": "https://iiif.io/api/cookbook/recipe/0219-using-caption-file/canvas/page",
"type": "AnnotationPage",
"items": [
{
"id": "https://iiif.io/api/cookbook/recipe/0219-using-caption-file/canvas/page/annotation1",
"type": "Annotation",
"motivation": "painting",
"body": {
"id": "https://fixtures.iiif.io/video/indiana/lunchroom_manners/high/lunchroom_manners_1024kb.mp4",
"type": "Video",
"height": 360,
"width": 480,
"duration": 572.034,
"format": "video/mp4"
},
"target": "https://iiif.io/api/cookbook/recipe/0219-using-caption-file/canvas"
}
]
}
],
"annotations": [
{
"id": "https://iiif.io/api/cookbook/recipe/0219-using-caption-file/canvas/page2",
"type": "AnnotationPage",
"items": [
{
"id": "https://iiif.io/api/cookbook/recipe/0219-using-caption-file/canvas/page2/a1",
"type": "Annotation",
"motivation": "supplementing",
"body": [
{
"id": "https://fixtures.iiif.io/video/indiana/lunchroom_manners/lunchroom_manners.vtt#fr",
"format": "text/vtt",
"language": "fr"
},
{
"id": "https://fixtures.iiif.io/video/indiana/lunchroom_manners/lunchroom_manners.vtt#en",
"format": "text/vtt",
"language": "en"
}
],
"target": "https://iiif.io/api/cookbook/recipe/0219-using-caption-file/canvas"
},
{
"id": "https://iiif.io/api/cookbook/recipe/0219-using-caption-file/canvas/page2/a1",
"type": "Annotation",
"motivation": "supplementing",
"body": {
"id": "https://fixtures.iiif.io/video/indiana/lunchroom_manners/lunchroom_manners.vtt#ru",
"format": "text/vtt",
"language": "ru"
},
"target": "https://iiif.io/api/cookbook/recipe/0219-using-caption-file/canvas"
}
]
}
]
}
]
}
{
"@context": "http://iiif.io/api/presentation/3/context.json",
"id": "https://iiif.io/api/cookbook/recipe/0219-using-caption-file/manifest.json",
"type": "Manifest",
"label": {
"en": [
"Lunchroom Manners"
]
},
"items": [
{
"id": "https://iiif.io/api/cookbook/recipe/0219-using-caption-file/canvas",
"type": "Canvas",
"height": 360,
"width": 480,
"duration": 572.034,
"items": [
{
"id": "https://iiif.io/api/cookbook/recipe/0219-using-caption-file/canvas/page",
"type": "AnnotationPage",
"items": [
{
"id": "https://iiif.io/api/cookbook/recipe/0219-using-caption-file/canvas/page/annotation1",
"type": "Annotation",
"motivation": "painting",
"body": {
"id": "https://fixtures.iiif.io/video/indiana/lunchroom_manners/high/lunchroom_manners_1024kb.mp4",
"type": "Video",
"height": 360,
"width": 480,
"duration": 572.034,
"format": "video/mp4"
},
"target": "https://iiif.io/api/cookbook/recipe/0219-using-caption-file/canvas"
}
]
}
],
"annotations": [
{
"id": "https://iiif.io/api/cookbook/recipe/0219-using-caption-file/canvas/page2",
"type": "AnnotationPage",
"items": [
{
"id": "https://iiif.io/api/cookbook/recipe/0219-using-caption-file/canvas/page2/a1",
"type": "Annotation",
"motivation": "supplementing",
"body": [
{
"id": "https://fixtures.iiif.io/video/indiana/lunchroom_manners/lunchroom_manners.vtt#fr",
"format": "text/vtt",
"language": "fr"
},
{
"id": "https://fixtures.iiif.io/video/indiana/lunchroom_manners/lunchroom_manners.vtt#en",
"format": "text/vtt",
"language": "en"
}
],
"target": "https://iiif.io/api/cookbook/recipe/0219-using-caption-file/canvas"
}
]
}
]
}
]
}
......@@ -13,24 +13,6 @@ describe('workspace actions', () => {
expect(actions.updateWorkspace(options)).toEqual(expectedAction);
});
});
describe('setWorkspaceFullscreen', () => {
it('should return correct action type if set to true', () => {
const receivedAction = actions.setWorkspaceFullscreen(true);
const expectedAction = {
isFullscreenEnabled: true,
type: ActionTypes.SET_WORKSPACE_FULLSCREEN,
};
expect(receivedAction).toEqual(expectedAction);
});
it('should return correct action type if set to false', () => {
const receivedAction = actions.setWorkspaceFullscreen(false);
const expectedAction = {
isFullscreenEnabled: false,
type: ActionTypes.SET_WORKSPACE_FULLSCREEN,
};
expect(receivedAction).toEqual(expectedAction);
});
});
describe('updateWorkspaceMosaicLayout', () => {
it('should updates mosaic layout', () => {
const options = { foo: 'bar' };
......
import React from 'react';
import { shallow } from 'enzyme';
import { AccessTokenSender } from '../../../src/components/AccessTokenSender';
......
import React from 'react';
import { shallow } from 'enzyme';
import MiradorMenuButton from '../../../src/containers/MiradorMenuButton';
import { AnnotationSettings } from '../../../src/components/AnnotationSettings';
......
import React from 'react';
import { shallow } from 'enzyme';
import OpenSeadragon from 'openseadragon';
import { Utils } from 'manifesto.js';
......
import React from 'react';
import { shallow } from 'enzyme';
import PluginProvider from '../../../src/extend/PluginProvider';
import AppProviders from '../../../src/containers/AppProviders';
......
import React from 'react';
import { shallow } from 'enzyme';
import { ThemeProvider, StylesProvider } from '@material-ui/core/styles';
import Fullscreen from 'react-full-screen';
import { DndContext, DndProvider } from 'react-dnd';
import { AppProviders } from '../../../src/components/AppProviders';
import settings from '../../../src/config/settings';
......@@ -14,7 +12,6 @@ function createWrapper(props) {
<AppProviders
language="en"
isFullscreenEnabled={false}
setWorkspaceFullscreen={() => {}}
theme={settings.theme}
translations={{}}
t={k => k}
......@@ -28,7 +25,6 @@ describe('AppProviders', () => {
const wrapper = createWrapper();
expect(wrapper.find(ThemeProvider).length).toBe(1);
expect(wrapper.find(StylesProvider).length).toBe(1);
expect(wrapper.find(Fullscreen).length).toBe(1);
});
it('sets up a theme based on the config passed in merged w/ MaterialUI', () => {
......@@ -44,23 +40,6 @@ describe('AppProviders', () => {
expect(wrapper.instance().i18n.t('off')).toEqual('on');
});
it('should pass setWorkspaceFullscreen to Fullscreen.onChange', () => {
const mockFn = jest.fn();
const wrapper = createWrapper({ setWorkspaceFullscreen: mockFn });
expect(wrapper.find(Fullscreen).first().prop('onChange'))
.toBe(mockFn);
});
it('should pass isFullscreenEnabled to Fullscreen.enabled', () => {
let wrapper = createWrapper({ isFullscreenEnabled: false });
expect(wrapper.find(Fullscreen).first().prop('enabled'))
.toEqual(false);
wrapper = createWrapper({ isFullscreenEnabled: true });
expect(wrapper.find(Fullscreen).first().prop('enabled'))
.toEqual(true);
});
describe('componentDidUpdate()', () => {
it('changes the i18n language if the language prop has been updated', () => {
const wrapper = createWrapper();
......
import React from 'react';
import { shallow } from 'enzyme';
import Typography from '@material-ui/core/Typography';
import Link from '@material-ui/core/Link';
......
import React from 'react';
import { shallow } from 'enzyme';
import { AudioViewer } from '../../../src/components/AudioViewer';
......
import React from 'react';
import { shallow } from 'enzyme';
import { BackgroundPluginArea } from '../../../src/components/BackgroundPluginArea';
import { PluginHook } from '../../../src/components/PluginHook';
......
import React from 'react';
import { shallow } from 'enzyme';
import Typography from '@material-ui/core/Typography';
import IconButton from '@material-ui/core/IconButton';
......
import React from 'react';
import { shallow } from 'enzyme';
import Typography from '@material-ui/core/Typography';
import Chip from '@material-ui/core/Chip';
......
import React from 'react';
import { shallow } from 'enzyme';
import Typography from '@material-ui/core/Typography';
import { CanvasInfo } from '../../../src/components/CanvasInfo';
......
import React from 'react';
import { shallow } from 'enzyme';
import Input from '@material-ui/core/Input';
import Slider from '@material-ui/core/Slider';
import Typography from '@material-ui/core/Typography';
import { DragDropContext, Droppable, Draggable } from 'react-beautiful-dnd';
import { DragDropContext, Droppable, Draggable } from '@hello-pangea/dnd';
import { CanvasLayers } from '../../../src/components/CanvasLayers';
import IIIFThumbnail from '../../../src/containers/IIIFThumbnail';
......
import React from 'react';
import { shallow } from 'enzyme';
import Dialog from '@material-ui/core/Dialog';
import ListItemText from '@material-ui/core/ListItemText';
......