mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Fix spelling (#3181)
Co-authored-by: Josh Soref <jsoref@users.noreply.github.com>
This commit is contained in:
1 parent
9903417fed
commit
e87b4836be
39 files changed
+54
-54
No files matched your search
@@ -114,7 +114,7 @@ function _parseKubeApi(path: string): IKubeApiParsed {
|
||||
* There is no well defined selection from an array of items that were
|
||||
* separated by '/'
|
||||
*
|
||||
* Solution is to create a huristic. Namely:
|
||||
* Solution is to create a heuristic. Namely:
|
||||
* 1. if '.' in left[0] then apiGroup <- left[0]
|
||||
* 2. if left[1] matches /^v[0-9]/ then apiGroup, apiVersion <- left[0], left[1]
|
||||
* 3. otherwise assume apiVersion <- left[0]
|
||||
|
||||
@@ -53,7 +53,7 @@ import { TerminalStore } from "./components/dock/terminal.store";
|
||||
configurePackages();
|
||||
|
||||
/**
|
||||
* If this is a development buid, wait a second to attach
|
||||
* If this is a development build, wait a second to attach
|
||||
* Chrome Debugger to renderer process
|
||||
* https://stackoverflow.com/questions/52844870/debugging-electron-renderer-process-with-vscode
|
||||
*/
|
||||
|
||||
@@ -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");
|
||||
|
||||
+2
-2
@@ -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
|
||||
|
||||
@@ -44,8 +44,8 @@
|
||||
"helmStableRepo": "#3d90ce",
|
||||
"helmIncubatorRepo": "#ff7043",
|
||||
"helmDescriptionHr": "#41474a",
|
||||
"helmDescriptionBlockqouteColor": "#bbb",
|
||||
"helmDescriptionBlockqouteBorder": "#8a8f93",
|
||||
"helmDescriptionBlockquoteColor": "#bbb",
|
||||
"helmDescriptionBlockquoteBorder": "#8a8f93",
|
||||
"helmDescriptionBlockquoteBackground": "#3b4348",
|
||||
"helmDescriptionHeaders": "#3e4147",
|
||||
"helmDescriptionH6": "#6a737d",
|
||||
@@ -113,7 +113,7 @@
|
||||
"iconActiveColor": "#ffffff",
|
||||
"iconActiveBackground": "#ffffff18",
|
||||
"filterAreaBackground": "#23272b",
|
||||
"chartLiveBarBackgound": "#00000033",
|
||||
"chartLiveBarBackground": "#00000033",
|
||||
"chartStripesColor": "#ffffff08",
|
||||
"chartCapacityColor": "#4c545f",
|
||||
"pieChartDefaultColor": "#30353a",
|
||||
|
||||
@@ -45,8 +45,8 @@
|
||||
"helmStableRepo": "#3d90ce",
|
||||
"helmIncubatorRepo": "#ff7043",
|
||||
"helmDescriptionHr": "#dddddd",
|
||||
"helmDescriptionBlockqouteColor": "#555555",
|
||||
"helmDescriptionBlockqouteBorder": "#8a8f93",
|
||||
"helmDescriptionBlockquoteColor": "#555555",
|
||||
"helmDescriptionBlockquoteBorder": "#8a8f93",
|
||||
"helmDescriptionBlockquoteBackground": "#eeeeee",
|
||||
"helmDescriptionHeaders": "#3e4147",
|
||||
"helmDescriptionH6": "#6a737d",
|
||||
@@ -114,7 +114,7 @@
|
||||
"iconActiveColor": "#ffffff",
|
||||
"iconActiveBackground": "#a6a6a694",
|
||||
"filterAreaBackground": "#f7f7f7",
|
||||
"chartLiveBarBackgound": "#00000033",
|
||||
"chartLiveBarBackground": "#00000033",
|
||||
"chartStripesColor": "#00000009",
|
||||
"chartCapacityColor": "#cccccc",
|
||||
"pieChartDefaultColor": "#efefef",
|
||||
|
||||
@@ -74,8 +74,8 @@ $helmImgBackground: var(--helmImgBackground);
|
||||
$helmStableRepo: var(--helmStableRepo);
|
||||
$helmIncubatorRepo: var(--helmIncubatorRepo);
|
||||
$helmDescriptionHr: var(--helmDescriptionHr);
|
||||
$helmDescriptionBlockqouteColor: var(--helmDescriptionBlockqouteColor);
|
||||
$helmDescriptionBlockqouteBorder: var(--helmDescriptionBlockqouteBorder);
|
||||
$helmDescriptionBlockquoteColor: var(--helmDescriptionBlockquoteColor);
|
||||
$helmDescriptionBlockquoteBorder: var(--helmDescriptionBlockquoteBorder);
|
||||
$helmDescriptionBlockquoteBackground: var(--helmDescriptionBlockquoteBackground);
|
||||
$helmDescriptionHeaders: var(--helmDescriptionHeaders);
|
||||
$helmDescriptionH6: var(--helmDescriptionH6);
|
||||
@@ -132,7 +132,7 @@ $drawerItemNameColor: var(--drawerItemNameColor);
|
||||
$drawerItemValueColor: var(--drawerItemValueColor);
|
||||
|
||||
// Charts
|
||||
$chartLiveBarBackgound: var(--chartLiveBarBackgound);
|
||||
$chartLiveBarBackground: var(--chartLiveBarBackground);
|
||||
$chartStripesColor: var(--chartStripesColor);
|
||||
$chartCapacityColor: var(--chartCapacityColor);
|
||||
$pieChartDefaultColor: var(--pieChartDefaultColor);
|
||||
|
||||
@@ -28,7 +28,7 @@ describe("parseJsonPath", () => {
|
||||
expect(res).toBe(".metadata.labels['kubesphere.io/alias-name']");
|
||||
});
|
||||
|
||||
test("should convert keys with escpaped charatecrs to use indexed notation", () => {
|
||||
test("should convert keys with escaped characters to use indexed notation", () => {
|
||||
const res = parseJsonPath(".metadata.labels.kubesphere\\\"io/alias-name");
|
||||
|
||||
expect(res).toBe(".metadata.labels['kubesphere\"io/alias-name']");
|
||||
|
||||
@@ -48,7 +48,7 @@ function convertToIndexNotation(key: string, firstItem = false) {
|
||||
}
|
||||
|
||||
return `['${key}']`;
|
||||
} else { // no illegal chracters found, do not touch
|
||||
} else { // no illegal characters found, do not touch
|
||||
const prefix = firstItem ? "" : ".";
|
||||
|
||||
return `${prefix}${key}`;
|
||||
|
||||
Reference in new issue
Block a user