chore: merge in site message

This commit is contained in:
Joel
2026-03-10 15:32:30 +08:00
796 changed files with 13360 additions and 3589 deletions

View File

@ -96,7 +96,7 @@ const GenericTable: FC<GenericTableProps> = ({
})
// If the last configured row has content, append a trailing empty row
const lastHasContent = !isEmptyRow(data[data.length - 1])
const lastHasContent = !isEmptyRow(data.at(-1))
if (lastHasContent)
rows.push({ row: { ...emptyRowData }, dataIndex: null, isVirtual: true })
@ -163,7 +163,7 @@ const GenericTable: FC<GenericTableProps> = ({
// Ghost/inline style: looks like plain text until focus/hover
'h-6 rounded-none border-0 bg-transparent px-0 py-0 shadow-none',
'hover:border-transparent hover:bg-transparent focus:border-transparent focus:bg-transparent',
'system-sm-regular text-text-secondary placeholder:text-text-quaternary',
'text-text-secondary system-sm-regular placeholder:text-text-quaternary',
)}
/>
)
@ -212,7 +212,7 @@ const GenericTable: FC<GenericTableProps> = ({
return (
<div className="rounded-lg border border-divider-regular">
{showHeader && (
<div className="system-xs-medium-uppercase flex h-7 items-center leading-7 text-text-tertiary">
<div className="flex h-7 items-center leading-7 text-text-tertiary system-xs-medium-uppercase">
{columns.map((column, index) => (
<div
key={column.key}
@ -285,7 +285,7 @@ const GenericTable: FC<GenericTableProps> = ({
return (
<div className={className}>
<div className="mb-3 flex items-center justify-between">
<h4 className="system-sm-semibold-uppercase text-text-secondary">{title}</h4>
<h4 className="text-text-secondary system-sm-semibold-uppercase">{title}</h4>
</div>
{showPlaceholder

View File

@ -119,7 +119,7 @@ const Panel: FC<NodePanelProps<WebhookTriggerNodeType>> = ({
onClick={() => {
copy(inputs.webhook_debug_url || '')
setDebugUrlCopied(true)
setTimeout(() => setDebugUrlCopied(false), 2000)
setTimeout(setDebugUrlCopied, 2000, false)
}}
>
<div className="mt-0.5 w-0.5 bg-divider-regular" style={{ height: '28px' }}></div>
@ -134,7 +134,7 @@ const Panel: FC<NodePanelProps<WebhookTriggerNodeType>> = ({
</div>
</Tooltip>
{isPrivateOrLocalAddress(inputs.webhook_debug_url) && (
<div className="system-xs-regular mt-1 px-0 py-[2px] text-text-warning">
<div className="mt-1 px-0 py-[2px] text-text-warning system-xs-regular">
{t(`${i18nPrefix}.debugUrlPrivateAddressWarning`, { ns: 'workflow' })}
</div>
)}
@ -192,7 +192,7 @@ const Panel: FC<NodePanelProps<WebhookTriggerNodeType>> = ({
<Field title={t(`${i18nPrefix}.responseConfiguration`, { ns: 'workflow' })}>
<div className="space-y-3">
<div className="flex items-center justify-between">
<label className="system-sm-medium text-text-tertiary">
<label className="text-text-tertiary system-sm-medium">
{t(`${i18nPrefix}.statusCode`, { ns: 'workflow' })}
</label>
<InputNumber
@ -210,7 +210,7 @@ const Panel: FC<NodePanelProps<WebhookTriggerNodeType>> = ({
/>
</div>
<div>
<label className="system-sm-medium mb-2 block text-text-tertiary">
<label className="mb-2 block text-text-tertiary system-sm-medium">
{t(`${i18nPrefix}.responseBody`, { ns: 'workflow' })}
</label>
<ParagraphInput

View File

@ -29,12 +29,12 @@ const VarItem: FC<VarItemProps> = ({ prefix, name, type }) => {
return (
<div className="py-1">
<div className="flex items-center leading-[18px]">
<span className="code-sm-regular text-text-tertiary">
<span className="text-text-tertiary code-sm-regular">
{prefix}
.
</span>
<span className="code-sm-semibold text-text-secondary">{name}</span>
<span className="system-xs-regular ml-2 text-text-tertiary">{type}</span>
<span className="text-text-secondary code-sm-semibold">{name}</span>
<span className="ml-2 text-text-tertiary system-xs-regular">{type}</span>
</div>
</div>
)
@ -43,7 +43,7 @@ const VarItem: FC<VarItemProps> = ({ prefix, name, type }) => {
export const OutputVariablesContent: FC<OutputVariablesContentProps> = ({ variables = [] }) => {
if (!variables || variables.length === 0) {
return (
<div className="system-sm-regular py-2 text-text-tertiary">
<div className="py-2 text-text-tertiary system-sm-regular">
No output variables
</div>
)
@ -51,7 +51,7 @@ export const OutputVariablesContent: FC<OutputVariablesContentProps> = ({ variab
// Sort variables by label to match the table display order: param → header → body
// Unknown labels are placed at the end (order value 999)
const sortedVariables = [...variables].sort((a, b) => {
const sortedVariables = variables.toSorted((a, b) => {
const labelA = typeof a.label === 'string' ? a.label : ''
const labelB = typeof b.label === 'string' ? b.label : ''
return (LABEL_ORDER[labelA as keyof typeof LABEL_ORDER] || 999)