chore: add chrome debug

This commit is contained in:
crazywoola
2023-06-20 20:28:09 +08:00
parent de47cc326e
commit a5834319cf
6 changed files with 22 additions and 5 deletions
+11
View File
@@ -0,0 +1,11 @@
{
"version": "0.2.0",
"configurations": [
{
"name": "Next.js: debug server-side",
"type": "node-terminal",
"request": "launch",
"command": "yarn run dev"
}
]
}
+1 -1
View File
@@ -58,7 +58,7 @@ const Form: FC<FormProps> = ({ items, hint, hintDescription }) => {
{items.map((item) => {
return <FormItem key={item.label} {...item} />
})}
<div className={cn('flex flex-col sm:flex-row')}>
<div className={cn('flex flex-col sm:flex-row gap-2')}>
<div className='flex w-32'></div>
<Button text='' type='blue' className='w-32 h-9'>
<ChatBubble className='h-4 w-4 text-white mr-2' />
+1 -1
View File
@@ -13,7 +13,7 @@ const Input: FC<InputProps> = ({ value, placeholder, className, onChange }) => {
<input
className={cn(
'flex items-center',
'h-9 px-3 py-2 rounded-lg bg-gray-100 outline outline-gray-300',
'h-9 px-3 py-2 rounded-lg bg-gray-100 hover:outline outline-gray-300',
'hover:bg-gray-50 active:bg-gray-50 focus:bg-gray-50',
'text-sm text-gray-900',
className
View File
+9 -3
View File
@@ -19,7 +19,7 @@ const Select: FC<SelectProps> = ({ value, options, className, onSelect }) => {
<div
className={cn(
'flex items-center relative',
'h-9 px-3 py-2 rounded-lg bg-gray-100 outline outline-gray-300 cursor-pointer',
'h-9 px-3 py-2 rounded-lg bg-gray-100 hover:outline outline-gray-300 cursor-pointer',
'hover:bg-gray-50 active:bg-gray-50 focus:bg-gray-50',
'text-sm text-gray-900',
className ? className : 'w-1/2'
@@ -30,7 +30,11 @@ const Select: FC<SelectProps> = ({ value, options, className, onSelect }) => {
>
<span>{selectedOption?.label || selectedOption?.name}</span>
<span className='absolute mr-2 right-0'>
{open ? <ChevronUp className='h-4 w-4 text-gray-500' /> : <ChevronDown className='h-4 w-4 text-gray-500' />}
{open ? (
<ChevronUp className='h-4 w-4 text-gray-500' />
) : (
<ChevronDown className='h-4 w-4 text-gray-500' />
)}
</span>
</div>
{open && (
@@ -50,7 +54,9 @@ const Select: FC<SelectProps> = ({ value, options, className, onSelect }) => {
'text-sm text-gray-900',
'hover:bg-gray-100 active:bg-gray-100 focus:bg-gray-100 ',
'hover:rounded-lg active:rounded-lg focus:rounded-lg',
selectedOption?.value === item.value ? 'bg-gray-100' : 'bg-white'
selectedOption?.value === item.value
? 'bg-gray-100'
: 'bg-white'
)}
onClick={() => {
setOpen(false)
View File