Commit Graph

73 Commits

Author SHA1 Message Date
RossAsscends
6793db967f fixed advanced_div and styled notes links
advanced div changed to grid layout

notes links "?" styled as circles
2023-03-04 17:26:20 +09:00
RossAsscends
5bde642f5b Moved AutoFeatures Out of getSettings
Originally both AutoConnect and AutoLoadChat features were built into the getSettings function, but this caused unreliable functionality on Firefox and Chrome.

Instead I made them their own functions to call separately once everything else in the loading process had finished.
2023-03-04 07:50:15 +09:00
RossAsscends
507cddcba7 swapped auto-function execution order
testing in firefox showed connecting to API first caused a very small amount of lag which caused it to skip the auto-load-chat feature.

swapping the order and placing auto-connect at the end of getSettings fixed this.
2023-03-04 05:40:13 +09:00
RossAsscends
7ce52046fd New toggle features: Auto-Connect & Auto-Load-Chat
1. new function - Auto-connect to API
2. new function - Auto-load last character/chat

Both of these have toggles in the right menu at the bottom in a "Power user options" section.

Both only load if settings.json has a pre-defined setting for them. (won't fire on first load after install)
2023-03-04 04:00:40 +09:00
RossAsscends
b856e2f566 A little error-proofing to chat loading and history viewing
1. revised the new date format (reformatted to be a function so it would return new dates each time called)

2. re-added new date format functionality as I had previously rolled it back while debugging the avatar loading issues discovered in last push.

3. resolved some issues related to loading past chats for bots with no chat save files. Usually this wouldn't happen, as a new (or previous) chat is loaded each time the character is selected. But in cases where the files are deleted after being created, the chat history loading screen would remain in a 'loading.svg' loop. I added errorhandling to avoid this, and to kick GetAllCharaChats() from trying to read empty arrays.

4. increased potential size of past chats popup box
2023-03-03 11:36:57 +09:00
RossAsscends
751647461e Fixed broken character avatar updates + settings panel tooltips
1. Due to a mistake on my end character avatars were not updating real time. This has been fixed.

2. added some tooltips to icons and buttons on the right nav panel.

3. resized the New Character and Import Character buttons
2023-03-03 07:26:21 +09:00
RossAsscends
cfa642507f Chat Filename Humanization + Larger Past Chats Box
1. Replaced all Date.now() instances with a humanized ISO8601 timestamp that is easily readable by users.

This has a seamless effect on the  embedded timestamping of chat mesages. Old chat files can still be edited (messages deleted), and continued.

Character PNG files get updated with the new date format, and this will be reflected in github but there is no functional change to the user.

2. Added character name to the front of all newly saved/imported chat files. Old chats will retain their original filename unless re-imported.

With these two changes, the new chat filenames are as such:

"Aqua - 2023-3-3 @03h 08m 36s 948ms.jsonl"

(I would like to make it smaller, perhaps by removing the milliseconds. Let me know if this is possible, or if it would introduce potential overwrites if users make/update files within the same second.)

3. Increased the size of the 'view past chats' popup box to max 800px so accommodate the new larger filenames.
2023-03-03 03:48:30 +09:00
RossAsscends
7b3a6135f7 small alignment changes 2023-03-02 04:32:15 +09:00
RossAsscends
c4a30056a2 fixed checkboxes
unified right-nav checkbox to match the delete-checkbox style
2023-03-02 04:03:27 +09:00
RossAsscends
c1e967021f cleaned up CSS
ran the CSS through a few validators and beautifiers. redundant styles removed, errors fixed.
2023-03-02 01:51:21 +09:00
RossAsscends
8e2ffa3a01 right nav header changes
changed the right nav header tabs from "character" and "settings" to emojis that represent each respectively. This was to allow the selected character's name to have a larger display footprint for mobile screens.
2023-03-01 20:03:12 +09:00
RossAsscends
dac14985f4 fixed bug with ctrl+enter
previously the keydown eventlistener for  'enter' would trigger even though ctrl was pressed, so i changed it so it doesn't trigger when ctrl is pressed (previously it only checked if shift was not pressed)
2023-03-01 16:34:04 +09:00
RossAsscends
a67d771d75 nav lock icon hover glow
- made the right nav lock icon glow on hover
- small HTML code cleanups (remove blank lines, etc)
2023-03-01 05:54:20 +09:00
RossAsscends
db19ccb0f0 added panel lock to rightnav
Added a lock/unlock toggle to the right nav which will function to pin the panel in place (disengages auto-close) if the user desires it.
2023-03-01 05:38:02 +09:00
RossAsscends
ea30e8abe5 text-pole fixes
- removed forced size tags from text-pole div's as these caused some textareas to overflow the nav on iphone. instead widths are done with CSS now.

- added <br> after yourName textarea  and increased size of the nameChange button to match the API design. This is also better for phones.
2023-03-01 04:38:54 +09:00
RossAsscends
fdc0665987 Updated Right Nav And Added Click-Away Closing
Rewrote the nav HTML/CSS

.nav --> #right-nav-panel
.nav-toggle <label> --> removed, using #nav-toggle:after for styling instead

The main purpose of this rewrite was to allow for a function such that the nav panel will auto-close when the user clicks away from it. The former structure of using a label for a hidden checkbox made this impossible, as the label produced two clicks when clicked on (one for the label, and one for the box), therefore locking the panel if the click-away feature was turned on.

I will add in a 'pin' toggle soon to allow users to hold the nav panel open if they wish.

- Changed default font size from 1rem to 15px;

- removed unused CSS code for <main>,<article>,<header>, and <footer>, which were not used in the HTML
2023-03-01 04:22:32 +09:00
RossAsscends
d9a7a74116 Update index.html 2023-02-28 19:07:41 +09:00
RossAsscends
7ecf8b58ca reversed Enter/Shift+Enter functions
(and made connect buttons larger for mobile)
2023-02-27 00:27:41 +09:00
RossAsscends
29623350bd submenu stylings
- made send3.png opaque and adjusted opacity with CSS
- removed redundant backdrop blur on from <body>
- removed redundant backdrop blur from bg1 and bg2 (they now only self-blur)
- made "Connect" button on both API panels larger for mobile screens, and added :hover coloring
- made character 'export' and 'delete' buttons larger and further apart to decrease likeliness of mis-clicks, especially on phone screens.
- adjusted send_form opacity/background stylings to allow #options to perform blur effect
- added <br> after novel API URL input to match KoboldAI form style
- cleaned up #options_content and added styling
2023-02-27 00:19:51 +09:00
RossAsscends
5d38f57292 menu btn color and character_popup changes
charcter_popup set to cover all main sheld elements for ease of use and to limit user errors (using the chat input box while having the character's advanced defs popup open)

removed forced coloring from popup menu buttons.
2023-02-26 21:30:33 +09:00
RossAsscends
4aecc49e2a various design edits
- changed background color of messages selected for deletion
- changed color of delete message confirmation buton
- changed size/height of deletion menu to match normal send_form height (to avoid #chat resizing awkwardly)
- reverted #chat scrollbar to normal display since corners are no longer rounded
- removed corner radius from #chat .mes divs, since they are invisible anyway
- removed large margin-bottom between #chat .mes divs and replaced with a smaller padding. (This makes the delete screen look nicer as there are no gaps between the selected messages)
- aligned deletion checkboxes in the center of the divs and vertical aligned with avatar icons
2023-02-26 20:34:06 +09:00
RossAsscends
3d05198efd changed input bar status indication
- removed the indicator circle under the send button
- made send_form turn red when not connected
- changed send_textarea's placeholder text when not connected
- made send button hide when not connected (avoids users trying to use API and instead getting a 'character not selected' button)
2023-02-26 18:19:04 +09:00
RossAsscends
384bb56f1e Update index.html 2023-02-26 13:30:17 +09:00
RossAsscends
2500fc3cdd hotkey switch
enter = new line
shift+enter = send
(imperfect solution but slightly better for mobile users)
2023-02-26 11:22:06 +09:00
RossAsscends
e156373ad0 input bar auto-shrink on send
previous the input bar would expand to the fit the size of the typed input, but when it was sent, the bar would stay the same size. Now it will auto-shrink back to default size after sending the input to AI.
2023-02-25 21:15:29 +09:00
RossAscends
5cf91b1264 some more index.html reverts
added back in cookie JS, favicon, and removed bootstrap links/script references.
2023-02-25 06:31:00 +09:00
RossAscends
1f4c01fedf manual re-addition of index.html tokenizer code
line 849:
if((anchorTop != "" || charPersonality != "") && !is_pygmalion){

line 1035:
if(message_already_generated.indexOf('You:') === -1 && message_already_generated.indexOf('<|endoftext|>') === -1 && tokens_already_generated < parseInt(amount_gen) && getMessage.length > 0){
2023-02-25 06:03:12 +09:00
RossAscends
872c39ce3b Update index.html 2023-02-25 05:45:19 +09:00
RossAsscends
02330b4d12 Ross CSS 1.2.8 + hotkeys take 3 2023-02-25 05:36:41 +09:00
Ash
388acc4ddd optimisation checking EOS tag 2023-02-17 19:04:50 +04:00
Ash
d6afa07560 favicon 2023-02-17 14:52:08 +04:00
Ash
e764f94c8a Colab: add lt for KoboldAI 2023-02-15 16:49:46 +04:00
Ash
366f235c02 @1.2.8:
1) Security update: https://github.com/TavernAI/TavernAI/security/advisories/GHSA-25wp-82wc-xchj
2) Fixed several bugs related to character import: now all imported characters are added to the top of the list.
3) Fixed a bug that duplicated character cards if the character name and map name did not match.
4) Made minor fixes for prompt formatting.
5) Added the ability to enable/disable TavernAI autostart in the browser through the configuration file.
6) Adapted for Pygmalion Dev.
2023-02-15 15:33:06 +04:00
10sa
9490c898c9 Implementats CSRF Token 2023-02-13 23:54:08 +09:00
Ash
0a13b2da53 security update 2023-02-09 13:55:18 +04:00
Ash
0d54556d6d css fix 2023-02-08 22:00:28 +04:00
Borov666
1f28dc26fb Merge pull request #36 from 10sa/patch-1
Fix Invalid CSS styles and comments
2023-02-08 21:50:21 +04:00
Ash
997146b4e6 fix 2023-02-05 22:31:19 +04:00
Ash
e451bdf4d0 @1.2.7
The bug with multigen 100+ token has been fixed.
The replacement of <USER>, {{user}}, <BOT>, {{char}} in Description, First message, Personality Summary and Scenario has been added.
Added full Markdown support.
The behavior of scrolling the chat to the cursor when editing a message has been fixed.
The offline functionality of TavernAI has been fixed.
2023-02-05 18:12:18 +04:00
Tensa
5b6f7548e6 Fix invalid css style
disolay -> display, Apply pretty format.
2023-02-05 22:05:51 +09:00
Ash
28b2615c7a fix 2023-02-05 14:10:58 +04:00
Ash
2b4e36340e Multigen fix 2023-02-05 13:14:10 +04:00
Ash
efac6bbe67 Colab init 2023-02-02 11:43:38 +04:00
Ash
ee6a50fa8c String colab fix 2023-02-02 00:55:30 +04:00
Ash
de97167789 Colab fix 2023-02-02 00:46:51 +04:00
Ash
e3b173703c Colab fix 2023-02-02 00:34:41 +04:00
Ash
4ae387be93 Colab fix 2023-02-02 00:19:01 +04:00
Ash
95a2c736cf Colab fix 2023-02-02 00:06:45 +04:00
Ash
f96bc01d9b Colab and any fix 2023-02-01 23:55:01 +04:00
Ash
bd338518a0 @1.2.6
Multigeneration now takes context into account
Html tags are now displayed in the message
Fixed a bug where the chat selection was saved only after editing the character
Minor fixes
2023-01-30 20:03:50 +04:00