chore(web): new lint setup (#30020)

Co-authored-by: yyh <yuanyouhuilyz@gmail.com>
This commit is contained in:
Stephen Zhou
2025-12-23 16:58:55 +08:00
committed by GitHub
parent 9701a2994b
commit f2842da397
3356 changed files with 85046 additions and 81278 deletions

View File

@ -1,10 +1,10 @@
'use client'
import React, { useEffect, useRef, useState } from 'react'
import { useTranslation } from 'react-i18next'
import {
RiQrCodeLine,
} from '@remixicon/react'
import { QRCodeCanvas as QRCode } from 'qrcode.react'
import React, { useEffect, useRef, useState } from 'react'
import { useTranslation } from 'react-i18next'
import ActionButton from '@/app/components/base/action-button'
import Tooltip from '@/app/components/base/tooltip'
@ -54,21 +54,21 @@ const ShareQRCode = ({ content }: Props) => {
<Tooltip
popupContent={t(`${prefixEmbedded}`) || ''}
>
<div className='relative h-6 w-6' onClick={toggleQRCode}>
<div className="relative h-6 w-6" onClick={toggleQRCode}>
<ActionButton>
<RiQrCodeLine className='h-4 w-4' />
<RiQrCodeLine className="h-4 w-4" />
</ActionButton>
{isShow && (
<div
ref={qrCodeRef}
className='absolute -right-8 top-8 z-10 flex w-[232px] flex-col items-center rounded-lg bg-components-panel-bg p-4 shadow-xs'
className="absolute -right-8 top-8 z-10 flex w-[232px] flex-col items-center rounded-lg bg-components-panel-bg p-4 shadow-xs"
onClick={handlePanelClick}
>
<QRCode size={160} value={content} className='mb-2' />
<div className='system-xs-regular flex items-center'>
<div className='text-text-tertiary'>{t('appOverview.overview.appInfo.qrcode.scan')}</div>
<div className='text-text-tertiary'>·</div>
<div className='cursor-pointer text-text-accent-secondary' onClick={downloadQR}>{t('appOverview.overview.appInfo.qrcode.download')}</div>
<QRCode size={160} value={content} className="mb-2" />
<div className="system-xs-regular flex items-center">
<div className="text-text-tertiary">{t('appOverview.overview.appInfo.qrcode.scan')}</div>
<div className="text-text-tertiary">·</div>
<div className="cursor-pointer text-text-accent-secondary" onClick={downloadQR}>{t('appOverview.overview.appInfo.qrcode.download')}</div>
</div>
</div>
)}