|
@@ -25,6 +25,7 @@ import SourceSelector, { SourceType } from "./SourceSelector";
|
|
|
import SourceSettings from "./SourceSettings"
|
|
import SourceSettings from "./SourceSettings"
|
|
|
import Services from "./Services";
|
|
import Services from "./Services";
|
|
|
import EnvGroupArray, { KeyValueType } from "main/home/cluster-dashboard/env-groups/EnvGroupArray";
|
|
import EnvGroupArray, { KeyValueType } from "main/home/cluster-dashboard/env-groups/EnvGroupArray";
|
|
|
|
|
+import Select from "components/porter/Select";
|
|
|
import GithubActionModal from "./GithubActionModal";
|
|
import GithubActionModal from "./GithubActionModal";
|
|
|
|
|
|
|
|
type Props = RouteComponentProps & {
|
|
type Props = RouteComponentProps & {
|
|
@@ -67,6 +68,7 @@ const NewAppFlow: React.FC<Props> = ({
|
|
|
|
|
|
|
|
return (
|
|
return (
|
|
|
<CenterWrapper>
|
|
<CenterWrapper>
|
|
|
|
|
+ <Div>
|
|
|
<StyledConfigureTemplate>
|
|
<StyledConfigureTemplate>
|
|
|
<Back to="/apps" />
|
|
<Back to="/apps" />
|
|
|
<DashboardHeader
|
|
<DashboardHeader
|
|
@@ -93,7 +95,7 @@ const NewAppFlow: React.FC<Props> = ({
|
|
|
<Input
|
|
<Input
|
|
|
placeholder="ex: academic-sophon"
|
|
placeholder="ex: academic-sophon"
|
|
|
value={formState.applicationName}
|
|
value={formState.applicationName}
|
|
|
- width="100%"
|
|
|
|
|
|
|
+ width="300px"
|
|
|
setValue={(e) => {
|
|
setValue={(e) => {
|
|
|
setFormState({ ...formState, applicationName: e })
|
|
setFormState({ ...formState, applicationName: e })
|
|
|
if (Validators.applicationName(e)) {
|
|
if (Validators.applicationName(e)) {
|
|
@@ -162,7 +164,7 @@ const NewAppFlow: React.FC<Props> = ({
|
|
|
<Input
|
|
<Input
|
|
|
placeholder="yarn ./scripts/run-migrations.js"
|
|
placeholder="yarn ./scripts/run-migrations.js"
|
|
|
value={""}
|
|
value={""}
|
|
|
- width="100%"
|
|
|
|
|
|
|
+ width="300px"
|
|
|
setValue={(e) => { }}
|
|
setValue={(e) => { }}
|
|
|
/>
|
|
/>
|
|
|
</>
|
|
</>
|
|
@@ -173,6 +175,7 @@ const NewAppFlow: React.FC<Props> = ({
|
|
|
DEPLYOY
|
|
DEPLYOY
|
|
|
</Button>
|
|
</Button>
|
|
|
</StyledConfigureTemplate>
|
|
</StyledConfigureTemplate>
|
|
|
|
|
+ </Div>
|
|
|
{showGHAModal && <GithubActionModal closeModal={() => setShowGHAModal(false)} />}
|
|
{showGHAModal && <GithubActionModal closeModal={() => setShowGHAModal(false)} />}
|
|
|
</CenterWrapper>
|
|
</CenterWrapper>
|
|
|
);
|
|
);
|
|
@@ -180,6 +183,11 @@ const NewAppFlow: React.FC<Props> = ({
|
|
|
|
|
|
|
|
export default withRouter(NewAppFlow);
|
|
export default withRouter(NewAppFlow);
|
|
|
|
|
|
|
|
|
|
+const Div = styled.div`
|
|
|
|
|
+ width: 100%;
|
|
|
|
|
+ max-width: 900px;
|
|
|
|
|
+`;
|
|
|
|
|
+
|
|
|
const CenterWrapper = styled.div`
|
|
const CenterWrapper = styled.div`
|
|
|
width: 100%;
|
|
width: 100%;
|
|
|
display: flex;
|
|
display: flex;
|