mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-12-20 02:10:15 +01:00
feat: support edit preset,
feat: support view current conversation options. feat: save current conversation as a preset. feat: preset delete all.
This commit is contained in:
parent
dae0c2d5e3
commit
d2579b44d1
15 changed files with 340 additions and 269 deletions
|
|
@ -52,7 +52,7 @@ export default function DialogTemplate({
|
|||
{main ? main : null}
|
||||
<DialogFooter>
|
||||
<div>{leftButtons ? leftButtons : null}</div>
|
||||
<div>
|
||||
<div className="flex gap-2">
|
||||
<DialogClose className="dark:hover:gray-400 border-gray-700">Cancel</DialogClose>
|
||||
{buttons ? buttons : null}
|
||||
{selection ? (
|
||||
|
|
|
|||
43
client/src/components/ui/InputNumber.jsx
Normal file
43
client/src/components/ui/InputNumber.jsx
Normal file
|
|
@ -0,0 +1,43 @@
|
|||
'use client';
|
||||
|
||||
import * as React from 'react';
|
||||
|
||||
import { NumericFormat } from 'react-number-format';
|
||||
|
||||
// import * as InputNumberPrimitive from 'rc-input-number';
|
||||
|
||||
import { cn } from '../../utils/index.jsx';
|
||||
|
||||
// TODO help needed
|
||||
// const _InputNumber = React.forwardRef< React.ElementRef<typeof InputNumber>, InputNumberPrimitive.InputNumberProps>(
|
||||
// ({ className, ...props }, ref) => {
|
||||
// return (
|
||||
// <InputNumber
|
||||
// className={cn(
|
||||
// "flex h-10 w-full rounded-md border border-slate-300 bg-transparent py-2 px-3 text-sm placeholder:text-slate-400 focus:outline-none focus:ring-2 focus:ring-slate-400 focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 dark:border-slate-700 dark:text-slate-50 dark:focus:ring-slate-400 dark:focus:ring-offset-slate-900",
|
||||
// className
|
||||
// )}
|
||||
// ref={ref}
|
||||
// {...props}
|
||||
// />
|
||||
// )
|
||||
// }
|
||||
// )
|
||||
// _InputNumber.displayName = "Input"
|
||||
|
||||
// console.log(_InputNumber);
|
||||
|
||||
const InputNumber = React.forwardRef(({ className, ...props }, ref) => {
|
||||
return (
|
||||
<NumericFormat
|
||||
className={cn(
|
||||
'flex h-10 w-full rounded-md border border-slate-300 bg-transparent py-2 px-3 text-sm placeholder:text-slate-400 focus:outline-none focus:ring-2 focus:ring-slate-400 focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 dark:border-slate-700 dark:text-slate-50 dark:focus:ring-slate-400 dark:focus:ring-offset-slate-900',
|
||||
className
|
||||
)}
|
||||
ref={ref}
|
||||
{...props}
|
||||
/>
|
||||
);
|
||||
});
|
||||
|
||||
export { InputNumber };
|
||||
|
|
@ -7,6 +7,7 @@ import store from '~/store';
|
|||
|
||||
function ModelDropDown({
|
||||
model,
|
||||
disabled,
|
||||
setModel,
|
||||
endpoint,
|
||||
showAbove = false,
|
||||
|
|
@ -23,6 +24,7 @@ function ModelDropDown({
|
|||
<Listbox
|
||||
value={model}
|
||||
onChange={setModel}
|
||||
disabled={disabled}
|
||||
>
|
||||
{({ open }) => (
|
||||
<>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue