mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
1 parent
434f26f17f
commit
b9089a7c5e
19 files changed
+128
-29
No files matched your search
@@ -0,0 +1,3 @@
|
||||
.AddCluster {
|
||||
|
||||
}
|
||||
@@ -1,3 +1,4 @@
|
||||
import "./add-cluster.scss"
|
||||
import React from "react";
|
||||
|
||||
interface Props {
|
||||
@@ -5,6 +6,6 @@ interface Props {
|
||||
|
||||
export class AddCluster extends React.Component {
|
||||
render() {
|
||||
return "";
|
||||
return "AddCluster";
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
.ClusterSettings {
|
||||
|
||||
}
|
||||
@@ -1,3 +1,4 @@
|
||||
import "./cluster-settings.scss"
|
||||
import React from "react";
|
||||
|
||||
interface Props {
|
||||
@@ -5,6 +6,10 @@ interface Props {
|
||||
|
||||
export class ClusterSettings extends React.Component {
|
||||
render() {
|
||||
return "";
|
||||
return (
|
||||
<div className="ClusterSettings">
|
||||
ClusterSettings
|
||||
</div>
|
||||
);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
.ClustersMenu {
|
||||
|
||||
}
|
||||
@@ -1,10 +1,15 @@
|
||||
import "./clusters-menu.scss"
|
||||
import React from "react";
|
||||
|
||||
interface Props {
|
||||
}
|
||||
|
||||
export class ClusterSettings extends React.Component {
|
||||
export class ClustersMenu extends React.Component {
|
||||
render() {
|
||||
return "";
|
||||
return (
|
||||
<div className="ClustersMenu">
|
||||
ClustersMenu
|
||||
</div>
|
||||
);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
.Clusters {
|
||||
|
||||
}
|
||||
@@ -1,25 +1,14 @@
|
||||
import "./clusters.scss"
|
||||
import React from "react";
|
||||
import { userStore } from "../../../common/user-store";
|
||||
import { workspaceStore } from "../../../common/workspace-store";
|
||||
import { clusterStore } from "../../../common/cluster-store";
|
||||
|
||||
interface Props {
|
||||
}
|
||||
|
||||
export class Clusters extends React.Component {
|
||||
static async init(){
|
||||
// todo: move to App.init()
|
||||
await Promise.all([
|
||||
userStore.load(),
|
||||
workspaceStore.load(),
|
||||
clusterStore.load(),
|
||||
]);
|
||||
}
|
||||
|
||||
render() {
|
||||
return (
|
||||
<div className="Clusters">
|
||||
Clusters page
|
||||
Clusters
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,3 @@
|
||||
.LandingPage {
|
||||
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
import "./landing-page.scss"
|
||||
import React from "react";
|
||||
|
||||
interface Props {
|
||||
}
|
||||
|
||||
export class LandingPage extends React.Component {
|
||||
render() {
|
||||
return (
|
||||
<div className="LandingPage">
|
||||
LandingPage
|
||||
</div>
|
||||
)
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
.Preferences {
|
||||
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
import "./preferences.scss"
|
||||
import React from "react";
|
||||
|
||||
interface Props {
|
||||
}
|
||||
|
||||
export class Preferences extends React.Component {
|
||||
render() {
|
||||
return (
|
||||
<div className="Preferences">
|
||||
Preferences
|
||||
</div>
|
||||
)
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
.WhatsNew {
|
||||
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
import "./whats-new.scss"
|
||||
import React from "react";
|
||||
|
||||
interface Props {
|
||||
}
|
||||
|
||||
export class WhatsNew extends React.Component {
|
||||
render() {
|
||||
return (
|
||||
<div className="WhatsNew">
|
||||
WhatsNew
|
||||
</div>
|
||||
);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
.Workspaces {
|
||||
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
import "./workspaces.scss"
|
||||
import React from "react";
|
||||
|
||||
interface Props {
|
||||
}
|
||||
|
||||
export class Workspaces extends React.Component {
|
||||
render() {
|
||||
return (
|
||||
<div className="Workspaces">
|
||||
Workspaces
|
||||
</div>
|
||||
)
|
||||
}
|
||||
}
|
||||
+10
-3
@@ -1,11 +1,18 @@
|
||||
import React from "react";
|
||||
import ReactDOM from "react-dom";
|
||||
import "../common/system-ca"
|
||||
import { Clusters } from "./components/+clusters";
|
||||
import { userStore } from "../common/user-store";
|
||||
import { workspaceStore } from "../common/workspace-store";
|
||||
import { clusterStore } from "../common/cluster-store";
|
||||
import { Workspaces } from "./components/+workspaces/workspaces";
|
||||
|
||||
async function render() {
|
||||
await Clusters.init();
|
||||
ReactDOM.render(<Clusters/>, document.getElementById("app"),)
|
||||
await Promise.all([
|
||||
userStore.load(),
|
||||
workspaceStore.load(),
|
||||
clusterStore.load(),
|
||||
]);
|
||||
ReactDOM.render(<Workspaces/>, document.getElementById("app"),)
|
||||
}
|
||||
|
||||
window.addEventListener("load", render);
|
||||
Reference in new issue
Block a user