Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
37be9a0b0d | ||
|
|
fcea052dde | ||
|
|
9e95e7bd74 |
@@ -120,7 +120,11 @@ class ModelManager:
|
|||||||
folders, *others = folder_paths.folder_names_and_paths[folder]
|
folders, *others = folder_paths.folder_names_and_paths[folder]
|
||||||
|
|
||||||
def get_file_info(entry: os.DirEntry[str], base_path: str, path_index: int):
|
def get_file_info(entry: os.DirEntry[str], base_path: str, path_index: int):
|
||||||
fullname = utils.normalize_path(entry.path).replace(f"{base_path}/", "")
|
prefix_path = utils.normalize_path(base_path)
|
||||||
|
if not prefix_path.endswith("/"):
|
||||||
|
prefix_path = f"{prefix_path}/"
|
||||||
|
|
||||||
|
fullname = utils.normalize_path(entry.path).replace(prefix_path, "")
|
||||||
basename = os.path.splitext(fullname)[0]
|
basename = os.path.splitext(fullname)[0]
|
||||||
extension = os.path.splitext(fullname)[1]
|
extension = os.path.splitext(fullname)[1]
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
[project]
|
[project]
|
||||||
name = "comfyui-model-manager"
|
name = "comfyui-model-manager"
|
||||||
description = "Manage models: browsing, download and delete."
|
description = "Manage models: browsing, download and delete."
|
||||||
version = "2.3.3"
|
version = "2.3.4"
|
||||||
license = { file = "LICENSE" }
|
license = { file = "LICENSE" }
|
||||||
dependencies = ["markdownify"]
|
dependencies = ["markdownify"]
|
||||||
|
|
||||||
|
|||||||
@@ -20,14 +20,17 @@
|
|||||||
|
|
||||||
<div class="flex items-center justify-between gap-4 overflow-hidden">
|
<div class="flex items-center justify-between gap-4 overflow-hidden">
|
||||||
<ResponseSelect
|
<ResponseSelect
|
||||||
|
class="flex-1"
|
||||||
v-model="currentType"
|
v-model="currentType"
|
||||||
:items="typeOptions"
|
:items="typeOptions"
|
||||||
></ResponseSelect>
|
></ResponseSelect>
|
||||||
<ResponseSelect
|
<ResponseSelect
|
||||||
|
class="flex-1"
|
||||||
v-model="sortOrder"
|
v-model="sortOrder"
|
||||||
:items="sortOrderOptions"
|
:items="sortOrderOptions"
|
||||||
></ResponseSelect>
|
></ResponseSelect>
|
||||||
<ResponseSelect
|
<ResponseSelect
|
||||||
|
class="flex-1"
|
||||||
v-model="cardSizeFlag"
|
v-model="cardSizeFlag"
|
||||||
:items="cardSizeOptions"
|
:items="cardSizeOptions"
|
||||||
></ResponseSelect>
|
></ResponseSelect>
|
||||||
@@ -97,7 +100,8 @@ const { $lg: $content_lg } = useContainerQueries(contentContainer)
|
|||||||
|
|
||||||
const searchContent = ref<string>()
|
const searchContent = ref<string>()
|
||||||
|
|
||||||
const currentType = ref('all')
|
const allType = 'All'
|
||||||
|
const currentType = ref(allType)
|
||||||
const typeOptions = computed(() => {
|
const typeOptions = computed(() => {
|
||||||
const excludeScanTypes = app.ui?.settings.getSettingValue<string>(
|
const excludeScanTypes = app.ui?.settings.getSettingValue<string>(
|
||||||
configSetting.excludeScanTypes,
|
configSetting.excludeScanTypes,
|
||||||
@@ -108,7 +112,7 @@ const typeOptions = computed(() => {
|
|||||||
.map((type) => type.trim())
|
.map((type) => type.trim())
|
||||||
.filter(Boolean) ?? []
|
.filter(Boolean) ?? []
|
||||||
return [
|
return [
|
||||||
'all',
|
allType,
|
||||||
...Object.keys(folders.value).filter(
|
...Object.keys(folders.value).filter(
|
||||||
(folder) => !customBlackList.includes(folder),
|
(folder) => !customBlackList.includes(folder),
|
||||||
),
|
),
|
||||||
@@ -163,7 +167,7 @@ const list = computed(() => {
|
|||||||
const mergedList = Object.values(data.value).flat()
|
const mergedList = Object.values(data.value).flat()
|
||||||
|
|
||||||
const filterList = mergedList.filter((model) => {
|
const filterList = mergedList.filter((model) => {
|
||||||
const showAllModel = currentType.value === 'all'
|
const showAllModel = currentType.value === allType
|
||||||
|
|
||||||
const matchType = showAllModel || model.type === currentType.value
|
const matchType = showAllModel || model.type === currentType.value
|
||||||
const matchName = model.fullname
|
const matchName = model.fullname
|
||||||
|
|||||||
Reference in New Issue
Block a user