From bd1871fa2b1bf8a081b43ba9bc85f8ffd46fac46 Mon Sep 17 00:00:00 2001 From: JohnnyB Date: Wed, 8 May 2024 20:12:06 +0100 Subject: server : add themes + favicon (#6848) * Added themes support with two sample themes and a favicon. * Newline * Newline * Newline * Trailing whitespace * Increased opacity for contrast * Increase opacity. Check actions cancelled for some other priority job and I can't seem to manually re-run them, so MOAR OPACITY * Opacity action trigger. Trying to re-trigger the cancelled action. * One more opacity adjustment This Actions pipeline is failing for random issues. * Delete examples/server/themes/buttons_top/completion.js This will be served from the static string built-in to server. * Delete examples/server/themes/buttons_top/index.js This will be served from the static string built-in to server. * Delete examples/server/themes/wild/completion.js This will be served from the static string built-in to server. * Delete examples/server/themes/buttons_top/json-schema-to-grammar.mjs This will be served from the static string built-in to server. * Delete examples/server/themes/wild/index.js This will be served from the static string built-in to server. * Delete examples/server/themes/wild/json-schema-to-grammar.mjs This will be served from the static string built-in to server. * Replaced underscore. --- examples/server/public/favicon.ico | Bin 0 -> 4122 bytes examples/server/themes/README.md | 5 + examples/server/themes/buttons-top/README.md | 7 + examples/server/themes/buttons-top/buttons_top.png | Bin 0 -> 119747 bytes examples/server/themes/buttons-top/favicon.ico | Bin 0 -> 4122 bytes examples/server/themes/buttons-top/index.html | 1057 +++++++++++++++++++ examples/server/themes/wild/README.md | 5 + examples/server/themes/wild/favicon.ico | Bin 0 -> 4122 bytes examples/server/themes/wild/index.html | 1061 ++++++++++++++++++++ examples/server/themes/wild/llama_cpp.png | Bin 0 -> 76484 bytes examples/server/themes/wild/llamapattern.png | Bin 0 -> 259586 bytes examples/server/themes/wild/wild.png | Bin 0 -> 496463 bytes 12 files changed, 2135 insertions(+) create mode 100644 examples/server/public/favicon.ico create mode 100644 examples/server/themes/README.md create mode 100644 examples/server/themes/buttons-top/README.md create mode 100644 examples/server/themes/buttons-top/buttons_top.png create mode 100644 examples/server/themes/buttons-top/favicon.ico create mode 100644 examples/server/themes/buttons-top/index.html create mode 100644 examples/server/themes/wild/README.md create mode 100644 examples/server/themes/wild/favicon.ico create mode 100644 examples/server/themes/wild/index.html create mode 100644 examples/server/themes/wild/llama_cpp.png create mode 100644 examples/server/themes/wild/llamapattern.png create mode 100644 examples/server/themes/wild/wild.png (limited to 'examples/server') diff --git a/examples/server/public/favicon.ico b/examples/server/public/favicon.ico new file mode 100644 index 00000000..89e154a0 Binary files /dev/null and b/examples/server/public/favicon.ico differ diff --git a/examples/server/themes/README.md b/examples/server/themes/README.md new file mode 100644 index 00000000..62e721a2 --- /dev/null +++ b/examples/server/themes/README.md @@ -0,0 +1,5 @@ +# LLaMA.cpp Server Wild Theme + +Simple themes directory of sample "public" directories. To try any of these add --path to your run like `server --path=wild`. + +![image](wild/wild.png) diff --git a/examples/server/themes/buttons-top/README.md b/examples/server/themes/buttons-top/README.md new file mode 100644 index 00000000..808c4cf8 --- /dev/null +++ b/examples/server/themes/buttons-top/README.md @@ -0,0 +1,7 @@ +# LLaMA.cpp Server Buttons Top Theme + +Simple tweaks to the UI. Chat buttons at the top of the page instead of bottom so you can hit Stop instead of chasing it down the page. + +To use simply run server with `--path=themes/buttons_top` + +![image](buttons_top.png) diff --git a/examples/server/themes/buttons-top/buttons_top.png b/examples/server/themes/buttons-top/buttons_top.png new file mode 100644 index 00000000..c5445451 Binary files /dev/null and b/examples/server/themes/buttons-top/buttons_top.png differ diff --git a/examples/server/themes/buttons-top/favicon.ico b/examples/server/themes/buttons-top/favicon.ico new file mode 100644 index 00000000..89e154a0 Binary files /dev/null and b/examples/server/themes/buttons-top/favicon.ico differ diff --git a/examples/server/themes/buttons-top/index.html b/examples/server/themes/buttons-top/index.html new file mode 100644 index 00000000..6af30d30 --- /dev/null +++ b/examples/server/themes/buttons-top/index.html @@ -0,0 +1,1057 @@ + + + + + + + llama.cpp - chat + + + + + + + +
+ +
+
+ + + + diff --git a/examples/server/themes/wild/README.md b/examples/server/themes/wild/README.md new file mode 100644 index 00000000..560bcc81 --- /dev/null +++ b/examples/server/themes/wild/README.md @@ -0,0 +1,5 @@ +# LLaMA.cpp Server Wild Theme + +Simple tweaks to the UI. To use simply run server with `--path=themes/wild` + +![image](wild.png) diff --git a/examples/server/themes/wild/favicon.ico b/examples/server/themes/wild/favicon.ico new file mode 100644 index 00000000..89e154a0 Binary files /dev/null and b/examples/server/themes/wild/favicon.ico differ diff --git a/examples/server/themes/wild/index.html b/examples/server/themes/wild/index.html new file mode 100644 index 00000000..772e716c --- /dev/null +++ b/examples/server/themes/wild/index.html @@ -0,0 +1,1061 @@ + + + + + + + llama.cpp - chat + + + + + + + +
+ +
+
+ + + + diff --git a/examples/server/themes/wild/llama_cpp.png b/examples/server/themes/wild/llama_cpp.png new file mode 100644 index 00000000..bad1dc9f Binary files /dev/null and b/examples/server/themes/wild/llama_cpp.png differ diff --git a/examples/server/themes/wild/llamapattern.png b/examples/server/themes/wild/llamapattern.png new file mode 100644 index 00000000..2a159ce6 Binary files /dev/null and b/examples/server/themes/wild/llamapattern.png differ diff --git a/examples/server/themes/wild/wild.png b/examples/server/themes/wild/wild.png new file mode 100644 index 00000000..46ffa0f3 Binary files /dev/null and b/examples/server/themes/wild/wild.png differ -- cgit v1.2.3