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

@ -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);