mirror of
https://github.com/langgenius/dify.git
synced 2026-10-04 13:47:55 +08:00
+55









Wu Tianwei
AkaraChen
nite-knite
Joel
Warren Chen
crazywoola
Yi Xiao
yihong
-LAN-
KVOJJJin
github-actions[bot]
JzoNgKVO
Charlie.Wei
crazywoola
huayaoyue6
kurokobo
Matsuda
shirochan
Jyong
Huỳnh Gia Bôi
Julian Huynh
Hash Brown
非法操作
Kazuki Takamatsu
Trey Dong
VoidIsVoid
Gimling
xiandan-erizo
Muneyuki Noguchi
zhaobingshuang
zhaobs
suzuki.sh
Yingchun Lai
huanshare
huanshare
orangeclk
문정현
barabicu
Wei Mingzhi
Paul van Oorschot
zkyTech
zhangkunyuan
Tommy
zxhlyh
Novice
Novice Lee
Novice Lee
zxhlyh
liuzhenghua
Jiang
jiangzhijie
Joe
Alok Shrivastwa
Alok Shrivastwa
JasonVV
Hiroshi Fujita
Kevin9703
NFish
Junyan Qin
IWAI, Masaharu
IWAI, Masaharu
Bowen Liang
luckylhb90
hobo.l
douxc
2b2263a349
Signed-off-by: yihong0618 <zouzou0208@gmail.com> Signed-off-by: -LAN- <laipz8200@outlook.com> Co-authored-by: AkaraChen <akarachen@outlook.com> Co-authored-by: nite-knite <nkCoding@gmail.com> Co-authored-by: Joel <iamjoel007@gmail.com> Co-authored-by: Warren Chen <warren.chen830@gmail.com> Co-authored-by: crazywoola <427733928@qq.com> Co-authored-by: Yi Xiao <54782454+YIXIAO0@users.noreply.github.com> Co-authored-by: yihong <zouzou0208@gmail.com> Co-authored-by: -LAN- <laipz8200@outlook.com> Co-authored-by: KVOJJJin <jzongcode@gmail.com> Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: JzoNgKVO <27049666+JzoNgKVO@users.noreply.github.com> Co-authored-by: Charlie.Wei <luowei@cvte.com> Co-authored-by: crazywoola <100913391+crazywoola@users.noreply.github.com> Co-authored-by: huayaoyue6 <huayaoyue@163.com> Co-authored-by: kurokobo <kuro664@gmail.com> Co-authored-by: Matsuda <yiyth.fcb6@gmail.com> Co-authored-by: shirochan <s.yusuke0711@gmail.com> Co-authored-by: Jyong <76649700+JohnJyong@users.noreply.github.com> Co-authored-by: Huỳnh Gia Bôi <boihuynh147@gmail.com> Co-authored-by: Julian Huynh <julian.huynh@immersio.io> Co-authored-by: Hash Brown <hi@xzd.me> Co-authored-by: 非法操作 <hjlarry@163.com> Co-authored-by: Kazuki Takamatsu <kazuki.takamatsu@chowagiken.co.jp> Co-authored-by: Trey Dong <1346650911@qq.com> Co-authored-by: VoidIsVoid <343750470@qq.com> Co-authored-by: Gimling <huangjl@ruyi.ai> Co-authored-by: xiandan-erizo <xiandan.erizo@gmail.com> Co-authored-by: Muneyuki Noguchi <nogu.dev@gmail.com> Co-authored-by: zhaobingshuang <1475195565@qq.com> Co-authored-by: zhaobs <zhaobs@cailian.net> Co-authored-by: suzuki.sh <s2terminal@users.noreply.github.com> Co-authored-by: Yingchun Lai <laiyingchun@apache.org> Co-authored-by: huanshare <huanshare@live.com> Co-authored-by: huanshare <liuhuan101@longfor.com> Co-authored-by: orangeclk <orangeclk@users.noreply.github.com> Co-authored-by: 문정현 <120004247+JungHyunMoon@users.noreply.github.com> Co-authored-by: barabicu <kztk533@gmail.com> Co-authored-by: Wei Mingzhi <whistler_wmz@users.sf.net> Co-authored-by: Paul van Oorschot <20116814+pvoo@users.noreply.github.com> Co-authored-by: zkyTech <zhangkunyuan@hotmail.com> Co-authored-by: zhangkunyuan <zhangkunyuan@cmhi.chinamobile.com> Co-authored-by: Tommy <34446820+Asterovim@users.noreply.github.com> Co-authored-by: zxhlyh <jasonapring2015@outlook.com> Co-authored-by: Novice <857526207@qq.com> Co-authored-by: Novice Lee <novicelee@NovicedeMacBook-Pro.local> Co-authored-by: Novice Lee <novicelee@NoviPro.local> Co-authored-by: zxhlyh <16177003+zxhlyh@users.noreply.github.com> Co-authored-by: liuzhenghua <1090179900@qq.com> Co-authored-by: Jiang <65766008+AlwaysBluer@users.noreply.github.com> Co-authored-by: jiangzhijie <jiangzhijie.jzj@alibaba-inc.com> Co-authored-by: Joe <79627742+ZhouhaoJiang@users.noreply.github.com> Co-authored-by: Alok Shrivastwa <alok.shrivastwa@gmail.com> Co-authored-by: Alok Shrivastwa <Alok.Shrivastwa@microland.com> Co-authored-by: JasonVV <jasonwangiii@outlook.com> Co-authored-by: Hiroshi Fujita <fujita-h@users.noreply.github.com> Co-authored-by: Kevin9703 <51311316+Kevin9703@users.noreply.github.com> Co-authored-by: NFish <douxc512@gmail.com> Co-authored-by: Junyan Qin <1010553892@qq.com> Co-authored-by: IWAI, Masaharu <iwaim.sub@gmail.com> Co-authored-by: IWAI, Masaharu <iwai_masaharu@funkit.co.jp> Co-authored-by: Bowen Liang <liangbowen@gf.com.cn> Co-authored-by: luckylhb90 <luckylhb90@gmail.com> Co-authored-by: hobo.l <hobo.l@binance.com> Co-authored-by: douxc <7553076+douxc@users.noreply.github.com>
414 lines
7.1 KiB
CSS
414 lines
7.1 KiB
CSS
.pageHeader {
|
|
@apply px-16 flex justify-between items-center;
|
|
position: sticky;
|
|
top: 0;
|
|
left: 0;
|
|
padding-top: 42px;
|
|
padding-bottom: 12px;
|
|
background-color: #fff;
|
|
font-weight: 600;
|
|
font-size: 18px;
|
|
line-height: 28px;
|
|
color: #101828;
|
|
z-index: 10;
|
|
}
|
|
|
|
.segmentationItem {
|
|
min-height: 68px;
|
|
}
|
|
|
|
.indexItem {
|
|
min-height: 126px;
|
|
}
|
|
|
|
.indexItem .disableMask {
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
width: 100%;
|
|
height: 100%;
|
|
background-color: rgba(255, 255, 255, 0.5);
|
|
border-radius: 12px;
|
|
z-index: 2;
|
|
}
|
|
|
|
.indexItem .warningTip {
|
|
position: absolute;
|
|
bottom: 0;
|
|
left: 0;
|
|
width: 100%;
|
|
padding: 8px 20px 8px 40px;
|
|
background: #FFFAEB;
|
|
border-top: 0.5px solid #FEF0C7;
|
|
border-radius: 12px;
|
|
font-size: 12px;
|
|
line-height: 18px;
|
|
color: #344054;
|
|
z-index: 3;
|
|
}
|
|
|
|
.indexItem .warningTip::before {
|
|
content: '';
|
|
position: absolute;
|
|
top: 11px;
|
|
left: 20px;
|
|
width: 12px;
|
|
height: 12px;
|
|
background: center no-repeat url(../assets/alert-triangle.svg);
|
|
background-size: 12px;
|
|
}
|
|
|
|
.indexItem .warningTip .click {
|
|
color: #155EEF;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.disabled {
|
|
cursor: not-allowed !important;
|
|
}
|
|
|
|
.indexItem.disabled:hover {
|
|
background-color: #fcfcfd;
|
|
border-color: #f2f4f7;
|
|
box-shadow: none;
|
|
cursor: default;
|
|
}
|
|
|
|
.indexItem.disabled:hover .radio {
|
|
@apply w-4 h-4 border-[2px] border-gray-200 rounded-full;
|
|
}
|
|
|
|
.radioItem {
|
|
@apply relative mb-2 rounded-xl border border-components-option-card-option-border cursor-pointer bg-components-option-card-option-bg;
|
|
}
|
|
|
|
.radioItem.segmentationItem.custom {
|
|
height: auto;
|
|
}
|
|
|
|
.radioItem.segmentationItem.custom .typeHeader {
|
|
/* height: 65px; */
|
|
}
|
|
|
|
.radioItem.indexItem .typeHeader {
|
|
@apply py-4 pr-5;
|
|
}
|
|
|
|
.radioItem.indexItem.active .typeHeader {
|
|
padding: 15.5px 19.5px 15.5px 63.5px;
|
|
}
|
|
|
|
.radioItem.indexItem .radio {
|
|
top: 16px;
|
|
right: 20px;
|
|
}
|
|
|
|
.radioItem.indexItem.active .radio {
|
|
top: 16px;
|
|
right: 19.5px;
|
|
}
|
|
|
|
.radioItem.indexItem .typeHeader .title {
|
|
@apply pb-1;
|
|
}
|
|
|
|
.radioItem .typeIcon {
|
|
position: absolute;
|
|
top: 18px;
|
|
left: 20px;
|
|
width: 32px;
|
|
height: 32px;
|
|
background: #EEF4FF center no-repeat;
|
|
border-radius: 8px;
|
|
}
|
|
|
|
.typeIcon.auto {
|
|
background-color: #F5F3FF;
|
|
background-image: url(../assets/zap-fast.svg);
|
|
}
|
|
|
|
.typeIcon.customize {
|
|
background-image: url(../assets/sliders-02.svg);
|
|
}
|
|
|
|
.typeIcon.qualified {
|
|
background-color: #FFF6ED;
|
|
background-image: url(../assets/star-07.svg);
|
|
}
|
|
|
|
.typeIcon.economical {
|
|
background-image: url(../assets/piggy-bank-mod.svg);
|
|
}
|
|
|
|
.radioItem .radio {
|
|
@apply w-4 h-4 border-[2px] border-gray-200 rounded-full;
|
|
position: absolute;
|
|
top: 26px;
|
|
right: 20px;
|
|
}
|
|
|
|
.radioItem:hover {
|
|
background-color: #ffffff;
|
|
border-color: #B2CCFF;
|
|
box-shadow: 0px 12px 16px -4px rgba(16, 24, 40, 0.08), 0px 4px 6px -2px rgba(16, 24, 40, 0.03);
|
|
}
|
|
|
|
.radioItem:hover .radio {
|
|
border-color: #155eef;
|
|
}
|
|
|
|
.radioItem.active {
|
|
border-width: 1.5px;
|
|
border-color: #528BFF;
|
|
box-shadow: 0px 1px 3px rgba(16, 24, 40, 0.1), 0px 1px 2px rgba(16, 24, 40, 0.06);
|
|
}
|
|
|
|
.radioItem.active .radio {
|
|
top: 25.5px;
|
|
right: 19.5px;
|
|
border-width: 5px;
|
|
border-color: #155EEF;
|
|
}
|
|
|
|
.radioItem.active:hover {
|
|
border-width: 1.5px;
|
|
border-color: #528BFF;
|
|
box-shadow: 0px 1px 3px rgba(16, 24, 40, 0.1), 0px 1px 2px rgba(16, 24, 40, 0.06);
|
|
}
|
|
|
|
.radioItem.active .typeIcon {
|
|
top: 17.5px;
|
|
left: 19.5px;
|
|
}
|
|
|
|
.radioItem.active .typeHeader {
|
|
padding: 11.5px 63.5px;
|
|
}
|
|
|
|
.typeHeader {
|
|
@apply flex flex-col px-16 py-3 justify-center;
|
|
}
|
|
|
|
.typeHeader .title {
|
|
display: flex;
|
|
align-items: center;
|
|
padding-bottom: 2px;
|
|
font-weight: 500;
|
|
font-size: 16px;
|
|
line-height: 24px;
|
|
color: #101828;
|
|
}
|
|
|
|
.typeHeader .tip {
|
|
font-weight: 400;
|
|
font-size: 13px;
|
|
line-height: 18px;
|
|
color: #667085;
|
|
}
|
|
|
|
.recommendTag {
|
|
display: inline-flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
padding: 0 6px;
|
|
margin-left: 4px;
|
|
border: 1px solid #E0EAFF;
|
|
border-radius: 6px;
|
|
font-weight: 500;
|
|
font-size: 12px;
|
|
line-height: 20px;
|
|
color: #444CE7;
|
|
}
|
|
|
|
.typeFormBody {
|
|
@apply px-16;
|
|
border-top: 1px solid #F2F4F7;
|
|
}
|
|
|
|
.formRow {
|
|
@apply flex justify-between mt-6;
|
|
}
|
|
|
|
.formRow .label {
|
|
@apply mb-2 p-0;
|
|
font-weight: 500;
|
|
font-size: 14px;
|
|
line-height: 20px;
|
|
color: #101828;
|
|
}
|
|
|
|
.ruleItem {
|
|
@apply flex items-center py-1.5;
|
|
}
|
|
|
|
.formFooter {
|
|
padding: 16px 0 28px;
|
|
}
|
|
|
|
.formFooter .button {
|
|
font-size: 13px;
|
|
line-height: 18px;
|
|
}
|
|
|
|
.input {
|
|
@apply inline-flex h-9 w-full py-1 px-2 pr-14 rounded-lg text-xs leading-normal;
|
|
@apply bg-gray-100 caret-primary-600 hover:bg-gray-100 focus:ring-1 focus:ring-inset focus:ring-gray-200 focus-visible:outline-none focus:bg-white placeholder:text-gray-400;
|
|
}
|
|
|
|
.source {
|
|
@apply flex justify-between items-center mt-8 px-6 py-4 rounded-xl bg-gray-50 border border-gray-100;
|
|
}
|
|
|
|
.source .divider {
|
|
@apply shrink-0 mx-4 w-px bg-gray-200;
|
|
height: 42px;
|
|
}
|
|
|
|
.fileIcon {
|
|
@apply inline-flex mr-1 w-6 h-6 bg-center bg-no-repeat;
|
|
background-image: url(../assets/pdf.svg);
|
|
background-size: 24px;
|
|
}
|
|
|
|
.fileIcon.pdf {
|
|
background-image: url(../assets/pdf.svg);
|
|
}
|
|
|
|
.fileIcon.csv {
|
|
background-image: url(../assets/csv.svg);
|
|
}
|
|
|
|
.fileIcon.doc {
|
|
background-image: url(../assets/doc.svg);
|
|
}
|
|
|
|
.fileIcon.docx {
|
|
background-image: url(../assets/docx.svg);
|
|
}
|
|
|
|
.fileIcon.xlsx,
|
|
.fileIcon.xls {
|
|
background-image: url(../assets/xlsx.svg);
|
|
}
|
|
|
|
.fileIcon.html,
|
|
.fileIcon.htm {
|
|
background-image: url(../assets/html.svg);
|
|
}
|
|
|
|
.fileIcon.md,
|
|
.fileIcon.markdown {
|
|
background-image: url(../assets/md.svg);
|
|
}
|
|
|
|
.fileIcon.txt {
|
|
background-image: url(../assets/txt.svg);
|
|
}
|
|
|
|
.fileIcon.json {
|
|
background-image: url(../assets/json.svg);
|
|
}
|
|
|
|
.sourceContent {
|
|
width: 0;
|
|
flex: 1 1 auto;
|
|
}
|
|
|
|
.sourceCount {
|
|
@apply shrink-0 ml-1;
|
|
font-weight: 500;
|
|
font-size: 13px;
|
|
line-height: 18px;
|
|
color: #667085;
|
|
}
|
|
|
|
.segmentCount {
|
|
flex: 1 1 30%;
|
|
max-width: 120px;
|
|
}
|
|
|
|
.divider {
|
|
@apply mx-3 w-px h-4 bg-gray-200;
|
|
}
|
|
|
|
.calculating {
|
|
color: #98A2B3;
|
|
font-size: 12px;
|
|
line-height: 18px;
|
|
}
|
|
|
|
.sideTip {
|
|
@apply flex flex-col items-center shrink-0;
|
|
padding-top: 108px;
|
|
width: 524px;
|
|
border-left: 0.5px solid #F2F4F7;
|
|
}
|
|
|
|
.tipCard {
|
|
@apply flex flex-col items-start p-6;
|
|
width: 320px;
|
|
background-color: #F9FAFB;
|
|
box-shadow: 0px 1px 2px rgba(16, 24, 40, 0.05);
|
|
border-radius: 12px;
|
|
}
|
|
|
|
.tipCard .icon {
|
|
width: 32px;
|
|
height: 32px;
|
|
border: 1px solid #EAECF0;
|
|
border-radius: 6px;
|
|
background: center no-repeat url(../assets/book-open-01.svg);
|
|
background-size: 16px;
|
|
}
|
|
|
|
.tipCard .title {
|
|
margin: 12px 0;
|
|
font-weight: 500;
|
|
font-size: 16px;
|
|
line-height: 24px;
|
|
color: #344054;
|
|
}
|
|
|
|
.tipCard .content {
|
|
font-weight: 400;
|
|
font-size: 14px;
|
|
line-height: 20px;
|
|
color: #344054;
|
|
}
|
|
|
|
.previewWrap {
|
|
flex-shrink: 0;
|
|
width: 524px;
|
|
}
|
|
|
|
.previewWrap.isMobile {
|
|
max-width: 524px;
|
|
}
|
|
|
|
/*
|
|
* `fixed` must under `previewHeader` because of style override would not work
|
|
*/
|
|
.fixed {
|
|
padding-top: 12px;
|
|
font-size: 12px;
|
|
line-height: 18px;
|
|
background: rgba(255, 255, 255, 0.9);
|
|
border-bottom: 0.5px solid #EAECF0;
|
|
backdrop-filter: blur(4px);
|
|
animation: fix 0.5s;
|
|
}
|
|
|
|
@keyframes fix {
|
|
from {
|
|
padding-top: 42px;
|
|
font-size: 18px;
|
|
line-height: 28px;
|
|
}
|
|
|
|
to {
|
|
padding-top: 12px;
|
|
font-size: 12px;
|
|
line-height: 18px;
|
|
}
|
|
}
|