mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-02-01 22:09:55 +00:00
Add and use knipIgnoreUnusedButUsedByStorybook
This commit is contained in:
@@ -66,7 +66,8 @@ const config: KnipConfig = {
|
||||
},
|
||||
tags: [
|
||||
'-knipIgnoreUnusedButUsedByCustomNodes',
|
||||
'-knipIgnoreUnusedButUsedByVueNodesBranch'
|
||||
'-knipIgnoreUnusedButUsedByVueNodesBranch',
|
||||
'-knipIgnoreUnusedButUsedByStorybook'
|
||||
]
|
||||
}
|
||||
|
||||
|
||||
@@ -9,6 +9,7 @@ export function setMockJobActions(actions: Record<string, JobAction[]>) {
|
||||
actionsByJobId.value = actions
|
||||
}
|
||||
|
||||
/** @knipIgnoreUnusedButUsedByStorybook */
|
||||
export function useJobActions() {
|
||||
function getJobActions(job: JobListItem) {
|
||||
return actionsByJobId.value[job.id] ?? []
|
||||
|
||||
@@ -43,6 +43,7 @@ export function setMockJobItems(items: JobListItem[]) {
|
||||
jobItems.value = items
|
||||
}
|
||||
|
||||
/** @knipIgnoreUnusedButUsedByStorybook */
|
||||
export function useJobList() {
|
||||
return {
|
||||
selectedJobTab,
|
||||
|
||||
Reference in New Issue
Block a user