Fix spelling (#3181)

Co-authored-by: Josh Soref <jsoref@users.noreply.github.com>
This commit is contained in:
Josh SorefandJosh Soref authored and GitHub committed 2021-07-16 08:53:01 -04:00
1 parent 9903417fed
commit e87b4836be
39 files changed
+54 -54

No files matched your search

@@ -58,7 +58,7 @@ export class ReleaseStore extends ItemStore<HelmRelease> {
});
}
watchSelecteNamespaces(): (() => void) {
watchSelectedNamespaces(): (() => void) {
return reaction(() => namespaceStore.context.contextNamespaces, namespaces => {
this.loadAll(namespaces);
});
@@ -56,7 +56,7 @@ export class HelmReleases extends Component<Props> {
componentDidMount() {
disposeOnUnmount(this, [
releaseStore.watchAssociatedSecrets(),
releaseStore.watchSelecteNamespaces(),
releaseStore.watchSelectedNamespaces(),
]);
}
@@ -225,7 +225,7 @@ export class ExtensionInstallationStateStore {
}
/**
* If there is at least one extension currently ininstalling
* If there is at least one extension currently uninstalling
*/
static get anyUninstalling(): boolean {
return ExtensionInstallationStateStore.uninstalling > 0;
@@ -49,7 +49,7 @@ import { docsUrl } from "../../../common/vars";
function getMessageFromError(error: any): string {
if (!error || typeof error !== "object") {
return "an error has occured";
return "an error has occurred";
}
if (error.message) {
@@ -63,7 +63,7 @@ function getMessageFromError(error: any): string {
const rawMessage = String(error);
if (rawMessage === String({})) {
return "an error has occured";
return "an error has occurred";
}
return rawMessage;
@@ -107,7 +107,7 @@ export class AddHelmRepoDialog extends React.Component<Props> {
async addCustomRepo() {
try {
await HelmRepoManager.addСustomRepo(this.helmRepo);
await HelmRepoManager.addCustomRepo(this.helmRepo);
Notifications.ok(<>Helm repository <b>{this.helmRepo.name}</b> has added</>);
this.props.onAddRepo();
this.close();
@@ -145,7 +145,7 @@ export class AddHelmRepoDialog extends React.Component<Props> {
/>
{this.renderFileInput(`Key file`, FileType.KeyFile, AddHelmRepoDialog.keyExtensions)}
{this.renderFileInput(`Ca file`, FileType.CaFile, AddHelmRepoDialog.certExtensions)}
{this.renderFileInput(`Cerificate file`, FileType.CertFile, AddHelmRepoDialog.certExtensions)}
{this.renderFileInput(`Certificate file`, FileType.CertFile, AddHelmRepoDialog.certExtensions)}
<SubTitle title="Chart Repository Credentials" />
<Input
placeholder="Username"
@@ -81,7 +81,7 @@ export class Preferences extends React.Component {
const fragment = hash.slice(1); // hash is /^(#\w.)?$/
if (fragment) {
// ignore empty framents
// ignore empty fragments
document.getElementById(fragment)?.scrollIntoView();
}
}, {
@@ -47,7 +47,7 @@ describe("<BottomBar />", () => {
expect(container).toBeInstanceOf(HTMLElement);
});
it("renders w/o errors when .getItems() returns unexpected (not type complient) data", async () => {
it("renders w/o errors when .getItems() returns unexpected (not type compliant) data", async () => {
StatusBarRegistry.getInstance().getItems = jest.fn().mockImplementationOnce(() => undefined);
expect(() => render(<BottomBar />)).not.toThrow();
StatusBarRegistry.getInstance().getItems = jest.fn().mockImplementationOnce(() => "hello");
@@ -52,8 +52,8 @@ export class ClusterAccessibleNamespaces extends React.Component<Props> {
}}
validators={systemName}
items={Array.from(this.namespaces)}
remove={({ oldItem: oldNamesapce }) => {
this.namespaces.delete(oldNamesapce);
remove={({ oldItem: oldNamespace }) => {
this.namespaces.delete(oldNamespace);
this.props.cluster.accessibleNamespaces = Array.from(this.namespaces);
}}
inputTheme="round-black"
@@ -35,7 +35,7 @@ export class ErrorBoundary extends React.Component {
<Sentry.ErrorBoundary
fallback={({ error, componentStack, resetError }) => {
const slackLink = <a href={slackUrl} rel="noreferrer" target="_blank">Slack</a>;
const githubLink = <a href={issuesTrackerUrl} rel="noreferrer" target="_blank">Github</a>;
const githubLink = <a href={issuesTrackerUrl} rel="noreferrer" target="_blank">GitHub</a>;
const pageUrl = location.pathname;
return (
@@ -127,7 +127,7 @@ export class FilePicker extends React.Component<Props> {
return files;
}
handleIndiviualFileSizes(files: File[]): File[] {
handleIndividualFileSizes(files: File[]): File[] {
const { onOverSizeLimit, maxSize } = this.props;
switch (onOverSizeLimit) {
@@ -178,7 +178,7 @@ export class FilePicker extends React.Component<Props> {
try {
const numberLimitedFiles = this.handleFileCount(files);
const sizeLimitedFiles = this.handleIndiviualFileSizes(numberLimitedFiles);
const sizeLimitedFiles = this.handleIndividualFileSizes(numberLimitedFiles);
const totalSizeLimitedFiles = this.handleTotalFileSizes(sizeLimitedFiles);
if ("uploadDir" in this.props) {
@@ -63,7 +63,7 @@ interface SplitStatusesByLevel {
}
/**
* This fuction returns the class level for corresponding to the highest status level
* This function returns the class level for corresponding to the highest status level
* and the statuses split by their levels.
* @param src a list of status items
*/
@@ -383,8 +383,8 @@
blockquote {
padding: 8px 1em;
color: $helmDescriptionBlockqouteColor;
border-left: 0.25em solid $helmDescriptionBlockqouteBorder;
color: $helmDescriptionBlockquoteColor;
border-left: 0.25em solid $helmDescriptionBlockquoteBorder;
background: $helmDescriptionBlockquoteBackground;
}
@@ -39,7 +39,7 @@ export interface Notification {
message: NotificationMessage;
status?: NotificationStatus;
timeout?: number; // auto-hiding timeout in milliseconds, 0 = no hide
onClose?(): void; // additonal logic on when the notification times out or is closed by the "x"
onClose?(): void; // additional logic on when the notification times out or is closed by the "x"
}
export class NotificationsStore {
@@ -100,7 +100,7 @@ interface Props {
minExtent?: number;
/**
* The following events are triggerred with respect to the above values.
* The following events are triggered with respect to the above values.
* - The "__Exceed" call will be made when the unbounded extent goes from
* < the above to >= the above
* - The "__Subceed" call is similar but is triggered when the unbounded