Skip to content

armgit / core

Public Imported from GitHub
0

100% open-source IoT Platform - Integrate your devices, add intelligence, build custom apps

Fix typos (#1440)

Wouter Born20da586a0d40
diff --git a/.ci_cd/README.md b/.ci_cd/README.md
index 120821aa8..049874fc8 100644
--- a/.ci_cd/README.md
+++ b/.ci_cd/README.md
@@ -20,7 +20,7 @@ docker image tag updates. The file layout is:
},
// Singleton or array of deployments to execute, a deployment consists of (environment and/or managerTag see variables for explanation)
"deploy": {
- "managerTag": "develop", // Can use #ref or exclude this to build COMMIT specific maanger docker image (i.e. don't use an image from docker hub)
+ "managerTag": "develop", // Can use #ref or exclude this to build COMMIT specific manager docker image (i.e. don't use an image from docker hub)
"environment": "staging"
}
},
@@ -40,7 +40,7 @@ docker image tag updates. The file layout is:
},
// Singleton or array of deployments to execute, a deployment consists of (environment and/or managerTag see variables for explanation)
"deploy": {
- "managerTag": "latest", // Can use #ref or exclude this to build COMMIT specific maanger docker image
+ "managerTag": "latest", // Can use #ref or exclude this to build COMMIT specific manager docker image
"environment": "production"
}
},
diff --git a/agent/src/main/java/org/openremote/agent/protocol/bluetooth/mesh/InternalProvisioningCallbacks.java b/agent/src/main/java/org/openremote/agent/protocol/bluetooth/mesh/InternalProvisioningCallbacks.java
index 1c8a387a4..4cb4a76cd 100644
--- a/agent/src/main/java/org/openremote/agent/protocol/bluetooth/mesh/InternalProvisioningCallbacks.java
+++ b/agent/src/main/java/org/openremote/agent/protocol/bluetooth/mesh/InternalProvisioningCallbacks.java
@@ -28,7 +28,7 @@ public interface InternalProvisioningCallbacks {
* Generates confirmation inputs based on the public key xy components of provisioner and provisionee
*
* @param provisionerPublicKeyXY provisioner public key xy
- * @param provisioneePublicKeyXY provisionee publick key xy
+ * @param provisioneePublicKeyXY provisionee public key xy
*/
byte[] generateConfirmationInputs(final byte[] provisionerPublicKeyXY, final byte[] provisioneePublicKeyXY);
diff --git a/agent/src/main/java/org/openremote/agent/protocol/bluetooth/mesh/Scene.java b/agent/src/main/java/org/openremote/agent/protocol/bluetooth/mesh/Scene.java
index 12512d43d..fd5e5e232 100644
--- a/agent/src/main/java/org/openremote/agent/protocol/bluetooth/mesh/Scene.java
+++ b/agent/src/main/java/org/openremote/agent/protocol/bluetooth/mesh/Scene.java
@@ -94,7 +94,7 @@ public class Scene {
}
/**
- * Validates the excene number
+ * Validates the scene number
*
* @param sceneNumber Scene number
* @return true if is a valid or throws an IllegalArgument exception
diff --git a/agent/src/main/java/org/openremote/agent/protocol/bluetooth/mesh/transport/ConfigModelSubscriptionAdd.java b/agent/src/main/java/org/openremote/agent/protocol/bluetooth/mesh/transport/ConfigModelSubscriptionAdd.java
index f1b39aa23..ba2720510 100644
--- a/agent/src/main/java/org/openremote/agent/protocol/bluetooth/mesh/transport/ConfigModelSubscriptionAdd.java
+++ b/agent/src/main/java/org/openremote/agent/protocol/bluetooth/mesh/transport/ConfigModelSubscriptionAdd.java
@@ -46,7 +46,7 @@ public final class ConfigModelSubscriptionAdd extends ConfigMessage {
* Constructs ConfigModelSubscriptionAdd message.
*
* @param elementAddress Address of the element to which the model belongs to.
- * @param subscriptionAddress Address to whic the element should subscribe.
+ * @param subscriptionAddress Address to which the element should subscribe.
* @param modelIdentifier identifier of the model, 16-bit for Sig model and 32-bit model id for vendor models.
* @throws IllegalArgumentException if any illegal arguments are passed
*/
diff --git a/agent/src/main/java/org/openremote/agent/protocol/bluetooth/mesh/transport/ConfigModelSubscriptionOverwrite.java b/agent/src/main/java/org/openremote/agent/protocol/bluetooth/mesh/transport/ConfigModelSubscriptionOverwrite.java
index 529d79a89..a8be65272 100644
--- a/agent/src/main/java/org/openremote/agent/protocol/bluetooth/mesh/transport/ConfigModelSubscriptionOverwrite.java
+++ b/agent/src/main/java/org/openremote/agent/protocol/bluetooth/mesh/transport/ConfigModelSubscriptionOverwrite.java
@@ -46,7 +46,7 @@ public final class ConfigModelSubscriptionOverwrite extends ConfigMessage {
* Constructs ConfigModelSubscriptionDelete message.
*
* @param elementAddress Address of the element to which the model belongs to.
- * @param subscriptionAddress Address to whic the element should subscribe.
+ * @param subscriptionAddress Address to which the element should subscribe.
* @param modelIdentifier identifier of the model, 16-bit for Sig model and 32-bit model id for vendor models.
* @throws IllegalArgumentException if any illegal arguments are passed
*/
diff --git a/agent/src/main/java/org/openremote/agent/protocol/bluetooth/mesh/transport/Element.java b/agent/src/main/java/org/openremote/agent/protocol/bluetooth/mesh/transport/Element.java
index 4f0cbfec1..0176593fc 100644
--- a/agent/src/main/java/org/openremote/agent/protocol/bluetooth/mesh/transport/Element.java
+++ b/agent/src/main/java/org/openremote/agent/protocol/bluetooth/mesh/transport/Element.java
@@ -135,9 +135,9 @@ public final class Element {
}
/**
- * Returns a list of sig models avaialable in this element
+ * Returns a list of sig models available in this element
*
- * @return List containing sig models
+ * @return Map containing sig models
*/
public Map<Integer, MeshModel> getMeshModels() {
return Collections.unmodifiableMap(meshModels);
diff --git a/agent/src/main/java/org/openremote/agent/protocol/bluetooth/mesh/transport/MeshTransport.java b/agent/src/main/java/org/openremote/agent/protocol/bluetooth/mesh/transport/MeshTransport.java
index 8923cceba..4c7215a8f 100644
--- a/agent/src/main/java/org/openremote/agent/protocol/bluetooth/mesh/transport/MeshTransport.java
+++ b/agent/src/main/java/org/openremote/agent/protocol/bluetooth/mesh/transport/MeshTransport.java
@@ -146,7 +146,7 @@ final class MeshTransport extends NetworkLayer {
* @param key Device Key
* @param akf Application key flag defines which key to be used to decrypt the message i.e device key or application key.
* @param aid Identifier of the application key.
- * @param aszmic Defines the length of the transport mic length where 1 will encrypt withn 64 bit and 0 with 32 bit encryption.
+ * @param aszmic Defines the length of the transport mic length where 1 will encrypt with 64 bit and 0 with 32 bit encryption.
* @param accessOpCode Operation code for the access message.
* @param accessMessageParameters Parameters for the access message.
* @return access message containing the mesh pdu
@@ -204,7 +204,7 @@ final class MeshTransport extends NetworkLayer {
* @param key Application Key
* @param akf Application key flag defines which key to be used to decrypt the message i.e device key or application key.
* @param aid Identifier of the application key.
- * @param aszmic Defines the length of the transport mic length where 1 will encrypt withn 64 bit and 0 with 32 bit encryption.
+ * @param aszmic Defines the length of the transport mic length where 1 will encrypt with 64 bit and 0 with 32 bit encryption.
* @param accessOpCode Operation code for the access message.
* @param accessMessageParameters Parameters for the access message.
* @return access message containing the mesh pdu
diff --git a/agent/src/main/java/org/openremote/agent/protocol/bluetooth/mesh/transport/UpperTransportLayer.java b/agent/src/main/java/org/openremote/agent/protocol/bluetooth/mesh/transport/UpperTransportLayer.java
index b966a8499..d9b9b5b34 100644
--- a/agent/src/main/java/org/openremote/agent/protocol/bluetooth/mesh/transport/UpperTransportLayer.java
+++ b/agent/src/main/java/org/openremote/agent/protocol/bluetooth/mesh/transport/UpperTransportLayer.java
@@ -80,14 +80,14 @@ public abstract class UpperTransportLayer extends AccessLayer{
abstract void createLowerTransportControlPDU(final ControlMessage message);
/**
- * Removes the lower transport layer header and reassembles a segented lower transport access pdu in to one message
+ * Removes the lower transport layer header and reassembles a segmented lower transport access pdu in to one message
*
* @param accessMessage access message containing the lower transport pdus
*/
abstract void reassembleLowerTransportAccessPDU(final AccessMessage accessMessage);
/**
- * Removes the lower transport layer header and reassembles a segented lower transport control pdu in to one message
+ * Removes the lower transport layer header and reassembles a segmented lower transport control pdu in to one message
*
* @param controlMessage control message containing the lower transport pdus
*/
diff --git a/agent/src/main/java/org/openremote/agent/protocol/bluetooth/mesh/utils/Heartbeat.java b/agent/src/main/java/org/openremote/agent/protocol/bluetooth/mesh/utils/Heartbeat.java
index 7141b7213..ce4e86fe8 100644
--- a/agent/src/main/java/org/openremote/agent/protocol/bluetooth/mesh/utils/Heartbeat.java
+++ b/agent/src/main/java/org/openremote/agent/protocol/bluetooth/mesh/utils/Heartbeat.java
@@ -133,7 +133,7 @@ public abstract class Heartbeat {
}
/**
- * Converts the perio to time
+ * Converts the period to time
*
* @param seconds PeriodLog
*/
diff --git a/agent/src/main/java/org/openremote/agent/protocol/bluetooth/mesh/utils/InputOOBAction.java b/agent/src/main/java/org/openremote/agent/protocol/bluetooth/mesh/utils/InputOOBAction.java
index cd265e844..4e46eebfb 100644
--- a/agent/src/main/java/org/openremote/agent/protocol/bluetooth/mesh/utils/InputOOBAction.java
+++ b/agent/src/main/java/org/openremote/agent/protocol/bluetooth/mesh/utils/InputOOBAction.java
@@ -72,7 +72,7 @@ public enum InputOOBAction {
* Returns the Input OOB Action description
*
* @param type Input OOB type
- * @return Input OOB type descrption
+ * @return Input OOB type description
*/
public static String getInputOOBActionDescription(final InputOOBAction type) {
switch (type) {
diff --git a/agent/src/main/java/org/openremote/agent/protocol/bluetooth/mesh/utils/OutputOOBAction.java b/agent/src/main/java/org/openremote/agent/protocol/bluetooth/mesh/utils/OutputOOBAction.java
index 905b34eb2..637e32ed4 100644
--- a/agent/src/main/java/org/openremote/agent/protocol/bluetooth/mesh/utils/OutputOOBAction.java
+++ b/agent/src/main/java/org/openremote/agent/protocol/bluetooth/mesh/utils/OutputOOBAction.java
@@ -76,7 +76,7 @@ public enum OutputOOBAction {
* Returns the Output OOB Action description
*
* @param type Output OOB type
- * @return Input OOB type descrption
+ * @return Input OOB type description
*/
public static String getOutputOOBActionDescription(final OutputOOBAction type) {
switch (type) {
diff --git a/agent/src/main/java/org/openremote/agent/protocol/bluetooth/mesh/utils/SecureUtils.java b/agent/src/main/java/org/openremote/agent/protocol/bluetooth/mesh/utils/SecureUtils.java
index a77544065..2c5ea127a 100644
--- a/agent/src/main/java/org/openremote/agent/protocol/bluetooth/mesh/utils/SecureUtils.java
+++ b/agent/src/main/java/org/openremote/agent/protocol/bluetooth/mesh/utils/SecureUtils.java
@@ -324,7 +324,7 @@ public class SecureUtils {
final byte[] result = calculateCMAC(cmacInput, t);
- //Only the least siginificant 6 bytes are returned
+ //Only the least significant 6 bytes are returned
return (byte) ((result[15]) & 0x3F);
}
diff --git a/agent/src/main/java/org/openremote/agent/protocol/http/HTTPAgentLink.java b/agent/src/main/java/org/openremote/agent/protocol/http/HTTPAgentLink.java
index ece9b6182..d728fad9d 100644
--- a/agent/src/main/java/org/openremote/agent/protocol/http/HTTPAgentLink.java
+++ b/agent/src/main/java/org/openremote/agent/protocol/http/HTTPAgentLink.java
@@ -51,7 +51,7 @@ public class HTTPAgentLink extends AgentLink<HTTPAgentLink> {
protected String pollingAttribute;
@JsonPropertyDescription("Indicates that the HTTP response is binary and should be converted to binary string representation")
protected boolean messageConvertBinary;
- @JsonPropertyDescription("Indicates that the HTTP response is binary and should be converted to hexidecimal string representation")
+ @JsonPropertyDescription("Indicates that the HTTP response is binary and should be converted to hexadecimal string representation")
protected boolean messageConvertHex;
// For Hydrators
diff --git a/agent/src/main/java/org/openremote/agent/protocol/io/AbstractNettyIOClient.java b/agent/src/main/java/org/openremote/agent/protocol/io/AbstractNettyIOClient.java
index c6543680e..695ee71ef 100644
--- a/agent/src/main/java/org/openremote/agent/protocol/io/AbstractNettyIOClient.java
+++ b/agent/src/main/java/org/openremote/agent/protocol/io/AbstractNettyIOClient.java
@@ -403,7 +403,7 @@ public abstract class AbstractNettyIOClient<T, U extends SocketAddress> implemen
} else if (cause instanceof EncoderException encoderException) {
onEncodeException(ctx, encoderException);
} else {
- // Agressively force close the channel on other exceptions which will cause a reconnect
+ // Aggressively force close the channel on other exceptions which will cause a reconnect
ctx.close();
}
}
diff --git a/agent/src/main/java/org/openremote/agent/protocol/io/AbstractNettyIOServer.java b/agent/src/main/java/org/openremote/agent/protocol/io/AbstractNettyIOServer.java
index a6b1e687d..8839648fd 100644
--- a/agent/src/main/java/org/openremote/agent/protocol/io/AbstractNettyIOServer.java
+++ b/agent/src/main/java/org/openremote/agent/protocol/io/AbstractNettyIOServer.java
@@ -455,7 +455,7 @@ public abstract class AbstractNettyIOServer<T, U extends Channel, V extends Abst
protected abstract V createAndConfigureBootstrap();
/**
- * Should return a descriptor to identify the speficied client for use in log files etc.
+ * Should return a descriptor to identify the specified client for use in log files etc.
*/
protected abstract String getClientDescriptor(U client);
diff --git a/container/src/main/java/org/openremote/container/web/file/HttpFilter.java b/container/src/main/java/org/openremote/container/web/file/HttpFilter.java
index 596cc87cf..c316cd335 100644
--- a/container/src/main/java/org/openremote/container/web/file/HttpFilter.java
+++ b/container/src/main/java/org/openremote/container/web/file/HttpFilter.java
@@ -69,7 +69,7 @@ public abstract class HttpFilter implements Filter {
// Constants ------------------------------------------------------------------------------------------------------
private static final String ERROR_NO_FILTERCONFIG = "FilterConfig is not available."
- + " It seems that you've overriden HttpFilter#init(FilterConfig)."
+ + " It seems that you've overridden HttpFilter#init(FilterConfig)."
+ " You should be overriding HttpFilter#init() instead, otherwise you have to call super.init(config).";
// Properties -----------------------------------------------------------------------------------------------------
diff --git a/manager/src/main/java/org/openremote/manager/notification/NotificationHandler.java b/manager/src/main/java/org/openremote/manager/notification/NotificationHandler.java
index 1a479c521..537ede0f7 100644
--- a/manager/src/main/java/org/openremote/manager/notification/NotificationHandler.java
+++ b/manager/src/main/java/org/openremote/manager/notification/NotificationHandler.java
@@ -24,7 +24,6 @@ import org.openremote.model.asset.Asset;
import org.openremote.model.asset.impl.ConsoleAsset;
import org.openremote.model.notification.AbstractNotificationMessage;
import org.openremote.model.notification.Notification;
-import org.openremote.model.notification.NotificationSendResult;
import java.util.List;
@@ -74,7 +73,7 @@ public interface NotificationHandler extends ContainerService {
* making excessive DB calls if possible).
* <p>
* The ID can be used by the {@link NotificationHandler} to update the delivered and/or acknowledged status of the notification
- * by calling {@link NotificationService#setNotificationDelivered} or {@link NotificationService#setNotificationAcknowleged}
+ * by calling {@link NotificationService#setNotificationDelivered} or {@link NotificationService#setNotificationAcknowledged}
*/
void sendMessage(long id, Notification.Source source, String sourceId, Notification.Target target, AbstractNotificationMessage message) throws Exception;
}
diff --git a/manager/src/main/java/org/openremote/manager/notification/NotificationResourceImpl.java b/manager/src/main/java/org/openremote/manager/notification/NotificationResourceImpl.java
index 0cef95ca6..7678a3a7f 100644
--- a/manager/src/main/java/org/openremote/manager/notification/NotificationResourceImpl.java
+++ b/manager/src/main/java/org/openremote/manager/notification/NotificationResourceImpl.java
@@ -143,7 +143,7 @@ public class NotificationResourceImpl extends WebResource implements Notificatio
SentNotification sentNotification = notificationService.getSentNotification(notificationId);
verifyAccess(sentNotification, targetId);
- notificationService.setNotificationAcknowleged(notificationId, acknowledgement == null ? null : ValueUtil.asJSON(acknowledgement).orElse(null));
+ notificationService.setNotificationAcknowledged(notificationId, acknowledgement == null ? null : ValueUtil.asJSON(acknowledgement).orElse(null));
}
protected void verifyAccess(SentNotification sentNotification, String targetId) {
diff --git a/manager/src/main/java/org/openremote/manager/notification/NotificationService.java b/manager/src/main/java/org/openremote/manager/notification/NotificationService.java
index 86dea7df1..2c6727709 100644
--- a/manager/src/main/java/org/openremote/manager/notification/NotificationService.java
+++ b/manager/src/main/java/org/openremote/manager/notification/NotificationService.java
@@ -46,7 +46,6 @@ import org.openremote.model.util.TimeUtil;
import java.time.Instant;
import java.time.temporal.ChronoUnit;
import java.util.*;
-import java.util.concurrent.atomic.AtomicBoolean;
import java.util.concurrent.atomic.AtomicReference;
import java.util.logging.Level;
import java.util.logging.Logger;
@@ -300,11 +299,11 @@ public class NotificationService extends RouteBuilder implements ContainerServic
});
}
- public void setNotificationAcknowleged(long id, String acknowledgement) {
- setNotificationAcknowleged(id, acknowledgement, timerService.getCurrentTimeMillis());
+ public void setNotificationAcknowledged(long id, String acknowledgement) {
+ setNotificationAcknowledged(id, acknowledgement, timerService.getCurrentTimeMillis());
}
- public void setNotificationAcknowleged(long id, String acknowledgement, long timestamp) {
+ public void setNotificationAcknowledged(long id, String acknowledgement, long timestamp) {
persistenceService.doTransaction(entityManager -> {
Query query = entityManager.createQuery("UPDATE SentNotification SET acknowledgedOn=:timestamp, acknowledgement=:acknowledgement WHERE id =:id");
query.setParameter("id", id);
diff --git a/manager/src/main/java/org/openremote/manager/rules/RulesService.java b/manager/src/main/java/org/openremote/manager/rules/RulesService.java
index 7916f7368..dab20c965 100644
--- a/manager/src/main/java/org/openremote/manager/rules/RulesService.java
+++ b/manager/src/main/java/org/openremote/manager/rules/RulesService.java
@@ -282,7 +282,7 @@ public class RulesService extends RouteBuilder implements ContainerService {
public void start(Container container) throws Exception {
if (!geofenceAssetAdapters.isEmpty()) {
- LOG.fine("GeoefenceAssetAdapters found: " + geofenceAssetAdapters.size());
+ LOG.fine("GeofenceAssetAdapters found: " + geofenceAssetAdapters.size());
locationPredicateRulesConsumer = this::onEngineLocationRulesChanged;
for (GeofenceAssetAdapter geofenceAssetAdapter : geofenceAssetAdapters) {
diff --git a/manager/src/main/java/org/openremote/manager/rules/geofence/GeofenceAssetAdapter.java b/manager/src/main/java/org/openremote/manager/rules/geofence/GeofenceAssetAdapter.java
index 02dc9088e..1d4aa220c 100644
--- a/manager/src/main/java/org/openremote/manager/rules/geofence/GeofenceAssetAdapter.java
+++ b/manager/src/main/java/org/openremote/manager/rules/geofence/GeofenceAssetAdapter.java
@@ -38,7 +38,7 @@ import java.util.List;
* {@link Asset}, it is the adapters job to maintain state if required (see initialising flag on {@link
* #processLocationPredicates}).
* <p>
- * How the gefences are implemented and 'pushed' to the {@link Asset}s is up to the adapter but when a geofence is
+ * How the geofences are implemented and 'pushed' to the {@link Asset}s is up to the adapter but when a geofence is
* triggered on an asset then the asset should update its own location by posting to the asset/location endpoint, the
* location value sent should be as follows:
* <ul>
diff --git a/model/src/main/java/org/openremote/model/asset/Asset.java b/model/src/main/java/org/openremote/model/asset/Asset.java
index 2ba22ff6e..dd497aa7e 100644
--- a/model/src/main/java/org/openremote/model/asset/Asset.java
+++ b/model/src/main/java/org/openremote/model/asset/Asset.java
@@ -544,7 +544,7 @@ public abstract class Asset<T extends Asset<?>> implements IdentifiableEntity<T>
"]";
}
- /* WELL KNNOWN ATTRIBUTE GETTER / SETTERS */
+ /* WELL KNOWN ATTRIBUTE GETTER / SETTERS */
public Optional<GeoJSONPoint> getLocation() {
diff --git a/model/src/main/java/org/openremote/model/protocol/ProtocolUtil.java b/model/src/main/java/org/openremote/model/protocol/ProtocolUtil.java
index 567e7b586..9b0959452 100644
--- a/model/src/main/java/org/openremote/model/protocol/ProtocolUtil.java
+++ b/model/src/main/java/org/openremote/model/protocol/ProtocolUtil.java
@@ -206,7 +206,7 @@ public final class ProtocolUtil {
Object messageFiltered = applyValueFilters(message, matchFilters);
if (messageFiltered != null) {
if (matchPredicate.asPredicate(currentMillisSupplier).test(messageFiltered)) {
- LOG.finest("Inbound message meets attribute matching meta so writing state to state consumer for attribute: asssetId=" + assetId + ", attribute=" + attribute.getName());
+ LOG.finest("Inbound message meets attribute matching meta so writing state to state consumer for attribute: assetId=" + assetId + ", attribute=" + attribute.getName());
stateConsumer.accept(new AttributeRef(assetId, attribute.getName()), message);
}
}
diff --git a/model/src/main/java/org/openremote/model/value/ValueFormat.java b/model/src/main/java/org/openremote/model/value/ValueFormat.java
index c9520c0b9..006ed70e3 100644
--- a/model/src/main/java/org/openremote/model/value/ValueFormat.java
+++ b/model/src/main/java/org/openremote/model/value/ValueFormat.java
@@ -406,7 +406,7 @@ public class ValueFormat implements Serializable {
return this;
}
- public Boolean getMultiine() {
+ public Boolean getMultiline() {
return multiline;
}
diff --git a/ui/component/or-app/README.md b/ui/component/or-app/README.md
index 829e7aab8..fdc11326e 100644
--- a/ui/component/or-app/README.md
+++ b/ui/component/or-app/README.md
@@ -41,7 +41,7 @@ const viewerConfig = {
};
```
-gridColumn can also be used to change the position horizontaly.
+gridColumn can also be used to change the position horizontally.
```javascript
const viewerConfig = {
panels: {
diff --git a/ui/component/or-asset-viewer/README.md b/ui/component/or-asset-viewer/README.md
index 2472fe7cb..bffc15df5 100644
--- a/ui/component/or-asset-viewer/README.md
+++ b/ui/component/or-asset-viewer/README.md
@@ -41,7 +41,7 @@ const viewerConfig = {
};
```
-gridColumn can also be used to change the position horizontaly.
+gridColumn can also be used to change the position horizontally.
```javascript
const viewerConfig = {
panels: {
diff --git a/ui/component/or-dashboard-builder/README.md b/ui/component/or-dashboard-builder/README.md
index fdf257aa3..422714688 100644
--- a/ui/component/or-dashboard-builder/README.md
+++ b/ui/component/or-dashboard-builder/README.md
@@ -74,7 +74,7 @@ and your custom config should extend on `WidgetConfig`<br />
### Example of a custom Widget
Here is a code example of how to create custom widgets.<br />
-Feel free to copy, put it in seperate files, and adjust it to your needs.<br />
+Feel free to copy, put it in separate files, and adjust it to your needs.<br />
Looking into our existing widgets also helps understanding the codebase.
```typescript
diff --git a/ui/component/or-data-viewer/README.md b/ui/component/or-data-viewer/README.md
index a152dcfda..8d9e8cf9f 100644
--- a/ui/component/or-data-viewer/README.md
+++ b/ui/component/or-data-viewer/README.md
@@ -41,7 +41,7 @@ const viewerConfig = {
};
```
-gridColumn can also be used to change the position horizontaly.
+gridColumn can also be used to change the position horizontally.
```javascript
const viewerConfig = {
panels: {
diff --git a/ui/component/or-rules/src/flow-viewer/components/workspace-contextmenu-options.ts b/ui/component/or-rules/src/flow-viewer/components/workspace-contextmenu-options.ts
index 612e61876..ce2101780 100644
--- a/ui/component/or-rules/src/flow-viewer/components/workspace-contextmenu-options.ts
+++ b/ui/component/or-rules/src/flow-viewer/components/workspace-contextmenu-options.ts
@@ -53,7 +53,7 @@ export const createContextMenuButtons = (workspace: EditorWorkspace, e: MouseEve
},
{
type: "button",
- label: i18next.t("output", "Ouput"),
+ label: i18next.t("output", "Output"),
icon: "arrow-expand-right",
action: () => { ContextMenu.open(e.pageX, e.pageY, workspace, createNodeButtons(NodeType.OUTPUT)); }
},
diff --git a/ui/component/or-survey/src/index.ts b/ui/component/or-survey/src/index.ts
index 2ca954bde..23f795218 100644
--- a/ui/component/or-survey/src/index.ts
+++ b/ui/component/or-survey/src/index.ts
@@ -146,7 +146,7 @@ class OrSurvey extends LitElement {
` : html`
${question.attributes && question.attributes.answerOptions.value.map((answer:AnswerOption, index:number) => {
return html`
- <div class="anwser-card ${this.getType(question.type)}">
+ <div class="answer-card ${this.getType(question.type)}">
${!currentAnswer ? html`
<input type="${this.getInputType(question.type)}" id="${question.id}_${index}"
diff --git a/ui/component/or-survey/src/style.ts b/ui/component/or-survey/src/style.ts
index 59b4f932e..155bc137d 100644
--- a/ui/component/or-survey/src/style.ts
+++ b/ui/component/or-survey/src/style.ts
@@ -250,13 +250,13 @@ export const surveyLayoutStyle =html`
display: block;
}
- .anwser-card {
+ .answer-card {
flex: 1;
flex-grow: 1;
flex-basis: 0;
}
- .anwser-card {
+ .answer-card {
background-color: var(--internal-or-survey-color1, #F3C11F);
margin-left: 5px;
border: 3px solid white;
@@ -266,41 +266,41 @@ export const surveyLayoutStyle =html`
-webkit-box-sizing: border-box;
}
- .anwser-card:first-child {
+ .answer-card:first-child {
margin-left: 0;
}
- .anwser-card:nth-of-type(1),
- .anwser-card:nth-of-type(5),
- .anwser-card:nth-of-type(9){
+ .answer-card:nth-of-type(1),
+ .answer-card:nth-of-type(5),
+ .answer-card:nth-of-type(9){
background-color: var(--internal-or-survey-color1, #F3C11F);
}
- .anwser-card:nth-of-type(2),
- .anwser-card:nth-of-type(6),
- .anwser-card:nth-of-type(10){
+ .answer-card:nth-of-type(2),
+ .answer-card:nth-of-type(6),
+ .answer-card:nth-of-type(10){
background-color: var(--internal-or-survey-color2, #4A99BA);
}
- .anwser-card:nth-of-type(3),
- .anwser-card:nth-of-type(7),
- .anwser-card:nth-of-type(11){
+ .answer-card:nth-of-type(3),
+ .answer-card:nth-of-type(7),
+ .answer-card:nth-of-type(11){
background-color: var(--internal-or-survey-color3, #23B099);
}
- .anwser-card:nth-of-type(4),
- .anwser-card:nth-of-type(8),
- .anwser-card:nth-of-type(12){
+ .answer-card:nth-of-type(4),
+ .answer-card:nth-of-type(8),
+ .answer-card:nth-of-type(12){
background-color: var(--internal-or-survey-color4, #EA8D31);
}
- .anwser-card.rating {
+ .answer-card.rating {
border: none;
background-color: transparent;
}
- .anwser-card.rating label {
+ .answer-card.rating label {
border-radius: 50%;
background-color: var(--or-survey-color-button, #e32527);
@@ -442,7 +442,7 @@ export const surveyLayoutStyle =html`
-webkit-justify-content: center;
justify-content: center;
}
- .anwser-card {
+ .answer-card {
width: 25%;
min-width: 25%;
max-width: 25%;
@@ -451,7 +451,7 @@ export const surveyLayoutStyle =html`
margin-left: 0px;
}
@media (max-width: 1480px) {
- .anwser-card {
+ .answer-card {
width: 50%;
min-width: 50%;
max-width: 50%;
@@ -464,7 +464,7 @@ export const surveyLayoutStyle =html`
padding: 20px;
}
- .anwser-card.rating {
+ .answer-card.rating {
width: 20%;
min-width: 20%;
max-width: 20%;
@@ -570,4 +570,4 @@ export const surveyLayoutStyle =html`
}
}
</style>
-`;
\ No newline at end of file
+`;