-
Notifications
You must be signed in to change notification settings - Fork 0
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
1 parent
e9bbe20
commit eb42b99
Showing
15 changed files
with
140 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
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
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,46 @@ | ||
import { Gear } from "../icons"; | ||
import { Button, Popover, SelectInput } from "../ui"; | ||
import { Colors } from "../utils"; | ||
|
||
type SelectTransferSyntaxProps = { | ||
value: string; | ||
onChange: (value: string) => void | ||
} | ||
|
||
|
||
const TRANSCODING_OPTIONS = [ | ||
{ value: 'None', label: 'None (use Original TS)' }, | ||
{ value: '1.2.840.10008.1.2', label: 'Implicit VR Endian' }, | ||
{ value: '1.2.840.10008.1.2.1', label: 'Explicit VR Little Endian' }, | ||
{ value: '1.2.840.10008.1.2.1.99', label: 'Deflated Explicit VR Little Endian' }, | ||
{ value: '1.2.840.10008.1.2.2', label: 'Explicit VR Big Endian' }, | ||
{ value: '1.2.840.10008.1.2.4.50', label: 'JPEG 8-bit' }, | ||
{ value: '1.2.840.10008.1.2.4.51', label: 'JPEG 12-bit' }, | ||
{ value: '1.2.840.10008.1.2.4.57', label: 'JPEG Lossless' }, | ||
{ value: '1.2.840.10008.1.2.4.70', label: 'JPEG Lossless' }, | ||
{ value: '1.2.840.10008.1.2.4.80', label: 'JPEG-LS Lossless' }, | ||
{ value: '1.2.840.10008.1.2.4.81', label: 'JPEG-LS Lossy' }, | ||
{ value: '1.2.840.10008.1.2.4.90', label: 'JPEG 2000 (90)' }, | ||
{ value: '1.2.840.10008.1.2.4.91', label: 'JPEG 2000 (91)' }, | ||
{ value: '1.2.840.10008.1.2.4.92', label: 'JPEG 2000 (92)' }, | ||
{ value: '1.2.840.10008.1.2.4.93', label: 'JPEG 2000 (93)' } | ||
] | ||
|
||
const SelectTransferSyntax = ({ value, onChange }: SelectTransferSyntaxProps) => { | ||
|
||
return ( | ||
<Popover | ||
withOnClick | ||
className="w-64" | ||
popover={ | ||
<SelectInput options={TRANSCODING_OPTIONS} value={value} onChange={(option) => onChange(option?.value)} />} | ||
> | ||
<div className="flex justify-center items-center w-5 h-full"> | ||
<Gear className='text-warning w-full h-full' /> | ||
</div> | ||
</Popover> | ||
) | ||
|
||
} | ||
|
||
export default SelectTransferSyntax |
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,9 @@ | ||
import { IoClose } from "react-icons/io5"; | ||
|
||
const Close = (props) => { | ||
return ( | ||
<IoClose {...props} /> | ||
) | ||
} | ||
|
||
export default Close |
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,9 @@ | ||
import { FaGear } from "react-icons/fa6"; | ||
|
||
const Gear = (props) => { | ||
return ( | ||
<FaGear {...props} /> | ||
) | ||
} | ||
|
||
export default Gear |
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,9 @@ | ||
import { BsInfoCircle } from "react-icons/bs"; | ||
|
||
const Info = (props) => { | ||
return ( | ||
<BsInfoCircle {...props} /> | ||
) | ||
} | ||
|
||
export default Info |
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,9 @@ | ||
import { BsQuestionLg } from "react-icons/bs"; | ||
|
||
const Question = (props) => { | ||
return ( | ||
<BsQuestionLg {...props} /> | ||
) | ||
} | ||
|
||
export default Question |
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,9 @@ | ||
import { VscDebugRestart } from "react-icons/vsc"; | ||
|
||
const Restart = (props) => { | ||
return ( | ||
<VscDebugRestart {...props} /> | ||
) | ||
} | ||
|
||
export default Restart |
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,9 @@ | ||
import { BsPersonCheckFill } from "react-icons/bs"; | ||
|
||
const SubmitUser = (props) => { | ||
return ( | ||
<BsPersonCheckFill {...props} /> | ||
) | ||
} | ||
|
||
export default SubmitUser |
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,15 @@ | ||
import Close from './Close' | ||
import Gear from './Gear' | ||
import Info from './Info' | ||
import Question from './Question' | ||
import Restart from './Restart' | ||
import SubmitUser from './SubmitUser' | ||
|
||
export { | ||
Close, | ||
Gear, | ||
Info, | ||
Question, | ||
Restart, | ||
SubmitUser | ||
} |