refac
This commit is contained in:
1 parent
a7fbf66269
commit
aedb6bef4e
208 files changed
+1056
-1066
No files matched your search
@@ -98,7 +98,7 @@
|
||||
<Modal size="lg" bind:show>
|
||||
<div>
|
||||
<div class=" flex justify-between dark:text-gray-300 px-4.5 pt-3 pb-2">
|
||||
<div class=" text-lg font-medium self-center flex items-center">
|
||||
<div class=" text-lg font-normal self-center flex items-center">
|
||||
{#if citation?.source?.name}
|
||||
{@const document = mergedDocuments?.[0]}
|
||||
{#if document?.metadata?.file_id || document.source?.url?.includes('http')}
|
||||
@@ -148,7 +148,7 @@
|
||||
<div class="flex flex-col w-full gap-2">
|
||||
{#if document.metadata?.parameters}
|
||||
<div>
|
||||
<div class="text-sm font-medium dark:text-gray-300 mb-1">
|
||||
<div class="text-sm font-normal dark:text-gray-300 mb-1">
|
||||
{$i18n.t('Parameters')}
|
||||
</div>
|
||||
|
||||
@@ -159,7 +159,7 @@
|
||||
|
||||
<div>
|
||||
<div
|
||||
class=" text-sm font-medium dark:text-gray-300 flex items-center gap-2 w-fit mb-1"
|
||||
class=" text-sm font-normal dark:text-gray-300 flex items-center gap-2 w-fit mb-1"
|
||||
>
|
||||
{#if document.source?.url?.includes('http')}
|
||||
{@const snippetUrl = getTextFragmentUrl(document)}
|
||||
@@ -190,7 +190,7 @@
|
||||
|
||||
{#if typeof percentage === 'number'}
|
||||
<span
|
||||
class={`px-1 rounded-sm font-medium ${getRelevanceColor(percentage)}`}
|
||||
class={`px-1 rounded-sm font-normal ${getRelevanceColor(percentage)}`}
|
||||
>
|
||||
{percentage.toFixed(2)}%
|
||||
</span>
|
||||
|
||||
@@ -40,7 +40,7 @@
|
||||
<Modal size="lg" bind:show>
|
||||
<div>
|
||||
<div class=" flex justify-between dark:text-gray-300 px-5 pt-4 pb-2">
|
||||
<div class=" text-lg font-medium self-center capitalize">
|
||||
<div class=" text-lg font-normal self-center capitalize">
|
||||
{$i18n.t('Citations')}
|
||||
</div>
|
||||
<button
|
||||
@@ -66,7 +66,7 @@
|
||||
selectedCitation = citation;
|
||||
}}
|
||||
>
|
||||
<div class=" font-medium">
|
||||
<div class=" font-normal">
|
||||
{idx + 1}.
|
||||
</div>
|
||||
<div
|
||||
|
||||
Reference in new issue
Block a user