mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
switch to shared image editor
This commit is contained in:
parent
228cefadd8
commit
4c97201a3c
15 changed files with 264 additions and 174 deletions
|
@ -2179,9 +2179,14 @@
|
|||
function editImages() {
|
||||
return new Promise(function (resolve, reject) {
|
||||
|
||||
require(['components/imageeditor/imageeditor'], function (ImageEditor) {
|
||||
require(['imageEditor'], function (imageEditor) {
|
||||
|
||||
ImageEditor.show(currentItem.Id).then(resolve, reject);
|
||||
imageEditor.show({
|
||||
|
||||
itemId: currentItem.Id,
|
||||
serverId: currentItem.ServerId
|
||||
|
||||
}).then(resolve, reject);
|
||||
});
|
||||
});
|
||||
}
|
||||
|
|
|
@ -227,10 +227,13 @@
|
|||
|
||||
function editImages(page, virtualFolder) {
|
||||
|
||||
require(['components/imageeditor/imageeditor'], function (ImageEditor) {
|
||||
require(['imageEditor'], function (imageEditor) {
|
||||
|
||||
imageEditor.show({
|
||||
|
||||
itemId: virtualFolder.ItemId,
|
||||
serverId: ApiClient.serverId()
|
||||
|
||||
ImageEditor.show(virtualFolder.ItemId, {
|
||||
theme: 'a'
|
||||
}).then(function () {
|
||||
reloadLibrary(page);
|
||||
});
|
||||
|
@ -297,7 +300,7 @@
|
|||
style += "min-width:33.3%;";
|
||||
}
|
||||
|
||||
html += '<div class="card backdropCard scalableCard backdropCard-scalable" style="' + style + '" data-index="' + index + '">';
|
||||
html += '<div class="card midBackdropCard scalableCard midBackdropCard-scalable" style="' + style + '" data-index="' + index + '">';
|
||||
|
||||
html += '<div class="cardBox visualCardBox">';
|
||||
html += '<div class="cardScalable visualCardBox-cardScalable">';
|
||||
|
|
|
@ -1291,6 +1291,7 @@ var AppInfo = {};
|
|||
define("itemIdentifier", [embyWebComponentsBowerPath + "/itemidentifier/itemidentifier"], returnFirstDependency);
|
||||
define("mediaInfo", [embyWebComponentsBowerPath + "/mediainfo/mediainfo"], returnFirstDependency);
|
||||
define("itemContextMenu", [embyWebComponentsBowerPath + "/itemcontextmenu"], returnFirstDependency);
|
||||
define("imageEditor", [embyWebComponentsBowerPath + "/imageeditor/imageeditor"], returnFirstDependency);
|
||||
define("dom", [embyWebComponentsBowerPath + "/dom"], returnFirstDependency);
|
||||
define("layoutManager", [embyWebComponentsBowerPath + "/layoutmanager"], getLayoutManager);
|
||||
define("playMenu", [embyWebComponentsBowerPath + "/playmenu"], returnFirstDependency);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue