Skip to content

Commit

Permalink
Spelling fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
edwardch committed Jan 18, 2024
1 parent a6d614f commit 1de6cba
Show file tree
Hide file tree
Showing 32 changed files with 53 additions and 53 deletions.
2 changes: 1 addition & 1 deletion build/assets/package-readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,4 +44,4 @@ Attribute-based navigation menu

- Serene Application Template:
[Download from VS Marketplace](https://marketplace.visualstudio.com/items?itemName=VolkanCeylan.SereneSerenityApplicationTemplate)
- Serene Github Repo: https://github.com/serenity-is/Serene
- Serene GitHub Repo: https://github.com/serenity-is/Serene
4 changes: 2 additions & 2 deletions packages/corelib/src/q/system-compat.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Type, getBaseType, getTypeFullName, getTypeNameProp, getTypeRegistry, isInstanceOfType, setTypeNameProp } from "@serenity-is/base";
import { Type, getBaseType, getTypeFullName, getTypeNameProp, getTypeRegistry, isInstanceOfType, setTypeNameProp } from "@serenity-is/base";

export type Dictionary<TItem> = { [key: string]: TItem };

Expand Down Expand Up @@ -221,7 +221,7 @@ export function initializeTypes(root: any, pre: string, limit: number) {
(typeof obj != "function" && typeof obj != "object"))
continue;

// no explict typeName, e.g. not registered with a name,
// no explicit typeName, e.g. not registered with a name,
// a function but not an html element, or registered without name
if (!getTypeNameProp(obj) &&
(obj as any)[isInterfaceTypeSymbol] !== void 0 &&
Expand Down
6 changes: 3 additions & 3 deletions packages/corelib/src/ui/datagrid/datagrid.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Criteria, Fluent, ListResponse, debounce, getInstanceType, getTypeFullName, htmlEncode, isInstanceOfType, tryGetText, type PropertyItem, type PropertyItemsData, getjQuery } from "@serenity-is/base";
import { Criteria, Fluent, ListResponse, debounce, getInstanceType, getTypeFullName, htmlEncode, isInstanceOfType, tryGetText, type PropertyItem, type PropertyItemsData, getjQuery } from "@serenity-is/base";
import { ArgsCell, AutoTooltips, Column, ColumnSort, FormatterContext, Grid, GridOptions } from "@serenity-is/sleekgrid";
import { ColumnsKeyAttribute, FilterableAttribute, IdPropertyAttribute, IsActivePropertyAttribute, LocalTextPrefixAttribute } from "../../types/attributes";
import { Decorators } from "../../types/decorators";
Expand Down Expand Up @@ -1271,8 +1271,8 @@ export class DataGrid<TItem, P = {}> extends Widget<P> implements IDataGrid, IRe

sortColumns.sort(function (a, b) {
// sort holds two informations:
// absoulte value: order of sorting
// sign: positive = ascending, negativ = descending
// absolute value: order of sorting
// sign: positive = ascending, negative = descending
// so we have to compare absolute values here
return Math.abs(a.sort) - Math.abs(b.sort);
});
Expand Down
2 changes: 1 addition & 1 deletion packages/corelib/src/ui/editors/lookupeditor.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ describe("LookupEditor", () => {
expect(editor.domNode.getAttribute("placeholder")).toBe("Controls.SelectEditor.EmptyItemText");
});

test('doesnt set placeholder if its not null', () => {
test('doesn\'t set placeholder if its not null', () => {
ScriptData.set("Lookup.Test", {
items: []
});
Expand Down
2 changes: 1 addition & 1 deletion packages/corelib/src/ui/formatters/formatters.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ describe("FileDownloadFormatter", () => {
});


it("replaces all backward slashes to foward", () => {
it("replaces all backward slashes to forward", () => {
var formatter = new FileDownloadFormatter();
expect(formatter.format({ value: "file\\with\\backward\\slashes", escape: (s) => s })).toContain("file/with/backward/slashes");
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -400,7 +400,7 @@ protected override void GenerateAll()
TypingsUtils.GetAttr(fromType, "Serenity.Extensibility", "NestedPermissionKeysAttribute", emptyTypes) != null ||
TypingsUtils.GetAttr(fromType, "Serenity.ComponentModel", "NestedPermissionKeysAttribute", emptyTypes) != null ||
((TypingsUtils.Contains(baseClasses, "Microsoft.AspNetCore.Mvc", "ControllerBase") ||
TypingsUtils.Contains(baseClasses, "System.Web.Mvc", "Controller")) && // backwards compability
TypingsUtils.Contains(baseClasses, "System.Web.Mvc", "Controller")) && // backwards compatibility
fromType.NamespaceOf()?.EndsWith(".Endpoints", StringComparison.Ordinal) == true))
{
EnqueueType(fromType);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public class GeneratorConfig
/// When true, enables RowTemplate class generation. This should
/// only be used when Serenity.Pro.Coder is enabled in the project.
/// Has no effect when EnableGenerateFields is true.
/// EnableGenerateFields should be preffered over this as
/// EnableGenerateFields should be preferred over this as
/// RowTemplate might cause some issues.
/// </summary>
public bool? EnableRowTemplates { get; set; }
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace Serenity.ComponentModel;
namespace Serenity.ComponentModel;

/// <summary>
/// Determines label with of target property, and optionally
Expand Down Expand Up @@ -36,7 +36,7 @@ public LabelWidthAttribute(string? value)

/// <summary>
/// Gets or sets a value indicating whether this attribute should apply
/// to following properties until next occurence of this attribute
/// to following properties until next occurrence of this attribute
/// without JustThis flag.
/// </summary>
/// <value>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
namespace Serenity.ComponentModel;
namespace Serenity.ComponentModel;

/// <summary>
/// Contstraints for the uploaded image.
/// Constraints for the uploaded image.
/// </summary>
public interface IUploadImageContrains : IUploadOptions
{
Expand Down
4 changes: 2 additions & 2 deletions src/Serenity.Net.Core/Helpers/Base32.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace Serenity.Data;
namespace Serenity.Data;

/// <summary>
/// This class is based on the Base32 class from DC# 0.31
Expand Down Expand Up @@ -290,7 +290,7 @@ public static byte[] Decode(string base32)
bytes[offset++] = (byte)(nextByte | digit);
//// possible end of string here with no trailing bits
}
// On loop exit, discard trialing n bits.
// On loop exit, discard trailing n bits.
return bytes;
}
}
4 changes: 2 additions & 2 deletions src/Serenity.Net.Core/IO/FileSystemExtensions.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace Serenity;
namespace Serenity;

/// <summary>
/// IFileSystem extensions to reduce dependency on System.IO, in case these methods are also added to IFileSystem in the future
Expand Down Expand Up @@ -54,7 +54,7 @@ public static string Combine(this IFileSystem _, params string[] paths)
/// </summary>
/// <param name="fileSystem">File system</param>
/// <param name="sourceFileName">Source file name</param>
/// <param name="destFileName">Destion</param>
/// <param name="destFileName">Destination</param>
/// <param name="overwrite"></param>
public static void Copy(this IFileSystem fileSystem, string sourceFileName, string destFileName, bool overwrite)
{
Expand Down
4 changes: 2 additions & 2 deletions src/Serenity.Net.Core/Interface/ISiteAbsoluteUrl.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@


namespace Serenity.Abstractions;

/// <summary>
Expand All @@ -10,7 +10,7 @@ public interface ISiteAbsoluteUrl
{
/// <summary>
/// Returns the absolute internal/local url of the current site,
/// used to generate URLs for report tools like WKHTML, Puppeeteer etc.
/// used to generate URLs for report tools like WKHTML, Puppeteer etc.
/// The default implementation builds it from one of these in this order:
/// 1) EnvironmentSettings:SiteInternalUrl setting,
/// 2) The current http request base url if available,
Expand Down
4 changes: 2 additions & 2 deletions src/Serenity.Net.Data/Connections/WrappedTransaction.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace Serenity.Data;
namespace Serenity.Data;

/// <summary>
/// Wraps a transaction instance to add current transaction support for the wrapped connection.
Expand Down Expand Up @@ -48,7 +48,7 @@ public void Rollback()
}

/// <summary>
/// Rolbacks actual transaction and sets wrapped transaction for related connection to null.</summary>
/// Rollbacks actual transaction and sets wrapped transaction for related connection to null.</summary>
public void Dispose()
{
actualTransaction.Dispose();
Expand Down
4 changes: 2 additions & 2 deletions src/Serenity.Net.Services/Models/ServiceError.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@


namespace Serenity.Services;

/// <summary>
Expand All @@ -19,7 +19,7 @@ public class ServiceError

/// <summary>
/// The error message. In non-development mode the message
/// might be something generic like "some error occured" if the
/// might be something generic like "some error occurred" if the
/// error itself is not a <see cref="ValidationError"/>.
/// The detailed error can be seen in exception log.
/// </summary>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
namespace Serenity.Reporting;
namespace Serenity.Reporting;

/// <summary>
/// Marks a report to determine if it should use WKHTML instead
/// of another converter, e.g. Puppeeteer etc. (only if configured
/// of another converter, e.g. Puppeteer etc. (only if configured
/// in service provider).
/// </summary>
/// <remarks>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using System.Collections;
using System.Collections;

namespace Serenity.Services;

Expand All @@ -8,7 +8,7 @@ namespace Serenity.Services;
/// <remarks>
/// Creates an instance of the class.
/// </remarks>
/// <param name="implicitBehaviors">Registry for implict behaviors.</param>
/// <param name="implicitBehaviors">Registry for implicit behaviors.</param>
/// <param name="behaviorFactory">Behavior factory</param>
/// <exception cref="ArgumentNullException"></exception>
public class DefaultBehaviorProvider(IImplicitBehaviorRegistry implicitBehaviors,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace Serenity.Services;
namespace Serenity.Services;

/// <summary>
/// An interface to query list of implicit behaviors registered through the dependency resolver.
Expand All @@ -8,7 +8,7 @@
public interface IImplicitBehaviorRegistry
{
/// <summary>
/// Gets type list of implict behavior (<see cref="IImplicitBehavior"/>) types
/// Gets type list of implicit behavior (<see cref="IImplicitBehavior"/>) types
/// </summary>
IEnumerable<Type> GetTypes();
}
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
namespace Serenity.Services;
namespace Serenity.Services;

/// <summary>
/// Abstaction for the registry that cobtains default
/// Abstraction for the registry that contains default
/// handler types.
/// </summary>
public interface IDefaultHandlerRegistry
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using System.Collections;
using System.Collections;

namespace Serenity.Data;

Expand Down Expand Up @@ -144,7 +144,7 @@ protected override BaseCriteria VisitBinary(BinaryCriteria criteria)
}
catch
{
// swallow exceptions for backward compability
// swallow exceptions for backward compatibility
}

return base.VisitBinary(criteria);
Expand Down
2 changes: 1 addition & 1 deletion src/Serenity.Net.Services/Upload/DefaultUploadProcessor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ public ProcessedUploadInfo Process(Stream stream, string filename, IUploadOption
{
result.ErrorMessage = ex.Message;
result.Success = false;
logger?.LogError(ex, "Error occured while processing upload!");
logger?.LogError(ex, "Error occurred while processing upload!");
}
}
finally
Expand Down
4 changes: 2 additions & 2 deletions src/Serenity.Net.Services/Upload/IDiskUploadFileSystem.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace Serenity.Web;
namespace Serenity.Web;

/// <summary>
/// Extension for <see cref="IFileSystem"/> with disk upload storage specific methods.
Expand All @@ -18,7 +18,7 @@ public interface IDiskUploadFileSystem : IFileSystem
/// <param name="directoryToClean">Directory to clean</param>
/// <param name="autoExpireTime">Auto expire old files timespan</param>
/// <param name="maxFilesInDirectory">Max files to keep in directory</param>
/// <param name="checkFileName">A filename to check existance to confirm the target is a temporary directory.
/// <param name="checkFileName">A filename to check existence to confirm the target is a temporary directory.
/// By default it is ".temporary"</param>
void PurgeDirectory(string directoryToClean, TimeSpan? autoExpireTime = null, int? maxFilesInDirectory = null, string checkFileName = null);

Expand Down
2 changes: 1 addition & 1 deletion src/Serenity.Net.Services/Upload/IUploadAVScanner.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ public interface IUploadAVScanner
{
/// <summary>
/// Processes a temporary upload stream, usually from the HTTP request files and
/// raises an exception if any issues found or an error occured during scan
/// raises an exception if any issues found or an error occurred during scan
/// </summary>
/// <param name="stream">File content stream (usually from HTTP request files)</param>
/// <param name="filename">The filename of the uploaded file (original name)</param>
Expand Down
4 changes: 2 additions & 2 deletions src/Serenity.Net.Services/Upload/ImageFormatInfo.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace Serenity.Web;
namespace Serenity.Web;

/// <summary>
/// Information about an image format
Expand All @@ -11,7 +11,7 @@ public class ImageFormatInfo
public string MimeType { get; set; }

/// <summary>
/// List of expecteed file extensions
/// List of expected file extensions
/// </summary>
public IEnumerable<string> FileExtensions { get; set; }
}
4 changes: 2 additions & 2 deletions src/Serenity.Net.Services/Upload/ProcessedUploadInfo.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@


namespace Serenity.Web;

/// <summary>
Expand Down Expand Up @@ -32,7 +32,7 @@ public class ProcessedUploadInfo
public long FileSize { get; set; }

/// <summary>
/// True if upload and all validations were successfull
/// True if upload and all validations were successful
/// </summary>
public bool Success { get; set; }

Expand Down
4 changes: 2 additions & 2 deletions src/Serenity.Net.Services/Upload/UploadTexts.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ public static partial class Controls
public static class ImageUpload
{
public static readonly LocalText InfectedFile = "Uploaded file may contain a virus!";
public static readonly LocalText InfectedFileOrError = "Uploaded file may contain a virus or an error occured during the AV scan!";
public static readonly LocalText FailedScan = "An error occured while scanning the uploaded file for viruses!";
public static readonly LocalText InfectedFileOrError = "Uploaded file may contain a virus or an error occurred during the AV scan!";
public static readonly LocalText FailedScan = "An error occurred while scanning the uploaded file for viruses!";
public static readonly LocalText NotAnImageFile = "Uploaded file is not an image!";
public static readonly LocalText NotAnImageWithExtensions = "Uploaded file extension is not in the list of allowed image extensions: '{1}'!";
public static readonly LocalText ImageExtensionMismatch = "Uploaded image extension ({0}) does not match its format ({1})!";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
namespace Serenity.Web;

/// <summary>
/// A dynamic script that is formed from concentanation of other scripts
/// A dynamic script that is formed from concatenation of other scripts
/// </summary>
/// <remarks>
/// Creates a new instance of the class
Expand Down
2 changes: 1 addition & 1 deletion src/Serenity.Net.Web/Mvc/EndpointExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public static TResponse ConvertToResponse<TResponse>(this Exception exception, I
ITextLocalizer localizer, bool showDetails)
where TResponse: ServiceResponse, new()
{
logger?.LogError(exception, "Error occured during service request!");
logger?.LogError(exception, "Error occurred during service request!");

var response = new TResponse();

Expand Down
2 changes: 1 addition & 1 deletion src/Serenity.Net.Web/Navigation/NavigationLinkAttribute.cs
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ public NavigationLinkAttribute(string path, Type controller, string icon = null,
/// <param name="controller">Controller</param>
/// <param name="action">Action name</param>
/// <returns></returns>
/// <exception cref="ArgumentNullException">Controll or action is null</exception>
/// <exception cref="ArgumentNullException">Controller or action is null</exception>
/// <exception cref="ArgumentOutOfRangeException">Action name is invalid</exception>
/// <exception cref="InvalidOperationException">Route attribute is not found</exception>
public static string GetUrlFromController(Type controller, string action)
Expand Down
2 changes: 1 addition & 1 deletion src/Serenity.Net.Web/Reporting/DefaultReportFactory.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ namespace Serenity.Reporting;
/// <remarks>
/// Creates an instance of the class
/// </remarks>
/// <param name="reportRegistry">Report regitry</param>
/// <param name="reportRegistry">Report registry</param>
/// <param name="serviceProvider">Service provider</param>
/// <param name="httpContextAccessor">Http context accessor</param>
/// <exception cref="ArgumentNullException"></exception>
Expand Down
6 changes: 3 additions & 3 deletions src/Serenity.Net.Web/Reporting/WKHtmlToPdf.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using Serenity.IO;
using Serenity.IO;
using System.Diagnostics;
using System.IO;

Expand All @@ -19,7 +19,7 @@ public class WKHtmlToPdf(IHtmlToPdfOptions options = null) : IHtmlToPdfOptions
/// Executes the converter process and returns the PDF bytes
/// </summary>
/// <exception cref="ArgumentNullException">UtilityExePath or URL is null</exception>
/// <exception cref="InvalidOperationException">An error occureed during process execution</exception>
/// <exception cref="InvalidOperationException">An error occurred during process execution</exception>
public byte[] Execute()
{
var exePath = ExecutablePath ?? throw new ArgumentNullException(nameof(ExecutablePath));
Expand Down Expand Up @@ -187,7 +187,7 @@ Exception invalidOperation(string message)
"PDF generator returned error code {0}!", process.ExitCode));

if (!File.Exists(tempFile))
throw invalidOperation("Can't find generatored PDF file!");
throw invalidOperation("Can't find generated PDF file!");

var bytes = File.ReadAllBytes(tempFile);
if (bytes.Length == 0)
Expand Down
2 changes: 1 addition & 1 deletion src/Serenity.Net.Web/texts/WebTexts.Validation.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ public static class Validation
public static readonly LocalText Integer = "Please enter a valid integer value.";
public static readonly LocalText MaxLength = "Please enter no more than {0} characters.";
public static readonly LocalText MinLength = "Please enter no less than {0} characters.";
public static readonly LocalText PasswordConfirm = "Password entered don't match.";
public static readonly LocalText PasswordConfirm = "Passwords entered don't match.";
public static readonly LocalText Required = "This field is required.";
public static readonly LocalText Range = "Please enter a value between {0} and {1}.";
public static readonly LocalText Url = "Please enter a valid URL (e.g. http://www.site.com).";
Expand Down
2 changes: 1 addition & 1 deletion src/Serenity.TypeScript/Parser/Parser.cs
Original file line number Diff line number Diff line change
Expand Up @@ -690,7 +690,7 @@ bool ParseExpected(SyntaxKind kind, DiagnosticMessage diagnosticMessage = null,


// Provides a better error message than the generic "';' expected" if possible for
// known common variants of a missing semicolon, such as from a mispelled names.
// known common variants of a missing semicolon, such as from a misspelled names.
//
// @param node Node preceding the expected semicolon location.
void ParseErrorForMissingSemicolonAfter(INode node)
Expand Down

0 comments on commit 1de6cba

Please sign in to comment.