Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 9 additions & 2 deletions plugins/visage/visage.js
Original file line number Diff line number Diff line change
Expand Up @@ -17954,7 +17954,9 @@
return React.createElement(VisageProvider, { scenario: 'images', scenarioId }, React.createElement(ThemeDetector, null), React.createElement(ImageOperationsMenuPortal, null), React.createElement(ModalRoot, null));
}
function PerformerVisageWrapper({ scenarioId }) {
return React.createElement(VisageProvider, { scenario: 'performers', scenarioId }, React.createElement(ThemeDetector, null), React.createElement(PerformerActionsPortal, null), React.createElement(ModalRoot, null));
return React.createElement(VisageProvider, { scenario: 'performers', scenarioId }, React.createElement(ThemeDetector, null), React.createElement(PerformerActionsPortal, null),
// The performer Scenes tab is a scene list too.
React.createElement(SceneBatchRoot, null), React.createElement(ModalRoot, null));
}
function SceneListVisageWrapper() {
return React.createElement(VisageProvider, { scenario: 'scenes' }, React.createElement(ThemeDetector, null), React.createElement(SceneBatchRoot, null), React.createElement(ModalRoot, null));
Expand Down Expand Up @@ -18004,13 +18006,18 @@
requestAnimationFrame(() => mountPage('images', match[1]));
}
});
// Pages with a Stash scene list: the scenes page and the detail pages of
// studios, tags and groups (movies on older Stash). Their Scenes tab can be the
// default tab with no /scenes in the URL, so match the whole detail page and
// let findSceneListMenuAnchor gate on the menu in the DOM.
const SCENE_LIST_PATH = /^\/(scenes\/?$|(studios|tags|groups|movies)\/\d+)/;
function mountForPath(pathname) {
const match = pathname.match(/\/(images|performers)\/(\d+)/);
if (match) {
const scenario = match[1];
requestAnimationFrame(() => mountPage(scenario, match[2]));
}
else if (/^\/scenes\/?$/.test(pathname)) {
else if (SCENE_LIST_PATH.test(pathname)) {
requestAnimationFrame(() => mountPage('sceneList', ''));
}
else {
Expand Down
2 changes: 1 addition & 1 deletion plugins/visage/visage.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: Visage
description: Use facial recognition to lookup performers from scene sprites
version: 2.10.0
version: 2.10.1
url: https://discourse.stashapp.cc/t/visage/11785
ui:
javascript:
Expand Down
Loading