Skip to content

Commit 9a66452

Browse files
marcelpetrickDrJKLbenceruleanlu
authored andcommitted
fix(docs): correct typos in comments and strings found during code view (#5880)
Non-functional changes only: - Fixed minor spelling mistakes in comments - Corrected typos in user-facing strings - No variables, logic, or functional code was modified. Signed-off-by: Marcel Petrick <[email protected]> ┆Issue is synchronized with this [Notion page](https://www.notion.so/PR-5880-fix-docs-correct-typos-in-comments-and-strings-found-during-code-view-27f6d73d3650815db62af6115991304a) by [Unito](https://www.unito.io) --------- Signed-off-by: Marcel Petrick <[email protected]> Co-authored-by: Alexander Brown <[email protected]> Co-authored-by: Benjamin Lu <[email protected]>
1 parent 918efb0 commit 9a66452

File tree

29 files changed

+48
-48
lines changed

29 files changed

+48
-48
lines changed

packages/design-system/src/css/style.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@
152152
}
153153
}
154154

155-
/* Everthing below here to be cleaned up over time. */
155+
/* Everything below here to be cleaned up over time. */
156156

157157
body {
158158
width: 100vw;

packages/registry-types/src/comfyRegistryTypes.ts

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/components/bottomPanel/tabs/terminal/LogsTerminal.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ const terminalCreated = (
6969
await loadLogEntries()
7070
} catch (err) {
7171
console.error('Error loading logs', err)
72-
// On older backends the endpoints wont exist
72+
// On older backends the endpoints won't exist
7373
errorMessage.value =
7474
'Unable to load logs, please ensure you have updated your ComfyUI backend.'
7575
return

src/constants/serverConfig.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -344,7 +344,7 @@ export const SERVER_CONFIG_ITEMS: ServerConfig<any>[] = [
344344
type: 'number',
345345
defaultValue: null,
346346
tooltip:
347-
'Set the amount of vram in GB you want to reserve for use by your OS/other software. By default some amount is reverved depending on your OS.'
347+
'Set the amount of vram in GB you want to reserve for use by your OS/other software. By default some amount is reserved depending on your OS.'
348348
},
349349

350350
// Misc settings

src/core/graph/subgraph/proxyWidget.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ function addProxyFromOverlay(subgraphNode: SubgraphNode, overlay: Overlay) {
135135
* @param {string} property - The name of the accessed value.
136136
* Checked for conditional logic, but never changed
137137
* @param {object} receiver - The object the result is set to
138-
* and the vlaue used as 'this' if property is a get/set method
138+
* and the value used as 'this' if property is a get/set method
139139
* @param {unknown} value - only used on set calls. The thing being assigned
140140
*/
141141
const handler = {

src/extensions/core/webcamCapture.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ app.registerExtension({
147147
// @ts-expect-error fixme ts strict error
148148
node[WEBCAM_READY].then((v) => {
149149
video = v
150-
// If width isnt specified then use video output resolution
150+
// If width isn't specified then use video output resolution
151151
// @ts-expect-error fixme ts strict error
152152
if (!w.value) {
153153
// @ts-expect-error fixme ts strict error

src/extensions/core/widgetInputs.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ export class PrimitiveNode extends LGraphNode {
149149
target_slot: number
150150
) {
151151
// Fires before the link is made allowing us to reject it if it isn't valid
152-
// No widget, we cant connect
152+
// No widget, we can't connect
153153
if (!input.widget && !(input.type in ComfyWidgets)) {
154154
return false
155155
}
@@ -388,7 +388,7 @@ export class PrimitiveNode extends LGraphNode {
388388
}
389389

390390
onLastDisconnect() {
391-
// We cant remove + re-add the output here as if you drag a link over the same link
391+
// We can't remove + re-add the output here as if you drag a link over the same link
392392
// it removes, then re-adds, causing it to break
393393
this.outputs[0].type = '*'
394394
this.outputs[0].name = 'connect to widget input'
@@ -595,7 +595,7 @@ app.registerExtension({
595595

596596
this.graph?.add(node)
597597

598-
// Calculate a position that wont directly overlap another node
598+
// Calculate a position that won't directly overlap another node
599599
const pos: [number, number] = [
600600
this.pos[0] - node.size[0] - 30,
601601
this.pos[1]

src/lib/litegraph/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -146,8 +146,8 @@ Litegraph has no runtime dependencies. The build tooling has been tested on Node
146146

147147
Use GitHub actions to release normal versions.
148148

149-
1. Run the `Release a New Version` action, selecting the version incrment type
150-
1. Merge the resultion PR
149+
1. Run the `Release a New Version` action, selecting the version increment type
150+
1. Merge the resolution PR
151151
1. A GitHub release is automatically published on merge
152152

153153
### Pre-release

src/lib/litegraph/src/LGraph.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1126,7 +1126,7 @@ export class LGraph
11261126
/**
11271127
* Snaps the provided items to a grid.
11281128
*
1129-
* Item positions are reounded to the nearest multiple of {@link LiteGraph.CANVAS_GRID_SIZE}.
1129+
* Item positions are rounded to the nearest multiple of {@link LiteGraph.CANVAS_GRID_SIZE}.
11301130
*
11311131
* When {@link LiteGraph.alwaysSnapToGrid} is enabled
11321132
* and the grid size is falsy, a default of 1 is used.

src/lib/litegraph/src/LGraphCanvas.ts

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -461,7 +461,7 @@ export class LGraphCanvas
461461
}
462462

463463
const baseFontSize = LiteGraph.NODE_TEXT_SIZE // 14px
464-
const dprAdjustment = Math.sqrt(window.devicePixelRatio || 1) //Using sqrt here because higher DPR monitors do not linearily scale the readability of the font, instead they increase the font by some heurisitc, and to approximate we use sqrt to say bascially a DPR of 2 increases the readibility by 40%, 3 by 70%
464+
const dprAdjustment = Math.sqrt(window.devicePixelRatio || 1) //Using sqrt here because higher DPR monitors do not linearily scale the readability of the font, instead they increase the font by some heurisitc, and to approximate we use sqrt to say basically a DPR of 2 increases the readability by 40%, 3 by 70%
465465

466466
// Calculate the zoom level where text becomes unreadable
467467
this._lowQualityZoomThreshold =
@@ -547,7 +547,7 @@ export class LGraphCanvas
547547
linkMarkerShape: LinkMarkerShape = LinkMarkerShape.Circle
548548
links_render_mode: number
549549
/** Minimum font size in pixels before switching to low quality rendering.
550-
* This intializes first and if we cant get the value from the settings we default to 8px
550+
* This initializes first and if we can't get the value from the settings we default to 8px
551551
*/
552552
private _min_font_size_for_lod: number = 8
553553

@@ -1228,7 +1228,7 @@ export class LGraphCanvas
12281228
className: 'event'
12291229
})
12301230
}
1231-
// add callback for modifing the menu elements onMenuNodeOutputs
1231+
// add callback for modifying the menu elements onMenuNodeOutputs
12321232
const retEntries = node.onMenuNodeOutputs?.(entries)
12331233
if (retEntries) entries = retEntries
12341234

@@ -3902,7 +3902,7 @@ export class LGraphCanvas
39023902
for (const item of [...parsed.nodes, ...parsed.reroutes]) {
39033903
if (item.pos == null)
39043904
throw new TypeError(
3905-
'Invalid node encounterd on paste. `pos` was null.'
3905+
'Invalid node encountered on paste. `pos` was null.'
39063906
)
39073907

39083908
if (item.pos[0] < offsetX) offsetX = item.pos[0]
@@ -6818,7 +6818,7 @@ export class LGraphCanvas
68186818
canvas.focus()
68196819
root_document.body.style.overflow = ''
68206820

6821-
// important, if canvas loses focus keys wont be captured
6821+
// important, if canvas loses focus keys won't be captured
68226822
setTimeout(() => canvas.focus(), 20)
68236823
dialog.remove()
68246824
}
@@ -7095,7 +7095,7 @@ export class LGraphCanvas
70957095
)
70967096
}
70977097
} else {
7098-
// console.warn("cant find slot " + options.slot_from);
7098+
// console.warn("can't find slot " + options.slot_from);
70997099
}
71007100
}
71017101
if (options.node_to) {
@@ -7140,7 +7140,7 @@ export class LGraphCanvas
71407140
)
71417141
}
71427142
} else {
7143-
// console.warn("cant find slot_nodeTO " + options.slot_from);
7143+
// console.warn("can't find slot_nodeTO " + options.slot_from);
71447144
}
71457145
}
71467146

@@ -7478,7 +7478,7 @@ export class LGraphCanvas
74787478
return dialog
74797479
}
74807480

7481-
// TODO refactor, theer are different dialog, some uses createDialog, some dont
7481+
// TODO refactor, there are different dialog, some uses createDialog, some dont
74827482
createDialog(html: string, options: IDialogOptions): IDialog {
74837483
const def_options = {
74847484
checkForInput: false,

0 commit comments

Comments
 (0)