feat: rename to open-webui

This commit is contained in:
Timothy J. Baek 2024-02-16 23:04:37 -08:00
parent f4000f4b68
commit acf5c938ef
10 changed files with 37 additions and 32 deletions

View file

@ -54,7 +54,7 @@
</div>
{#if modelfile.user}
<div class="mt-0.5 text-sm font-normal text-gray-500 dark:text-gray-500">
By <a href="https://ollamahub.com/m/{modelfile.user.username}"
By <a href="https://openwebui.com/m/{modelfile.user.username}"
>{modelfile.user.name ? modelfile.user.name : `@${modelfile.user.username}`}</a
>
</div>

View file

@ -17,7 +17,7 @@
show = false;
}}
>
Share to OllamaHub
Share to OpenWebUI Community
</button>
<div class="flex justify-center space-x-1 mt-1.5">

View file

@ -27,8 +27,8 @@
const chat = (await getChatById(localStorage.token, $chatId)).chat;
console.log('share', chat);
toast.success('Redirecting you to OllamaHub');
const url = 'https://ollamahub.com';
toast.success('Redirecting you to OpenWebUI Community');
const url = 'https://openwebui.com';
// const url = 'http://localhost:5173';
const tab = await window.open(`${url}/chats/upload`, '_blank');

View file

@ -1,6 +1,6 @@
import { dev } from '$app/environment';
export const WEBUI_NAME = 'Ollama Web UI';
export const WEBUI_NAME = 'Open Web UI';
export const WEBUI_BASE_URL = dev ? `http://${location.hostname}:8080` : ``;
export const WEBUI_API_BASE_URL = `${WEBUI_BASE_URL}/api/v1`;

View file

@ -35,9 +35,9 @@
};
const shareModelfile = async (modelfile) => {
toast.success('Redirecting you to OllamaHub');
toast.success('Redirecting you to OpenWebUI Community');
const url = 'https://ollamahub.com';
const url = 'https://openwebui.com';
const tab = await window.open(`${url}/modelfiles/create`, '_blank');
window.addEventListener(
@ -348,11 +348,11 @@
</div>
<div class=" my-16">
<div class=" text-2xl font-semibold mb-6">Made by OllamaHub Community</div>
<div class=" text-2xl font-semibold mb-6">Made by OpenWebUI Community</div>
<a
class=" flex space-x-4 cursor-pointer w-full mb-3"
href="https://ollamahub.com/"
href="https://openwebui.com/"
target="_blank"
>
<div class=" self-center w-10">

View file

@ -212,9 +212,13 @@ SYSTEM """${system}"""`.replace(/^\s*\n/gm, '');
onMount(() => {
window.addEventListener('message', async (event) => {
if (
!['https://ollamahub.com', 'https://www.ollamahub.com', 'http://localhost:5173'].includes(
event.origin
)
![
'https://ollamahub.com',
'https://www.ollamahub.com',
'https://openwebui.com',
'https://www.openwebui.com',
'http://localhost:5173'
].includes(event.origin)
)
return;
const modelfile = JSON.parse(event.data);
@ -474,7 +478,7 @@ SYSTEM """${system}"""`.replace(/^\s*\n/gm, '');
or
<a
class=" text-gray-500 dark:text-gray-300 font-medium"
href="https://ollamahub.com"
href="https://openwebui.com"
target="_blank"
>
Click here to check other modelfiles.

View file

@ -12,9 +12,9 @@
let query = '';
const sharePrompt = async (prompt) => {
toast.success('Redirecting you to OllamaHub');
toast.success('Redirecting you to OpenWebUI Community');
const url = 'https://ollamahub.com';
const url = 'https://openwebui.com';
const tab = await window.open(`${url}/prompts/create`, '_blank');
window.addEventListener(
@ -272,11 +272,11 @@
</div>
<div class=" my-16">
<div class=" text-2xl font-semibold mb-6">Made by OllamaHub Community</div>
<div class=" text-2xl font-semibold mb-6">Made by OpenWebUI Community</div>
<a
class=" flex space-x-4 cursor-pointer w-full mb-3"
href="https://ollamahub.com/?type=prompts"
href="https://openwebui.com/?type=prompts"
target="_blank"
>
<div class=" self-center w-10">

View file

@ -53,9 +53,13 @@
onMount(() => {
window.addEventListener('message', async (event) => {
if (
!['https://ollamahub.com', 'https://www.ollamahub.com', 'http://localhost:5173'].includes(
event.origin
)
![
'https://ollamahub.com',
'https://www.ollamahub.com',
'https://openwebui.com',
'https://www.openwebui.com',
'http://localhost:5173'
].includes(event.origin)
)
return;
const prompt = JSON.parse(event.data);