feat(default): reorganize system settings pricing UI
Refine the default system settings structure and model pricing editor so pricing configuration is easier to scan and edit.
This commit is contained in:
+20
-1
@@ -3,6 +3,8 @@ import { useTranslation } from 'react-i18next'
|
||||
import { cn } from '@/lib/utils'
|
||||
import { Button } from '@/components/ui/button'
|
||||
|
||||
const FEEDBACK_URL = 'https://github.com/QuantumNous/new-api/issues'
|
||||
|
||||
type GeneralErrorProps = React.HTMLAttributes<HTMLDivElement> & {
|
||||
minimal?: boolean
|
||||
}
|
||||
@@ -28,10 +30,27 @@ export function GeneralError({
|
||||
{t('Please try again later.')}
|
||||
</p>
|
||||
{!minimal && (
|
||||
<div className='mt-6 flex gap-4'>
|
||||
<p className='text-muted-foreground text-center text-sm'>
|
||||
{t('If this keeps happening, please report it on GitHub Issues.')}
|
||||
</p>
|
||||
)}
|
||||
{!minimal && (
|
||||
<div className='mt-6 flex flex-wrap justify-center gap-4'>
|
||||
<Button variant='outline' onClick={() => history.go(-1)}>
|
||||
{t('Go Back')}
|
||||
</Button>
|
||||
<Button
|
||||
variant='outline'
|
||||
render={
|
||||
<a
|
||||
href={FEEDBACK_URL}
|
||||
target='_blank'
|
||||
rel='noopener noreferrer'
|
||||
/>
|
||||
}
|
||||
>
|
||||
{t('Report an issue')}
|
||||
</Button>
|
||||
<Button onClick={() => navigate({ to: '/' })}>
|
||||
{t('Back to Home')}
|
||||
</Button>
|
||||
|
||||
Reference in New Issue
Block a user