Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
chenpangpang
open-webui
Commits
8e0638f6
Unverified
Commit
8e0638f6
authored
Oct 20, 2023
by
Timothy Jaeryang Baek
Committed by
GitHub
Oct 20, 2023
Browse files
Merge pull request #5 from ollama-webui/dev
toggle suggestions feature added
parents
bc0a2a5d
dfd99267
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
7 deletions
+6
-7
src/routes/+page.svelte
src/routes/+page.svelte
+6
-7
No files found.
src/routes/+page.svelte
View file @
8e0638f6
<script lang="ts">
<script lang="ts">
import toast from 'svelte-french-toast';
import toast from 'svelte-french-toast';
import Navbar from '$lib/components/layout/Navbar.svelte';
import { openDB, deleteDB } from 'idb';
import { v4 as uuidv4 } from 'uuid';
import { v4 as uuidv4 } from 'uuid';
import { marked } from 'marked';
import { marked } from 'marked';
import fileSaver from 'file-saver';
import fileSaver from 'file-saver';
const { saveAs } = fileSaver;
const { saveAs } = fileSaver;
import hljs from 'highlight.js';
import hljs from 'highlight.js';
import 'highlight.js/styles/dark.min.css';
import 'highlight.js/styles/dark.min.css';
import type { PageData } from './$types';
import type { PageData } from './$types';
import { ENDPOINT as SERVER_ENDPOINT } from '$lib/contants';
import { onMount, tick } from 'svelte';
import { onMount, tick } from 'svelte';
import { page } from '$app/stores';
const suggestions = $page.url.searchParams.get('suggestions');
import { openDB, deleteDB } from 'idb';
import Navbar from '$lib/components/layout/Navbar.svelte';
import { ENDPOINT as SERVER_ENDPOINT } from '$lib/contants';
import SettingsModal from '$lib/components/chat/SettingsModal.svelte';
import SettingsModal from '$lib/components/chat/SettingsModal.svelte';
export let data: PageData;
export let data: PageData;
...
@@ -637,7 +636,7 @@
...
@@ -637,7 +636,7 @@
<div class=" bg-gradient-to-t from-gray-900 pt-5">
<div class=" bg-gradient-to-t from-gray-900 pt-5">
<div class="max-w-3xl p-2.5 -mb-0.5 mx-auto inset-x-0">
<div class="max-w-3xl p-2.5 -mb-0.5 mx-auto inset-x-0">
{#if messages.length == 0}
{#if messages.length == 0
&& suggestions !== 'false'
}
<div class=" grid sm:grid-cols-2 gap-2.5 mb-4 md:p-2 text-left">
<div class=" grid sm:grid-cols-2 gap-2.5 mb-4 md:p-2 text-left">
<button
<button
class=" flex justify-between w-full px-4 py-2.5 bg-gray-800 hover:bg-gray-700 outline outline-1 outline-gray-600 rounded-lg transition group"
class=" flex justify-between w-full px-4 py-2.5 bg-gray-800 hover:bg-gray-700 outline outline-1 outline-gray-600 rounded-lg transition group"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment