Skip to content

Commit

Permalink
Completed remaining trivial stylefixes
Browse files Browse the repository at this point in the history
  • Loading branch information
nwalker2398 committed Mar 5, 2024
1 parent 8dea204 commit a23e6c3
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 19 deletions.
1 change: 1 addition & 0 deletions src/plugins/mirador-canvasRelatedLinks/state/selectors.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { createSelector } from 'reselect';
import asArray from '../../../lib/asArray';
import { getCurrentCanvas, getManifestLocale } from '../../../state/selectors';

/** */
Expand Down
2 changes: 1 addition & 1 deletion src/plugins/mirador-canvaslink/state/selectors.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ const _reselect = require('reselect');
const _selectors = require('../../../state/selectors');

/** */
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (let i = 1; i < arguments.length; i+= 1) { const source = arguments[i]; for (const key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (let i = 1; i < arguments.length; i += 1) { const source = arguments[i]; for (const key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }

Check failure on line 7 in src/plugins/mirador-canvaslink/state/selectors.js

View workflow job for this annotation

GitHub Actions / build (20.x)

This line has a length of 346. Maximum allowed is 120

Check warning on line 7 in src/plugins/mirador-canvaslink/state/selectors.js

View workflow job for this annotation

GitHub Actions / build (20.x)

'_extends' is a function

Check warning on line 7 in src/plugins/mirador-canvaslink/state/selectors.js

View workflow job for this annotation

GitHub Actions / build (20.x)

Unexpected unnamed function

Check failure on line 7 in src/plugins/mirador-canvaslink/state/selectors.js

View workflow job for this annotation

GitHub Actions / build (20.x)

Use the rest parameters instead of 'arguments'
const defaultConfig = {
// Open the settings dialog
dialogOpen: false,
Expand Down
9 changes: 1 addition & 8 deletions src/plugins/mirador-citations/WindowSideBarCitationButton.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,7 @@ export class WindowSideBarCitationButton extends React.Component {
* @return
*/
render() {
const {
windowId,
id,
classes,
t,
locale,
value,
} = this.props;
const { classes } = this.props;

return (
<Badge overlap="rectangular" classes={{ badge: classes.badge }} variant="dot">
Expand Down
6 changes: 1 addition & 5 deletions src/plugins/mirador-videojs/components/VideoJSViewer.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import React, { Component } from 'react';

Check warning on line 1 in src/plugins/mirador-videojs/components/VideoJSViewer.js

View workflow job for this annotation

GitHub Actions / build (20.x)

'React' is defined but never used

Check warning on line 1 in src/plugins/mirador-videojs/components/VideoJSViewer.js

View workflow job for this annotation

GitHub Actions / build (20.x)

'Component' is defined but never used
import { connect } from 'react-redux';
import { compose } from 'redux';
import { withTranslation } from 'react-i18next';
Expand Down Expand Up @@ -58,8 +59,3 @@ export const VideoJSViewer = enhance(VideoJSViewerBase);
export default function ({ _targetComponent, targetProps }) {

Check warning on line 59 in src/plugins/mirador-videojs/components/VideoJSViewer.js

View workflow job for this annotation

GitHub Actions / build (20.x)

Unexpected unnamed function
return <VideoJSViewer {...targetProps} />;
}

VideoJSViewer.propTypes = {
targetProps: PropTypes.object.isRequired,
_targetComponent: PropTypes.func,
}
6 changes: 3 additions & 3 deletions src/plugins/mirador-viewXml/MiradorViewXmlDialog.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ import { fetch as fetchPolyfill } from 'whatwg-fetch';
import ns from '../../config/css-ns';
import ScrollIndicatedDialogContent from '../../containers/ScrollIndicatedDialogContent';

self.$RefreshReg$ = () => {};
self.$RefreshSig$ = () => () => {};
self.$RefreshReg$ = () => {}; /* eslint-disable-line no-restricted-globals */
self.$RefreshSig$ = () => () => {}; /* eslint-disable-line no-restricted-globals */

/**
* MiradorViewXmlDialog ~
Expand All @@ -30,7 +30,7 @@ const MiradorViewXmlDialog = ({
return null;
}

const xmlLink = (function (relateds) {
const xmlLink = (function link(relateds) {
if (!relateds) return null;
return relateds.find(ref => ref.schema === 'http://www.loc.gov/mods/v3')?.id;
}(seeAlso));
Expand Down
4 changes: 2 additions & 2 deletions src/plugins/mirador-viewXml/MiradorViewXmlPlugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ import PropTypes from 'prop-types';
import CodeIcon from '@mui/icons-material/Code';
import MiradorMenuButton from '../../containers/MiradorMenuButton';

self.$RefreshReg$ = () => {};
self.$RefreshSig$ = () => () => {};
self.$RefreshReg$ = () => {}; /* eslint-disable-line no-restricted-globals */
self.$RefreshSig$ = () => () => {}; /* eslint-disable-line no-restricted-globals */

/** */
const MiradorViewXml = ({ config, container, updateConfig }) => {
Expand Down

0 comments on commit a23e6c3

Please sign in to comment.