mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
clean up, typo fix
This commit is contained in:
1 parent
d901b084f9
commit
9fd004b214
7 files changed
+37
-38
No files matched your search
@@ -1,4 +1,3 @@
|
||||
import "../../common/system-ca"
|
||||
import "./assets/css/app.scss"
|
||||
import "prismjs";
|
||||
import "prismjs/components/prism-yaml"
|
||||
|
||||
@@ -37,7 +37,7 @@ export interface IKubeObjectMetadata {
|
||||
}[];
|
||||
}
|
||||
|
||||
export type IKubeMetaField = keyof KubeObject["metadata"];
|
||||
export type IKubeMetaField = keyof IKubeObjectMetadata;
|
||||
|
||||
@autobind()
|
||||
export class KubeObject implements ItemObject {
|
||||
@@ -71,6 +71,7 @@ export class KubeObject implements ItemObject {
|
||||
apiVersion: string
|
||||
kind: string
|
||||
metadata: IKubeObjectMetadata;
|
||||
status?: any; // todo: type-safety support
|
||||
|
||||
get selfLink() {
|
||||
return this.metadata.selfLink
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
import { observable, when } from "mobx";
|
||||
import type { IConfigRoutePayload } from "../main/routes/config";
|
||||
import { autobind, interval } from "./utils";
|
||||
import { apiBase } from "./api";
|
||||
import { apiPrefix, buildVersion, isDevelopment } from "../common/vars";
|
||||
import { autobind, interval } from "./utils";
|
||||
import { configApi } from "./api/endpoints";
|
||||
|
||||
@autobind()
|
||||
export class ConfigStore {
|
||||
@@ -21,7 +21,7 @@ export class ConfigStore {
|
||||
}
|
||||
|
||||
load() {
|
||||
return apiBase.get("/config").then((config: any) => {
|
||||
return configApi.getConfig().then((config: any) => {
|
||||
this.config = config;
|
||||
this.isLoaded = true;
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user