Skip to content

Commit 9f3696e

Browse files
authored
Fix typos (#404)
* Fix typos: Interupt -> Interrupt * Fix typos: tempateManagerRow -> templateManagerRow * Fix some typos * Fix typos: Convertable -> Convertible * Fix some typos
1 parent d5deb6d commit 9f3696e

File tree

10 files changed

+20
-18
lines changed

10 files changed

+20
-18
lines changed

browser_tests/interaction.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ test.describe('Node Interaction', () => {
2727

2828
test('Can disconnect/connect edge', async ({ comfyPage }) => {
2929
await comfyPage.disconnectEdge()
30-
// Close search menu poped up.
30+
// Close search menu popped up.
3131
await comfyPage.page.keyboard.press('Escape')
3232
await comfyPage.nextFrame()
3333
await expect(comfyPage.canvas).toHaveScreenshot(

src/extensions/core/nodeTemplates.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ class ManageTemplates extends ComfyDialog {
184184
'div',
185185
{
186186
dataset: { id: i.toString() },
187-
className: 'tempateManagerRow',
187+
className: 'templateManagerRow',
188188
style: {
189189
display: 'grid',
190190
gridTemplateColumns: '1fr auto',
@@ -206,7 +206,7 @@ class ManageTemplates extends ComfyDialog {
206206

207207
// rearrange the elements
208208
this.element
209-
.querySelectorAll('.tempateManagerRow')
209+
.querySelectorAll('.templateManagerRow')
210210
.forEach((el: HTMLElement, i) => {
211211
var prev_i = Number.parseInt(el.dataset.id)
212212

@@ -329,7 +329,7 @@ class ManageTemplates extends ComfyDialog {
329329
var that = this
330330
setTimeout(function () {
331331
that.element
332-
.querySelectorAll('.tempateManagerRow')
332+
.querySelectorAll('.templateManagerRow')
333333
.forEach((el: HTMLElement, i) => {
334334
el.dataset.id = i.toString()
335335
})

src/extensions/core/rerouteNode.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,7 @@ app.registerExtension({
256256
{
257257
// naming is inverted with respect to LiteGraphNode.horizontal
258258
// LiteGraphNode.horizontal == true means that
259-
// each slot in the inputs and outputs are layed out horizontally,
259+
// each slot in the inputs and outputs are laid out horizontally,
260260
// which is the opposite of the visual orientation of the inputs and outputs as a node
261261
content:
262262
'Set ' + (this.properties.horizontal ? 'Horizontal' : 'Vertical'),

src/extensions/core/snapToGrid.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ app.registerExtension({
130130

131131
// LiteGraph will call group.move both on mouse-move as well as mouse-up though we only want
132132
// to snap on a mouse-up which we can determine by checking if `app.canvas.last_mouse_dragging`
133-
// has been set to `false`. Essentially, this check here is the equivilant to calling an
133+
// has been set to `false`. Essentially, this check here is the equivalent to calling an
134134
// `LGraphGroup.prototype.onNodeMoved` if it had existed.
135135
if (app.canvas.last_mouse_dragging === false && app.shiftDown) {
136136
// After moving a group (while app.shiftDown), snap all the child nodes and, finally,

src/extensions/core/widgetInputs.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -384,7 +384,7 @@ function getConfig(widgetName) {
384384
)
385385
}
386386

387-
function isConvertableWidget(widget, config) {
387+
function isConvertibleWidget(widget, config) {
388388
return (
389389
(VALID_TYPES.includes(widget.type) || VALID_TYPES.includes(config[0])) &&
390390
!widget.options?.forceInput
@@ -485,7 +485,7 @@ function isValidCombo(combo, obj) {
485485
console.log(`connection rejected: tried to connect combo to ${obj}`)
486486
return false
487487
}
488-
// New imput combo has a different size
488+
// New input combo has a different size
489489
if (combo.length !== obj.length) {
490490
console.log(`connection rejected: combo lists dont match`)
491491
return false
@@ -670,14 +670,14 @@ app.registerExtension({
670670
})
671671
},
672672
async beforeRegisterNodeDef(nodeType, nodeData, app) {
673-
// Add menu options to conver to/from widgets
673+
// Add menu options to convert to/from widgets
674674
const origGetExtraMenuOptions = nodeType.prototype.getExtraMenuOptions
675675
nodeType.prototype.convertWidgetToInput = function (widget) {
676676
const config = getConfig.call(this, widget.name) ?? [
677677
widget.type,
678678
widget.options || {}
679679
]
680-
if (!isConvertableWidget(widget, config)) return false
680+
if (!isConvertibleWidget(widget, config)) return false
681681
convertToInput(this, widget, config)
682682
return true
683683
}
@@ -703,7 +703,7 @@ app.registerExtension({
703703
w.type,
704704
w.options || {}
705705
]
706-
if (isConvertableWidget(w, config)) {
706+
if (isConvertibleWidget(w, config)) {
707707
toInput.push({
708708
content: `Convert ${w.name} to input`,
709709
callback: () => convertToInput(this, w, config)

src/scripts/app.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1724,7 +1724,7 @@ export class ComfyApp {
17241724

17251725
const r = onConfigure?.apply(this, arguments)
17261726

1727-
// Fire after onConfigure, used by primitves to generate widget using input nodes config
1727+
// Fire after onConfigure, used by primitives to generate widget using input nodes config
17281728
// @ts-expect-error _nodes is private.
17291729
for (const node of app.graph._nodes) {
17301730
node.onAfterGraphConfigured?.()

src/scripts/ui/menu/index.ts

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import { ComfyButtonGroup } from '../components/buttonGroup'
77
import { ComfySplitButton } from '../components/splitButton'
88
import { ComfyQueueButton } from './queueButton'
99
import { ComfyWorkflowsMenu } from './workflows'
10-
import { getInteruptButton } from './interruptButton'
10+
import { getInterruptButton } from './interruptButton'
1111
import './menu.css'
1212
import type { ComfySettingsDialog } from '../settings'
1313

@@ -126,7 +126,9 @@ export class ComfyAppMenu {
126126
// Keep the settings group as there are custom scripts attaching extra
127127
// elements to it.
128128
this.settingsGroup = new ComfyButtonGroup()
129-
this.viewGroup = new ComfyButtonGroup(getInteruptButton('nlg-hide').element)
129+
this.viewGroup = new ComfyButtonGroup(
130+
getInterruptButton('nlg-hide').element
131+
)
130132
this.mobileMenuButton = new ComfyButton({
131133
icon: 'menu',
132134
action: (_, btn) => {
@@ -148,7 +150,7 @@ export class ComfyAppMenu {
148150
collapseOnMobile(this.settingsGroup).element,
149151
collapseOnMobile(this.viewGroup).element,
150152

151-
getInteruptButton('lt-lg-show').element,
153+
getInterruptButton('lt-lg-show').element,
152154
this.queueButton.element,
153155
showOnMobile(this.mobileMenuButton).element
154156
])

src/scripts/ui/menu/interruptButton.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { StatusWsMessageStatus } from '@/types/apiTypes'
22
import { api } from '../../api'
33
import { ComfyButton } from '../components/button'
44

5-
export function getInteruptButton(visibility: string) {
5+
export function getInterruptButton(visibility: string) {
66
const btn = new ComfyButton({
77
icon: 'close',
88
tooltip: 'Cancel current generation',

src/types/comfy.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ export interface ComfyExtension {
1212
*/
1313
init?(app: ComfyApp): Promise<void>
1414
/**
15-
* Allows any additonal setup, called after the application is fully set up and running
15+
* Allows any additional setup, called after the application is fully set up and running
1616
* @param app The ComfyUI app instance
1717
*/
1818
setup?(app: ComfyApp): Promise<void>

tests-ui/tests/groupNode.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -950,7 +950,7 @@ describe('group node', () => {
950950
expect(group.outputs[0].connections.length).toBe(1)
951951
expect(group.outputs[0].connections[0].targetNode.id).toBe(preview2.id)
952952

953-
// Convert back and ensure bothe previews are still connected
953+
// Convert back and ensure both previews are still connected
954954
group.menu['Convert to nodes'].call()
955955
decode = graph.find(decode)
956956
expect(decode.outputs[0].connections.length).toBe(2)

0 commit comments

Comments
 (0)