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
9c1aa924
Unverified
Commit
9c1aa924
authored
Feb 22, 2024
by
Timothy Jaeryang Baek
Committed by
GitHub
Feb 22, 2024
Browse files
Merge branch 'main' into feat/delete-message
parents
a3a0e183
b0f3ae57
Changes
64
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
20 additions
and
5 deletions
+20
-5
src/routes/(app)/prompts/create/+page.svelte
src/routes/(app)/prompts/create/+page.svelte
+14
-2
src/routes/(app)/prompts/edit/+page.svelte
src/routes/(app)/prompts/edit/+page.svelte
+1
-1
src/routes/error/+page.svelte
src/routes/error/+page.svelte
+1
-1
vite.config.ts
vite.config.ts
+4
-1
No files found.
src/routes/(app)/prompts/create/+page.svelte
View file @
9c1aa924
...
...
@@ -50,7 +50,7 @@
return regex.test(inputString);
};
onMount(() => {
onMount(
async
() => {
window.addEventListener('message', async (event) => {
if (
![
...
...
@@ -74,11 +74,23 @@
if (window.opener ?? false) {
window.opener.postMessage('loaded', '*');
}
if (sessionStorage.prompt) {
const prompt = JSON.parse(sessionStorage.prompt);
console.log(prompt);
title = prompt.title;
await tick();
content = prompt.content;
command = prompt.command.at(0) === '/' ? prompt.command.slice(1) : prompt.command;
sessionStorage.removeItem('prompt');
}
});
</script>
<div class="min-h-screen max-h-[100dvh] w-full flex justify-center dark:text-white">
<div class="
py-2.5
flex flex-col justify-between w-full overflow-y-auto">
<div class=" flex flex-col justify-between w-full overflow-y-auto">
<div class="max-w-2xl mx-auto w-full px-3 md:px-0 my-10">
<div class=" text-2xl font-semibold mb-6">My Prompts</div>
...
...
src/routes/(app)/prompts/edit/+page.svelte
View file @
9c1aa924
...
...
@@ -72,7 +72,7 @@
</script>
<div class="min-h-screen max-h-[100dvh] w-full flex justify-center dark:text-white">
<div class="
py-2.5
flex flex-col justify-between w-full overflow-y-auto">
<div class="flex flex-col justify-between w-full overflow-y-auto">
<div class="max-w-2xl mx-auto w-full px-3 md:px-0 my-10">
<div class=" text-2xl font-semibold mb-6">My Prompts</div>
...
...
src/routes/error/+page.svelte
View file @
9c1aa924
...
...
@@ -30,7 +30,7 @@
<br class=" " />
<a
class=" font-semibold underline"
href="https://github.com/o
llama
-webui/o
llama
-webui#how-to-install-"
href="https://github.com/o
pen
-webui/o
pen
-webui#how-to-install-"
target="_blank">See readme.md for instructions</a
>
or
...
...
vite.config.ts
View file @
9c1aa924
...
...
@@ -2,5 +2,8 @@ import { sveltekit } from '@sveltejs/kit/vite';
import
{
defineConfig
}
from
'
vite
'
;
export
default
defineConfig
({
plugins
:
[
sveltekit
()]
plugins
:
[
sveltekit
()],
define
:
{
APP_VERSION
:
JSON
.
stringify
(
process
.
env
.
npm_package_version
)
}
});
Prev
1
2
3
4
Next
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