mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-04-29 18:52:19 +00:00
Minor/Lint: Fix two warnings (#7045)
## Summary Unnecessary import of a compiler macro and importing the default instead of the named export. ┆Issue is synchronized with this [Notion page](https://www.notion.so/PR-7045-Minor-Lint-Fix-two-warnings-2bb6d73d365081758369d14bafcd7aa0) by [Unito](https://www.unito.io)
This commit is contained in:
@@ -38,6 +38,7 @@
|
|||||||
"typescript/no-redundant-type-constituents": "off",
|
"typescript/no-redundant-type-constituents": "off",
|
||||||
"typescript/restrict-template-expressions": "off",
|
"typescript/restrict-template-expressions": "off",
|
||||||
"typescript/unbound-method": "off",
|
"typescript/unbound-method": "off",
|
||||||
"typescript/no-floating-promises": "error"
|
"typescript/no-floating-promises": "error",
|
||||||
|
"vue/no-import-compiler-macros": "error"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -60,7 +60,7 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import { computed, nextTick, ref, withDefaults } from 'vue'
|
import { computed, nextTick, ref } from 'vue'
|
||||||
import { useI18n } from 'vue-i18n'
|
import { useI18n } from 'vue-i18n'
|
||||||
|
|
||||||
import QueueOverlayActive from '@/components/queue/QueueOverlayActive.vue'
|
import QueueOverlayActive from '@/components/queue/QueueOverlayActive.vue'
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import tgpu from 'typegpu'
|
import { tgpu } from 'typegpu'
|
||||||
import * as d from 'typegpu/data'
|
import * as d from 'typegpu/data'
|
||||||
import { BrushUniforms } from './gpuSchema'
|
import { BrushUniforms } from './gpuSchema'
|
||||||
|
|
||||||
|
|||||||
@@ -12,7 +12,7 @@ import type { Brush, Point } from '@/extensions/core/maskeditor/types'
|
|||||||
import { useMaskEditorStore } from '@/stores/maskEditorStore'
|
import { useMaskEditorStore } from '@/stores/maskEditorStore'
|
||||||
import { useCoordinateTransform } from './useCoordinateTransform'
|
import { useCoordinateTransform } from './useCoordinateTransform'
|
||||||
import { resampleSegment } from './splineUtils'
|
import { resampleSegment } from './splineUtils'
|
||||||
import TGPU from 'typegpu'
|
import { tgpu } from 'typegpu'
|
||||||
import { GPUBrushRenderer } from './gpu/GPUBrushRenderer'
|
import { GPUBrushRenderer } from './gpu/GPUBrushRenderer'
|
||||||
import { StrokeProcessor } from './StrokeProcessor'
|
import { StrokeProcessor } from './StrokeProcessor'
|
||||||
import { getEffectiveBrushSize, getEffectiveHardness } from './brushUtils'
|
import { getEffectiveBrushSize, getEffectiveHardness } from './brushUtils'
|
||||||
@@ -276,7 +276,7 @@ export function useBrushDrawing(initialSettings?: {
|
|||||||
}
|
}
|
||||||
|
|
||||||
try {
|
try {
|
||||||
const root = await TGPU.init()
|
const root = await tgpu.init()
|
||||||
store.tgpuRoot = root
|
store.tgpuRoot = root
|
||||||
device = root.device
|
device = root.device
|
||||||
console.warn('✅ TypeGPU initialized! Root:', root)
|
console.warn('✅ TypeGPU initialized! Root:', root)
|
||||||
|
|||||||
Reference in New Issue
Block a user