Typos and grammatical (English) cleanups. Changes made to comments and text output, not css classes or variable names.

This commit is contained in:
Eric Theise 2022-10-12 13:01:18 -07:00
parent 796ee2fdc6
commit 5301e2507a
20 changed files with 26 additions and 26 deletions

View file

@ -77,7 +77,7 @@ function updateWidget(widget, options={}) {
// save state
if (stateManager.queueCounter === 0) {
scrollState = {} // scrollbale modals don't store their scroll state in their value
scrollState = {} // scrollable modals don't store their scroll state in their value
}
stateManager.incrementQueue()
for (let w of removedWidgets) {

View file

@ -64,7 +64,7 @@ class Editor {
})
console.error(
`Error while setting ${propName} to: ${JSON.stringify(value)}.\n` +
'It\'s probably a bug, please open a new bug ticket with the followigin informations at' +
'It\'s probably a bug, please open a new bug ticket with the following informations at' +
'https://github.com/jean-emmanuel/open-stage-control/issues'
)
throw e

View file

@ -38,7 +38,7 @@ module.exports = class EventEmitter {
}
// Event bubbling
// DOM events won't buttle
// DOM events won't bubble
// Virtual events will unless data.stopPropagation is set
if (!data || !data.stopPropagation) {
if (this.parent) this.parent.trigger(evt, data)

View file

@ -84,7 +84,7 @@ module.exports = {
// if (!event.traversing) {
// // css transfom fix (doesn't work well with traversing gestures)
// // css transform fix (doesn't work well with traversing gestures)
// var transformedCoords = cssTransformCoords(event.firstTarget, event.movementX, event.movementY)
// event.movementX = transformedCoords.x
// event.movementY = transformedCoords.y
@ -102,7 +102,7 @@ module.exports = {
event.offsetY = event.pageY - off.top
// if (!event.traversing) {
// // css transfom fix (doesn't work well with traversing gestures)
// // css transform fix (doesn't work well with traversing gestures)
// var transformedCoords = cssTransformCoords(event.firstTarget, event.offsetX, event.offsetY)
// event.offsetX = transformedCoords.x
// event.offsetY = transformedCoords.y

View file

@ -64,7 +64,7 @@ module.exports = {
fullscreen_addtohome: 'You must add this page to your home screen to launch it in fullscreen',
// inspector
inspector_error: 'An error just occured, open the console to read more.',
inspector_error: 'An error just occurred, open the console to read more.',
// nosleep
nosleep: 'Prevent sleep',

View file

@ -59,7 +59,7 @@ var Parser = class Parser {
if (i.indexOf('_') !== 0 && props[i] === undefined) props[i] = deepCopy(defaults[i])
}
// Genrate widget's id, based on its type
// Generate widget's id, based on its type
if (props.id === 'auto' || !props.id) {
var id
while (!id || widgetManager.getWidgetById(id).length) {

View file

@ -36,7 +36,7 @@ class Button extends Widget {
'Set to `null` to send send no argument in the osc message. Must be different from `on`. Ignored if `mode` is `momentary` or `tap`.',
]},
mode: {type: 'string', value: 'toggle', choices: ['toggle', 'push', 'momentary', 'tap'], help: [
'Interraction mode:',
'Interaction mode:',
'- `toggle` (classic on/off switch)',
'- `push` (press & release)',
'- `momentary` (no release, no value sent with the address)',
@ -53,7 +53,7 @@ class Button extends Widget {
})
defaults.scripting.onValue.help.push(
'Additionnal variables:',
'Additional variables:',
'- `locals.touchCoords`: `[x, y]` array representing the touch coordinates, normalized between 0 and 1.'
)

View file

@ -29,7 +29,7 @@ class Switch extends MenuBase {
'`Object` of `"label":value` pairs. Numeric labels must be prepended or appended with a white space (or any other non-numeric character) otherwise the order of the values won\'t be kept',
]},
mode: {type: 'string', value: 'tap', choices: ['tap', 'slide', 'click', 'flip'], help: [
'Interraction mode:',
'Interaction mode:',
'- `tap`: activates when the pointer is down but prevents further scrolling',
'- `slide`: same as `tap` but allows sliding between values',
'- `click`: activates upon click only and allows further scrolling',

View file

@ -124,7 +124,7 @@ class Widget extends EventEmitter {
]},
typeTags: {type: 'string', value: '', help: [
'Defines the osc argument types, one letter per argument (including preArgs)',
'- If empty, the types are infered automatically from the values (with numbers casted to floats by default)',
'- If empty, the types are inferred automatically from the values (with numbers casted to floats by default)',
'- If there are more arguments than type letters, the last type is used for the extra arguments',
'See <a href="http://opensoundcontrol.org/">OSC 1.0 specification</a> for existing typetags'
]},
@ -1128,7 +1128,7 @@ class Widget extends EventEmitter {
})
// escpape windows absolute file paths
// escape windows absolute file paths
css = css.replace(/url\(([^)]*)\)/g, (m, url)=>{
var parser = urlParser(url)
if (!parser.protocol.match(/http|data/)) m = m.replace(':', '_:_')

View file

@ -37,7 +37,7 @@ class Keyboard extends Panel {
'Set to `true` to map the touch coordinates between `off` (top) and `on` (bottom). Requires `on` and `off` to be numbers',
]},
mode: {type: 'string', value: 'push', choices: ['push', 'toggle', 'tap'], help: [
'Interraction mode:',
'Interaction mode:',
'- `push` (press & release)',
'- `toggle` (on/off switches)',
'- `tap` (no release)'

View file

@ -94,7 +94,7 @@ class PatchBay extends Container(Canvas) {
})
defaults.style.css.help.concat(
'The inputs/ouputs width can be adjusted by using the `.nodes` selector:',
'The inputs/outputs width can be adjusted by using the `.nodes` selector:',
'`.nodes { width: 25% }`',
)

View file

@ -87,7 +87,7 @@ module.exports = class Image extends StaticProperties(Widget, {bypass: true}) {
var url = this.value,
parser = urlParser(url)
// escpape windows absolute file paths
// escape windows absolute file paths
if (!parser.protocol.match(/http|data/)) url = url.replace(':', '_:_')
url = url.replace(/\\/g, '\\\\')

View file

@ -5,7 +5,7 @@ module.exports = class Encoder extends StaticProperties(Knob, {angle: 360, range
static description() {
return 'A knob that sends a relative direction infomation instead of an absolute value.'
return 'A knob that sends a relative direction information instead of an absolute value.'
}
@ -45,7 +45,7 @@ module.exports = class Encoder extends StaticProperties(Knob, {angle: 360, range
})
defaults.scripting.onValue.help.push(
'Additionnal variables:',
'Additional variables:',
'- `locals.speed`: encoder\'s speed (reduce `sensitivity` to increase averaging)',
'- `locals.angle`: encoder\'s angle in degrees'
)
@ -218,7 +218,7 @@ module.exports = class Encoder extends StaticProperties(Knob, {angle: 360, range
) return
// sensitivity = ingore value updates
// sensitivity = ignore value updates
var sensitivityIgnore = false
if (this.getProp('sensitivity') < 1) {
if (v != this.getProp('release')) {

View file

@ -162,7 +162,7 @@ class Range extends Fader {
if (!i) return
e.inertia = 1 // cancel mutlifinger inertia
e.inertia = 1 // cancel multifinger inertia
if (e.shiftKey) {
this.faders[0].trigger('drag', e)

View file

@ -26,7 +26,7 @@ try:
except Exception as e:
if prebuilt_bin:
ipc_send('log', '(ERROR, MIDI) error while loading MIDI brigde program:\n %s' % (e.message if hasattr(e, 'message') else e))
ipc_send('log', '(ERROR, MIDI) error while loading MIDI bridge program:\n %s' % (e.message if hasattr(e, 'message') else e))
else:
ipc_send('log', '(ERROR, MIDI) error while loading python-rtmidi library (running with python %s):\n %s' % (".".join(map(str, version_info[:3])), e.message if hasattr(e, 'message') else e))
exit()

View file

@ -292,7 +292,7 @@ osc-panel-inner {
// opacity: 0;
// }
// 100% {
// tranform: scaleX(1);
// transform: scaleX(1);
// opacity: var(--alpha-fill);
// }
// }

View file

@ -424,7 +424,7 @@ module.exports = {
// target: ['host:port', ...],
// preArgs: [arg1, ...],
// address: '/address',
// typeTags: 'iif' // one letter per arg typetage
// typeTags: 'iif' // one letter per arg typetag
// }
// }
// preArgs, target and typeTags can be empty strings

View file

@ -36,7 +36,7 @@ module.exports = function(options={}) {
window.setBounds({x, y, width, height})
// retreive last geometry
// retrieve last geometry
if (settings.read('geometry') && settings.read('geometry')[options.id]) {
var geometry = settings.read('geometry')[options.id],
mScreen = screen.getDisplayMatching(geometry)

View file

@ -42,7 +42,7 @@ module.exports = {
true : 'Port must be an integer >= 1024'
}
},
'tcp-targets': {type: 'array', describe: 'tcp servers to connect to (ip: port pairs), does not susbtitute for --send',
'tcp-targets': {type: 'array', describe: 'tcp servers to connect to (ip: port pairs), does not substitute for --send',
check: (s, argv)=>{
if (!argv['tcp-port']) return '--tcp-port must be set'
return s.some(item=>!item.match(/^[^:]*:[0-9]{4,5}$/)) ?
@ -85,7 +85,7 @@ module.exports = {
return a.match(/[^:]*:[^:]+/) ? true : 'Auth must be a user:password pair.'
}
},
'instance-name': {type: 'string', describe: 'used to differenciate multiple instances in a zeroconf network'},
'instance-name': {type: 'string', describe: 'used to differentiate multiple instances in a zeroconf network'},
'use-ssl': {type: 'boolean', describe: 'set to true to use HTTPS protocol instead of HTTP (a self-signed certificate will be created)'},
// cli only

View file

@ -5,7 +5,7 @@ var path = require('path'),
options = require('./options'),
address = require('./address')
// This prevents argv parsing to be breaked when the app is packaged (executed without 'electron' prefix)
// This prevents argv parsing from breaking when the app is packaged (executed without 'electron' prefix)
var firstArgIndex = path.basename(process.argv[0]).match(/electron|node/) ? 2 : 1
if (process.env.OSC_SERVER_PROCESS) firstArgIndex++