mirror of
https://github.com/lordmathis/lemma.git
synced 2025-11-06 16:04:23 +00:00
Update git settings layout
This commit is contained in:
@@ -6,8 +6,8 @@ import {
|
||||
Stack,
|
||||
PasswordInput,
|
||||
Group,
|
||||
Box,
|
||||
Title,
|
||||
Grid,
|
||||
} from '@mantine/core';
|
||||
|
||||
const GitSettings = ({
|
||||
@@ -22,8 +22,12 @@ const GitSettings = ({
|
||||
return (
|
||||
<Stack spacing="md">
|
||||
<Title order={3}>Git Integration</Title>
|
||||
<Group justify="space-between" align="center">
|
||||
<Grid gutter="md" align="center">
|
||||
<Grid.Col span={6}>
|
||||
<Text size="sm">Enable Git</Text>
|
||||
</Grid.Col>
|
||||
<Grid.Col span={6}>
|
||||
<Group justify="flex-end">
|
||||
<Switch
|
||||
checked={gitEnabled}
|
||||
onChange={(event) =>
|
||||
@@ -31,10 +35,12 @@ const GitSettings = ({
|
||||
}
|
||||
/>
|
||||
</Group>
|
||||
<Box>
|
||||
<Text size="sm" mb="xs">
|
||||
Git URL
|
||||
</Text>
|
||||
</Grid.Col>
|
||||
|
||||
<Grid.Col span={6}>
|
||||
<Text size="sm">Git URL</Text>
|
||||
</Grid.Col>
|
||||
<Grid.Col span={6}>
|
||||
<TextInput
|
||||
value={gitUrl}
|
||||
onChange={(event) =>
|
||||
@@ -43,11 +49,12 @@ const GitSettings = ({
|
||||
disabled={!gitEnabled}
|
||||
placeholder="Enter Git URL"
|
||||
/>
|
||||
</Box>
|
||||
<Box>
|
||||
<Text size="sm" mb="xs">
|
||||
Git Username
|
||||
</Text>
|
||||
</Grid.Col>
|
||||
|
||||
<Grid.Col span={6}>
|
||||
<Text size="sm">Git Username</Text>
|
||||
</Grid.Col>
|
||||
<Grid.Col span={6}>
|
||||
<TextInput
|
||||
value={gitUser}
|
||||
onChange={(event) =>
|
||||
@@ -56,11 +63,12 @@ const GitSettings = ({
|
||||
disabled={!gitEnabled}
|
||||
placeholder="Enter Git username"
|
||||
/>
|
||||
</Box>
|
||||
<Box>
|
||||
<Text size="sm" mb="xs">
|
||||
Git Token
|
||||
</Text>
|
||||
</Grid.Col>
|
||||
|
||||
<Grid.Col span={6}>
|
||||
<Text size="sm">Git Token</Text>
|
||||
</Grid.Col>
|
||||
<Grid.Col span={6}>
|
||||
<PasswordInput
|
||||
value={gitToken}
|
||||
onChange={(event) =>
|
||||
@@ -69,9 +77,13 @@ const GitSettings = ({
|
||||
disabled={!gitEnabled}
|
||||
placeholder="Enter Git token"
|
||||
/>
|
||||
</Box>
|
||||
<Group justify="space-between" align="center">
|
||||
</Grid.Col>
|
||||
|
||||
<Grid.Col span={6}>
|
||||
<Text size="sm">Auto Commit</Text>
|
||||
</Grid.Col>
|
||||
<Grid.Col span={6}>
|
||||
<Group justify="flex-end">
|
||||
<Switch
|
||||
checked={gitAutoCommit}
|
||||
onChange={(event) =>
|
||||
@@ -80,10 +92,12 @@ const GitSettings = ({
|
||||
disabled={!gitEnabled}
|
||||
/>
|
||||
</Group>
|
||||
<Box>
|
||||
<Text size="sm" mb="xs">
|
||||
Commit Message Template
|
||||
</Text>
|
||||
</Grid.Col>
|
||||
|
||||
<Grid.Col span={6}>
|
||||
<Text size="sm">Commit Message Template</Text>
|
||||
</Grid.Col>
|
||||
<Grid.Col span={6}>
|
||||
<TextInput
|
||||
value={gitCommitMsgTemplate}
|
||||
onChange={(event) =>
|
||||
@@ -92,7 +106,8 @@ const GitSettings = ({
|
||||
disabled={!gitEnabled}
|
||||
placeholder="Enter commit message template"
|
||||
/>
|
||||
</Box>
|
||||
</Grid.Col>
|
||||
</Grid>
|
||||
</Stack>
|
||||
);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user