chore: format
This commit is contained in:
@@ -136,7 +136,9 @@
|
||||
<label
|
||||
for="terminal-id"
|
||||
class={`text-xs ${($settings?.highContrastMode ?? false) ? 'text-gray-800 dark:text-gray-100' : 'text-gray-500'}`}
|
||||
>{$i18n.t('ID')} <span class="opacity-50">({$i18n.t('optional')})</span></label>
|
||||
>{$i18n.t('ID')}
|
||||
<span class="opacity-50">({$i18n.t('optional')})</span></label
|
||||
>
|
||||
</div>
|
||||
<div class="flex flex-1 items-center">
|
||||
<input
|
||||
|
||||
@@ -646,7 +646,7 @@
|
||||
dropzoneElement.addEventListener('drop', onDrop);
|
||||
dropzoneElement.addEventListener('dragleave', onDragLeave);
|
||||
}
|
||||
}
|
||||
};
|
||||
initialize();
|
||||
|
||||
return () => {
|
||||
@@ -659,7 +659,7 @@
|
||||
dropzoneElement.removeEventListener('drop', onDrop);
|
||||
dropzoneElement.removeEventListener('dragleave', onDragLeave);
|
||||
}
|
||||
}
|
||||
};
|
||||
});
|
||||
</script>
|
||||
|
||||
|
||||
@@ -164,7 +164,8 @@
|
||||
$: if (selectedToolIds.length > 0) {
|
||||
const directTerminalServers = ($terminalServers ?? []).filter((t) => !t.id);
|
||||
const terminalIds = directTerminalServers.map(
|
||||
(_, i) => `direct_server:terminal_${($terminalServers ?? []).indexOf(directTerminalServers[i])}`
|
||||
(_, i) =>
|
||||
`direct_server:terminal_${($terminalServers ?? []).indexOf(directTerminalServers[i])}`
|
||||
);
|
||||
const invalidTerminalIds = selectedToolIds.filter(
|
||||
(id) => id.startsWith('direct_server:terminal_') && !terminalIds.includes(id)
|
||||
|
||||
@@ -67,11 +67,11 @@
|
||||
const weeks = Math.floor(days / 7);
|
||||
const years = Math.floor(days / 365);
|
||||
|
||||
if (years > 0) return $i18n.t('{{count}}y', { count: years, context: 'time_ago' });
|
||||
if (weeks > 0) return $i18n.t('{{count}}w', { count: weeks, context: 'time_ago' });
|
||||
if (days > 0) return $i18n.t('{{count}}d', { count: days, context: 'time_ago' });
|
||||
if (hours > 0) return $i18n.t('{{count}}h', { count: hours, context: 'time_ago' });
|
||||
if (minutes > 0) return $i18n.t('{{count}}m', { count: minutes, context: 'time_ago' });
|
||||
if (years > 0) return $i18n.t('{{COUNT}}y', { count: years, context: 'time_ago' });
|
||||
if (weeks > 0) return $i18n.t('{{COUNT}}w', { count: weeks, context: 'time_ago' });
|
||||
if (days > 0) return $i18n.t('{{COUNT}}d', { count: days, context: 'time_ago' });
|
||||
if (hours > 0) return $i18n.t('{{COUNT}}h', { count: hours, context: 'time_ago' });
|
||||
if (minutes > 0) return $i18n.t('{{COUNT}}m', { count: minutes, context: 'time_ago' });
|
||||
return $i18n.t('1m', { context: 'time_ago' });
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user