Skip to content

Commit d6361d5

Browse files
Commit from GitHub Actions (Lint and Prettify code)
1 parent c9f0630 commit d6361d5

13 files changed

Lines changed: 46 additions & 39 deletions

File tree

β€Žsrc/content-handlers/iiif/JQueryPlugins.tsβ€Ž

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,8 @@ export default function jqueryPlugins($) {
260260
const $current: JQuery = $(this).is("iframe")
261261
? $(this).contents().find("body")
262262
: $(this);
263-
const offset: JQueryCoordinates = $current.offset()?? $current.position();
263+
const offset: JQueryCoordinates =
264+
$current.offset() ?? $current.position();
264265
result =
265266
offset.left <= $.mlp.x &&
266267
offset.left + $current.outerWidth()! > $.mlp.x &&
@@ -342,7 +343,9 @@ export default function jqueryPlugins($) {
342343
return this.each(function () {
343344
const $self: JQuery = $(this);
344345
if ($self.contents().length > 0) {
345-
const $lastElement: JQuery<Element | Text | Comment | Document> = $self.contents().last();
346+
const $lastElement: JQuery<Element | Text | Comment | Document> = $self
347+
.contents()
348+
.last();
346349
if ($lastElement[0].nodeType === 3) {
347350
const words: string[] = $lastElement.text().trim().split(" ");
348351
if (words.length > 1) {
@@ -554,7 +557,6 @@ export default function jqueryPlugins($) {
554557
}
555558

556559
declare global {
557-
558560
interface JQuery {
559561
attr(
560562
attributeName: string,

β€Žsrc/content-handlers/iiif/modules/uv-avcenterpanel-module/AVView.tsxβ€Ž

Lines changed: 14 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,28 @@
11
import React from "react";
2-
import { IIIFPlayer, MediaPlayer, StructuredNavigation, Transcript } from "@samvera/ramp";
2+
import {
3+
IIIFPlayer,
4+
MediaPlayer,
5+
StructuredNavigation,
6+
Transcript,
7+
} from "@samvera/ramp";
38
import { Manifest } from "manifesto.js";
49

5-
const AVView = ({
6-
manifest
7-
}: {
8-
manifest: Manifest;
9-
}) => {
10-
10+
const AVView = ({ manifest }: { manifest: Manifest }) => {
1111
// Get your manifest from somewhere
1212
const manifestUrl = manifest.id;
1313

1414
// Transcript props
1515
const props = {
16-
playerID: 'player-id',
16+
playerID: "player-id",
1717
transcripts: [
1818
{
1919
canvasId: 0,
20-
items: [{ title: "Title", url: "https://some-transcript-url-here.json" }]
21-
}
22-
]
23-
}
20+
items: [
21+
{ title: "Title", url: "https://some-transcript-url-here.json" },
22+
],
23+
},
24+
],
25+
};
2426

2527
return (
2628
<IIIFPlayer manifestUrl={manifestUrl}>
@@ -32,4 +34,3 @@ const AVView = ({
3234
};
3335

3436
export default AVView;
35-

β€Žsrc/content-handlers/iiif/modules/uv-avcenterpanel-module/css/styles.lessβ€Ž

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@
2727
}
2828

2929
.av-component {
30-
3130
.canvas-timeline-container .ui-slider-handle {
3231
pointer-events: none;
3332
}

β€Žsrc/content-handlers/iiif/modules/uv-avmobilefooterpanel-module/css/styles.lessβ€Ž

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
.uv-iiif-extension-host.uv-av-extension {
2-
32
.mobileFooterPanel {
43
float: right;
54
width: 90px;

β€Žsrc/content-handlers/iiif/modules/uv-moreinforightpanel-module/MoreInfoRightPanel.tsβ€Ž

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,9 @@ export class MoreInfoRightPanel extends RightPanel<MoreInfoRightPanelConfig> {
140140
super.resize();
141141

142142
this.$main.height(
143-
this.$element.height()! - this.$top.height()! - this.$main.verticalMargins()
143+
this.$element.height()! -
144+
this.$top.height()! -
145+
this.$main.verticalMargins()
144146
);
145147

146148
// always put tabindex on, so the main is focusable,

β€Žsrc/content-handlers/iiif/modules/uv-multiselectdialogue-module/MultiSelectDialogue.tsβ€Ž

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -114,9 +114,9 @@ export class MultiSelectDialogue extends Dialogue<
114114
const $header: JQuery = this.$gallery.find(".header");
115115
$main.height(
116116
this.$content.height()! -
117-
this.$title.outerHeight()! -
118-
this.$title.verticalMargins() -
119-
$header.height()!
117+
this.$title.outerHeight()! -
118+
this.$title.verticalMargins() -
119+
$header.height()!
120120
);
121121
}
122122
}

β€Žsrc/content-handlers/iiif/modules/uv-openseadragoncenterpanel-module/OpenSeadragonCenterPanel.tsβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1515,7 +1515,7 @@ export class OpenSeadragonCenterPanel extends CenterPanel<
15151515
if (this.extension.helper.isContinuous()) {
15161516
if (this.extension.helper.isHorizontallyAligned()) {
15171517
const width: number =
1518-
(this.$viewer.width()!) - this.$viewer.rightMargin();
1518+
this.$viewer.width()! - this.$viewer.rightMargin();
15191519
this.$navigator.width(width);
15201520
} else {
15211521
this.$navigator.height(this.$viewer.height()!);

β€Žsrc/content-handlers/iiif/modules/uv-pdfcenterpanel-module/PDFCenterPanel.tsβ€Ž

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -454,8 +454,8 @@ export class PDFCenterPanel extends CenterPanel<
454454
resize() {
455455
super.resize();
456456

457-
this._$pdfContainer.width(this.$content.width()!)
458-
this._$pdfContainer.height(this.$content.height()!)
457+
this._$pdfContainer.width(this.$content.width()!);
458+
this._$pdfContainer.height(this.$content.height()!);
459459

460460
// this._$spinner.css(
461461
// "top",

β€Žsrc/content-handlers/iiif/modules/uv-shared-module/AutoComplete.tsβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ export class AutoComplete {
167167

168168
private _getTerms(): string {
169169
const term: string | undefined = this._$element.val()?.toString() ?? "";
170-
return term.trim();
170+
return term.trim();
171171
}
172172

173173
private _setSelectedResultIndex(direction: number): void {

β€Žsrc/content-handlers/iiif/modules/uv-shared-module/BaseExpandPanel.tsβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -318,6 +318,6 @@ export class BaseExpandPanel<T extends ExpandPanel> extends BaseView<T> {
318318
resize(): void {
319319
super.resize();
320320

321-
this.$main.height((this.$element.height()!) - (this.$top.outerHeight(true)!));
321+
this.$main.height(this.$element.height()! - this.$top.outerHeight(true)!);
322322
}
323323
}

0 commit comments

Comments
Β (0)