chore: replace prettier with oxfmt (#8676)
This commit is contained in:
parent
9ee73d57ef
commit
41abaffc6e
1008 changed files with 4046 additions and 4027 deletions
|
|
@ -22,8 +22,8 @@ export function ApiTokenEmptyState(props: Props) {
|
|||
className={`mx-auto flex w-full items-center justify-center rounded-xs border border-subtle bg-surface-2 px-16 py-10 lg:w-3/4`}
|
||||
>
|
||||
<div className="flex w-full flex-col items-center text-center">
|
||||
<img src={emptyApiTokens} className="w-52 sm:w-60 object-contain" alt="empty" />
|
||||
<h6 className="mb-3 mt-6 text-18 font-semibold sm:mt-8">No API tokens</h6>
|
||||
<img src={emptyApiTokens} className="w-52 object-contain sm:w-60" alt="empty" />
|
||||
<h6 className="mt-6 mb-3 text-18 font-semibold sm:mt-8">No API tokens</h6>
|
||||
<p className="mb-7 text-tertiary sm:mb-8">
|
||||
Create API tokens for safe and easy data sharing with external apps, maintaining control and security.
|
||||
</p>
|
||||
|
|
|
|||
|
|
@ -164,7 +164,7 @@ export function CreateApiTokenForm(props: Props) {
|
|||
onChange={onChange}
|
||||
hasError={Boolean(errors.description)}
|
||||
placeholder={t("description")}
|
||||
className="w-full text-14 resize-none min-h-24"
|
||||
className="min-h-24 w-full resize-none text-14"
|
||||
/>
|
||||
)}
|
||||
/>
|
||||
|
|
@ -181,7 +181,7 @@ export function CreateApiTokenForm(props: Props) {
|
|||
customButton={
|
||||
<div
|
||||
className={cn(
|
||||
"h-7 flex items-center gap-2 rounded-sm border-[0.5px] border-strong px-2 py-0.5",
|
||||
"flex h-7 items-center gap-2 rounded-sm border-[0.5px] border-strong px-2 py-0.5",
|
||||
{
|
||||
"text-placeholder": neverExpires,
|
||||
}
|
||||
|
|
@ -237,7 +237,7 @@ export function CreateApiTokenForm(props: Props) {
|
|||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div className="px-5 py-4 flex items-center justify-between gap-2 border-t-[0.5px] border-subtle">
|
||||
<div className="flex items-center justify-between gap-2 border-t-[0.5px] border-subtle px-5 py-4">
|
||||
<div className="flex cursor-pointer items-center gap-1.5" onClick={toggleNeverExpires}>
|
||||
<div className="flex cursor-pointer items-center justify-center">
|
||||
<ToggleSwitch value={neverExpires} onChange={() => {}} size="sm" />
|
||||
|
|
|
|||
|
|
@ -39,17 +39,17 @@ export function GeneratedTokenDetails(props: Props) {
|
|||
return (
|
||||
<div className="w-full p-5">
|
||||
<div className="w-full space-y-3 text-wrap">
|
||||
<h3 className="text-16 font-medium leading-6 text-primary">{t("workspace_settings.key_created")}</h3>
|
||||
<h3 className="text-16 leading-6 font-medium text-primary">{t("workspace_settings.key_created")}</h3>
|
||||
<p className="text-13 text-placeholder">{t("workspace_settings.copy_key")}</p>
|
||||
</div>
|
||||
<button
|
||||
type="button"
|
||||
onClick={() => copyApiToken(tokenDetails.token ?? "")}
|
||||
className="mt-4 flex truncate w-full items-center justify-between rounded-md border-[0.5px] border-subtle px-3 py-2 text-13 font-medium outline-none"
|
||||
className="mt-4 flex w-full items-center justify-between truncate rounded-md border-[0.5px] border-subtle px-3 py-2 text-13 font-medium outline-none"
|
||||
>
|
||||
<span className="truncate pr-2">{tokenDetails.token}</span>
|
||||
<Tooltip tooltipContent="Copy secret key" isMobile={isMobile}>
|
||||
<CopyIcon className="h-4 w-4 text-placeholder flex-shrink-0" />
|
||||
<CopyIcon className="h-4 w-4 flex-shrink-0 text-placeholder" />
|
||||
</Tooltip>
|
||||
</button>
|
||||
<div className="mt-6 flex items-center justify-between">
|
||||
|
|
|
|||
|
|
@ -52,7 +52,7 @@ export function ApiTokenListItem(props: Props) {
|
|||
</div>
|
||||
<div className="mt-1 flex w-full flex-col justify-center">
|
||||
{token.description.trim() !== "" && (
|
||||
<p className="mb-1 max-w-[70%] break-words text-13">{token.description}</p>
|
||||
<p className="mb-1 max-w-[70%] text-13 break-words">{token.description}</p>
|
||||
)}
|
||||
<p className="mb-1 text-11 leading-6 text-placeholder">
|
||||
{token.is_active
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue