Queue media preview (#449)

* output url

* Basic image previews

* Split out task item component

* Move task actions to context menu

* simplify

* Move spinner

* Lift context menu to tab scope

* Better tag

* Fix placeholder style

* nit

* Correctly handle cancelled

* nit

* Split out result item as separate component

* nit

* Fix center crop

* nit

* Simplify task item

* Flat list

* Show prompt id

* Make image draggable

* Disable preview for dragging

* Fix key

* Correctly handle task in expanded view

* Add preview
This commit is contained in:
Chenlei Hu
2024-08-15 23:26:38 -04:00
committed by GitHub
parent 9e3dffd7fd
commit e6d29656fa
8 changed files with 397 additions and 125 deletions

View File

@@ -2,6 +2,8 @@ import { createI18n } from 'vue-i18n'
const messages = {
en: {
delete: 'Delete',
loadWorkflow: 'Load Workflow',
settings: 'Settings',
searchSettings: 'Search Settings',
noResultsFound: 'No Results Found',
@@ -15,10 +17,15 @@ const messages = {
nodeLibrary: 'Node Library',
nodeLibraryTab: {
sortOrder: 'Sort Order'
},
queueTab: {
showFlatList: 'Show Flat List'
}
}
},
zh: {
delete: '删除',
loadWorkflow: '加载工作流',
settings: '设置',
searchSettings: '搜索设置',
noResultsFound: '未找到结果',
@@ -32,6 +39,9 @@ const messages = {
nodeLibrary: '节点库',
nodeLibraryTab: {
sortOrder: '排序顺序'
},
queueTab: {
showFlatList: '平铺结果'
}
}
}