Unverified Commit c869652e authored by Timothy Jaeryang Baek's avatar Timothy Jaeryang Baek Committed by GitHub
Browse files

Merge pull request #4322 from open-webui/dev

0.3.12
parents d3146d20 240a3014
......@@ -509,6 +509,7 @@
"Scan": "Quét tài liệu",
"Scan complete!": "Quét hoàn tất!",
"Scan for documents from {{path}}": "Quét tài liệu từ đường dẫn: {{path}}",
"Scroll to bottom when switching between branches": "",
"Search": "Tìm kiếm",
"Search a model": "Tìm model",
"Search Chats": "Tìm kiếm các cuộc Chat",
......
......@@ -15,7 +15,7 @@
"Account": "账号",
"Account Activation Pending": "账号待激活",
"Accurate information": "提供的信息很准确",
"Actions": "",
"Actions": "自动化",
"Active Users": "当前在线用户",
"Add": "添加",
"Add a model id": "添加一个模型 ID",
......@@ -28,7 +28,7 @@
"Add Memory": "添加记忆",
"Add message": "添加消息",
"Add Model": "添加模型",
"Add Tag": "",
"Add Tag": "添加标签",
"Add Tags": "添加标签",
"Add User": "添加用户",
"Adjusting these settings will apply changes universally to all users.": "调整这些设置将会对所有用户应用更改。",
......@@ -375,7 +375,7 @@
"Memory deleted successfully": "记忆删除成功",
"Memory updated successfully": "记忆更新成功",
"Messages you send after creating your link won't be shared. Users with the URL will be able to view the shared chat.": "创建链接后发送的消息不会被共享。具有 URL 的用户将能够查看共享对话。",
"Min P": "",
"Min P": "Min P",
"Minimum Score": "最低分",
"Mirostat": "Mirostat",
"Mirostat Eta": "Mirostat Eta",
......@@ -509,6 +509,7 @@
"Scan": "立即扫描",
"Scan complete!": "扫描完成!",
"Scan for documents from {{path}}": "从 {{path}} 扫描文档",
"Scroll to bottom when switching between branches": "",
"Search": "搜索",
"Search a model": "搜索模型",
"Search Chats": "搜索对话",
......@@ -621,7 +622,7 @@
"To access the WebUI, please reach out to the administrator. Admins can manage user statuses from the Admin Panel.": "请联系管理员以访问。管理员可以在后台管理面板中管理用户状态。",
"To add documents here, upload them to the \"Documents\" workspace first.": "要在此处添加文档,请先将它们上传到工作空间中的“文档”内。",
"to chat input.": "到对话输入。",
"To select actions here, add them to the \"Functions\" workspace first.": "",
"To select actions here, add them to the \"Functions\" workspace first.": "要在这里选择自动化,请先将它们添加到工作空间中的“函数”。",
"To select filters here, add them to the \"Functions\" workspace first.": "要在这里选择过滤器,请先将它们添加到工作空间中的“函数”。",
"To select toolkits here, add them to the \"Tools\" workspace first.": "要在这里选择工具包,请先将它们添加到工作空间中的“工具”。",
"Today": "今天",
......
This diff is collapsed.
......@@ -42,6 +42,9 @@ export const showArchivedChats = writable(false);
export const showChangelog = writable(false);
export const showCallOverlay = writable(false);
export const scrollPaginationEnabled = writable(false);
export const currentChatPage = writable(1);
export type Model = OpenAIModel | OllamaModel;
type BaseModel = {
......@@ -149,6 +152,7 @@ type Config = {
enable_web_search?: boolean;
enable_image_generation: boolean;
enable_admin_export: boolean;
enable_admin_chat_access: boolean;
enable_community_sharing: boolean;
};
oauth: {
......
......@@ -90,6 +90,11 @@ export const revertSanitizedResponseContent = (content: string) => {
return content.replaceAll('&lt;', '<').replaceAll('&gt;', '>');
};
export function unescapeHtml(html: string) {
const doc = new DOMParser().parseFromString(html, 'text/html');
return doc.documentElement.textContent;
}
export const capitalizeFirstLetter = (string) => {
return string.charAt(0).toUpperCase() + string.slice(1);
};
......
......@@ -307,7 +307,7 @@
<td class="px-3 py-2 text-right">
<div class="flex justify-end w-full">
{#if user.role !== 'admin'}
{#if $config.features.enable_admin_chat_access && user.role !== 'admin'}
<Tooltip content={$i18n.t('Chats')}>
<button
class="self-center w-fit text-sm px-2 py-2 hover:bg-black/5 dark:hover:bg-white/5 rounded-xl"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment