- converted UI img SVGs to webfonts

- moved unused SVGs and PNGs into subfolders for deletion consideration
This commit is contained in:
RossAscends
2023-04-14 03:12:28 +09:00
parent 33e056626d
commit e7a937eb0a
66 changed files with 131 additions and 225 deletions

View File

@@ -302,7 +302,7 @@ $(document).ajaxError(function myErrorHandler(_, xhr) {
}
});
function getTokenCount(str, padding=0) {
function getTokenCount(str, padding = 0) {
if (main_api == 'poe' || main_api == 'openai') {
return gpt3.encode(str).bpe.length + padding;
}
@@ -1150,13 +1150,13 @@ function isStreamingEnabled() {
class StreamingProcessor {
showStopButton(messageId) {
$(`#chat .mes[mesid="${messageId}"] .mes_stop`).css({'display': 'block'});
$(`#chat .mes[mesid="${messageId}"] .mes_edit`).css({'display': 'none'});
$(`#chat .mes[mesid="${messageId}"] .mes_stop`).css({ 'display': 'block' });
$(`#chat .mes[mesid="${messageId}"] .mes_edit`).css({ 'display': 'none' });
}
hideStopButton(messageId) {
$(`#chat .mes[mesid="${messageId}"] .mes_stop`).css({'display': 'none'});
$(`#chat .mes[mesid="${messageId}"] .mes_edit`).css({'display': 'block'});
$(`#chat .mes[mesid="${messageId}"] .mes_stop`).css({ 'display': 'none' });
$(`#chat .mes[mesid="${messageId}"] .mes_edit`).css({ 'display': 'block' });
}
onStartStreaming(text) {
@@ -1920,7 +1920,7 @@ async function Generate(type, automatic_trigger, force_name2) {
return;
}
}
if (streamingProcessor.isFinished) {
streamingProcessor.onFinishStreaming(streamingProcessor.messageId, getMessage);
streamingProcessor = null;
@@ -4927,6 +4927,7 @@ $(document).ready(function () {
$(document).on('click', '.inline-drawer-toggle', function () {
var icon = $(this).find('.inline-drawer-icon');
icon.toggleClass('down up');
icon.toggleClass('fa-circle-chevron-down fa-circle-chevron-up');
$(this).closest('.inline-drawer').find('.inline-drawer-content').slideToggle();
});