-
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
35 changed files
with
1,542 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,15 @@ | ||
export const tagsQuery = `SELECT * FROM dolt_tags ORDER BY date DESC`; | ||
|
||
export const tagQuery = `SELECT * FROM dolt_tags WHERE tag_name=?`; | ||
|
||
export const callDeleteTag = `CALL DOLT_TAG("-d", ?)`; | ||
|
||
export const getCallNewTag = (hasMessage = false, hasAuthor = false) => | ||
`CALL DOLT_TAG(?, ?${hasMessage ? `, "-m", ?` : ""}${getAuthorNameString( | ||
hasAuthor, | ||
)})`; | ||
|
||
export function getAuthorNameString(hasAuthor: boolean): string { | ||
if (!hasAuthor) return ""; | ||
return `, "--author", ?`; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,74 @@ | ||
.container { | ||
@apply block relative pl-10 mb-2 text-primary font-semibold cursor-pointer select-none; | ||
|
||
input { | ||
@apply absolute left-0 opacity-0; | ||
} | ||
} | ||
|
||
.disabledContainer { | ||
@apply text-ld-darkgrey; | ||
|
||
&:hover { | ||
@apply cursor-default; | ||
} | ||
} | ||
|
||
.blueContainer { | ||
input { | ||
@apply text-ld-mediumblue; | ||
} | ||
} | ||
|
||
.checkmark { | ||
@apply absolute -top-0.5 left-0 h-5 w-5 bg-white rounded-sm mt-1 border border-gray-300; | ||
} | ||
|
||
.disabledContainer .checkmark { | ||
@apply bg-gray-100 border-gray-300; | ||
} | ||
|
||
.blueContainer .checkmark { | ||
@apply border-acc-hoverlinkblue; | ||
} | ||
|
||
.container:hover input ~ .checkmark { | ||
@apply border-acc-lightgrey; | ||
} | ||
|
||
.blueContainer:hover input ~ .checkmark { | ||
@apply border-acc-hoverlinkblue; | ||
} | ||
|
||
.checkmark > svg { | ||
@apply absolute hidden; | ||
content: ""; | ||
} | ||
|
||
.container .checkmark > svg { | ||
@apply text-acc-linkblue font-thin -top-[6px] -left-[1px] text-[28px]; | ||
} | ||
|
||
.blueContainer .checkmark > svg { | ||
@apply text-ld-mediumblue; | ||
} | ||
|
||
.container input:checked ~ .checkmark { | ||
@apply bg-white; | ||
} | ||
|
||
.container input:checked ~ .checkmark > svg { | ||
@apply block; | ||
} | ||
|
||
.container input:focus ~ .checkmark { | ||
@apply widget-shadow-lightblue; | ||
} | ||
|
||
.container:hover input:disabled ~ .checkmark { | ||
@apply border-gray-300; | ||
} | ||
|
||
.description { | ||
@apply text-acc-darkgrey ml-10 mb-6; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
import { FiCheck } from "@react-icons/all-files/fi/FiCheck"; | ||
import cx from "classnames"; | ||
import { ChangeEvent } from "react"; | ||
import css from "./index.module.css"; | ||
|
||
type Props = { | ||
name: string; | ||
onChange: (e: ChangeEvent<HTMLInputElement>) => void; | ||
checked: boolean; | ||
label?: string; | ||
description?: string; | ||
className?: string; | ||
disabled?: boolean; | ||
blue?: boolean; | ||
}; | ||
|
||
export default function CustomCheckbox({ | ||
className, | ||
blue = false, | ||
label, | ||
description, | ||
...props | ||
}: Props) { | ||
return ( | ||
<div className={className} data-cy={`${props.name}-checkbox`}> | ||
<label | ||
className={cx(css.container, { | ||
[css.disabledContainer]: !!props.disabled, | ||
[css.blueContainer]: blue, | ||
})} | ||
htmlFor={props.name} | ||
> | ||
{label} | ||
<input {...props} id={props.name} type="checkbox" /> | ||
<span className={css.checkmark}> | ||
<FiCheck /> | ||
</span> | ||
</label> | ||
{description && <p className={css.description}>{description}</p>} | ||
</div> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
24 changes: 24 additions & 0 deletions
24
...ts/pageComponents/DatabasePage/ForReleases/NewReleasePage/NewReleaseForm/index.module.css
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
.container { | ||
@apply max-w-2xl mx-auto; | ||
} | ||
|
||
.label { | ||
@apply font-semibold text-primary mt-4 mb-2; | ||
} | ||
|
||
.input { | ||
@apply mt-4; | ||
@apply max-w-md; | ||
} | ||
|
||
.error { | ||
@apply text-center max-w-xs; | ||
} | ||
|
||
.textarea { | ||
@apply max-w-none; | ||
} | ||
|
||
.textarea > textarea { | ||
@apply bg-white; | ||
} |
Oops, something went wrong.