chore: remove frontend changes

This commit is contained in:
Novice
2025-12-30 10:19:40 +08:00
parent f55faae31b
commit 56c8221b3f
4921 changed files with 308906 additions and 230467 deletions

View File

@ -1,8 +1,8 @@
'use client'
import React from 'react'
import Button from '@/app/components/base/button'
import * as React from 'react'
import { useTranslation } from 'react-i18next'
import Button from '@/app/components/base/button'
type SetURLProps = {
repoUrl: string
@ -16,37 +16,37 @@ const SetURL: React.FC<SetURLProps> = ({ repoUrl, onChange, onNext, onCancel })
return (
<>
<label
htmlFor='repoUrl'
className='flex flex-col items-start justify-center self-stretch text-text-secondary'
htmlFor="repoUrl"
className="flex flex-col items-start justify-center self-stretch text-text-secondary"
>
<span className='system-sm-semibold'>{t('plugin.installFromGitHub.gitHubRepo')}</span>
<span className="system-sm-semibold">{t('installFromGitHub.gitHubRepo', { ns: 'plugin' })}</span>
</label>
<input
type='url'
id='repoUrl'
name='repoUrl'
type="url"
id="repoUrl"
name="repoUrl"
value={repoUrl}
onChange={e => onChange(e.target.value)}
className='shadows-shadow-xs system-sm-regular flex grow items-center gap-[2px]
className="shadows-shadow-xs system-sm-regular flex grow items-center gap-[2px]
self-stretch overflow-hidden text-ellipsis rounded-lg border border-components-input-border-active
bg-components-input-bg-active p-2 text-components-input-text-filled'
placeholder='Please enter GitHub repo URL'
bg-components-input-bg-active p-2 text-components-input-text-filled"
placeholder="Please enter GitHub repo URL"
/>
<div className='mt-4 flex items-center justify-end gap-2 self-stretch'>
<div className="mt-4 flex items-center justify-end gap-2 self-stretch">
<Button
variant='secondary'
className='min-w-[72px]'
variant="secondary"
className="min-w-[72px]"
onClick={onCancel}
>
{t('plugin.installModal.cancel')}
{t('installModal.cancel', { ns: 'plugin' })}
</Button>
<Button
variant='primary'
className='min-w-[72px]'
variant="primary"
className="min-w-[72px]"
onClick={onNext}
disabled={!repoUrl.trim()}
>
{t('plugin.installModal.next')}
{t('installModal.next', { ns: 'plugin' })}
</Button>
</div>
</>