mirror of
https://github.com/moghtech/komodo.git
synced 2026-10-28 16:00:38 +00:00
add initial docs
This commit is contained in:
@@ -1,33 +0,0 @@
|
||||
import { Box, Newline, Text } from "ink";
|
||||
import React from "react";
|
||||
import { SetConfig } from "../types";
|
||||
import Selector from "./util/Selector";
|
||||
|
||||
const Builds = (p: { setConfig: SetConfig; next: () => void }) => {
|
||||
return (
|
||||
<Box flexDirection="column">
|
||||
<Text>Would you like to enable docker build services?</Text>
|
||||
<Text>
|
||||
This will create a{" "}
|
||||
<Text color="blue" bold>
|
||||
docker registry
|
||||
</Text>{" "}
|
||||
and enable Monitor to act as a{" "}
|
||||
<Text color="blue" bold>
|
||||
build server
|
||||
</Text>
|
||||
.
|
||||
</Text>
|
||||
<Newline />
|
||||
<Selector
|
||||
items={["yes", "no"]}
|
||||
onSelect={(item) => {
|
||||
p.setConfig("useBuilds", item === "yes");
|
||||
p.next();
|
||||
}}
|
||||
/>
|
||||
</Box>
|
||||
);
|
||||
};
|
||||
|
||||
export default Builds;
|
||||
@@ -35,10 +35,6 @@ const FinalConfig = (p: {
|
||||
<Text color="green">
|
||||
registry url: <Text color="white">{p.config.registryURL}</Text>
|
||||
</Text>
|
||||
<Text color={p.config.useBuilds ? "green" : "red"}>
|
||||
use builds:{" "}
|
||||
<Text color="white">{p.config.useBuilds ? "yes" : "no"}</Text>
|
||||
</Text>
|
||||
</Box>
|
||||
<Newline />
|
||||
<Text>
|
||||
|
||||
@@ -79,6 +79,11 @@ const Mongo = ({
|
||||
</Text>
|
||||
</Box>
|
||||
<Newline />
|
||||
<Text color="gray">
|
||||
note: remember to specify the database name in the url, ie
|
||||
mongodb://localhost:27017<Text color="green">/monitor</Text>
|
||||
</Text>
|
||||
<Newline />
|
||||
{confirm && (
|
||||
<Text>
|
||||
press{" "}
|
||||
|
||||
Reference in New Issue
Block a user