diff --git a/frontend/src/assets/calendar.svg b/frontend/src/assets/calendar.svg new file mode 100644 index 00000000..d0f67173 --- /dev/null +++ b/frontend/src/assets/calendar.svg @@ -0,0 +1,4 @@ + + + + diff --git a/frontend/src/assets/disc.svg b/frontend/src/assets/disc.svg new file mode 100644 index 00000000..3ea3d451 --- /dev/null +++ b/frontend/src/assets/disc.svg @@ -0,0 +1,3 @@ + + + diff --git a/frontend/src/components/Chunks.tsx b/frontend/src/components/Chunks.tsx index b7d97080..e464b9d0 100644 --- a/frontend/src/components/Chunks.tsx +++ b/frontend/src/components/Chunks.tsx @@ -533,14 +533,14 @@ const Chunks: React.FC = ({ {loading ? ( diff --git a/frontend/src/locale/en.json b/frontend/src/locale/en.json index 2ded6ea4..d0d1b4b3 100644 --- a/frontend/src/locale/en.json +++ b/frontend/src/locale/en.json @@ -62,6 +62,8 @@ "noData": "No existing Sources", "searchPlaceholder": "Search...", "addNew": "Add New", + "addSource": "Add Source", + "addChunk": "Add Chunk", "preLoaded": "Pre-loaded", "private": "Private", "sync": "Sync", diff --git a/frontend/src/locale/es.json b/frontend/src/locale/es.json index f2a8b5ef..64e204dd 100644 --- a/frontend/src/locale/es.json +++ b/frontend/src/locale/es.json @@ -62,6 +62,8 @@ "noData": "No hay fuentes existentes", "searchPlaceholder": "Buscar...", "addNew": "Agregar Nuevo", + "addSource": "Agregar Fuente", + "addChunk": "Agregar Fragmento", "preLoaded": "Precargado", "private": "Privado", "sync": "Sincronizar", diff --git a/frontend/src/locale/jp.json b/frontend/src/locale/jp.json index dc70e704..5b93d182 100644 --- a/frontend/src/locale/jp.json +++ b/frontend/src/locale/jp.json @@ -62,6 +62,8 @@ "noData": "既存のソースがありません", "searchPlaceholder": "検索...", "addNew": "新規追加", + "addSource": "ソースを追加", + "addChunk": "チャンクを追加", "preLoaded": "プリロード済み", "private": "プライベート", "sync": "同期", diff --git a/frontend/src/locale/ru.json b/frontend/src/locale/ru.json index efd4140a..6a83f9a3 100644 --- a/frontend/src/locale/ru.json +++ b/frontend/src/locale/ru.json @@ -62,6 +62,8 @@ "noData": "Нет существующих источников", "searchPlaceholder": "Поиск...", "addNew": "добавить новый", + "addSource": "Добавить источник", + "addChunk": "Добавить фрагмент", "preLoaded": "Предзагруженный", "private": "Частный", "sync": "Синхронизация", diff --git a/frontend/src/locale/zh-TW.json b/frontend/src/locale/zh-TW.json index 3a14df3f..8c734ff3 100644 --- a/frontend/src/locale/zh-TW.json +++ b/frontend/src/locale/zh-TW.json @@ -62,6 +62,8 @@ "noData": "沒有現有的來源", "searchPlaceholder": "搜尋...", "addNew": "新增文件", + "addSource": "新增來源", + "addChunk": "新增區塊", "preLoaded": "預載入", "private": "私人", "sync": "同步", diff --git a/frontend/src/locale/zh.json b/frontend/src/locale/zh.json index 61d0e973..eb216c86 100644 --- a/frontend/src/locale/zh.json +++ b/frontend/src/locale/zh.json @@ -62,6 +62,8 @@ "noData": "没有现有的来源", "searchPlaceholder": "搜索...", "addNew": "添加新文档", + "addSource": "添加来源", + "addChunk": "添加块", "preLoaded": "预加载", "private": "私有", "sync": "同步", diff --git a/frontend/src/settings/Sources.tsx b/frontend/src/settings/Sources.tsx index c1aa079a..3f867966 100644 --- a/frontend/src/settings/Sources.tsx +++ b/frontend/src/settings/Sources.tsx @@ -11,6 +11,8 @@ import NoFilesDarkIcon from '../assets/no-files-dark.svg'; import Trash from '../assets/red-trash.svg'; import SyncIcon from '../assets/sync.svg'; import ThreeDots from '../assets/three-dots.svg'; +import CalendarIcon from '../assets/calendar.svg'; +import DiscIcon from '../assets/disc.svg'; import ContextMenu, { MenuOption } from '../components/ContextMenu'; import Pagination from '../components/DocumentPagination'; import DropdownMenu from '../components/DropdownMenu'; @@ -304,13 +306,13 @@ export default function Sources({
@@ -337,13 +339,13 @@ export default function Sources({ return (
-
+

-
-
- {document.date ? formatDate(document.date) : ''} -
-
- - {t('settings.sources.tokenUsage')}: +
+
+ + + {document.date ? formatDate(document.date) : ''} - +
+
+ + {document.tokens ? formatTokens(+document.tokens) : ''}