1. Added a new utility function CountCharTokens() to replace the token counting routine from before. It also works unsaved new characters.
1.5 - moved #result_info to the top under avatar.
2. put create_form into a grid display so the two textareas can automatically resize to fill as much space as possible.
3. CSS - standardized background shadings, and replaced backdrop filters with RGBA background-colors for most divs. increased the strangth of some box-shadows on large UI divs
The selector menu for KoboldAI settings presets was doubling the list of presets when QuickRefresh happened, so i uncommented the "$("#settings_perset").empty();* line of code in /getsettings
1. enabled deletion of characters without page reload. now when a user deletes a character, the page will not auto-refresh, but they will be get a message from Chloe instructing them to pick another character to continue.
2. standardized all buttons to use menu_button class instead of individual ID stylings
3. adjusted create_form, making wider range inputs for mobile users.
- moved 'back button' to the bottom of the form next to delete/create/export
- changed the 'back' button on post-creation rm_info to look like a button
4. condensed redundant CSS where possible; removed unused CSS.
5. Fixed the problem of the nav auto-closing when a character is created or when using advanced editing window.
6. made the token counter load when a character is selected. previously it only showed up after edits were made.
7. found some problems with /createcharacter - if a character/PNG with the same name exists, the server won't make a new character, but it doesn't tell the user about the error. I UI acts as if the character was created. I added some soft console.error messages for this, but couldn't figure out a way to make it give a proper error. probably because fs.existsSync doesn't have a callback.
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.
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.
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)
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
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