修改了一些提示词,修复不能彻底清空提示的bug

dev
thisjam 2023-10-27 16:01:13 +08:00
parent 1b5bcb3821
commit bdf15ad6f6
3 changed files with 484 additions and 3 deletions

View File

@ -451,6 +451,7 @@ function clearPrompt(pageindex){
ul=Elements.imgul
}
textarea.value='';
updateInput(textarea)
let tabs=container.querySelector(".oldsix-tab-nav").children
let btns=container.querySelectorAll(".oldsix-btn.active")
@ -469,6 +470,7 @@ function clearNPrompt(pageindex){
let textarea=pageindex=='1'?Elements.imgnpromt:Elements.txtnpromt;
textarea.value='';
updateInput(textarea)
}
function loadClearbtn(){
@ -571,8 +573,11 @@ function getChineseIndex(str) {
function translateText(text){
text=JSON.parse(text)
let ul=isTxtPage()? Elements.txtul : Elements.imgul;
let elementprompt=getCurrentPromptsEle()
let elementprompt=getCurrentPromptsEle()
text.origintext = text.origintext.trim();
if(text.origintext.includes("#[")||text.origintext.includes("<lora")) {
addLi(ul,text.origintext,text.origintext)
updatatextToTextArea(elementprompt,text.origintext)
@ -602,10 +607,13 @@ function translateText(text){
}
updatatextToTextArea(elementprompt,en.toLowerCase())
}
}
function addLi(parent,cn,en,btn=null){
let li=CreateEle('li',parent,'','')
li.setAttribute("draggable",'true')
let data={
@ -629,7 +637,8 @@ function addLi(parent,cn,en,btn=null){
let calculate =CreateEle('span',li,'alculate','')
let addw =CreateEle('span',calculate,'add','+')
let subw =CreateEle('span',calculate,'sub','-')
let content =CreateEle('span',li,'content',cn)
let content =CreateEle('span',li,'content','')
content.textContent=cn
let close =CreateEle('span',li,'close','x')
close.onclick=function(e){
e.stopPropagation();

File diff suppressed because one or more lines are too long

472
json/新服饰.json Normal file
View File

@ -0,0 +1,472 @@
{
"上装": {
"连衣裙": "dress",
"裙子": "skirt",
"衬衫": "blouse",
"t 恤": "t-shirt",
"毛衣": "sweater",
"夹克": "jacket",
"背心": "tank top",
"卫衣": "hoodie",
"马甲": "vest",
"风衣": "trench coat",
"西装": "suit",
"骑士夹克": "biker jacket",
"外套": "coat",
"罩衫": "shawl",
"披肩": "cape",
"庞乔斗篷": "poncho",
"大衣": "overcoat",
"毛皮大衣": "fur coat",
"斗篷": "cape",
"披风": "cloak",
"皮衣": "leather jacket"
},
"下装": {
"牛仔裤": "jeans",
"裤子": "pants",
"连体裤": "jumpsuit",
"短裤": "shorts",
"长裤": "trousers",
"裙子": "skirt",
"打底裤": "leggings",
"紧身裤": "leggings",
"便裤": "slacks",
"阔腿裤": "wide-leg pants",
"七分裤": "capri pants",
"短裙": "mini skirt",
"中裙": "midi skirt",
"长裙": "maxi skirt",
"运动裤": "sweatpants",
"卡其裤": "khaki pants",
"牛仔短裤": "denim shorts",
"裙裤": "skort",
"束脚裤": "joggers",
"瑜伽裤": "yoga pants",
"哈伦裤": "harem pants"
},
"泳装": {
"泳衣": "swimsuit",
"比基尼": "bikini",
"连体泳衣": "one-piece swimsuit",
"泳裙": "swim skirt",
"沙滩裙": "beach cover-up",
"遮阳衣": "rash guard",
"泳裤": "swim shorts",
"泳帽": "swim cap",
"浮潜套装": "snorkel set",
"潜水衣": "wetsuit",
"潜水裤": "wetsuit pants",
"冲浪裤": "boardshorts"
},
"运动装": {
"运动文胸": "sports bra",
"运动上衣": "sports top",
"运动裤": "sports pants",
"运动短裤": "athletic shorts",
"运动紧身衣": "compression suit",
"运动套装": "athletic set",
"运动连衣裙": "athletic dress",
"健身服": "gym wear",
"跑步裤": "running pants",
"篮球裤": "basketball shorts",
"网球裤": "tennis shorts",
"足球裤": "soccer shorts",
"高尔夫服": "golf attire",
"瑜伽服": "yoga wear",
"太极服": "tai chi suit",
"拳击装": "boxing attire",
"羽毛球服": "badminton attire",
"游泳裤": "swim trunks",
"健身紧身衣": "fitness tights",
"长跑服": "marathon suit"
},
"内衣": {
"文胸": "bra",
"内裤": "panties",
"丁字裤": "thong",
"连体内衣": "bodysuit",
"睡衣": "pajamas",
"底裤": "long johns",
"吊袜带": "garter belt",
"情趣内衣": "lingerie",
"背心": "camisole",
"泳衣内衣": "swimwear bra",
"塑身内衣": "shapewear",
"胸衣": "bustier",
"纹身文胸": "tattoo bra",
"丰胸垫": "push-up pad",
"吊带内衣": "strapless bra",
"无肩带文胸": "convertible bra",
"无线文胸": "wireless bra",
"无痕内衣": "seamless underwear",
"泳装内衣": "swimwear bra",
"小胸文胸": "small cup bra",
"大胸文胸": "large cup bra"
},
"配饰": {
"项链": "necklace",
"耳环": "earrings",
"手链": "bracelet",
"戒指": "ring",
"围巾": "scarf",
"帽子": "hat",
"手套": "gloves",
"皮带": "belt",
"太阳镜": "sunglasses",
"包包": "handbag",
"披肩": "shawl",
"发夹": "hairpin",
"发带": "headband",
"项链套装": "necklace set",
"手表": "watch",
"腰链": "waist chain",
"胸针": "brooch",
"手镯": "bangle",
"项链链子": "chain necklace",
"胸花": "corsage",
"围巾固定器": "scarf clip"
},
"鞋类": {
"高跟鞋": "high heels",
"运动鞋": "sneakers",
"平底鞋": "flats",
"靴子": "boots",
"凉鞋": "sandals",
"拖鞋": "slippers",
"尖头鞋": "pointed-toe shoes",
"帆布鞋": "canvas shoes",
"平底便鞋": "loafers",
"牛仔鞋": "cowboy boots",
"坡跟鞋": "wedges",
"男鞋": "oxfords",
"马丁靴": "ankle boots",
"水鞋": "water shoes",
"人字拖": "flip-flops",
"木底拖鞋": "clogs",
"运动凉鞋": "sport sandals",
"豆豆鞋": "penny loafers"
},
"睡衣": {
"睡衣": "pajamas",
"睡袍": "robe",
"睡裙": "nightgown",
"睡袍套装": "robe set",
"家居服": "loungewear",
"居家裤": "lounging pants",
"睡裤": "sleep shorts",
"睡裙套装": "nightgown set",
"短睡裤套装": "sleep shorts set",
"居家内衣": "lounging lingerie",
"睡裤套装": "sleep shorts set",
"夜袍": "night robe",
"夜裙": "evening dress"
},
"帽子": {
"帽子": "hat",
"棒球帽": "baseball cap",
"遮阳帽": "sun hat",
"渔夫帽": "bucket hat",
"毛线帽": "beanie",
"礼帽": "top hat",
"鸭舌帽": "duckbill cap",
"贝雷帽": "beret",
"军帽": "military cap",
"斗篷": "cape",
"围巾": "scarf",
"披肩": "shawl",
"发带": "headband",
"发夹": "hairpin",
"草帽": "straw hat",
"兔毛帽": "fur hat",
"军官帽": "officer's cap",
"帽套": "hat cover",
"卡其帽": "newsboy cap",
"洪堡帽": "homburg hat",
"英式帽": "bowler hat",
"圆顶礼帽": "derby hat"
},
"连袜裤": {
"连袜裤": "tights",
"裤袜": "pantyhose",
"厚连裤袜": "opaque tights",
"薄连裤袜": "sheer tights",
"蕾丝连袜裤": "lace tights",
"鱼网袜": "fishnet tights",
"中筒袜": "knee-high socks",
"长筒袜": "thigh-high socks",
"踝筒袜": "ankle socks",
"脚趾袜": "toe socks",
"冬季连袜裤": "winter tights",
"体育袜": "sport socks",
"格子连袜裤": "plaid tights",
"格子袜": "argyle socks",
"袜套": "sock covers",
"睡袜": "sleep socks",
"美腿袜": "leggings"
},
"围巾": {
"围巾": "scarf",
"丝巾": "silk scarf",
"披肩": "shawl",
"围巾固定器": "scarf clip",
"领巾": "neckerchief",
"围巾环": "scarf ring",
"围脖": "snood",
"飘带": "streamer",
"绒线围巾": "knit scarf",
"披风": "cape",
"莱卡围巾": "lycra scarf",
"领巾固定器": "neckerchief clip",
"鸟巾": "boa",
"围巾链子": "scarf chain"
},
"丝袜":{
"丝袜连裤袜": "pantyhose",
"网纹丝袜": "fishnet stockings",
"压力丝袜": "compression stockings",
"无缝丝袜": "seamless stockings",
"花边丝袜": "lace stockings",
"大网格丝袜": "large fishnet stockings",
"薄款丝袜": "sheer stockings",
"加强型丝袜": "reinforced stockings",
"超薄丝袜": "ultra-sheer stockings",
"丝袜袜子": "stocking socks",
"丝袜裤袜": "tights",
"蕾丝丝袜": "lace tights",
"鱼网丝袜": "fishnet tights",
"肉色丝袜": "nude stockings",
"彩色丝袜": "colored stockings",
"黑色丝袜": "black stockings",
"白色丝袜": "white stockings",
"红色丝袜": "red stockings",
"粉色丝袜": "pink stockings",
"紫色丝袜": "purple stockings",
"蓝色丝袜": "blue stockings",
"绿色丝袜": "green stockings",
"黄色丝袜": "yellow stockings",
"灰色丝袜": "gray stockings",
"褐色丝袜": "brown stockings",
"条纹丝袜": "striped stockings",
"格子丝袜": "checkered stockings",
"花卉丝袜": "floral stockings",
"圆点丝袜": "polka dot stockings",
"复古丝袜": "vintage stockings",
"半透明丝袜": "semi-opaque stockings",
"珠光丝袜": "shimmer stockings",
"亮片丝袜": "glitter stockings",
"珍珠丝袜": "pearl stockings",
"水钻丝袜": "rhinestone stockings",
"厚款丝袜": "opaque stockings",
"坎肩丝袜": "cowl neck stockings",
"连体丝袜": "bodystocking",
"性感丝袜": "sexy stockings",
"丝袜内衣套装": "lingerie and stockings set",
"高腰丝袜": "high-waisted stockings",
"丝袜配饰": "stocking accessories",
"网纹袜套": "fishnet leg warmers",
"丝袜腿套": "stocking leg warmers",
"丝袜吊带": "stocking garters"
},
"深V":{
"深V领连衣裙": "deep v-neck dress",
"深V领毛衣": "deep v-neck sweater",
"深V领上衣": "deep v-neck top",
"深V领连体裤": "deep v-neck jumpsuit",
"深V领紧身衣": "deep v-neck bodysuit",
"深V领背心": "deep v-neck camisole",
"深V领吊带连衣裙": "deep v-neck halter dress",
"深V领连身短裤": "deep v-neck romper",
"深V领礼服连衣裙": "deep v-neck evening gown",
"深V领薄款针织衫": "deep v-neck lightweight knit sweater",
"深V领运动上衣": "deep v-neck athletic top",
"深V领丝绒连衣裙": "deep v-neck velvet dress",
"深V领夏季连衣裙": "deep v-neck summer dress",
"深V领短袖衬衫": "deep v-neck short sleeve shirt",
"深V领包裹裙": "deep v-neck bodycon skirt",
"深V领流苏裙": "deep v-neck fringe skirt",
"深V领蕾丝连衣裙": "deep v-neck lace dress",
"深V领连衣裙套装": "deep v-neck dress set",
"深V领吊带上衣": "deep v-neck halter top",
"深V领连衣裙配饰": "deep v-neck dress accessories",
"深V领连衣裙外套": "deep v-neck dress coat",
"深V领连衣裙帽衫": "deep v-neck dress hooded sweater",
"深V领拼接连衣裙": "deep v-neck patchwork dress",
"深V领卫衣连衣裙": "deep v-neck hoodie dress",
"深V领夜店装": "deep v-neck clubwear",
"深V领网纱连衣裙": "deep v-neck mesh dress",
"深V领迷彩连衣裙": "deep v-neck camouflage dress",
"深V领蕾丝上衣": "deep v-neck lace top",
"深V领透明连衣裙": "deep v-neck sheer dress",
"深V领复古连衣裙": "deep v-neck vintage dress",
"深V领长款连衣裙": "deep v-neck long dress",
"深V领迷你连衣裙": "deep v-neck mini dress",
"深V领宴会装": "deep v-neck cocktail dress",
"深V领无袖连衣裙": "deep v-neck sleeveless dress",
"深V领绒线连衣裙": "deep v-neck knit dress",
"深V领运动连衣裙": "deep v-neck athletic dress",
"深V领修身连衣裙": "deep v-neck fitted dress",
"深V领皮质连衣裙": "deep v-neck leather dress",
"深V领连衣裙裙子": "deep v-neck dress skirt",
"深V领裹胸连衣裙": "deep v-neck wrap dress",
"深V领露肩连衣裙": "deep v-neck off-shoulder dress",
"深V领背带连衣裙": "deep v-neck suspender dress",
"深V领夏日连衣裙": "deep v-neck summer dress",
"深V领金属纹裙": "deep v-neck metallic skirt",
"深V领高腰连衣裙": "deep v-neck high-waisted dress",
"深V领包裹上衣": "deep v-neck bodycon top"
},
"包臀":{
"包臀连衣裙": "bodycon dress",
"包臀裙": "bodycon skirt",
"包臀上衣": "bodycon top",
"包臀连体裤": "bodycon jumpsuit",
"包臀紧身裙": "bodycon skirt",
"包臀礼服": "bodycon gown",
"包臀针织裙": "knit bodycon dress",
"包臀运动短裤": "sports booty shorts",
"包臀派对服": "party bodycon dress",
"包臀露背连衣裙": "backless bodycon dress",
"包臀剧院装": "theater bodycon dress",
"包臀半身裙": "mini bodycon skirt",
"包臀连衣裙套装": "bodycon dress set",
"包臀纹理裙": "textured bodycon skirt",
"包臀夏季连衣裙": "summer bodycon dress",
"包臀针织上衣": "knit bodycon top",
"包臀夏日裙子": "summer bodycon dress",
"包臀毛织裙": "knit bodycon skirt",
"包臀花纹裙": "patterned bodycon dress",
"包臀网纱连衣裙": "mesh bodycon dress",
"包臀迷你连衣裙": "mini bodycon dress",
"包臀薄款上衣": "lightweight bodycon top",
"包臀复古连衣裙": "vintage bodycon dress",
"包臀夜店装": "clubwear bodycon dress",
"包臀蕾丝裙": "lace bodycon skirt",
"包臀宴会装": "cocktail bodycon dress",
"包臀皮质短裙": "leather bodycon skirt",
"包臀纯色连衣裙": "solid color bodycon dress",
"包臀迷你半身裙": "mini bodycon skirt",
"包臀吊带连衣裙": "strapless bodycon dress",
"包臀连衣裙配饰": "bodycon dress accessories",
"包臀高腰裙": "high-waisted bodycon skirt",
"包臀透明连衣裙": "sheer bodycon dress",
"包臀金属纹裙": "metallic bodycon skirt",
"包臀卫衣连衣裙": "hooded bodycon dress",
"包臀深V领连衣裙": "deep v-neck bodycon dress",
"包臀丝绒连衣裙": "velvet bodycon dress",
"包臀迷你连衣裙套装": "mini bodycon dress set",
"包臀牛仔短裙": "denim bodycon skirt",
"包臀低背连衣裙": "low-back bodycon dress",
"包臀修身连衣裙": "fitted bodycon dress",
"包臀雪纺连衣裙": "chiffon bodycon dress",
"包臀长款连衣裙": "long bodycon dress",
"包臀背心上衣": "sleeveless bodycon top",
"包臀无袖连衣裙": "sleeveless bodycon dress",
"包臀蕾丝连衣裙": "lace bodycon dress",
"包臀紧身衬衫": "bodycon shirt",
"包臀绒线连衣裙": "knit bodycon dress",
"包臀薄纱连衣裙": "chiffon bodycon dress",
"包臀高领连衣裙": "high-neck bodycon dress",
"包臀纯色半身裙": "solid color bodycon skirt"
},
"蕾丝":{
"蕾丝连衣裙": "lace dress",
"蕾丝上衣": "lace top",
"蕾丝裙子": "lace skirt",
"蕾丝连体裤": "lace jumpsuit",
"蕾丝裤子": "lace pants",
"蕾丝外套": "lace jacket",
"蕾丝背心": "lace camisole",
"蕾丝内衣": "lace lingerie",
"蕾丝袜子": "lace stockings",
"蕾丝长袜": "lace thigh-high socks",
"蕾丝长袖上衣": "lace long-sleeve top",
"蕾丝吊带上衣": "lace camisole top",
"蕾丝连衣裙配饰": "lace dress accessories",
"蕾丝短袖上衣": "lace short-sleeve top",
"蕾丝披肩": "lace shawl",
"蕾丝长袖裙": "lace long-sleeve dress",
"蕾丝袖套": "lace sleeves",
"蕾丝贴边裙": "lace-edged skirt",
"蕾丝花边上衣": "lace trim top",
"蕾丝贴边连衣裙": "lace-edged dress",
"蕾丝夏季裙": "lace summer dress",
"蕾丝春季外套": "lace spring jacket",
"蕾丝晚礼服": "lace evening gown",
"蕾丝迷你裙": "lace mini skirt",
"蕾丝修身裙": "lace bodycon skirt",
"蕾丝冬季外套": "lace winter jacket",
"蕾丝紧身上衣": "lace fitted top",
"蕾丝包臀连衣裙": "lace bodycon dress",
"蕾丝裙裤套装": "lace skirt and pants set",
"蕾丝夜店装": "lace clubwear",
"蕾丝流苏裙": "lace fringe skirt",
"蕾丝露背连衣裙": "lace backless dress",
"蕾丝深V领上衣": "lace deep v-neck top",
"蕾丝高腰裙": "lace high-waisted skirt",
"蕾丝透明连衣裙": "lace sheer dress",
"蕾丝圆领上衣": "lace round neck top",
"蕾丝半袖连衣裙": "lace short-sleeve dress",
"蕾丝花边连衣裙": "lace trim dress",
"蕾丝低背连衣裙": "lace low-back dress",
"蕾丝包臀上衣": "lace bodycon top",
"蕾丝薄纱连衣裙": "lace chiffon dress",
"蕾丝针织裙": "lace knit skirt",
"蕾丝连衣裙外套": "lace dress coat",
"蕾丝背心上衣": "lace camisole top"
},
"裙子":{
"连衣裙": "dress",
"迷你裙": "miniskirt",
"中裙": "midi skirt",
"长裙": "maxi skirt",
"半身裙": "skirt",
"包臀裙": "bodycon skirt",
"百褶裙": "pleated skirt",
"牛仔裙": "denim skirt",
"礼服裙": "gown",
"夏季裙": "summer dress",
"冬季裙": "winter dress",
"花卉裙": "floral dress",
"印花裙": "printed dress",
"纱裙": "chiffon dress",
"针织裙": "knit skirt",
"派对裙": "party dress",
"背心裙": "camisole dress",
"吊带裙": "halter dress",
"圆领裙": "round neck dress",
"蕾丝裙": "lace dress",
"修身裙": "fitted skirt",
"流苏裙": "fringe skirt",
"包裹裙": "wrap dress",
"无袖裙": "sleeveless dress",
"宴会裙": "cocktail dress",
"露肩裙": "off-shoulder dress",
"连体裙": "jumpsuit",
"迷你连衣裙": "minidress",
"深V领连衣裙": "deep v-neck dress",
"丝绒裙": "velvet dress",
"复古裙": "vintage dress",
"亮片裙": "sequin skirt",
"亮丝裙": "shimmer dress",
"格子裙": "plaid skirt",
"牛仔迷你裙": "denim miniskirt",
"棉质连衣裙": "cotton dress",
"运动裙": "athletic skirt",
"低背连衣裙": "low-back dress",
"高领连衣裙": "turtleneck dress",
"珍珠裙": "pearl skirt",
"水钻裙": "rhinestone skirt",
"条纹裙": "striped skirt",
"亮片迷你裙": "sequin miniskirt",
"印花迷你裙": "printed miniskirt",
"薄纱连衣裙": "chiffon minidress",
"无袖连衣裙": "sleeveless minidress",
"背带连衣裙": "suspender dress",
"麂皮迷你裙": "suede miniskirt",
"纯色连衣裙": "solid color dress"
}
}