Skip to content

Commit 7c69750

Browse files
committed
Run Prettier to reformat the code
1 parent 06b2f0e commit 7c69750

File tree

473 files changed

+8328
-6771
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

473 files changed

+8328
-6771
lines changed

.prettierignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
# Build artifacts
22
dist/
33

4+
# Demo artifacts
5+
demo/
6+
7+
*.md
8+
49
.github/
510

611
# Test fixtures
Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
import React from 'react';
22

3-
const AddComponentA = () => (
4-
<div data-testid="add-plugin-component-a">Plugin A</div>
5-
);
3+
const AddComponentA = () => <div data-testid="add-plugin-component-a">Plugin A</div>;
64

75
export default AddComponentA;
Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
import React from 'react';
22

3-
const AddComponentB = () => (
4-
<div data-testid="add-plugin-component-b">Plugin B</div>
5-
);
3+
const AddComponentB = () => <div data-testid="add-plugin-component-b">Plugin B</div>;
64

75
export default AddComponentB;
Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,5 @@
11
import React from 'react';
22

3-
const AddComponentC = (props) => (
4-
<div id="add-plugin-component-c">
5-
Plugin C
6-
</div>
7-
);
3+
const AddComponentC = (props) => <div id="add-plugin-component-c">Plugin C</div>;
84

95
export default AddComponentC;

__tests__/integration/components/CompanionWindowButtonComponent.jsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
import React from 'react';
22

33
const CompanionWindowButtonComponent = () => (
4-
<span data-testid="add-plugin-companion-window-button" role="button">Companion Window Button Component</span>
4+
<span data-testid="add-plugin-companion-window-button" role="button">
5+
Companion Window Button Component
6+
</span>
57
);
68
CompanionWindowButtonComponent.value = 'specialMiradorKey';
79

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
import React from 'react';
22

33
const CompanionWindowComponent = (props) => (
4-
<div data-testid="add-plugin-companion-window">
5-
Companion Window Component
6-
</div>
4+
<div data-testid="add-plugin-companion-window">Companion Window Component</div>
75
);
86

97
export default CompanionWindowComponent;

__tests__/integration/components/StateDependentComponent.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/* eslint-disable react/prop-types */
22
const StateDependentComponent = ({ incSomeNumber, manifestId }) => (
33
<button id="plugin-button" onClick={incSomeNumber} style={{ width: 64 }} type="button">
4-
{ `Plugin:${manifestId}` }
4+
{`Plugin:${manifestId}`}
55
</button>
66
);
77

__tests__/integration/components/WrapIconComponent.jsx

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,13 @@
11
/* eslint-disable react/prop-types */
22
const CustomIcon = () => (
3-
<svg className="umbrella" xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32" aria-labelledby="title">
3+
<svg
4+
className="umbrella"
5+
xmlns="http://www.w3.org/2000/svg"
6+
width="32"
7+
height="32"
8+
viewBox="0 0 32 32"
9+
aria-labelledby="title"
10+
>
411
<title id="title">Umbrella Icon</title>
512
<path d="M27 14h5c0-1.105-1.119-2-2.5-2s-2.5 0.895-2.5 2v0zM27 14c0-1.105-1.119-2-2.5-2s-2.5 0.895-2.5 2c0-1.105-1.119-2-2.5-2s-2.5 0.895-2.5 2v0 14c0 1.112-0.895 2-2 2-1.112 0-2-0.896-2-2.001v-1.494c0-0.291 0.224-0.505 0.5-0.505 0.268 0 0.5 0.226 0.5 0.505v1.505c0 0.547 0.444 0.991 1 0.991 0.552 0 1-0.451 1-0.991v-14.009c0-1.105-1.119-2-2.5-2s-2.5 0.895-2.5 2c0-1.105-1.119-2-2.5-2s-2.5 0.895-2.5 2c0-1.105-1.119-2-2.5-2s-2.5 0.895-2.5 2c0-5.415 6.671-9.825 15-9.995v-1.506c0-0.283 0.224-0.499 0.5-0.499 0.268 0 0.5 0.224 0.5 0.499v1.506c8.329 0.17 15 4.58 15 9.995h-5z" />
613
</svg>

__tests__/integration/mirador-configs/collections.js

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,14 @@
11
export default {
2-
catalog: [
3-
{ manifestId: 'https://www.e-codices.unifr.ch/metadata/iiif/collection.json' },
4-
],
2+
catalog: [{ manifestId: 'https://www.e-codices.unifr.ch/metadata/iiif/collection.json' }],
53
id: 'mirador',
64
windows: [
75
{
86
collectionPath: [
97
'https://www.e-codices.unifr.ch/metadata/iiif/collection.json',
108
'https://www.e-codices.unifr.ch/metadata/iiif/collection/stabs.json',
119
],
12-
manifestId: 'https://www.e-codices.unifr.ch/metadata/iiif/stabs-StAlban-DD1-1580/manifest.json',
10+
manifestId:
11+
'https://www.e-codices.unifr.ch/metadata/iiif/stabs-StAlban-DD1-1580/manifest.json',
1312
},
1413
{
1514
manifestId: 'https://www.e-codices.unifr.ch/metadata/iiif/collection.json',
Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,4 @@
1-
export const PRIMARY_MANIFEST_FIXTURE_URL = 'https://dms-data.stanford.edu/data/manifests/Parker/nb647fd0133/manifest.json';
2-
export const PRIMARY_CANVAS_FIXTURE_URL = 'https://dms-data.stanford.edu/data/manifests/Parker/nb647fd0133/canvas/canvas-1';
1+
export const PRIMARY_MANIFEST_FIXTURE_URL =
2+
'https://dms-data.stanford.edu/data/manifests/Parker/nb647fd0133/manifest.json';
3+
export const PRIMARY_CANVAS_FIXTURE_URL =
4+
'https://dms-data.stanford.edu/data/manifests/Parker/nb647fd0133/canvas/canvas-1';

0 commit comments

Comments
 (0)