From 1d332e412cf2d37f7f3877d7bc693dc50cb8f0a1 Mon Sep 17 00:00:00 2001 From: filip mertens Date: Mon, 13 May 2024 08:09:22 +0200 Subject: [PATCH] start setup --- libs/remix-ui/git/src/components/gitui.tsx | 3 +- .../components/panels/githubcredentials.tsx | 6 ++-- .../git/src/components/panels/setup.tsx | 34 +++++++++++++++++++ libs/remix-ui/git/src/lib/gitactions.ts | 12 +++---- 4 files changed, 44 insertions(+), 11 deletions(-) create mode 100644 libs/remix-ui/git/src/components/panels/setup.tsx diff --git a/libs/remix-ui/git/src/components/gitui.tsx b/libs/remix-ui/git/src/components/gitui.tsx index 1e20d0d9f3..604b218124 100644 --- a/libs/remix-ui/git/src/components/gitui.tsx +++ b/libs/remix-ui/git/src/components/gitui.tsx @@ -29,6 +29,7 @@ import { SourceControlBase } from './buttons/sourceControlBase' import { BranchHeader } from './branchHeader' import { SourceControl } from './panels/sourcontrol' import { GitHubCredentials } from './panels/githubcredentials' +import { Setup } from './panels/setup' export const gitPluginContext = React.createContext(defaultGitState) export const loaderContext = React.createContext(defaultLoaderState) @@ -127,7 +128,7 @@ export const GitUI = (props: IGitUi) => { - + diff --git a/libs/remix-ui/git/src/components/panels/githubcredentials.tsx b/libs/remix-ui/git/src/components/panels/githubcredentials.tsx index f4866af346..677df74bcd 100644 --- a/libs/remix-ui/git/src/components/panels/githubcredentials.tsx +++ b/libs/remix-ui/git/src/components/panels/githubcredentials.tsx @@ -1,4 +1,3 @@ -import { checkout, clone, ReadCommitResult } from "isomorphic-git"; import React, { useEffect } from "react"; import { gitActionsContext, pluginActionsContext } from "../../state/context"; import { gitPluginContext, loaderContext } from "../gitui"; @@ -6,7 +5,6 @@ import { CustomTooltip } from "@remix-ui/helper"; import { useIntl, FormattedMessage } from "react-intl"; import { CopyToClipboard } from "@remix-ui/clipboard"; -import { FormControl, InputGroup } from "react-bootstrap"; export const GitHubCredentials = () => { const context = React.useContext(gitPluginContext) @@ -69,8 +67,8 @@ export const GitHubCredentials = () => { - handleChangeUserNameState(e.target.value)} value={githubUsername} className="form-control mb-1" placeholder="GitHub username" type="text" id="githubUsername" /> - handleChangeEmailState(e.target.value)} value={githubEmail} className="form-control mb-1" placeholder="GitHub email" type="text" id="githubEmail" /> + handleChangeUserNameState(e.target.value)} value={githubUsername} className="form-control mb-1" placeholder="Git username" type="text" id="githubUsername" /> + handleChangeEmailState(e.target.value)} value={githubEmail} className="form-control mb-1" placeholder="Git email" type="text" id="githubEmail" />