mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-01-26 19:09:52 +00:00
Lint: Turn on rules that should allow for verbatimModuleSyntax (#5616)
* lint: turn on type import rules setting up for verbatimModuleSyntax * lint: --fix for type imports
This commit is contained in:
@@ -75,6 +75,8 @@ export default defineConfig([
|
|||||||
'@typescript-eslint/no-explicit-any': 'off',
|
'@typescript-eslint/no-explicit-any': 'off',
|
||||||
'@typescript-eslint/no-unused-vars': 'off',
|
'@typescript-eslint/no-unused-vars': 'off',
|
||||||
'@typescript-eslint/prefer-as-const': 'off',
|
'@typescript-eslint/prefer-as-const': 'off',
|
||||||
|
'@typescript-eslint/consistent-type-imports': 'error',
|
||||||
|
'@typescript-eslint/no-import-type-side-effects': 'error',
|
||||||
'unused-imports/no-unused-imports': 'error',
|
'unused-imports/no-unused-imports': 'error',
|
||||||
'vue/no-v-html': 'off',
|
'vue/no-v-html': 'off',
|
||||||
// Enforce dark-theme: instead of dark: prefix
|
// Enforce dark-theme: instead of dark: prefix
|
||||||
|
|||||||
@@ -21,7 +21,8 @@
|
|||||||
|
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import Button from 'primevue/button'
|
import Button from 'primevue/button'
|
||||||
import { CSSProperties, computed, watchEffect } from 'vue'
|
import type { CSSProperties } from 'vue'
|
||||||
|
import { computed, watchEffect } from 'vue'
|
||||||
|
|
||||||
import { useSettingStore } from '@/platform/settings/settingStore'
|
import { useSettingStore } from '@/platform/settings/settingStore'
|
||||||
import { app } from '@/scripts/app'
|
import { app } from '@/scripts/app'
|
||||||
|
|||||||
@@ -22,7 +22,8 @@ import {
|
|||||||
} from '@vueuse/core'
|
} from '@vueuse/core'
|
||||||
import { clamp } from 'es-toolkit/compat'
|
import { clamp } from 'es-toolkit/compat'
|
||||||
import Panel from 'primevue/panel'
|
import Panel from 'primevue/panel'
|
||||||
import { Ref, computed, inject, nextTick, onMounted, ref, watch } from 'vue'
|
import type { Ref } from 'vue'
|
||||||
|
import { computed, inject, nextTick, onMounted, ref, watch } from 'vue'
|
||||||
|
|
||||||
import { useSettingStore } from '@/platform/settings/settingStore'
|
import { useSettingStore } from '@/platform/settings/settingStore'
|
||||||
|
|
||||||
|
|||||||
@@ -26,7 +26,8 @@
|
|||||||
import { useElementHover, useEventListener } from '@vueuse/core'
|
import { useElementHover, useEventListener } from '@vueuse/core'
|
||||||
import type { IDisposable } from '@xterm/xterm'
|
import type { IDisposable } from '@xterm/xterm'
|
||||||
import Button from 'primevue/button'
|
import Button from 'primevue/button'
|
||||||
import { Ref, computed, onMounted, onUnmounted, ref } from 'vue'
|
import type { Ref } from 'vue'
|
||||||
|
import { computed, onMounted, onUnmounted, ref } from 'vue'
|
||||||
import { useI18n } from 'vue-i18n'
|
import { useI18n } from 'vue-i18n'
|
||||||
|
|
||||||
import { useTerminal } from '@/composables/bottomPanelTabs/useTerminal'
|
import { useTerminal } from '@/composables/bottomPanelTabs/useTerminal'
|
||||||
|
|||||||
@@ -3,8 +3,9 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import { IDisposable } from '@xterm/xterm'
|
import type { IDisposable } from '@xterm/xterm'
|
||||||
import { Ref, onMounted, onUnmounted } from 'vue'
|
import type { Ref } from 'vue'
|
||||||
|
import { onMounted, onUnmounted } from 'vue'
|
||||||
|
|
||||||
import type { useTerminal } from '@/composables/bottomPanelTabs/useTerminal'
|
import type { useTerminal } from '@/composables/bottomPanelTabs/useTerminal'
|
||||||
import { electronAPI } from '@/utils/envUtil'
|
import { electronAPI } from '@/utils/envUtil'
|
||||||
|
|||||||
@@ -15,10 +15,11 @@
|
|||||||
import { until } from '@vueuse/core'
|
import { until } from '@vueuse/core'
|
||||||
import { storeToRefs } from 'pinia'
|
import { storeToRefs } from 'pinia'
|
||||||
import ProgressSpinner from 'primevue/progressspinner'
|
import ProgressSpinner from 'primevue/progressspinner'
|
||||||
import { Ref, onMounted, onUnmounted, ref } from 'vue'
|
import type { Ref } from 'vue'
|
||||||
|
import { onMounted, onUnmounted, ref } from 'vue'
|
||||||
|
|
||||||
import type { useTerminal } from '@/composables/bottomPanelTabs/useTerminal'
|
import type { useTerminal } from '@/composables/bottomPanelTabs/useTerminal'
|
||||||
import { LogEntry, LogsWsMessage, TerminalSize } from '@/schemas/apiSchema'
|
import type { LogEntry, LogsWsMessage, TerminalSize } from '@/schemas/apiSchema'
|
||||||
import { api } from '@/scripts/api'
|
import { api } from '@/scripts/api'
|
||||||
import { useExecutionStore } from '@/stores/executionStore'
|
import { useExecutionStore } from '@/stores/executionStore'
|
||||||
|
|
||||||
|
|||||||
@@ -47,7 +47,8 @@
|
|||||||
|
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import InputText from 'primevue/inputtext'
|
import InputText from 'primevue/inputtext'
|
||||||
import Menu, { MenuState } from 'primevue/menu'
|
import type { MenuState } from 'primevue/menu'
|
||||||
|
import Menu from 'primevue/menu'
|
||||||
import type { MenuItem } from 'primevue/menuitem'
|
import type { MenuItem } from 'primevue/menuitem'
|
||||||
import Tag from 'primevue/tag'
|
import Tag from 'primevue/tag'
|
||||||
import { computed, nextTick, ref } from 'vue'
|
import { computed, nextTick, ref } from 'vue'
|
||||||
|
|||||||
@@ -17,7 +17,7 @@
|
|||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import { onBeforeUnmount } from 'vue'
|
import { onBeforeUnmount } from 'vue'
|
||||||
|
|
||||||
import { CustomExtension, VueExtension } from '@/types/extensionTypes'
|
import type { CustomExtension, VueExtension } from '@/types/extensionTypes'
|
||||||
|
|
||||||
const props = defineProps<{
|
const props = defineProps<{
|
||||||
extension: VueExtension | CustomExtension
|
extension: VueExtension | CustomExtension
|
||||||
|
|||||||
@@ -44,7 +44,7 @@ import FormRadioGroup from '@/components/common/FormRadioGroup.vue'
|
|||||||
import InputKnob from '@/components/common/InputKnob.vue'
|
import InputKnob from '@/components/common/InputKnob.vue'
|
||||||
import InputSlider from '@/components/common/InputSlider.vue'
|
import InputSlider from '@/components/common/InputSlider.vue'
|
||||||
import UrlInput from '@/components/common/UrlInput.vue'
|
import UrlInput from '@/components/common/UrlInput.vue'
|
||||||
import { FormItem } from '@/platform/settings/types'
|
import type { FormItem } from '@/platform/settings/types'
|
||||||
|
|
||||||
const formValue = defineModel<any>('formValue')
|
const formValue = defineModel<any>('formValue')
|
||||||
const props = defineProps<{
|
const props = defineProps<{
|
||||||
|
|||||||
@@ -32,7 +32,7 @@
|
|||||||
import Button from 'primevue/button'
|
import Button from 'primevue/button'
|
||||||
import ProgressSpinner from 'primevue/progressspinner'
|
import ProgressSpinner from 'primevue/progressspinner'
|
||||||
|
|
||||||
import { PrimeVueSeverity } from '@/types/primeVueTypes'
|
import type { PrimeVueSeverity } from '@/types/primeVueTypes'
|
||||||
|
|
||||||
const {
|
const {
|
||||||
disabled,
|
disabled,
|
||||||
|
|||||||
@@ -9,10 +9,8 @@ import { createI18n } from 'vue-i18n'
|
|||||||
|
|
||||||
import EditableText from '@/components/common/EditableText.vue'
|
import EditableText from '@/components/common/EditableText.vue'
|
||||||
import TreeExplorerTreeNode from '@/components/common/TreeExplorerTreeNode.vue'
|
import TreeExplorerTreeNode from '@/components/common/TreeExplorerTreeNode.vue'
|
||||||
import {
|
import type { RenderedTreeExplorerNode } from '@/types/treeExplorerTypes'
|
||||||
InjectKeyHandleEditLabelFunction,
|
import { InjectKeyHandleEditLabelFunction } from '@/types/treeExplorerTypes'
|
||||||
RenderedTreeExplorerNode
|
|
||||||
} from '@/types/treeExplorerTypes'
|
|
||||||
|
|
||||||
// Create a mock i18n instance
|
// Create a mock i18n instance
|
||||||
const i18n = createI18n({
|
const i18n = createI18n({
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
import { VueWrapper, mount } from '@vue/test-utils'
|
import type { VueWrapper } from '@vue/test-utils'
|
||||||
|
import { mount } from '@vue/test-utils'
|
||||||
import { createPinia } from 'pinia'
|
import { createPinia } from 'pinia'
|
||||||
import Button from 'primevue/button'
|
import Button from 'primevue/button'
|
||||||
import PrimeVue from 'primevue/config'
|
import PrimeVue from 'primevue/config'
|
||||||
|
|||||||
@@ -148,7 +148,7 @@ import { useI18n } from 'vue-i18n'
|
|||||||
|
|
||||||
import { useFirebaseAuthActions } from '@/composables/auth/useFirebaseAuthActions'
|
import { useFirebaseAuthActions } from '@/composables/auth/useFirebaseAuthActions'
|
||||||
import { COMFY_PLATFORM_BASE_URL } from '@/config/comfyApi'
|
import { COMFY_PLATFORM_BASE_URL } from '@/config/comfyApi'
|
||||||
import { SignInData, SignUpData } from '@/schemas/signInSchema'
|
import type { SignInData, SignUpData } from '@/schemas/signInSchema'
|
||||||
import { isInChina } from '@/utils/networkUtil'
|
import { isInChina } from '@/utils/networkUtil'
|
||||||
|
|
||||||
import ApiKeyForm from './signin/ApiKeyForm.vue'
|
import ApiKeyForm from './signin/ApiKeyForm.vue'
|
||||||
|
|||||||
@@ -17,7 +17,8 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import { Form, FormSubmitEvent } from '@primevue/forms'
|
import type { FormSubmitEvent } from '@primevue/forms'
|
||||||
|
import { Form } from '@primevue/forms'
|
||||||
import { zodResolver } from '@primevue/forms/resolvers/zod'
|
import { zodResolver } from '@primevue/forms/resolvers/zod'
|
||||||
import Button from 'primevue/button'
|
import Button from 'primevue/button'
|
||||||
import { ref } from 'vue'
|
import { ref } from 'vue'
|
||||||
|
|||||||
@@ -160,7 +160,7 @@ import { useComfyManagerStore } from '@/stores/comfyManagerStore'
|
|||||||
import { useComfyRegistryStore } from '@/stores/comfyRegistryStore'
|
import { useComfyRegistryStore } from '@/stores/comfyRegistryStore'
|
||||||
import type { TabItem } from '@/types/comfyManagerTypes'
|
import type { TabItem } from '@/types/comfyManagerTypes'
|
||||||
import { ManagerTab } from '@/types/comfyManagerTypes'
|
import { ManagerTab } from '@/types/comfyManagerTypes'
|
||||||
import { components } from '@/types/comfyRegistryTypes'
|
import type { components } from '@/types/comfyRegistryTypes'
|
||||||
|
|
||||||
const { initialTab } = defineProps<{
|
const { initialTab } = defineProps<{
|
||||||
initialTab?: ManagerTab
|
initialTab?: ManagerTab
|
||||||
|
|||||||
@@ -169,7 +169,7 @@ import { useI18n } from 'vue-i18n'
|
|||||||
|
|
||||||
import ContentDivider from '@/components/common/ContentDivider.vue'
|
import ContentDivider from '@/components/common/ContentDivider.vue'
|
||||||
import { useConflictDetection } from '@/composables/useConflictDetection'
|
import { useConflictDetection } from '@/composables/useConflictDetection'
|
||||||
import {
|
import type {
|
||||||
ConflictDetail,
|
ConflictDetail,
|
||||||
ConflictDetectionResult
|
ConflictDetectionResult
|
||||||
} from '@/types/conflictDetectionTypes'
|
} from '@/types/conflictDetectionTypes'
|
||||||
|
|||||||
@@ -19,7 +19,7 @@
|
|||||||
import Message from 'primevue/message'
|
import Message from 'primevue/message'
|
||||||
import { computed, inject } from 'vue'
|
import { computed, inject } from 'vue'
|
||||||
|
|
||||||
import { components } from '@/types/comfyRegistryTypes'
|
import type { components } from '@/types/comfyRegistryTypes'
|
||||||
import { ImportFailedKey } from '@/types/importFailedTypes'
|
import { ImportFailedKey } from '@/types/importFailedTypes'
|
||||||
|
|
||||||
type PackVersionStatus = components['schemas']['NodeVersionStatus']
|
type PackVersionStatus = components['schemas']['NodeVersionStatus']
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
import { VueWrapper, mount } from '@vue/test-utils'
|
import type { VueWrapper } from '@vue/test-utils'
|
||||||
|
import { mount } from '@vue/test-utils'
|
||||||
import { createPinia } from 'pinia'
|
import { createPinia } from 'pinia'
|
||||||
import PrimeVue from 'primevue/config'
|
import PrimeVue from 'primevue/config'
|
||||||
import Tooltip from 'primevue/tooltip'
|
import Tooltip from 'primevue/tooltip'
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
import { VueWrapper, mount } from '@vue/test-utils'
|
import type { VueWrapper } from '@vue/test-utils'
|
||||||
|
import { mount } from '@vue/test-utils'
|
||||||
import { createPinia } from 'pinia'
|
import { createPinia } from 'pinia'
|
||||||
import Button from 'primevue/button'
|
import Button from 'primevue/button'
|
||||||
import PrimeVue from 'primevue/config'
|
import PrimeVue from 'primevue/config'
|
||||||
|
|||||||
@@ -93,8 +93,8 @@ import VerifiedIcon from '@/components/icons/VerifiedIcon.vue'
|
|||||||
import { useConflictDetection } from '@/composables/useConflictDetection'
|
import { useConflictDetection } from '@/composables/useConflictDetection'
|
||||||
import { useComfyRegistryService } from '@/services/comfyRegistryService'
|
import { useComfyRegistryService } from '@/services/comfyRegistryService'
|
||||||
import { useComfyManagerStore } from '@/stores/comfyManagerStore'
|
import { useComfyManagerStore } from '@/stores/comfyManagerStore'
|
||||||
import { components } from '@/types/comfyRegistryTypes'
|
import type { components } from '@/types/comfyRegistryTypes'
|
||||||
import { components as ManagerComponents } from '@/types/generatedManagerTypes'
|
import type { components as ManagerComponents } from '@/types/generatedManagerTypes'
|
||||||
import { getJoinedConflictMessages } from '@/utils/conflictMessageUtil'
|
import { getJoinedConflictMessages } from '@/utils/conflictMessageUtil'
|
||||||
import { isSemVer } from '@/utils/formatUtil'
|
import { isSemVer } from '@/utils/formatUtil'
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
import { VueWrapper, mount } from '@vue/test-utils'
|
import type { VueWrapper } from '@vue/test-utils'
|
||||||
|
import { mount } from '@vue/test-utils'
|
||||||
import { createPinia } from 'pinia'
|
import { createPinia } from 'pinia'
|
||||||
import PrimeVue from 'primevue/config'
|
import PrimeVue from 'primevue/config'
|
||||||
import ToggleSwitch from 'primevue/toggleswitch'
|
import ToggleSwitch from 'primevue/toggleswitch'
|
||||||
|
|||||||
@@ -39,7 +39,7 @@ import { useDialogService } from '@/services/dialogService'
|
|||||||
import { useComfyManagerStore } from '@/stores/comfyManagerStore'
|
import { useComfyManagerStore } from '@/stores/comfyManagerStore'
|
||||||
import { useConflictDetectionStore } from '@/stores/conflictDetectionStore'
|
import { useConflictDetectionStore } from '@/stores/conflictDetectionStore'
|
||||||
import type { components } from '@/types/comfyRegistryTypes'
|
import type { components } from '@/types/comfyRegistryTypes'
|
||||||
import { components as ManagerComponents } from '@/types/generatedManagerTypes'
|
import type { components as ManagerComponents } from '@/types/generatedManagerTypes'
|
||||||
|
|
||||||
const TOGGLE_DEBOUNCE_MS = 256
|
const TOGGLE_DEBOUNCE_MS = 256
|
||||||
|
|
||||||
|
|||||||
@@ -31,13 +31,11 @@ import { useConflictDetection } from '@/composables/useConflictDetection'
|
|||||||
import { t } from '@/i18n'
|
import { t } from '@/i18n'
|
||||||
import { useDialogService } from '@/services/dialogService'
|
import { useDialogService } from '@/services/dialogService'
|
||||||
import { useComfyManagerStore } from '@/stores/comfyManagerStore'
|
import { useComfyManagerStore } from '@/stores/comfyManagerStore'
|
||||||
import { ButtonSize } from '@/types/buttonTypes'
|
import type { ButtonSize } from '@/types/buttonTypes'
|
||||||
import type { components } from '@/types/comfyRegistryTypes'
|
import type { components } from '@/types/comfyRegistryTypes'
|
||||||
import {
|
import type { ConflictDetectionResult } from '@/types/conflictDetectionTypes'
|
||||||
type ConflictDetail,
|
import type { ConflictDetail } from '@/types/conflictDetectionTypes'
|
||||||
ConflictDetectionResult
|
import type { components as ManagerComponents } from '@/types/generatedManagerTypes'
|
||||||
} from '@/types/conflictDetectionTypes'
|
|
||||||
import { components as ManagerComponents } from '@/types/generatedManagerTypes'
|
|
||||||
|
|
||||||
type NodePack = components['schemas']['Node']
|
type NodePack = components['schemas']['Node']
|
||||||
|
|
||||||
|
|||||||
@@ -17,9 +17,9 @@
|
|||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import IconTextButton from '@/components/button/IconTextButton.vue'
|
import IconTextButton from '@/components/button/IconTextButton.vue'
|
||||||
import { useComfyManagerStore } from '@/stores/comfyManagerStore'
|
import { useComfyManagerStore } from '@/stores/comfyManagerStore'
|
||||||
import { ButtonSize } from '@/types/buttonTypes'
|
import type { ButtonSize } from '@/types/buttonTypes'
|
||||||
import type { components } from '@/types/comfyRegistryTypes'
|
import type { components } from '@/types/comfyRegistryTypes'
|
||||||
import { components as ManagerComponents } from '@/types/generatedManagerTypes'
|
import type { components as ManagerComponents } from '@/types/generatedManagerTypes'
|
||||||
|
|
||||||
type NodePack = components['schemas']['Node']
|
type NodePack = components['schemas']['Node']
|
||||||
|
|
||||||
|
|||||||
@@ -75,7 +75,7 @@ import { useImportFailedDetection } from '@/composables/useImportFailedDetection
|
|||||||
import { useComfyManagerStore } from '@/stores/comfyManagerStore'
|
import { useComfyManagerStore } from '@/stores/comfyManagerStore'
|
||||||
import { useConflictDetectionStore } from '@/stores/conflictDetectionStore'
|
import { useConflictDetectionStore } from '@/stores/conflictDetectionStore'
|
||||||
import { IsInstallingKey } from '@/types/comfyManagerTypes'
|
import { IsInstallingKey } from '@/types/comfyManagerTypes'
|
||||||
import { components } from '@/types/comfyRegistryTypes'
|
import type { components } from '@/types/comfyRegistryTypes'
|
||||||
import type { ConflictDetectionResult } from '@/types/conflictDetectionTypes'
|
import type { ConflictDetectionResult } from '@/types/conflictDetectionTypes'
|
||||||
import { ImportFailedKey } from '@/types/importFailedTypes'
|
import { ImportFailedKey } from '@/types/importFailedTypes'
|
||||||
|
|
||||||
|
|||||||
@@ -50,7 +50,7 @@ import PackUninstallButton from '@/components/dialog/content/manager/button/Pack
|
|||||||
import PackIcon from '@/components/dialog/content/manager/packIcon/PackIcon.vue'
|
import PackIcon from '@/components/dialog/content/manager/packIcon/PackIcon.vue'
|
||||||
import { useConflictDetection } from '@/composables/useConflictDetection'
|
import { useConflictDetection } from '@/composables/useConflictDetection'
|
||||||
import { useComfyManagerStore } from '@/stores/comfyManagerStore'
|
import { useComfyManagerStore } from '@/stores/comfyManagerStore'
|
||||||
import { components } from '@/types/comfyRegistryTypes'
|
import type { components } from '@/types/comfyRegistryTypes'
|
||||||
import type { ConflictDetail } from '@/types/conflictDetectionTypes'
|
import type { ConflictDetail } from '@/types/conflictDetectionTypes'
|
||||||
import { ImportFailedKey } from '@/types/importFailedTypes'
|
import { ImportFailedKey } from '@/types/importFailedTypes'
|
||||||
|
|
||||||
|
|||||||
@@ -67,7 +67,7 @@ import { usePacksSelection } from '@/composables/nodePack/usePacksSelection'
|
|||||||
import { usePacksStatus } from '@/composables/nodePack/usePacksStatus'
|
import { usePacksStatus } from '@/composables/nodePack/usePacksStatus'
|
||||||
import { useConflictDetection } from '@/composables/useConflictDetection'
|
import { useConflictDetection } from '@/composables/useConflictDetection'
|
||||||
import { useComfyRegistryStore } from '@/stores/comfyRegistryStore'
|
import { useComfyRegistryStore } from '@/stores/comfyRegistryStore'
|
||||||
import { components } from '@/types/comfyRegistryTypes'
|
import type { components } from '@/types/comfyRegistryTypes'
|
||||||
import type { ConflictDetail } from '@/types/conflictDetectionTypes'
|
import type { ConflictDetail } from '@/types/conflictDetectionTypes'
|
||||||
import { ImportFailedKey } from '@/types/importFailedTypes'
|
import { ImportFailedKey } from '@/types/importFailedTypes'
|
||||||
|
|
||||||
|
|||||||
@@ -48,7 +48,7 @@ import { computed, inject, ref, watchEffect } from 'vue'
|
|||||||
import DescriptionTabPanel from '@/components/dialog/content/manager/infoPanel/tabs/DescriptionTabPanel.vue'
|
import DescriptionTabPanel from '@/components/dialog/content/manager/infoPanel/tabs/DescriptionTabPanel.vue'
|
||||||
import NodesTabPanel from '@/components/dialog/content/manager/infoPanel/tabs/NodesTabPanel.vue'
|
import NodesTabPanel from '@/components/dialog/content/manager/infoPanel/tabs/NodesTabPanel.vue'
|
||||||
import WarningTabPanel from '@/components/dialog/content/manager/infoPanel/tabs/WarningTabPanel.vue'
|
import WarningTabPanel from '@/components/dialog/content/manager/infoPanel/tabs/WarningTabPanel.vue'
|
||||||
import { components } from '@/types/comfyRegistryTypes'
|
import type { components } from '@/types/comfyRegistryTypes'
|
||||||
import type { ConflictDetectionResult } from '@/types/conflictDetectionTypes'
|
import type { ConflictDetectionResult } from '@/types/conflictDetectionTypes'
|
||||||
import { ImportFailedKey } from '@/types/importFailedTypes'
|
import { ImportFailedKey } from '@/types/importFailedTypes'
|
||||||
|
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ import { describe, expect, it } from 'vitest'
|
|||||||
import { createI18n } from 'vue-i18n'
|
import { createI18n } from 'vue-i18n'
|
||||||
|
|
||||||
import enMessages from '@/locales/en/main.json' with { type: 'json' }
|
import enMessages from '@/locales/en/main.json' with { type: 'json' }
|
||||||
import { components } from '@/types/comfyRegistryTypes'
|
import type { components } from '@/types/comfyRegistryTypes'
|
||||||
|
|
||||||
import DescriptionTabPanel from './DescriptionTabPanel.vue'
|
import DescriptionTabPanel from './DescriptionTabPanel.vue'
|
||||||
|
|
||||||
|
|||||||
@@ -29,7 +29,7 @@ import { useI18n } from 'vue-i18n'
|
|||||||
import InfoTextSection, {
|
import InfoTextSection, {
|
||||||
type TextSection
|
type TextSection
|
||||||
} from '@/components/dialog/content/manager/infoPanel/InfoTextSection.vue'
|
} from '@/components/dialog/content/manager/infoPanel/InfoTextSection.vue'
|
||||||
import { components } from '@/types/comfyRegistryTypes'
|
import type { components } from '@/types/comfyRegistryTypes'
|
||||||
import { isValidUrl } from '@/utils/formatUtil'
|
import { isValidUrl } from '@/utils/formatUtil'
|
||||||
|
|
||||||
const { t } = useI18n()
|
const { t } = useI18n()
|
||||||
|
|||||||
@@ -34,7 +34,7 @@ import { computed, ref, shallowRef, useId } from 'vue'
|
|||||||
import NoResultsPlaceholder from '@/components/common/NoResultsPlaceholder.vue'
|
import NoResultsPlaceholder from '@/components/common/NoResultsPlaceholder.vue'
|
||||||
import NodePreview from '@/components/node/NodePreview.vue'
|
import NodePreview from '@/components/node/NodePreview.vue'
|
||||||
import { useComfyRegistryStore } from '@/stores/comfyRegistryStore'
|
import { useComfyRegistryStore } from '@/stores/comfyRegistryStore'
|
||||||
import { components, operations } from '@/types/comfyRegistryTypes'
|
import type { components, operations } from '@/types/comfyRegistryTypes'
|
||||||
import { registryToFrontendV2NodeDef } from '@/utils/mapperUtil'
|
import { registryToFrontendV2NodeDef } from '@/utils/mapperUtil'
|
||||||
|
|
||||||
type ListComfyNodesResponse =
|
type ListComfyNodesResponse =
|
||||||
|
|||||||
@@ -29,8 +29,8 @@ import { computed } from 'vue'
|
|||||||
|
|
||||||
import { useImportFailedDetection } from '@/composables/useImportFailedDetection'
|
import { useImportFailedDetection } from '@/composables/useImportFailedDetection'
|
||||||
import { t } from '@/i18n'
|
import { t } from '@/i18n'
|
||||||
import { components } from '@/types/comfyRegistryTypes'
|
import type { components } from '@/types/comfyRegistryTypes'
|
||||||
import { ConflictDetectionResult } from '@/types/conflictDetectionTypes'
|
import type { ConflictDetectionResult } from '@/types/conflictDetectionTypes'
|
||||||
import { getConflictMessage } from '@/utils/conflictMessageUtil'
|
import { getConflictMessage } from '@/utils/conflictMessageUtil'
|
||||||
|
|
||||||
const { nodePack, conflictResult } = defineProps<{
|
const { nodePack, conflictResult } = defineProps<{
|
||||||
|
|||||||
@@ -37,7 +37,7 @@
|
|||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import { computed, ref } from 'vue'
|
import { computed, ref } from 'vue'
|
||||||
|
|
||||||
import { components } from '@/types/comfyRegistryTypes'
|
import type { components } from '@/types/comfyRegistryTypes'
|
||||||
|
|
||||||
const DEFAULT_BANNER = '/assets/images/fallback-gradient-avatar.svg'
|
const DEFAULT_BANNER = '/assets/images/fallback-gradient-avatar.svg'
|
||||||
|
|
||||||
|
|||||||
@@ -37,7 +37,7 @@
|
|||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import { computed, ref } from 'vue'
|
import { computed, ref } from 'vue'
|
||||||
|
|
||||||
import { components } from '@/types/comfyRegistryTypes'
|
import type { components } from '@/types/comfyRegistryTypes'
|
||||||
|
|
||||||
const DEFAULT_BANNER = '/assets/images/fallback-gradient-avatar.svg'
|
const DEFAULT_BANNER = '/assets/images/fallback-gradient-avatar.svg'
|
||||||
|
|
||||||
|
|||||||
@@ -19,7 +19,7 @@
|
|||||||
|
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import PackIcon from '@/components/dialog/content/manager/packIcon/PackIcon.vue'
|
import PackIcon from '@/components/dialog/content/manager/packIcon/PackIcon.vue'
|
||||||
import { components } from '@/types/comfyRegistryTypes'
|
import type { components } from '@/types/comfyRegistryTypes'
|
||||||
|
|
||||||
const {
|
const {
|
||||||
nodePacks,
|
nodePacks,
|
||||||
|
|||||||
@@ -62,9 +62,8 @@
|
|||||||
|
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import { stubTrue } from 'es-toolkit/compat'
|
import { stubTrue } from 'es-toolkit/compat'
|
||||||
import AutoComplete, {
|
import type { AutoCompleteOptionSelectEvent } from 'primevue/autocomplete'
|
||||||
AutoCompleteOptionSelectEvent
|
import AutoComplete from 'primevue/autocomplete'
|
||||||
} from 'primevue/autocomplete'
|
|
||||||
import { computed } from 'vue'
|
import { computed } from 'vue'
|
||||||
import { useI18n } from 'vue-i18n'
|
import { useI18n } from 'vue-i18n'
|
||||||
|
|
||||||
@@ -77,7 +76,7 @@ import {
|
|||||||
type SearchOption,
|
type SearchOption,
|
||||||
SortableAlgoliaField
|
SortableAlgoliaField
|
||||||
} from '@/types/comfyManagerTypes'
|
} from '@/types/comfyManagerTypes'
|
||||||
import { components } from '@/types/comfyRegistryTypes'
|
import type { components } from '@/types/comfyRegistryTypes'
|
||||||
import type {
|
import type {
|
||||||
QuerySuggestion,
|
QuerySuggestion,
|
||||||
SearchMode,
|
SearchMode,
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
import { VueWrapper, mount } from '@vue/test-utils'
|
import type { VueWrapper } from '@vue/test-utils'
|
||||||
|
import { mount } from '@vue/test-utils'
|
||||||
import { createPinia } from 'pinia'
|
import { createPinia } from 'pinia'
|
||||||
import PrimeVue from 'primevue/config'
|
import PrimeVue from 'primevue/config'
|
||||||
import { describe, expect, it } from 'vitest'
|
import { describe, expect, it } from 'vitest'
|
||||||
|
|||||||
@@ -96,8 +96,8 @@ import Message from 'primevue/message'
|
|||||||
import ProgressSpinner from 'primevue/progressspinner'
|
import ProgressSpinner from 'primevue/progressspinner'
|
||||||
import { computed, ref } from 'vue'
|
import { computed, ref } from 'vue'
|
||||||
|
|
||||||
|
import type { AuditLog } from '@/services/customerEventsService'
|
||||||
import {
|
import {
|
||||||
AuditLog,
|
|
||||||
EventType,
|
EventType,
|
||||||
useCustomerEventsService
|
useCustomerEventsService
|
||||||
} from '@/services/customerEventsService'
|
} from '@/services/customerEventsService'
|
||||||
|
|||||||
@@ -13,7 +13,7 @@
|
|||||||
import Tag from 'primevue/tag'
|
import Tag from 'primevue/tag'
|
||||||
import { computed } from 'vue'
|
import { computed } from 'vue'
|
||||||
|
|
||||||
import { KeyComboImpl } from '@/stores/keybindingStore'
|
import type { KeyComboImpl } from '@/stores/keybindingStore'
|
||||||
|
|
||||||
const { keyCombo, isModified = false } = defineProps<{
|
const { keyCombo, isModified = false } = defineProps<{
|
||||||
keyCombo: KeyComboImpl
|
keyCombo: KeyComboImpl
|
||||||
|
|||||||
@@ -79,7 +79,8 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import { Form, FormSubmitEvent } from '@primevue/forms'
|
import type { FormSubmitEvent } from '@primevue/forms'
|
||||||
|
import { Form } from '@primevue/forms'
|
||||||
import { zodResolver } from '@primevue/forms/resolvers/zod'
|
import { zodResolver } from '@primevue/forms/resolvers/zod'
|
||||||
import Button from 'primevue/button'
|
import Button from 'primevue/button'
|
||||||
import InputText from 'primevue/inputtext'
|
import InputText from 'primevue/inputtext'
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
import { Form } from '@primevue/forms'
|
import { Form } from '@primevue/forms'
|
||||||
import { VueWrapper, mount } from '@vue/test-utils'
|
import type { VueWrapper } from '@vue/test-utils'
|
||||||
|
import { mount } from '@vue/test-utils'
|
||||||
import Button from 'primevue/button'
|
import Button from 'primevue/button'
|
||||||
import PrimeVue from 'primevue/config'
|
import PrimeVue from 'primevue/config'
|
||||||
import InputText from 'primevue/inputtext'
|
import InputText from 'primevue/inputtext'
|
||||||
|
|||||||
@@ -71,7 +71,8 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import { Form, FormSubmitEvent } from '@primevue/forms'
|
import type { FormSubmitEvent } from '@primevue/forms'
|
||||||
|
import { Form } from '@primevue/forms'
|
||||||
import { zodResolver } from '@primevue/forms/resolvers/zod'
|
import { zodResolver } from '@primevue/forms/resolvers/zod'
|
||||||
import Button from 'primevue/button'
|
import Button from 'primevue/button'
|
||||||
import InputText from 'primevue/inputtext'
|
import InputText from 'primevue/inputtext'
|
||||||
|
|||||||
@@ -59,7 +59,8 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import { Form, FormField, FormSubmitEvent } from '@primevue/forms'
|
import type { FormSubmitEvent } from '@primevue/forms'
|
||||||
|
import { Form, FormField } from '@primevue/forms'
|
||||||
import { zodResolver } from '@primevue/forms/resolvers/zod'
|
import { zodResolver } from '@primevue/forms/resolvers/zod'
|
||||||
import Button from 'primevue/button'
|
import Button from 'primevue/button'
|
||||||
import Checkbox from 'primevue/checkbox'
|
import Checkbox from 'primevue/checkbox'
|
||||||
|
|||||||
@@ -135,7 +135,8 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import { Button, InputNumber, InputNumberInputEvent } from 'primevue'
|
import type { InputNumberInputEvent } from 'primevue'
|
||||||
|
import { Button, InputNumber } from 'primevue'
|
||||||
import { computed, nextTick, ref, watch } from 'vue'
|
import { computed, nextTick, ref, watch } from 'vue'
|
||||||
import { useI18n } from 'vue-i18n'
|
import { useI18n } from 'vue-i18n'
|
||||||
|
|
||||||
|
|||||||
@@ -50,7 +50,8 @@
|
|||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import Button from 'primevue/button'
|
import Button from 'primevue/button'
|
||||||
import SelectButton from 'primevue/selectbutton'
|
import SelectButton from 'primevue/selectbutton'
|
||||||
import { Raw, computed, ref, watch } from 'vue'
|
import type { Raw } from 'vue'
|
||||||
|
import { computed, ref, watch } from 'vue'
|
||||||
import { useI18n } from 'vue-i18n'
|
import { useI18n } from 'vue-i18n'
|
||||||
|
|
||||||
import type {
|
import type {
|
||||||
|
|||||||
@@ -20,7 +20,7 @@ import { computed } from 'vue'
|
|||||||
import { useI18n } from 'vue-i18n'
|
import { useI18n } from 'vue-i18n'
|
||||||
|
|
||||||
import { useSelectionState } from '@/composables/graph/useSelectionState'
|
import { useSelectionState } from '@/composables/graph/useSelectionState'
|
||||||
import { Positionable } from '@/lib/litegraph/src/interfaces'
|
import type { Positionable } from '@/lib/litegraph/src/interfaces'
|
||||||
import { useCommandStore } from '@/stores/commandStore'
|
import { useCommandStore } from '@/stores/commandStore'
|
||||||
|
|
||||||
const { t } = useI18n()
|
const { t } = useI18n()
|
||||||
|
|||||||
@@ -17,7 +17,8 @@
|
|||||||
import Button from 'primevue/button'
|
import Button from 'primevue/button'
|
||||||
|
|
||||||
import { st } from '@/i18n'
|
import { st } from '@/i18n'
|
||||||
import { ComfyCommand, useCommandStore } from '@/stores/commandStore'
|
import type { ComfyCommand } from '@/stores/commandStore'
|
||||||
|
import { useCommandStore } from '@/stores/commandStore'
|
||||||
import { normalizeI18nKey } from '@/utils/formatUtil'
|
import { normalizeI18nKey } from '@/utils/formatUtil'
|
||||||
|
|
||||||
defineProps<{
|
defineProps<{
|
||||||
|
|||||||
@@ -48,9 +48,9 @@
|
|||||||
import Popover from 'primevue/popover'
|
import Popover from 'primevue/popover'
|
||||||
import { computed, ref } from 'vue'
|
import { computed, ref } from 'vue'
|
||||||
|
|
||||||
import {
|
import type {
|
||||||
type MenuOption,
|
MenuOption,
|
||||||
type SubMenuOption
|
SubMenuOption
|
||||||
} from '@/composables/graph/useMoreOptionsMenu'
|
} from '@/composables/graph/useMoreOptionsMenu'
|
||||||
import { useNodeCustomization } from '@/composables/graph/useNodeCustomization'
|
import { useNodeCustomization } from '@/composables/graph/useNodeCustomization'
|
||||||
|
|
||||||
|
|||||||
@@ -56,7 +56,7 @@ import { computed, nextTick, ref, watch } from 'vue'
|
|||||||
|
|
||||||
import CopyButton from '@/components/graph/widgets/chatHistory/CopyButton.vue'
|
import CopyButton from '@/components/graph/widgets/chatHistory/CopyButton.vue'
|
||||||
import ResponseBlurb from '@/components/graph/widgets/chatHistory/ResponseBlurb.vue'
|
import ResponseBlurb from '@/components/graph/widgets/chatHistory/ResponseBlurb.vue'
|
||||||
import { ComponentWidget } from '@/scripts/domWidget'
|
import type { ComponentWidget } from '@/scripts/domWidget'
|
||||||
import { linkifyHtml, nl2br } from '@/utils/formatUtil'
|
import { linkifyHtml, nl2br } from '@/utils/formatUtil'
|
||||||
|
|
||||||
const { widget, history } = defineProps<{
|
const { widget, history } = defineProps<{
|
||||||
|
|||||||
@@ -19,14 +19,15 @@
|
|||||||
|
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import { useElementBounding, useEventListener } from '@vueuse/core'
|
import { useElementBounding, useEventListener } from '@vueuse/core'
|
||||||
import { CSSProperties, computed, nextTick, onMounted, ref, watch } from 'vue'
|
import type { CSSProperties } from 'vue'
|
||||||
|
import { computed, nextTick, onMounted, ref, watch } from 'vue'
|
||||||
|
|
||||||
import { useAbsolutePosition } from '@/composables/element/useAbsolutePosition'
|
import { useAbsolutePosition } from '@/composables/element/useAbsolutePosition'
|
||||||
import { useDomClipping } from '@/composables/element/useDomClipping'
|
import { useDomClipping } from '@/composables/element/useDomClipping'
|
||||||
import { useSettingStore } from '@/platform/settings/settingStore'
|
import { useSettingStore } from '@/platform/settings/settingStore'
|
||||||
import { useCanvasStore } from '@/renderer/core/canvas/canvasStore'
|
import { useCanvasStore } from '@/renderer/core/canvas/canvasStore'
|
||||||
import { isComponentWidget, isDOMWidget } from '@/scripts/domWidget'
|
import { isComponentWidget, isDOMWidget } from '@/scripts/domWidget'
|
||||||
import { DomWidgetState } from '@/stores/domWidgetStore'
|
import type { DomWidgetState } from '@/stores/domWidgetStore'
|
||||||
|
|
||||||
const { widgetState } = defineProps<{
|
const { widgetState } = defineProps<{
|
||||||
widgetState: DomWidgetState
|
widgetState: DomWidgetState
|
||||||
|
|||||||
@@ -15,7 +15,7 @@
|
|||||||
import Skeleton from 'primevue/skeleton'
|
import Skeleton from 'primevue/skeleton'
|
||||||
import { computed, onMounted, ref, watch } from 'vue'
|
import { computed, onMounted, ref, watch } from 'vue'
|
||||||
|
|
||||||
import { NodeId } from '@/lib/litegraph/src/litegraph'
|
import type { NodeId } from '@/lib/litegraph/src/litegraph'
|
||||||
import { useExecutionStore } from '@/stores/executionStore'
|
import { useExecutionStore } from '@/stores/executionStore'
|
||||||
import { linkifyHtml, nl2br } from '@/utils/formatUtil'
|
import { linkifyHtml, nl2br } from '@/utils/formatUtil'
|
||||||
|
|
||||||
|
|||||||
@@ -144,7 +144,7 @@ import PuzzleIcon from '@/components/icons/PuzzleIcon.vue'
|
|||||||
import { useConflictAcknowledgment } from '@/composables/useConflictAcknowledgment'
|
import { useConflictAcknowledgment } from '@/composables/useConflictAcknowledgment'
|
||||||
import { useManagerState } from '@/composables/useManagerState'
|
import { useManagerState } from '@/composables/useManagerState'
|
||||||
import { useSettingStore } from '@/platform/settings/settingStore'
|
import { useSettingStore } from '@/platform/settings/settingStore'
|
||||||
import { type ReleaseNote } from '@/platform/updates/common/releaseService'
|
import type { ReleaseNote } from '@/platform/updates/common/releaseService'
|
||||||
import { useReleaseStore } from '@/platform/updates/common/releaseStore'
|
import { useReleaseStore } from '@/platform/updates/common/releaseStore'
|
||||||
import { useCommandStore } from '@/stores/commandStore'
|
import { useCommandStore } from '@/stores/commandStore'
|
||||||
import { ManagerTab } from '@/types/comfyManagerTypes'
|
import { ManagerTab } from '@/types/comfyManagerTypes'
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ import type { MultiSelectProps } from 'primevue/multiselect'
|
|||||||
import { ref } from 'vue'
|
import { ref } from 'vue'
|
||||||
|
|
||||||
import MultiSelect from './MultiSelect.vue'
|
import MultiSelect from './MultiSelect.vue'
|
||||||
import { type SelectOption } from './types'
|
import type { SelectOption } from './types'
|
||||||
|
|
||||||
// Combine our component props with PrimeVue MultiSelect props
|
// Combine our component props with PrimeVue MultiSelect props
|
||||||
interface ExtendedProps extends Partial<MultiSelectProps> {
|
interface ExtendedProps extends Partial<MultiSelectProps> {
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ import type { MultiSelectProps } from 'primevue/multiselect'
|
|||||||
import { ref } from 'vue'
|
import { ref } from 'vue'
|
||||||
|
|
||||||
import MultiSelect from './MultiSelect.vue'
|
import MultiSelect from './MultiSelect.vue'
|
||||||
import { type SelectOption } from './types'
|
import type { SelectOption } from './types'
|
||||||
|
|
||||||
// Combine our component props with PrimeVue MultiSelect props
|
// Combine our component props with PrimeVue MultiSelect props
|
||||||
// Since we use v-bind="$attrs", all PrimeVue props are available
|
// Since we use v-bind="$attrs", all PrimeVue props are available
|
||||||
|
|||||||
@@ -106,9 +106,8 @@
|
|||||||
|
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import Button from 'primevue/button'
|
import Button from 'primevue/button'
|
||||||
import MultiSelect, {
|
import type { MultiSelectPassThroughMethodOptions } from 'primevue/multiselect'
|
||||||
MultiSelectPassThroughMethodOptions
|
import MultiSelect from 'primevue/multiselect'
|
||||||
} from 'primevue/multiselect'
|
|
||||||
import { computed } from 'vue'
|
import { computed } from 'vue'
|
||||||
import { useI18n } from 'vue-i18n'
|
import { useI18n } from 'vue-i18n'
|
||||||
|
|
||||||
@@ -117,7 +116,7 @@ import { usePopoverSizing } from '@/composables/usePopoverSizing'
|
|||||||
import { cn } from '@/utils/tailwindUtil'
|
import { cn } from '@/utils/tailwindUtil'
|
||||||
|
|
||||||
import TextButton from '../button/TextButton.vue'
|
import TextButton from '../button/TextButton.vue'
|
||||||
import { type SelectOption } from './types'
|
import type { SelectOption } from './types'
|
||||||
|
|
||||||
type Option = SelectOption
|
type Option = SelectOption
|
||||||
|
|
||||||
|
|||||||
@@ -58,13 +58,14 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import Select, { SelectPassThroughMethodOptions } from 'primevue/select'
|
import type { SelectPassThroughMethodOptions } from 'primevue/select'
|
||||||
|
import Select from 'primevue/select'
|
||||||
import { computed } from 'vue'
|
import { computed } from 'vue'
|
||||||
import { useI18n } from 'vue-i18n'
|
import { useI18n } from 'vue-i18n'
|
||||||
|
|
||||||
import { cn } from '@/utils/tailwindUtil'
|
import { cn } from '@/utils/tailwindUtil'
|
||||||
|
|
||||||
import { type SelectOption } from './types'
|
import type { SelectOption } from './types'
|
||||||
|
|
||||||
defineOptions({
|
defineOptions({
|
||||||
inheritAttrs: false
|
inheritAttrs: false
|
||||||
|
|||||||
@@ -34,16 +34,16 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import {
|
import type { TorchDeviceType } from '@comfyorg/comfyui-electron-types'
|
||||||
TorchDeviceType,
|
import { TorchMirrorUrl } from '@comfyorg/comfyui-electron-types'
|
||||||
TorchMirrorUrl
|
|
||||||
} from '@comfyorg/comfyui-electron-types'
|
|
||||||
import Divider from 'primevue/divider'
|
import Divider from 'primevue/divider'
|
||||||
import Panel from 'primevue/panel'
|
import Panel from 'primevue/panel'
|
||||||
import { ModelRef, computed, onMounted, ref } from 'vue'
|
import type { ModelRef } from 'vue'
|
||||||
|
import { computed, onMounted, ref } from 'vue'
|
||||||
|
|
||||||
import MirrorItem from '@/components/install/mirror/MirrorItem.vue'
|
import MirrorItem from '@/components/install/mirror/MirrorItem.vue'
|
||||||
import { PYPI_MIRROR, PYTHON_MIRROR, UVMirror } from '@/constants/uvMirrors'
|
import type { UVMirror } from '@/constants/uvMirrors'
|
||||||
|
import { PYPI_MIRROR, PYTHON_MIRROR } from '@/constants/uvMirrors'
|
||||||
import { t } from '@/i18n'
|
import { t } from '@/i18n'
|
||||||
import { isInChina } from '@/utils/networkUtil'
|
import { isInChina } from '@/utils/networkUtil'
|
||||||
import { ValidationState, mergeValidationStates } from '@/utils/validationUtil'
|
import { ValidationState, mergeValidationStates } from '@/utils/validationUtil'
|
||||||
|
|||||||
@@ -23,7 +23,7 @@
|
|||||||
import { computed, onMounted, ref, watch } from 'vue'
|
import { computed, onMounted, ref, watch } from 'vue'
|
||||||
|
|
||||||
import UrlInput from '@/components/common/UrlInput.vue'
|
import UrlInput from '@/components/common/UrlInput.vue'
|
||||||
import { UVMirror } from '@/constants/uvMirrors'
|
import type { UVMirror } from '@/constants/uvMirrors'
|
||||||
import { normalizeI18nKey } from '@/utils/formatUtil'
|
import { normalizeI18nKey } from '@/utils/formatUtil'
|
||||||
import { checkMirrorReachable } from '@/utils/networkUtil'
|
import { checkMirrorReachable } from '@/utils/networkUtil'
|
||||||
import { ValidationState } from '@/utils/validationUtil'
|
import { ValidationState } from '@/utils/validationUtil'
|
||||||
|
|||||||
@@ -95,7 +95,7 @@ import Load3DScene from '@/components/load3d/Load3DScene.vue'
|
|||||||
import RecordingControls from '@/components/load3d/controls/RecordingControls.vue'
|
import RecordingControls from '@/components/load3d/controls/RecordingControls.vue'
|
||||||
import ViewerControls from '@/components/load3d/controls/ViewerControls.vue'
|
import ViewerControls from '@/components/load3d/controls/ViewerControls.vue'
|
||||||
import Load3dUtils from '@/extensions/core/load3d/Load3dUtils'
|
import Load3dUtils from '@/extensions/core/load3d/Load3dUtils'
|
||||||
import {
|
import type {
|
||||||
CameraType,
|
CameraType,
|
||||||
Load3DNodeType,
|
Load3DNodeType,
|
||||||
MaterialMode,
|
MaterialMode,
|
||||||
|
|||||||
@@ -93,7 +93,7 @@ import Load3DAnimationScene from '@/components/load3d/Load3DAnimationScene.vue'
|
|||||||
import Load3DControls from '@/components/load3d/Load3DControls.vue'
|
import Load3DControls from '@/components/load3d/Load3DControls.vue'
|
||||||
import RecordingControls from '@/components/load3d/controls/RecordingControls.vue'
|
import RecordingControls from '@/components/load3d/controls/RecordingControls.vue'
|
||||||
import Load3dUtils from '@/extensions/core/load3d/Load3dUtils'
|
import Load3dUtils from '@/extensions/core/load3d/Load3dUtils'
|
||||||
import {
|
import type {
|
||||||
AnimationItem,
|
AnimationItem,
|
||||||
CameraType,
|
CameraType,
|
||||||
Load3DAnimationNodeType,
|
Load3DAnimationNodeType,
|
||||||
|
|||||||
@@ -27,13 +27,13 @@
|
|||||||
import { ref, watch } from 'vue'
|
import { ref, watch } from 'vue'
|
||||||
|
|
||||||
import Load3DScene from '@/components/load3d/Load3DScene.vue'
|
import Load3DScene from '@/components/load3d/Load3DScene.vue'
|
||||||
import Load3dAnimation from '@/extensions/core/load3d/Load3dAnimation'
|
import type Load3dAnimation from '@/extensions/core/load3d/Load3dAnimation'
|
||||||
import {
|
import type {
|
||||||
CameraType,
|
CameraType,
|
||||||
MaterialMode,
|
MaterialMode,
|
||||||
UpDirection
|
UpDirection
|
||||||
} from '@/extensions/core/load3d/interfaces'
|
} from '@/extensions/core/load3d/interfaces'
|
||||||
import { CustomInputSpec } from '@/schemas/nodeDef/nodeDefSchemaV2'
|
import type { CustomInputSpec } from '@/schemas/nodeDef/nodeDefSchemaV2'
|
||||||
|
|
||||||
const props = defineProps<{
|
const props = defineProps<{
|
||||||
node: any
|
node: any
|
||||||
|
|||||||
@@ -99,7 +99,7 @@ import ExportControls from '@/components/load3d/controls/ExportControls.vue'
|
|||||||
import LightControls from '@/components/load3d/controls/LightControls.vue'
|
import LightControls from '@/components/load3d/controls/LightControls.vue'
|
||||||
import ModelControls from '@/components/load3d/controls/ModelControls.vue'
|
import ModelControls from '@/components/load3d/controls/ModelControls.vue'
|
||||||
import SceneControls from '@/components/load3d/controls/SceneControls.vue'
|
import SceneControls from '@/components/load3d/controls/SceneControls.vue'
|
||||||
import {
|
import type {
|
||||||
CameraType,
|
CameraType,
|
||||||
MaterialMode,
|
MaterialMode,
|
||||||
UpDirection
|
UpDirection
|
||||||
|
|||||||
@@ -8,15 +8,15 @@
|
|||||||
import { onMounted, onUnmounted, ref, toRaw, watch } from 'vue'
|
import { onMounted, onUnmounted, ref, toRaw, watch } from 'vue'
|
||||||
|
|
||||||
import LoadingOverlay from '@/components/load3d/LoadingOverlay.vue'
|
import LoadingOverlay from '@/components/load3d/LoadingOverlay.vue'
|
||||||
import Load3d from '@/extensions/core/load3d/Load3d'
|
import type Load3d from '@/extensions/core/load3d/Load3d'
|
||||||
import Load3dAnimation from '@/extensions/core/load3d/Load3dAnimation'
|
import type Load3dAnimation from '@/extensions/core/load3d/Load3dAnimation'
|
||||||
import {
|
import type {
|
||||||
CameraType,
|
CameraType,
|
||||||
MaterialMode,
|
MaterialMode,
|
||||||
UpDirection
|
UpDirection
|
||||||
} from '@/extensions/core/load3d/interfaces'
|
} from '@/extensions/core/load3d/interfaces'
|
||||||
import { t } from '@/i18n'
|
import { t } from '@/i18n'
|
||||||
import { LGraphNode } from '@/lib/litegraph/src/litegraph'
|
import type { LGraphNode } from '@/lib/litegraph/src/litegraph'
|
||||||
import type { CustomInputSpec } from '@/schemas/nodeDef/nodeDefSchemaV2'
|
import type { CustomInputSpec } from '@/schemas/nodeDef/nodeDefSchemaV2'
|
||||||
import { useLoad3dService } from '@/services/load3dService'
|
import { useLoad3dService } from '@/services/load3dService'
|
||||||
|
|
||||||
|
|||||||
@@ -76,7 +76,7 @@ import LightControls from '@/components/load3d/controls/viewer/ViewerLightContro
|
|||||||
import ModelControls from '@/components/load3d/controls/viewer/ViewerModelControls.vue'
|
import ModelControls from '@/components/load3d/controls/viewer/ViewerModelControls.vue'
|
||||||
import SceneControls from '@/components/load3d/controls/viewer/ViewerSceneControls.vue'
|
import SceneControls from '@/components/load3d/controls/viewer/ViewerSceneControls.vue'
|
||||||
import { t } from '@/i18n'
|
import { t } from '@/i18n'
|
||||||
import { LGraphNode } from '@/lib/litegraph/src/LGraphNode'
|
import type { LGraphNode } from '@/lib/litegraph/src/LGraphNode'
|
||||||
import { useLoad3dService } from '@/services/load3dService'
|
import { useLoad3dService } from '@/services/load3dService'
|
||||||
import { useDialogStore } from '@/stores/dialogStore'
|
import { useDialogStore } from '@/stores/dialogStore'
|
||||||
|
|
||||||
|
|||||||
@@ -40,7 +40,7 @@ import Button from 'primevue/button'
|
|||||||
import Slider from 'primevue/slider'
|
import Slider from 'primevue/slider'
|
||||||
import { computed, onMounted, onUnmounted, ref, watch } from 'vue'
|
import { computed, onMounted, onUnmounted, ref, watch } from 'vue'
|
||||||
|
|
||||||
import { CameraType } from '@/extensions/core/load3d/interfaces'
|
import type { CameraType } from '@/extensions/core/load3d/interfaces'
|
||||||
import { t } from '@/i18n'
|
import { t } from '@/i18n'
|
||||||
|
|
||||||
const vTooltip = Tooltip
|
const vTooltip = Tooltip
|
||||||
|
|||||||
@@ -99,7 +99,10 @@ import Button from 'primevue/button'
|
|||||||
import Slider from 'primevue/slider'
|
import Slider from 'primevue/slider'
|
||||||
import { computed, onMounted, onUnmounted, ref, watch } from 'vue'
|
import { computed, onMounted, onUnmounted, ref, watch } from 'vue'
|
||||||
|
|
||||||
import { MaterialMode, UpDirection } from '@/extensions/core/load3d/interfaces'
|
import type {
|
||||||
|
MaterialMode,
|
||||||
|
UpDirection
|
||||||
|
} from '@/extensions/core/load3d/interfaces'
|
||||||
import { t } from '@/i18n'
|
import { t } from '@/i18n'
|
||||||
import type { CustomInputSpec } from '@/schemas/nodeDef/nodeDefSchemaV2'
|
import type { CustomInputSpec } from '@/schemas/nodeDef/nodeDefSchemaV2'
|
||||||
|
|
||||||
|
|||||||
@@ -79,7 +79,7 @@ import { Tooltip } from 'primevue'
|
|||||||
import Button from 'primevue/button'
|
import Button from 'primevue/button'
|
||||||
|
|
||||||
import { t } from '@/i18n'
|
import { t } from '@/i18n'
|
||||||
import { LGraphNode } from '@/lib/litegraph/src/litegraph'
|
import type { LGraphNode } from '@/lib/litegraph/src/litegraph'
|
||||||
import { useLoad3dService } from '@/services/load3dService'
|
import { useLoad3dService } from '@/services/load3dService'
|
||||||
|
|
||||||
const vTooltip = Tooltip
|
const vTooltip = Tooltip
|
||||||
|
|||||||
@@ -20,7 +20,7 @@ import Button from 'primevue/button'
|
|||||||
|
|
||||||
import Load3DViewerContent from '@/components/load3d/Load3dViewerContent.vue'
|
import Load3DViewerContent from '@/components/load3d/Load3dViewerContent.vue'
|
||||||
import { t } from '@/i18n'
|
import { t } from '@/i18n'
|
||||||
import { LGraphNode } from '@/lib/litegraph/src/LGraphNode'
|
import type { LGraphNode } from '@/lib/litegraph/src/LGraphNode'
|
||||||
import { useLoad3dService } from '@/services/load3dService'
|
import { useLoad3dService } from '@/services/load3dService'
|
||||||
import { useDialogStore } from '@/stores/dialogStore'
|
import { useDialogStore } from '@/stores/dialogStore'
|
||||||
|
|
||||||
|
|||||||
@@ -23,7 +23,7 @@ import Select from 'primevue/select'
|
|||||||
import Slider from 'primevue/slider'
|
import Slider from 'primevue/slider'
|
||||||
import { computed } from 'vue'
|
import { computed } from 'vue'
|
||||||
|
|
||||||
import { CameraType } from '@/extensions/core/load3d/interfaces'
|
import type { CameraType } from '@/extensions/core/load3d/interfaces'
|
||||||
import { t } from '@/i18n'
|
import { t } from '@/i18n'
|
||||||
|
|
||||||
const cameras = [
|
const cameras = [
|
||||||
|
|||||||
@@ -26,7 +26,10 @@
|
|||||||
import Select from 'primevue/select'
|
import Select from 'primevue/select'
|
||||||
import { computed } from 'vue'
|
import { computed } from 'vue'
|
||||||
|
|
||||||
import { MaterialMode, UpDirection } from '@/extensions/core/load3d/interfaces'
|
import type {
|
||||||
|
MaterialMode,
|
||||||
|
UpDirection
|
||||||
|
} from '@/extensions/core/load3d/interfaces'
|
||||||
import { t } from '@/i18n'
|
import { t } from '@/i18n'
|
||||||
|
|
||||||
const upDirection = defineModel<UpDirection>('upDirection')
|
const upDirection = defineModel<UpDirection>('upDirection')
|
||||||
|
|||||||
@@ -47,7 +47,7 @@ import { computed, ref } from 'vue'
|
|||||||
|
|
||||||
import { useMaintenanceTaskStore } from '@/stores/maintenanceTaskStore'
|
import { useMaintenanceTaskStore } from '@/stores/maintenanceTaskStore'
|
||||||
import type { MaintenanceTask } from '@/types/desktop/maintenanceTypes'
|
import type { MaintenanceTask } from '@/types/desktop/maintenanceTypes'
|
||||||
import { PrimeVueSeverity } from '@/types/primeVueTypes'
|
import type { PrimeVueSeverity } from '@/types/primeVueTypes'
|
||||||
import { useMinLoadingDurationRef } from '@/utils/refUtil'
|
import { useMinLoadingDurationRef } from '@/utils/refUtil'
|
||||||
|
|
||||||
import TaskListStatusIcon from './TaskListStatusIcon.vue'
|
import TaskListStatusIcon from './TaskListStatusIcon.vue'
|
||||||
|
|||||||
@@ -8,7 +8,8 @@
|
|||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import { PrimeIcons } from '@primevue/core/api'
|
import { PrimeIcons } from '@primevue/core/api'
|
||||||
import ProgressSpinner from 'primevue/progressspinner'
|
import ProgressSpinner from 'primevue/progressspinner'
|
||||||
import { MaybeRef, computed } from 'vue'
|
import type { MaybeRef } from 'vue'
|
||||||
|
import { computed } from 'vue'
|
||||||
|
|
||||||
import { t } from '@/i18n'
|
import { t } from '@/i18n'
|
||||||
|
|
||||||
|
|||||||
@@ -10,9 +10,10 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import { Terminal } from '@xterm/xterm'
|
import type { Terminal } from '@xterm/xterm'
|
||||||
import Drawer from 'primevue/drawer'
|
import Drawer from 'primevue/drawer'
|
||||||
import { Ref, onMounted } from 'vue'
|
import type { Ref } from 'vue'
|
||||||
|
import { onMounted } from 'vue'
|
||||||
|
|
||||||
import BaseTerminal from '@/components/bottomPanel/tabs/terminal/BaseTerminal.vue'
|
import BaseTerminal from '@/components/bottomPanel/tabs/terminal/BaseTerminal.vue'
|
||||||
import type { useTerminal } from '@/composables/bottomPanelTabs/useTerminal'
|
import type { useTerminal } from '@/composables/bottomPanelTabs/useTerminal'
|
||||||
|
|||||||
@@ -88,11 +88,8 @@ import AutoCompletePlus from '@/components/primevueOverride/AutoCompletePlus.vue
|
|||||||
import NodeSearchFilter from '@/components/searchbox/NodeSearchFilter.vue'
|
import NodeSearchFilter from '@/components/searchbox/NodeSearchFilter.vue'
|
||||||
import NodeSearchItem from '@/components/searchbox/NodeSearchItem.vue'
|
import NodeSearchItem from '@/components/searchbox/NodeSearchItem.vue'
|
||||||
import { useSettingStore } from '@/platform/settings/settingStore'
|
import { useSettingStore } from '@/platform/settings/settingStore'
|
||||||
import {
|
import type { ComfyNodeDefImpl } from '@/stores/nodeDefStore'
|
||||||
ComfyNodeDefImpl,
|
import { useNodeDefStore, useNodeFrequencyStore } from '@/stores/nodeDefStore'
|
||||||
useNodeDefStore,
|
|
||||||
useNodeFrequencyStore
|
|
||||||
} from '@/stores/nodeDefStore'
|
|
||||||
import type { FuseFilterWithValue } from '@/utils/fuseUtil'
|
import type { FuseFilterWithValue } from '@/utils/fuseUtil'
|
||||||
|
|
||||||
import SearchFilterChip from '../common/SearchFilterChip.vue'
|
import SearchFilterChip from '../common/SearchFilterChip.vue'
|
||||||
|
|||||||
@@ -38,21 +38,19 @@ import { storeToRefs } from 'pinia'
|
|||||||
import Dialog from 'primevue/dialog'
|
import Dialog from 'primevue/dialog'
|
||||||
import { computed, ref, toRaw, watch, watchEffect } from 'vue'
|
import { computed, ref, toRaw, watch, watchEffect } from 'vue'
|
||||||
|
|
||||||
import { Point } from '@/lib/litegraph/src/interfaces'
|
import type { Point } from '@/lib/litegraph/src/interfaces'
|
||||||
import {
|
import type { LiteGraphCanvasEvent } from '@/lib/litegraph/src/litegraph'
|
||||||
LGraphNode,
|
import { LGraphNode, LiteGraph } from '@/lib/litegraph/src/litegraph'
|
||||||
LiteGraph,
|
|
||||||
LiteGraphCanvasEvent
|
|
||||||
} from '@/lib/litegraph/src/litegraph'
|
|
||||||
import type { CanvasPointerEvent } from '@/lib/litegraph/src/types/events'
|
import type { CanvasPointerEvent } from '@/lib/litegraph/src/types/events'
|
||||||
import { useSettingStore } from '@/platform/settings/settingStore'
|
import { useSettingStore } from '@/platform/settings/settingStore'
|
||||||
import { useWorkflowStore } from '@/platform/workflow/management/stores/workflowStore'
|
import { useWorkflowStore } from '@/platform/workflow/management/stores/workflowStore'
|
||||||
import { useCanvasStore } from '@/renderer/core/canvas/canvasStore'
|
import { useCanvasStore } from '@/renderer/core/canvas/canvasStore'
|
||||||
import { useLitegraphService } from '@/services/litegraphService'
|
import { useLitegraphService } from '@/services/litegraphService'
|
||||||
import { ComfyNodeDefImpl, useNodeDefStore } from '@/stores/nodeDefStore'
|
import type { ComfyNodeDefImpl } from '@/stores/nodeDefStore'
|
||||||
|
import { useNodeDefStore } from '@/stores/nodeDefStore'
|
||||||
import { useSearchBoxStore } from '@/stores/workspace/searchBoxStore'
|
import { useSearchBoxStore } from '@/stores/workspace/searchBoxStore'
|
||||||
import { LinkReleaseTriggerAction } from '@/types/searchBoxTypes'
|
import { LinkReleaseTriggerAction } from '@/types/searchBoxTypes'
|
||||||
import { FuseFilterWithValue } from '@/utils/fuseUtil'
|
import type { FuseFilterWithValue } from '@/utils/fuseUtil'
|
||||||
|
|
||||||
import NodeSearchBox from './NodeSearchBox.vue'
|
import NodeSearchBox from './NodeSearchBox.vue'
|
||||||
|
|
||||||
|
|||||||
@@ -27,8 +27,9 @@ import Select from 'primevue/select'
|
|||||||
import SelectButton from 'primevue/selectbutton'
|
import SelectButton from 'primevue/selectbutton'
|
||||||
import { computed, onMounted, ref } from 'vue'
|
import { computed, onMounted, ref } from 'vue'
|
||||||
|
|
||||||
import { ComfyNodeDefImpl, useNodeDefStore } from '@/stores/nodeDefStore'
|
import type { ComfyNodeDefImpl } from '@/stores/nodeDefStore'
|
||||||
import { FuseFilter, FuseFilterWithValue } from '@/utils/fuseUtil'
|
import { useNodeDefStore } from '@/stores/nodeDefStore'
|
||||||
|
import type { FuseFilter, FuseFilterWithValue } from '@/utils/fuseUtil'
|
||||||
|
|
||||||
const filters = computed(() => nodeDefStore.nodeSearchService.nodeFilters)
|
const filters = computed(() => nodeDefStore.nodeSearchService.nodeFilters)
|
||||||
const selectedFilter = ref<FuseFilter<ComfyNodeDefImpl, string>>()
|
const selectedFilter = ref<FuseFilter<ComfyNodeDefImpl, string>>()
|
||||||
|
|||||||
@@ -53,7 +53,8 @@ import { computed } from 'vue'
|
|||||||
|
|
||||||
import { useSettingStore } from '@/platform/settings/settingStore'
|
import { useSettingStore } from '@/platform/settings/settingStore'
|
||||||
import { useNodeBookmarkStore } from '@/stores/nodeBookmarkStore'
|
import { useNodeBookmarkStore } from '@/stores/nodeBookmarkStore'
|
||||||
import { ComfyNodeDefImpl, useNodeFrequencyStore } from '@/stores/nodeDefStore'
|
import type { ComfyNodeDefImpl } from '@/stores/nodeDefStore'
|
||||||
|
import { useNodeFrequencyStore } from '@/stores/nodeDefStore'
|
||||||
import { NodeSourceType } from '@/types/nodeSource'
|
import { NodeSourceType } from '@/types/nodeSource'
|
||||||
import { highlightQuery } from '@/utils/formatUtil'
|
import { highlightQuery } from '@/utils/formatUtil'
|
||||||
import { formatNumberWithSuffix } from '@/utils/formatUtil'
|
import { formatNumberWithSuffix } from '@/utils/formatUtil'
|
||||||
|
|||||||
@@ -56,12 +56,8 @@ import ModelTreeLeaf from '@/components/sidebar/tabs/modelLibrary/ModelTreeLeaf.
|
|||||||
import { useTreeExpansion } from '@/composables/useTreeExpansion'
|
import { useTreeExpansion } from '@/composables/useTreeExpansion'
|
||||||
import { useSettingStore } from '@/platform/settings/settingStore'
|
import { useSettingStore } from '@/platform/settings/settingStore'
|
||||||
import { useLitegraphService } from '@/services/litegraphService'
|
import { useLitegraphService } from '@/services/litegraphService'
|
||||||
import {
|
import type { ComfyModelDef, ModelFolder } from '@/stores/modelStore'
|
||||||
ComfyModelDef,
|
import { ResourceState, useModelStore } from '@/stores/modelStore'
|
||||||
ModelFolder,
|
|
||||||
ResourceState,
|
|
||||||
useModelStore
|
|
||||||
} from '@/stores/modelStore'
|
|
||||||
import { useModelToNodeStore } from '@/stores/modelToNodeStore'
|
import { useModelToNodeStore } from '@/stores/modelToNodeStore'
|
||||||
import type { TreeNode } from '@/types/treeExplorerTypes'
|
import type { TreeNode } from '@/types/treeExplorerTypes'
|
||||||
import type { TreeExplorerNode } from '@/types/treeExplorerTypes'
|
import type { TreeExplorerNode } from '@/types/treeExplorerTypes'
|
||||||
|
|||||||
@@ -129,10 +129,11 @@ import { storeToRefs } from 'pinia'
|
|||||||
import Button from 'primevue/button'
|
import Button from 'primevue/button'
|
||||||
import Divider from 'primevue/divider'
|
import Divider from 'primevue/divider'
|
||||||
import Popover from 'primevue/popover'
|
import Popover from 'primevue/popover'
|
||||||
import { Ref, computed, h, nextTick, ref, render } from 'vue'
|
import type { Ref } from 'vue'
|
||||||
|
import { computed, h, nextTick, ref, render } from 'vue'
|
||||||
|
|
||||||
import SearchBox from '@/components/common/SearchBox.vue'
|
import SearchBox from '@/components/common/SearchBox.vue'
|
||||||
import { SearchFilter } from '@/components/common/SearchFilterChip.vue'
|
import type { SearchFilter } from '@/components/common/SearchFilterChip.vue'
|
||||||
import TreeExplorer from '@/components/common/TreeExplorer.vue'
|
import TreeExplorer from '@/components/common/TreeExplorer.vue'
|
||||||
import NodePreview from '@/components/node/NodePreview.vue'
|
import NodePreview from '@/components/node/NodePreview.vue'
|
||||||
import NodeSearchFilter from '@/components/searchbox/NodeSearchFilter.vue'
|
import NodeSearchFilter from '@/components/searchbox/NodeSearchFilter.vue'
|
||||||
@@ -148,7 +149,8 @@ import {
|
|||||||
} from '@/services/nodeOrganizationService'
|
} from '@/services/nodeOrganizationService'
|
||||||
import { useCommandStore } from '@/stores/commandStore'
|
import { useCommandStore } from '@/stores/commandStore'
|
||||||
import { useNodeBookmarkStore } from '@/stores/nodeBookmarkStore'
|
import { useNodeBookmarkStore } from '@/stores/nodeBookmarkStore'
|
||||||
import { ComfyNodeDefImpl, useNodeDefStore } from '@/stores/nodeDefStore'
|
import type { ComfyNodeDefImpl } from '@/stores/nodeDefStore'
|
||||||
|
import { useNodeDefStore } from '@/stores/nodeDefStore'
|
||||||
import { useNodeHelpStore } from '@/stores/workspace/nodeHelpStore'
|
import { useNodeHelpStore } from '@/stores/workspace/nodeHelpStore'
|
||||||
import type {
|
import type {
|
||||||
GroupingStrategyId,
|
GroupingStrategyId,
|
||||||
@@ -156,7 +158,7 @@ import type {
|
|||||||
} from '@/types/nodeOrganizationTypes'
|
} from '@/types/nodeOrganizationTypes'
|
||||||
import type { TreeNode } from '@/types/treeExplorerTypes'
|
import type { TreeNode } from '@/types/treeExplorerTypes'
|
||||||
import type { TreeExplorerNode } from '@/types/treeExplorerTypes'
|
import type { TreeExplorerNode } from '@/types/treeExplorerTypes'
|
||||||
import { FuseFilterWithValue } from '@/utils/fuseUtil'
|
import type { FuseFilterWithValue } from '@/utils/fuseUtil'
|
||||||
|
|
||||||
import NodeBookmarkTreeExplorer from './nodeLibrary/NodeBookmarkTreeExplorer.vue'
|
import NodeBookmarkTreeExplorer from './nodeLibrary/NodeBookmarkTreeExplorer.vue'
|
||||||
|
|
||||||
|
|||||||
@@ -105,16 +105,13 @@ import { useI18n } from 'vue-i18n'
|
|||||||
import NoResultsPlaceholder from '@/components/common/NoResultsPlaceholder.vue'
|
import NoResultsPlaceholder from '@/components/common/NoResultsPlaceholder.vue'
|
||||||
import VirtualGrid from '@/components/common/VirtualGrid.vue'
|
import VirtualGrid from '@/components/common/VirtualGrid.vue'
|
||||||
import { useSettingStore } from '@/platform/settings/settingStore'
|
import { useSettingStore } from '@/platform/settings/settingStore'
|
||||||
import { ComfyNode } from '@/platform/workflow/validation/schemas/workflowSchema'
|
import type { ComfyNode } from '@/platform/workflow/validation/schemas/workflowSchema'
|
||||||
import { api } from '@/scripts/api'
|
import { api } from '@/scripts/api'
|
||||||
import { app } from '@/scripts/app'
|
import { app } from '@/scripts/app'
|
||||||
import { useLitegraphService } from '@/services/litegraphService'
|
import { useLitegraphService } from '@/services/litegraphService'
|
||||||
import { useCommandStore } from '@/stores/commandStore'
|
import { useCommandStore } from '@/stores/commandStore'
|
||||||
import {
|
import type { ResultItemImpl, TaskItemImpl } from '@/stores/queueStore'
|
||||||
ResultItemImpl,
|
import { useQueueStore } from '@/stores/queueStore'
|
||||||
TaskItemImpl,
|
|
||||||
useQueueStore
|
|
||||||
} from '@/stores/queueStore'
|
|
||||||
|
|
||||||
import SidebarTabTemplate from './SidebarTabTemplate.vue'
|
import SidebarTabTemplate from './SidebarTabTemplate.vue'
|
||||||
import ResultGallery from './queue/ResultGallery.vue'
|
import ResultGallery from './queue/ResultGallery.vue'
|
||||||
|
|||||||
@@ -150,7 +150,7 @@ import {
|
|||||||
import { ComfyWorkflow } from '@/platform/workflow/management/stores/workflowStore'
|
import { ComfyWorkflow } from '@/platform/workflow/management/stores/workflowStore'
|
||||||
import { useWorkspaceStore } from '@/stores/workspaceStore'
|
import { useWorkspaceStore } from '@/stores/workspaceStore'
|
||||||
import type { TreeNode } from '@/types/treeExplorerTypes'
|
import type { TreeNode } from '@/types/treeExplorerTypes'
|
||||||
import { TreeExplorerNode } from '@/types/treeExplorerTypes'
|
import type { TreeExplorerNode } from '@/types/treeExplorerTypes'
|
||||||
import { appendJsonExt } from '@/utils/formatUtil'
|
import { appendJsonExt } from '@/utils/formatUtil'
|
||||||
import { buildTree, sortedTree } from '@/utils/treeUtil'
|
import { buildTree, sortedTree } from '@/utils/treeUtil'
|
||||||
|
|
||||||
|
|||||||
@@ -20,19 +20,13 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import {
|
import type { CSSProperties } from 'vue'
|
||||||
CSSProperties,
|
import { computed, nextTick, onMounted, onUnmounted, ref } from 'vue'
|
||||||
computed,
|
|
||||||
nextTick,
|
|
||||||
onMounted,
|
|
||||||
onUnmounted,
|
|
||||||
ref
|
|
||||||
} from 'vue'
|
|
||||||
|
|
||||||
import TreeExplorerTreeNode from '@/components/common/TreeExplorerTreeNode.vue'
|
import TreeExplorerTreeNode from '@/components/common/TreeExplorerTreeNode.vue'
|
||||||
import { useSettingStore } from '@/platform/settings/settingStore'
|
import { useSettingStore } from '@/platform/settings/settingStore'
|
||||||
import { ComfyModelDef } from '@/stores/modelStore'
|
import type { ComfyModelDef } from '@/stores/modelStore'
|
||||||
import { RenderedTreeExplorerNode } from '@/types/treeExplorerTypes'
|
import type { RenderedTreeExplorerNode } from '@/types/treeExplorerTypes'
|
||||||
|
|
||||||
import ModelPreview from './ModelPreview.vue'
|
import ModelPreview from './ModelPreview.vue'
|
||||||
|
|
||||||
|
|||||||
@@ -33,7 +33,7 @@ import NodeTreeLeaf from '@/components/sidebar/tabs/nodeLibrary/NodeTreeLeaf.vue
|
|||||||
import { useTreeExpansion } from '@/composables/useTreeExpansion'
|
import { useTreeExpansion } from '@/composables/useTreeExpansion'
|
||||||
import { useLitegraphService } from '@/services/litegraphService'
|
import { useLitegraphService } from '@/services/litegraphService'
|
||||||
import { useNodeBookmarkStore } from '@/stores/nodeBookmarkStore'
|
import { useNodeBookmarkStore } from '@/stores/nodeBookmarkStore'
|
||||||
import { ComfyNodeDefImpl } from '@/stores/nodeDefStore'
|
import type { ComfyNodeDefImpl } from '@/stores/nodeDefStore'
|
||||||
import type { TreeNode } from '@/types/treeExplorerTypes'
|
import type { TreeNode } from '@/types/treeExplorerTypes'
|
||||||
import type {
|
import type {
|
||||||
RenderedTreeExplorerNode,
|
RenderedTreeExplorerNode,
|
||||||
|
|||||||
@@ -10,7 +10,7 @@ import { computed, inject, onMounted, onUnmounted, ref, watch } from 'vue'
|
|||||||
import TreeExplorerTreeNode from '@/components/common/TreeExplorerTreeNode.vue'
|
import TreeExplorerTreeNode from '@/components/common/TreeExplorerTreeNode.vue'
|
||||||
import type { BookmarkCustomization } from '@/schemas/apiSchema'
|
import type { BookmarkCustomization } from '@/schemas/apiSchema'
|
||||||
import { useNodeBookmarkStore } from '@/stores/nodeBookmarkStore'
|
import { useNodeBookmarkStore } from '@/stores/nodeBookmarkStore'
|
||||||
import { ComfyNodeDefImpl } from '@/stores/nodeDefStore'
|
import type { ComfyNodeDefImpl } from '@/stores/nodeDefStore'
|
||||||
import {
|
import {
|
||||||
InjectKeyExpandedKeys,
|
InjectKeyExpandedKeys,
|
||||||
type RenderedTreeExplorerNode
|
type RenderedTreeExplorerNode
|
||||||
|
|||||||
@@ -71,23 +71,17 @@ import Button from 'primevue/button'
|
|||||||
import ContextMenu from 'primevue/contextmenu'
|
import ContextMenu from 'primevue/contextmenu'
|
||||||
import type { MenuItem } from 'primevue/menuitem'
|
import type { MenuItem } from 'primevue/menuitem'
|
||||||
import Tag from 'primevue/tag'
|
import Tag from 'primevue/tag'
|
||||||
import {
|
import type { CSSProperties } from 'vue'
|
||||||
CSSProperties,
|
import { computed, nextTick, onMounted, onUnmounted, ref } from 'vue'
|
||||||
computed,
|
|
||||||
nextTick,
|
|
||||||
onMounted,
|
|
||||||
onUnmounted,
|
|
||||||
ref
|
|
||||||
} from 'vue'
|
|
||||||
import { useI18n } from 'vue-i18n'
|
import { useI18n } from 'vue-i18n'
|
||||||
|
|
||||||
import TreeExplorerTreeNode from '@/components/common/TreeExplorerTreeNode.vue'
|
import TreeExplorerTreeNode from '@/components/common/TreeExplorerTreeNode.vue'
|
||||||
import NodePreview from '@/components/node/NodePreview.vue'
|
import NodePreview from '@/components/node/NodePreview.vue'
|
||||||
import { useSettingStore } from '@/platform/settings/settingStore'
|
import { useSettingStore } from '@/platform/settings/settingStore'
|
||||||
import { useNodeBookmarkStore } from '@/stores/nodeBookmarkStore'
|
import { useNodeBookmarkStore } from '@/stores/nodeBookmarkStore'
|
||||||
import { ComfyNodeDefImpl } from '@/stores/nodeDefStore'
|
import type { ComfyNodeDefImpl } from '@/stores/nodeDefStore'
|
||||||
import { useSubgraphStore } from '@/stores/subgraphStore'
|
import { useSubgraphStore } from '@/stores/subgraphStore'
|
||||||
import { RenderedTreeExplorerNode } from '@/types/treeExplorerTypes'
|
import type { RenderedTreeExplorerNode } from '@/types/treeExplorerTypes'
|
||||||
|
|
||||||
const { t } = useI18n()
|
const { t } = useI18n()
|
||||||
|
|
||||||
|
|||||||
@@ -8,7 +8,7 @@
|
|||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import { computed } from 'vue'
|
import { computed } from 'vue'
|
||||||
|
|
||||||
import { ResultItemImpl } from '@/stores/queueStore'
|
import type { ResultItemImpl } from '@/stores/queueStore'
|
||||||
|
|
||||||
const { result } = defineProps<{
|
const { result } = defineProps<{
|
||||||
result: ResultItemImpl
|
result: ResultItemImpl
|
||||||
|
|||||||
@@ -45,7 +45,7 @@ import Galleria from 'primevue/galleria'
|
|||||||
import { onMounted, onUnmounted, ref, watch } from 'vue'
|
import { onMounted, onUnmounted, ref, watch } from 'vue'
|
||||||
|
|
||||||
import ComfyImage from '@/components/common/ComfyImage.vue'
|
import ComfyImage from '@/components/common/ComfyImage.vue'
|
||||||
import { ResultItemImpl } from '@/stores/queueStore'
|
import type { ResultItemImpl } from '@/stores/queueStore'
|
||||||
|
|
||||||
import ResultAudio from './ResultAudio.vue'
|
import ResultAudio from './ResultAudio.vue'
|
||||||
import ResultVideo from './ResultVideo.vue'
|
import ResultVideo from './ResultVideo.vue'
|
||||||
|
|||||||
@@ -25,7 +25,7 @@ import { computed, onMounted, ref } from 'vue'
|
|||||||
|
|
||||||
import ComfyImage from '@/components/common/ComfyImage.vue'
|
import ComfyImage from '@/components/common/ComfyImage.vue'
|
||||||
import { useSettingStore } from '@/platform/settings/settingStore'
|
import { useSettingStore } from '@/platform/settings/settingStore'
|
||||||
import { ResultItemImpl } from '@/stores/queueStore'
|
import type { ResultItemImpl } from '@/stores/queueStore'
|
||||||
|
|
||||||
import ResultAudio from './ResultAudio.vue'
|
import ResultAudio from './ResultAudio.vue'
|
||||||
import ResultVideo from './ResultVideo.vue'
|
import ResultVideo from './ResultVideo.vue'
|
||||||
|
|||||||
@@ -10,7 +10,7 @@ import { computed } from 'vue'
|
|||||||
|
|
||||||
import { useSettingStore } from '@/platform/settings/settingStore'
|
import { useSettingStore } from '@/platform/settings/settingStore'
|
||||||
import { useExtensionStore } from '@/stores/extensionStore'
|
import { useExtensionStore } from '@/stores/extensionStore'
|
||||||
import { ResultItemImpl } from '@/stores/queueStore'
|
import type { ResultItemImpl } from '@/stores/queueStore'
|
||||||
|
|
||||||
const props = defineProps<{
|
const props = defineProps<{
|
||||||
result: ResultItemImpl
|
result: ResultItemImpl
|
||||||
|
|||||||
@@ -78,7 +78,7 @@ import Button from 'primevue/button'
|
|||||||
import Tag from 'primevue/tag'
|
import Tag from 'primevue/tag'
|
||||||
import { computed, onMounted, onUnmounted, ref } from 'vue'
|
import { computed, onMounted, onUnmounted, ref } from 'vue'
|
||||||
|
|
||||||
import { ComfyNode } from '@/platform/workflow/validation/schemas/workflowSchema'
|
import type { ComfyNode } from '@/platform/workflow/validation/schemas/workflowSchema'
|
||||||
import { api } from '@/scripts/api'
|
import { api } from '@/scripts/api'
|
||||||
import { useLitegraphService } from '@/services/litegraphService'
|
import { useLitegraphService } from '@/services/litegraphService'
|
||||||
import { TaskItemDisplayStatus, type TaskItemImpl } from '@/stores/queueStore'
|
import { TaskItemDisplayStatus, type TaskItemImpl } from '@/stores/queueStore'
|
||||||
|
|||||||
@@ -17,10 +17,8 @@ import Button from 'primevue/button'
|
|||||||
import { computed } from 'vue'
|
import { computed } from 'vue'
|
||||||
|
|
||||||
import TreeExplorerTreeNode from '@/components/common/TreeExplorerTreeNode.vue'
|
import TreeExplorerTreeNode from '@/components/common/TreeExplorerTreeNode.vue'
|
||||||
import {
|
import type { ComfyWorkflow } from '@/platform/workflow/management/stores/workflowStore'
|
||||||
ComfyWorkflow,
|
import { useWorkflowBookmarkStore } from '@/platform/workflow/management/stores/workflowStore'
|
||||||
useWorkflowBookmarkStore
|
|
||||||
} from '@/platform/workflow/management/stores/workflowStore'
|
|
||||||
import type { RenderedTreeExplorerNode } from '@/types/treeExplorerTypes'
|
import type { RenderedTreeExplorerNode } from '@/types/treeExplorerTypes'
|
||||||
|
|
||||||
const { node } = defineProps<{
|
const { node } = defineProps<{
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ import { describe, expect, it, vi } from 'vitest'
|
|||||||
import { ref } from 'vue'
|
import { ref } from 'vue'
|
||||||
|
|
||||||
import TemplateWorkflowCard from '@/components/templates/TemplateWorkflowCard.vue'
|
import TemplateWorkflowCard from '@/components/templates/TemplateWorkflowCard.vue'
|
||||||
import { TemplateInfo } from '@/platform/workflow/templates/types/template'
|
import type { TemplateInfo } from '@/platform/workflow/templates/types/template'
|
||||||
|
|
||||||
vi.mock('@/components/templates/thumbnails/AudioThumbnail.vue', () => ({
|
vi.mock('@/components/templates/thumbnails/AudioThumbnail.vue', () => ({
|
||||||
default: {
|
default: {
|
||||||
|
|||||||
@@ -87,7 +87,7 @@ import CompareSliderThumbnail from '@/components/templates/thumbnails/CompareSli
|
|||||||
import DefaultThumbnail from '@/components/templates/thumbnails/DefaultThumbnail.vue'
|
import DefaultThumbnail from '@/components/templates/thumbnails/DefaultThumbnail.vue'
|
||||||
import HoverDissolveThumbnail from '@/components/templates/thumbnails/HoverDissolveThumbnail.vue'
|
import HoverDissolveThumbnail from '@/components/templates/thumbnails/HoverDissolveThumbnail.vue'
|
||||||
import { useTemplateWorkflows } from '@/platform/workflow/templates/composables/useTemplateWorkflows'
|
import { useTemplateWorkflows } from '@/platform/workflow/templates/composables/useTemplateWorkflows'
|
||||||
import { TemplateInfo } from '@/platform/workflow/templates/types/template'
|
import type { TemplateInfo } from '@/platform/workflow/templates/types/template'
|
||||||
|
|
||||||
const UPSCALE_ZOOM_SCALE = 16 // for upscale templates, exaggerate the hover zoom
|
const UPSCALE_ZOOM_SCALE = 16 // for upscale templates, exaggerate the hover zoom
|
||||||
const DEFAULT_ZOOM_SCALE = 5
|
const DEFAULT_ZOOM_SCALE = 5
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ import { describe, expect, it, vi } from 'vitest'
|
|||||||
import { createI18n } from 'vue-i18n'
|
import { createI18n } from 'vue-i18n'
|
||||||
|
|
||||||
import TemplateWorkflowView from '@/components/templates/TemplateWorkflowView.vue'
|
import TemplateWorkflowView from '@/components/templates/TemplateWorkflowView.vue'
|
||||||
import { TemplateInfo } from '@/platform/workflow/templates/types/template'
|
import type { TemplateInfo } from '@/platform/workflow/templates/types/template'
|
||||||
|
|
||||||
vi.mock('primevue/dataview', () => ({
|
vi.mock('primevue/dataview', () => ({
|
||||||
default: {
|
default: {
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
import { VueWrapper, mount } from '@vue/test-utils'
|
import type { VueWrapper } from '@vue/test-utils'
|
||||||
|
import { mount } from '@vue/test-utils'
|
||||||
import Button from 'primevue/button'
|
import Button from 'primevue/button'
|
||||||
import { beforeEach, describe, expect, it, vi } from 'vitest'
|
import { beforeEach, describe, expect, it, vi } from 'vitest'
|
||||||
import { h } from 'vue'
|
import { h } from 'vue'
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
import { VueWrapper, mount } from '@vue/test-utils'
|
import type { VueWrapper } from '@vue/test-utils'
|
||||||
|
import { mount } from '@vue/test-utils'
|
||||||
import Button from 'primevue/button'
|
import Button from 'primevue/button'
|
||||||
import { afterAll, beforeEach, describe, expect, it, vi } from 'vitest'
|
import { afterAll, beforeEach, describe, expect, it, vi } from 'vitest'
|
||||||
import { h } from 'vue'
|
import { h } from 'vue'
|
||||||
|
|||||||
@@ -42,7 +42,7 @@ import {
|
|||||||
} from '@/composables/usePragmaticDragAndDrop'
|
} from '@/composables/usePragmaticDragAndDrop'
|
||||||
import { useSettingStore } from '@/platform/settings/settingStore'
|
import { useSettingStore } from '@/platform/settings/settingStore'
|
||||||
import { useWorkflowService } from '@/platform/workflow/core/services/workflowService'
|
import { useWorkflowService } from '@/platform/workflow/core/services/workflowService'
|
||||||
import { ComfyWorkflow } from '@/platform/workflow/management/stores/workflowStore'
|
import type { ComfyWorkflow } from '@/platform/workflow/management/stores/workflowStore'
|
||||||
import { useWorkflowStore } from '@/platform/workflow/management/stores/workflowStore'
|
import { useWorkflowStore } from '@/platform/workflow/management/stores/workflowStore'
|
||||||
import { useWorkflowThumbnail } from '@/renderer/core/thumbnail/useWorkflowThumbnail'
|
import { useWorkflowThumbnail } from '@/renderer/core/thumbnail/useWorkflowThumbnail'
|
||||||
import { useWorkspaceStore } from '@/stores/workspaceStore'
|
import { useWorkspaceStore } from '@/stores/workspaceStore'
|
||||||
|
|||||||
@@ -83,10 +83,8 @@ import WorkflowTab from '@/components/topbar/WorkflowTab.vue'
|
|||||||
import { useOverflowObserver } from '@/composables/element/useOverflowObserver'
|
import { useOverflowObserver } from '@/composables/element/useOverflowObserver'
|
||||||
import { useSettingStore } from '@/platform/settings/settingStore'
|
import { useSettingStore } from '@/platform/settings/settingStore'
|
||||||
import { useWorkflowService } from '@/platform/workflow/core/services/workflowService'
|
import { useWorkflowService } from '@/platform/workflow/core/services/workflowService'
|
||||||
import {
|
import type { ComfyWorkflow } from '@/platform/workflow/management/stores/workflowStore'
|
||||||
ComfyWorkflow,
|
import { useWorkflowBookmarkStore } from '@/platform/workflow/management/stores/workflowStore'
|
||||||
useWorkflowBookmarkStore
|
|
||||||
} from '@/platform/workflow/management/stores/workflowStore'
|
|
||||||
import { useWorkflowStore } from '@/platform/workflow/management/stores/workflowStore'
|
import { useWorkflowStore } from '@/platform/workflow/management/stores/workflowStore'
|
||||||
import { useCommandStore } from '@/stores/commandStore'
|
import { useCommandStore } from '@/stores/commandStore'
|
||||||
import { useWorkspaceStore } from '@/stores/workspaceStore'
|
import { useWorkspaceStore } from '@/stores/workspaceStore'
|
||||||
|
|||||||
@@ -143,7 +143,7 @@ import SingleSelect from '@/components/input/SingleSelect.vue'
|
|||||||
import BaseModalLayout from '@/components/widget/layout/BaseModalLayout.vue'
|
import BaseModalLayout from '@/components/widget/layout/BaseModalLayout.vue'
|
||||||
import LeftSidePanel from '@/components/widget/panel/LeftSidePanel.vue'
|
import LeftSidePanel from '@/components/widget/panel/LeftSidePanel.vue'
|
||||||
import RightSidePanel from '@/components/widget/panel/RightSidePanel.vue'
|
import RightSidePanel from '@/components/widget/panel/RightSidePanel.vue'
|
||||||
import { NavGroupData, NavItemData } from '@/types/navTypes'
|
import type { NavGroupData, NavItemData } from '@/types/navTypes'
|
||||||
import { OnCloseKey } from '@/types/widgetTypes'
|
import { OnCloseKey } from '@/types/widgetTypes'
|
||||||
import { createGridStyle } from '@/utils/gridUtil'
|
import { createGridStyle } from '@/utils/gridUtil'
|
||||||
|
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import { NavItemData } from '@/types/navTypes'
|
import type { NavItemData } from '@/types/navTypes'
|
||||||
|
|
||||||
defineProps<{
|
defineProps<{
|
||||||
icon: NavItemData['icon']
|
icon: NavItemData['icon']
|
||||||
|
|||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user