修复翻译框

main
thisjam 2024-03-28 10:18:35 +08:00
parent 10c2f12090
commit 9825d1ac79
6 changed files with 21 additions and 6 deletions

View File

@ -1,8 +1,16 @@

# sd-webui-oldsix_prompt v1.65.1
<!--
* @Author: thisjam 3213441409@qq.com
* @Date: 2024-03-24 15:56:01
* @LastEditors: thisjam 3213441409@qq.com
* @LastEditTime: 2024-03-28 10:11:16
* @FilePath: \webui\extensions\sd-webui-oldsix-prompt\README.md
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
-->
# sd-webui-oldsix_prompt v1.66
### 老版词库 @路过银河&网上收集
### 新词库由群里小伙伴 @麻瓜 @万碎爷 @元一斤 整理
### 100%完全自制插件不是魔改别人最近有个别up未均本人允许在多个平台打着nsfw词库的旗号拿本插件吸粉入群别人安装插件出问题又无法提供解决方案 ###
### 开源不易别跑到Issues发牢骚有重要的事@我QQ前段时间忙群里那么多人真的管不过来大家文明交流 ###
### 觉得好用的可以给我点颗星。
#### 英文不好不用怕彻底解决prompt对于国人不友好的痛点整理了多个分类上千个提示词无需英文快速输入提示词
#### 词库会持续更新

4
install.py Normal file
View File

@ -0,0 +1,4 @@
import launch
if not launch.is_installed('beautifulsoup4'):
launch.run_pip("install beautifulsoup4")

View File

@ -830,6 +830,7 @@ function initTrans() {
function toggleDisplay(dom){
dom.style.display = dom.style.display === 'block' ? 'none' : 'block';
}
@ -839,6 +840,7 @@ function showTransUI(){
if (txtdisplay === 'block') {
toggleDisplay(Elements.trans[0])
// old-six-traninput
Elements.trans[0].querySelector('textarea').focus()
}

View File

@ -128,11 +128,11 @@ class Script(scripts.Script):
with gr.Row(elem_id=eid):
with gr.Accordion(label="SixGod_K提示词 v1.65.1",open=False):
with gr.Accordion(label="SixGod_K提示词 v1.66",open=False):
gr.HTML('<a class="oldsix-tips" href="https://github.com/thisjam/sd-webui-oldsix-prompt/">【使用说明书】')
textarea=gr.TextArea(self.json,elem_id=tid,visible=False)
traninput=gr.Textbox(elem_classes="old-six-traninput",visible=False,show_label="",placeholder="输入中文后按回车翻译,[ALT+Q]键呼出/隐藏")
traninput=gr.Textbox(elem_classes="old-six-traninput",show_label="",placeholder="输入中文后按回车翻译,[ALT+Q]键呼出/隐藏")
tcache=gr.Textbox(elem_classes="old-six-tcache",visible=False)
with gr.Column(scale=4,elem_id="oldsix-optit"):

View File

@ -161,7 +161,8 @@
z-index: 99999!important;
min-height: 200px!important;
border-radius: 10px !important;
background: linear-gradient(to right, #76767a, #41444c)
background: linear-gradient(to right, #76767a, #41444c);
display: none;
}
.old-six-traninput textarea{