mirror of
https://github.com/stashapp/stash.git
synced 2025-12-18 04:44:37 +03:00
Styling
This commit is contained in:
@@ -3,3 +3,4 @@ export { default as NavUtils } from "./navigation";
|
||||
export { default as TableUtils } from "./table";
|
||||
export { default as TextUtils } from "./text";
|
||||
export { default as DurationUtils } from "./duration";
|
||||
export { default as JWUtils } from './jwplayer';
|
||||
|
||||
9
ui/v2.5/src/utils/jwplayer.ts
Normal file
9
ui/v2.5/src/utils/jwplayer.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
const playerID = "main-jwplayer";
|
||||
const getPlayer = () => (
|
||||
(window as any).jwplayer(playerID)
|
||||
)
|
||||
|
||||
export default {
|
||||
playerID,
|
||||
getPlayer
|
||||
};
|
||||
@@ -1,9 +1,9 @@
|
||||
import * as GQL from "../core/generated-graphql";
|
||||
import { PerformersCriterion } from "../models/list-filter/criteria/performers";
|
||||
import { StudiosCriterion } from "../models/list-filter/criteria/studios";
|
||||
import { TagsCriterion } from "../models/list-filter/criteria/tags";
|
||||
import { ListFilterModel } from "../models/list-filter/filter";
|
||||
import { FilterMode } from "../models/list-filter/types";
|
||||
import * as GQL from "src/core/generated-graphql";
|
||||
import { PerformersCriterion } from "src/models/list-filter/criteria/performers";
|
||||
import { StudiosCriterion } from "src/models/list-filter/criteria/studios";
|
||||
import { TagsCriterion } from "src/models/list-filter/criteria/tags";
|
||||
import { ListFilterModel } from "src/models/list-filter/filter";
|
||||
import { FilterMode } from "src/models/list-filter/types";
|
||||
|
||||
const makePerformerScenesUrl = (
|
||||
performer: Partial<GQL.PerformerDataFragment>
|
||||
@@ -54,11 +54,10 @@ const makeSceneMarkerUrl = (
|
||||
return `/scenes/${sceneMarker.scene.id}?t=${sceneMarker.seconds}`;
|
||||
};
|
||||
|
||||
const Nav = {
|
||||
export default {
|
||||
makePerformerScenesUrl,
|
||||
makeStudioScenesUrl,
|
||||
makeTagSceneMarkersUrl,
|
||||
makeTagScenesUrl,
|
||||
makeSceneMarkerUrl
|
||||
};
|
||||
export default Nav;
|
||||
|
||||
@@ -89,10 +89,13 @@ const renderHtmlSelect = (options: {
|
||||
as="select"
|
||||
readOnly={!options.isEditing}
|
||||
plaintext={!options.isEditing}
|
||||
value={options.value?.toString()}
|
||||
onChange={(event: React.FormEvent<HTMLSelectElement>) =>
|
||||
options.onChange(event.currentTarget.value)
|
||||
}
|
||||
/>
|
||||
>
|
||||
{ options.selectOptions.map(opt => <option value={opt} key={opt}>{opt}</option>)}
|
||||
</Form.Control>
|
||||
</td>
|
||||
</tr>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user