mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-03-07 14:09:59 +00:00
Knip: More Pruning (#5374)
* knip: Don't ignore exports that are only used within a given file * knip: More pruning after rebase * knip: Vite plugin config fix * knip: vitest plugin config * knip: Playwright config, remove unnecessary ignores. * knip: Simplify project file enumeration. * knip: simplify the config file patterns ?(.optional_segment) * knip: tailwind v4 fix * knip: A little more, explain some of the deps. Should be good for this PR. * knip: remove unused disabling of classMembers. It's opt-in, which we should probably do. * knip: floating comments We should probably delete _one_ of these parallell trees, right? * knip: Add additional entrypoints * knip: Restore UserData that's exposed via the types for now. * knip: Add as an entry file even though knip says it's not necessary. * knip: re-export functions used by nodes (h/t @christian-byrne)
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
import type { HTMLAttributes } from 'vue'
|
||||
|
||||
export type ButtonSize = 'fit-content' | 'sm' | 'md'
|
||||
export type ButtonType = 'primary' | 'secondary' | 'transparent'
|
||||
export type ButtonBorder = boolean
|
||||
type ButtonType = 'primary' | 'secondary' | 'transparent'
|
||||
type ButtonBorder = boolean
|
||||
|
||||
export interface BaseButtonProps {
|
||||
size?: ButtonSize
|
||||
|
||||
@@ -9,7 +9,7 @@ import type { ComfyCommand } from '@/stores/commandStore'
|
||||
import type { BottomPanelExtension } from '@/types/extensionTypes'
|
||||
import type { SettingParams } from '@/types/settingTypes'
|
||||
|
||||
export type Widgets = Record<string, ComfyWidgetConstructor>
|
||||
type Widgets = Record<string, ComfyWidgetConstructor>
|
||||
|
||||
export interface AboutPageBadge {
|
||||
label: string
|
||||
@@ -17,7 +17,7 @@ export interface AboutPageBadge {
|
||||
icon: string
|
||||
}
|
||||
|
||||
export type MenuCommandGroup = {
|
||||
type MenuCommandGroup = {
|
||||
/**
|
||||
* The path to the menu group.
|
||||
*/
|
||||
|
||||
@@ -3,7 +3,7 @@ import { Component } from 'vue'
|
||||
import type { useDialogService } from '@/services/dialogService'
|
||||
import type { ComfyCommand } from '@/stores/commandStore'
|
||||
|
||||
export interface BaseSidebarTabExtension {
|
||||
interface BaseSidebarTabExtension {
|
||||
id: string
|
||||
title: string
|
||||
icon?: string | Component
|
||||
@@ -12,7 +12,7 @@ export interface BaseSidebarTabExtension {
|
||||
label?: string
|
||||
}
|
||||
|
||||
export interface BaseBottomPanelExtension {
|
||||
interface BaseBottomPanelExtension {
|
||||
id: string
|
||||
title?: string // For extensions that provide static titles
|
||||
titleKey?: string // For core tabs with i18n keys
|
||||
@@ -32,16 +32,14 @@ export interface CustomExtension {
|
||||
destroy?: () => void
|
||||
}
|
||||
|
||||
export type VueSidebarTabExtension = BaseSidebarTabExtension & VueExtension
|
||||
export type CustomSidebarTabExtension = BaseSidebarTabExtension &
|
||||
CustomExtension
|
||||
type VueSidebarTabExtension = BaseSidebarTabExtension & VueExtension
|
||||
type CustomSidebarTabExtension = BaseSidebarTabExtension & CustomExtension
|
||||
export type SidebarTabExtension =
|
||||
| VueSidebarTabExtension
|
||||
| CustomSidebarTabExtension
|
||||
|
||||
export type VueBottomPanelExtension = BaseBottomPanelExtension & VueExtension
|
||||
export type CustomBottomPanelExtension = BaseBottomPanelExtension &
|
||||
CustomExtension
|
||||
type VueBottomPanelExtension = BaseBottomPanelExtension & VueExtension
|
||||
type CustomBottomPanelExtension = BaseBottomPanelExtension & CustomExtension
|
||||
export type BottomPanelExtension =
|
||||
| VueBottomPanelExtension
|
||||
| CustomBottomPanelExtension
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import type { ComputedRef, InjectionKey } from 'vue'
|
||||
|
||||
export interface ImportFailedContext {
|
||||
interface ImportFailedContext {
|
||||
importFailed: ComputedRef<boolean>
|
||||
showImportFailedDialog: () => void
|
||||
}
|
||||
|
||||
@@ -66,7 +66,7 @@ export type GltfChunkHeader = {
|
||||
chunkTypeIdentifier: number
|
||||
}
|
||||
|
||||
export type GltfExtras = {
|
||||
type GltfExtras = {
|
||||
workflow?: string | object
|
||||
prompt?: string | object
|
||||
[key: string]: any
|
||||
@@ -112,12 +112,12 @@ export type AvifIinfBox = {
|
||||
entries: AvifInfeBox[]
|
||||
}
|
||||
|
||||
export type AvifIlocItemExtent = {
|
||||
type AvifIlocItemExtent = {
|
||||
extent_offset: number
|
||||
extent_length: number
|
||||
}
|
||||
|
||||
export type AvifIlocItem = {
|
||||
type AvifIlocItem = {
|
||||
item_ID: number
|
||||
data_reference_index: number
|
||||
base_offset: number
|
||||
|
||||
@@ -11,7 +11,7 @@ import type { ComboInputOptions, InputSpec } from '@/schemas/nodeDefSchema'
|
||||
* Frontend augmentation for image upload combo inputs.
|
||||
* This extends ComboInputOptions with properties injected by the uploadImage extension.
|
||||
*/
|
||||
export interface ImageUploadComboOptions extends ComboInputOptions {
|
||||
interface ImageUploadComboOptions extends ComboInputOptions {
|
||||
/**
|
||||
* Reference to the associated filename combo widget.
|
||||
* Injected by uploadImage.ts to link upload buttons with their combo widgets.
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import type { Settings } from '@/schemas/apiSchema'
|
||||
|
||||
export type SettingInputType =
|
||||
type SettingInputType =
|
||||
| 'boolean'
|
||||
| 'number'
|
||||
| 'slider'
|
||||
@@ -13,7 +13,7 @@ export type SettingInputType =
|
||||
| 'hidden'
|
||||
| 'backgroundImage'
|
||||
|
||||
export type SettingCustomRenderer = (
|
||||
type SettingCustomRenderer = (
|
||||
name: string,
|
||||
setter: (v: any) => void,
|
||||
value: any,
|
||||
|
||||
Reference in New Issue
Block a user