Commit Graph
112 Commits
Author SHA1 Message Date
RossAsscends 9483ec464a added
- swipes library
- CSS for mobile,
- swipe left/right on last msg to regenerate
2023-03-15 23:27:00 +09:00
RossAsscends 20dc882b75 - Merged RossAscends-mods.js as separate file.
- removed RA functions from main JS (left code as comments, feel free to delete)
- moved function declarations out of document ready
- function calls and listeners remain inside the document ready function
- fixed UsernameChange and Char deletion in main JS
- updated Humanizedtime variable name
- small css changes
2023-03-15 04:52:16 +09:00
SillyLossy 15f6f745a0 Reformat code 2023-03-12 15:51:27 +02:00
SillyLossy 625f4fe8b4 WI editor styles adjustment 2023-03-11 16:13:29 +02:00
SillyLossy 2b51a3348c Better checkbox styles 2023-03-11 15:54:38 +02:00
SillyLossy 439286b946 Fix notice style for ooba 2023-03-10 23:54:46 +02:00
SillyLossy d804720357 Improvements to group chats 2023-03-09 01:40:30 +02:00
SillyLossy 62a6fa8519 Add support for text generation UI (by @im-not-tom) 2023-03-08 17:34:14 +02:00
SillyLossy d15ad3ef8f Merge branch 'main' into dev 2023-03-08 13:18:06 +02:00
SillyLossy 6d53ab3001 Merge remote-tracking branch 'ross/main' 2023-03-08 13:15:07 +02:00
SillyLossy 4676777d17 Un-hide Soft Prompts selector 2023-03-08 01:59:05 +02:00
RossAsscends ef7e412896 create_form and api_form CSS
tweaks to panel menus to maximize utilization of space.
2023-03-08 05:39:19 +09:00
RossAsscends c21317d69e CountCharTokens() + create_form to grid +CSS tweaks
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
2023-03-08 04:53:00 +09:00
SillyLossy 63ddd82792 Fix search bar 2023-03-07 18:04:50 +02:00
SillyLossy 67e94493cb Adjust styles 2023-03-06 18:47:44 +02:00
SillyLossy 36a62aad9e Merge branch 'main' into dev 2023-03-06 17:51:20 +02:00
SillyLossy 9134504a7b Post-merge fixes 2023-03-06 16:51:08 +02:00
SillyLossy d2cce0eead Merge remote-tracking branch 'ross/main' 2023-03-06 16:04:41 +02:00
RossAsscends 2cd6739aaa dynamic char delete + button/create form styling
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.
2023-03-06 10:58:10 +09:00
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 569ca97b13 added Firefox compatibility to styled check boxes 2023-03-04 04:41:16 +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 eb30b84bff Update style.css 2023-03-03 11:44:11 +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
SillyLossy f5013d373d Add more fields to the context 2023-03-03 01:44:06 +02:00
SillyLossy 6199fcb5da Merge branch 'main' into dev 2023-03-03 01:14:04 +02:00
SillyLossy b0baeba156 Merge remote-tracking branch 'ross/main' 2023-03-03 01:02:45 +02: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
SillyLossy 6c3984d4f4 Move message styles 2023-03-02 23:47:08 +02: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
SillyLossy ce90556729 Merge branch 'main' into dev 2023-03-01 23:30:18 +02:00
SillyLossy 65f900f0be Style fix-up 2023-03-01 23:20:31 +02:00
SillyLossy 48c9c8ca51 Merge remote-tracking branch 'ross/main' 2023-03-01 23:14:03 +02:00
RossAsscends 7b3a6135f7 small alignment changes 2023-03-02 04:32:15 +09:00
RossAsscends 66562c53be small changes to checkbox placement 2023-03-02 04:19:08 +09:00
RossAsscends 4d07e4f785 removed excess remote font call in CSS 2023-03-02 04:12:13 +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
SillyLossy 3b30672b09 Merge branch 'main' into groupchats 2023-03-01 11:03:31 +02:00
SillyLossy a73ad9d53f Merge remote-tracking branch 'ross/main' 2023-03-01 10:54:51 +02: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 e16b1d533b nav-toggle transparency
fixed the transparency on the new nav-toggle setup.
2023-03-01 04:42:07 +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
SillyLossy 0e59edf5e1 Group chat auto-mode (broken & hidden) 2023-02-27 22:54:00 +02:00
SillyLossy aa05749e9b Implement message sending in group chats 2023-02-27 18:48:01 +02:00
SillyLossy 82566e1163 Add group chats creation 2023-02-27 01:57:10 +02:00