add initial docs

This commit is contained in:
mbecker20
2022-03-18 08:59:12 -07:00
parent 7130da485b
commit 0cbb90760b
13 changed files with 149 additions and 44 deletions
-33
View File
@@ -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;
-4
View File
@@ -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>
+5
View File
@@ -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{" "}