Enhance Code Consistency Across Repository with .editorconfig (#19023)

This commit is contained in:
QuantumGhost 2025-04-29 18:04:33 +08:00 • committed by GitHub
commit bd1bbfee4b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
274 changed files with 1271 additions and 1217 deletions

View file

@ -21,4 +21,4 @@ node_modules
# Jetbrains
.idea
.idea

View file

@ -1,22 +0,0 @@
# EditorConfig is awesome: https://EditorConfig.org
# top-most EditorConfig file
root = true
# Unix-style newlines with a newline ending every file
[*]
end_of_line = lf
insert_final_newline = true
# Matches multiple files with brace expansion notation
# Set default charset
[*.{js,tsx}]
charset = utf-8
indent_style = space
indent_size = 2
# Matches the exact files either package.json or .travis.yml
[{package.json,.travis.yml}]
indent_style = space
indent_size = 2

View file

@ -4,4 +4,4 @@
"firsttris.vscode-jest-runner",
"kisstkondoros.vscode-codemetrics"
]
}
}

View file

@ -3,4 +3,4 @@
height: 0;
border-radius: 16px 16px 0px 0px;
box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.05), 0px 0px 2px -1px rgba(0, 0, 0, 0.03);
}
}

View file

@ -214,4 +214,4 @@
.listItem:hover .unavailable {
@apply opacity-100;
}
}

View file

@ -5,7 +5,7 @@
.completionPic {
background-image: url('./completion.png')
}
.expertPic {
background-image: url('./expert.png')
}
}

View file

@ -1,3 +1,3 @@
.item {
background-color: rgba(21, 94, 239, 0.05);
}
}

View file

@ -5,4 +5,4 @@
.icon {
box-shadow: 0px 12px 16px -4px rgba(16, 24, 40, 0.08), 0px 4px 6px -2px rgba(16, 24, 40, 0.03);
}
}

View file

@ -25,4 +25,4 @@
.boxHeader:hover .optionWrap {
display: flex;
}
}

View file

@ -4,4 +4,4 @@
-webkit-text-fill-color: transparent;
background-clip: text;
text-fill-color: transparent;
}
}

View file

@ -3,4 +3,4 @@
right: -16px;
bottom: -16px;
border-top: 1px solid #F3F4F6;
}
}

View file

@ -19,4 +19,4 @@
.settingBtn:hover {
background-color: rgba(0, 0, 0, 0.05);
}
}

View file

@ -4,4 +4,4 @@
.weightedScoreSliderTrack-1 {
background: transparent !important;
}
}

View file

@ -11,4 +11,4 @@
height: 3px;
background-color: rgba(68, 76, 231, 0.18);
transform: skewX(-30deg);
}
}

View file

@ -87,7 +87,7 @@ const Tools = () => {
<div className='flex grow items-center'>
<div
className={`
group mr-1 flex h-6 w-6 items-center justify-center rounded-md
group mr-1 flex h-6 w-6 items-center justify-center rounded-md
${externalDataToolsConfig.length && 'hover:bg-white hover:shadow-xs'}
`}
onClick={() => setExpanded(v => !v)}

View file

@ -17,4 +17,4 @@
}
.pluginInstallIcon {
background-image: url(../assets/chromeplugin-install.svg);
}
}

View file

@ -42,4 +42,4 @@
@apply text-text-destructive bg-state-destructive-hover
}
}
}

View file

@ -20,4 +20,4 @@
.appIcon.rounded {
@apply rounded-full;
}
}

View file

@ -7,4 +7,4 @@
background-image: url(~@/app/components/develop/secret-key/assets/pause.svg);
background-position: center;
background-repeat: no-repeat;
}
}

View file

@ -25,4 +25,4 @@
.badge.badge-accent {
@apply text-text-accent-secondary border border-text-accent-secondary
}
}
}

View file

@ -22,7 +22,7 @@
}
.btn-primary {
@apply
@apply
shadow
bg-components-button-primary-bg
border-components-button-primary-border
@ -32,7 +32,7 @@
}
.btn-primary.btn-destructive {
@apply
@apply
bg-components-button-destructive-primary-bg
border-components-button-destructive-primary-border
hover:bg-components-button-destructive-primary-bg-hover
@ -41,7 +41,7 @@
}
.btn-primary.btn-disabled {
@apply
@apply
shadow-none
bg-components-button-primary-bg-disabled
border-components-button-primary-border-disabled
@ -49,7 +49,7 @@
}
.btn-primary.btn-destructive.btn-disabled {
@apply
@apply
shadow-none
bg-components-button-destructive-primary-bg-disabled
border-components-button-destructive-primary-border-disabled
@ -57,130 +57,130 @@
}
.btn-secondary {
@apply
@apply
border-[0.5px]
shadow-xs
bg-components-button-secondary-bg
border-components-button-secondary-border
hover:bg-components-button-secondary-bg-hover
hover:border-components-button-secondary-border-hover
bg-components-button-secondary-bg
border-components-button-secondary-border
hover:bg-components-button-secondary-bg-hover
hover:border-components-button-secondary-border-hover
text-components-button-secondary-text;
}
.btn-secondary.btn-disabled {
@apply
bg-components-button-secondary-bg-disabled
border-components-button-secondary-border-disabled
@apply
bg-components-button-secondary-bg-disabled
border-components-button-secondary-border-disabled
text-components-button-secondary-text-disabled;
}
.btn-secondary.btn-destructive {
@apply
bg-components-button-destructive-secondary-bg
border-components-button-destructive-secondary-border
hover:bg-components-button-destructive-secondary-bg-hover
hover:border-components-button-destructive-secondary-border-hover
@apply
bg-components-button-destructive-secondary-bg
border-components-button-destructive-secondary-border
hover:bg-components-button-destructive-secondary-bg-hover
hover:border-components-button-destructive-secondary-border-hover
text-components-button-destructive-secondary-text;
}
.btn-secondary.btn-destructive.btn-disabled {
@apply
bg-components-button-destructive-secondary-bg-disabled
border-components-button-destructive-secondary-border-disabled
@apply
bg-components-button-destructive-secondary-bg-disabled
border-components-button-destructive-secondary-border-disabled
text-components-button-destructive-secondary-text-disabled;
}
.btn-secondary-accent {
@apply
@apply
border-[0.5px]
shadow-xs
bg-components-button-secondary-bg
border-components-button-secondary-border
hover:bg-components-button-secondary-bg-hover
hover:border-components-button-secondary-border-hover
bg-components-button-secondary-bg
border-components-button-secondary-border
hover:bg-components-button-secondary-bg-hover
hover:border-components-button-secondary-border-hover
text-components-button-secondary-accent-text;
}
.btn-secondary-accent.btn-disabled {
@apply
bg-components-button-secondary-bg-disabled
border-components-button-secondary-border-disabled
@apply
bg-components-button-secondary-bg-disabled
border-components-button-secondary-border-disabled
text-components-button-secondary-accent-text-disabled;
}
.btn-warning {
@apply
bg-components-button-destructive-primary-bg
border-components-button-destructive-primary-border
hover:bg-components-button-destructive-primary-bg-hover
hover:border-components-button-destructive-primary-border-hover
@apply
bg-components-button-destructive-primary-bg
border-components-button-destructive-primary-border
hover:bg-components-button-destructive-primary-bg-hover
hover:border-components-button-destructive-primary-border-hover
text-components-button-destructive-primary-text;
}
.btn-warning.btn-disabled {
@apply
bg-components-button-destructive-primary-bg-disabled
border-components-button-destructive-primary-border-disabled
@apply
bg-components-button-destructive-primary-bg-disabled
border-components-button-destructive-primary-border-disabled
text-components-button-destructive-primary-text-disabled;
}
.btn-tertiary {
@apply
bg-components-button-tertiary-bg
hover:bg-components-button-tertiary-bg-hover
@apply
bg-components-button-tertiary-bg
hover:bg-components-button-tertiary-bg-hover
text-components-button-tertiary-text;
}
.btn-tertiary.btn-disabled {
@apply
bg-components-button-tertiary-bg-disabled
@apply
bg-components-button-tertiary-bg-disabled
text-components-button-tertiary-text-disabled;
}
.btn-tertiary.btn-destructive {
@apply
bg-components-button-destructive-tertiary-bg
hover:bg-components-button-destructive-tertiary-bg-hover
@apply
bg-components-button-destructive-tertiary-bg
hover:bg-components-button-destructive-tertiary-bg-hover
text-components-button-destructive-tertiary-text;
}
.btn-tertiary.btn-destructive.btn-disabled {
@apply
bg-components-button-destructive-tertiary-bg-disabled
@apply
bg-components-button-destructive-tertiary-bg-disabled
text-components-button-destructive-tertiary-text-disabled;
}
.btn-ghost {
@apply
hover:bg-components-button-ghost-bg-hover
@apply
hover:bg-components-button-ghost-bg-hover
text-components-button-ghost-text;
}
.btn-ghost.btn-disabled {
@apply
@apply
text-components-button-ghost-text-disabled;
}
.btn-ghost.btn-destructive {
@apply
hover:bg-components-button-destructive-ghost-bg-hover
@apply
hover:bg-components-button-destructive-ghost-bg-hover
text-components-button-destructive-ghost-text;
}
.btn-ghost.btn-destructive.btn-disabled {
@apply
@apply
text-components-button-destructive-ghost-text-disabled;
}
.btn-ghost-accent {
@apply
@apply
hover:bg-state-accent-hover
text-components-button-secondary-accent-text;
}
.btn-ghost-accent.btn-disabled {
@apply
@apply
text-components-button-secondary-accent-text-disabled;
}
}
}

View file

@ -2,25 +2,25 @@ export const markdownContentSVG = `
\`\`\`svg
<svg width="400" height="600" xmlns="http://www.w3.org/2000/svg">
<rect width="100%" height="100%" fill="#F0F8FF"/>
<text x="50%" y="60" font-family="楷体" font-size="32" fill="#4682B4" text-anchor="middle">创意Logo设计</text>
<line x1="50" y1="80" x2="350" y2="80" stroke="#B0C4DE" stroke-width="2"/>
<text x="50%" y="120" font-family="Arial" font-size="24" fill="#708090" text-anchor="middle">科研</text>
<text x="50%" y="150" font-family="MS Mincho" font-size="20" fill="#778899" text-anchor="middle">科学研究</text>
<text x="50%" y="200" font-family="汇文明朝体" font-size="18" fill="#696969" text-anchor="middle">
<tspan x="50%" dy="25">探索未知的灯塔,</tspan>
<tspan x="50%" dy="25">照亮人类前进的道路。</tspan>
<tspan x="50%" dy="25">科研,是永不熄灭的好奇心,</tspan>
<tspan x="50%" dy="25">也是推动世界进步的引擎。</tspan>
</text>
<circle cx="200" cy="400" r="80" fill="none" stroke="#4169E1" stroke-width="3"/>
<line x1="200" y1="320" x2="200" y2="480" stroke="#4169E1" stroke-width="3"/>
<line x1="120" y1="400" x2="280" y2="400" stroke="#4169E1" stroke-width="3"/>
<text x="50%" y="550" font-family="微软雅黑" font-size="16" fill="#1E90FF" text-anchor="middle">探索 • 创新 • 进步</text>
</svg>
\`\`\`

View file

@ -79,4 +79,4 @@
.avatar::after {
left: 5px;
}
}

View file

@ -12,4 +12,4 @@
.copyIcon.copied {
background-image: url(~@/app/components/develop/secret-key/assets/copied.svg);
}
}

View file

@ -17,4 +17,4 @@
.slider-track-1 {
background-color: #E5E7EB;
}
}

View file

@ -2,4 +2,4 @@
background-image: url(./Grid.svg);
background-repeat: repeat;
background-position: 0 0;
}
}

View file

@ -89,4 +89,4 @@
]
},
"name": "Robot"
}
}

View file

@ -86,4 +86,4 @@
]
},
"name": "User"
}
}

View file

@ -26,4 +26,4 @@
]
},
"name": "ArCube1"
}
}

View file

@ -35,4 +35,4 @@
]
},
"name": "Asterisk"
}
}

View file

@ -176,4 +176,4 @@
]
},
"name": "AwsMarketplace"
}
}

View file

@ -190,4 +190,4 @@
]
},
"name": "Azure"
}
}

View file

@ -36,4 +36,4 @@
]
},
"name": "Buildings"
}
}

View file

@ -36,4 +36,4 @@
]
},
"name": "Diamond"
}
}

View file

@ -63,4 +63,4 @@
]
},
"name": "GoogleCloud"
}
}

View file

@ -26,4 +26,4 @@
]
},
"name": "Group2"
}
}

View file

@ -25,4 +25,4 @@
]
},
"name": "Keyframe"
}
}

View file

@ -92,4 +92,4 @@
]
},
"name": "Sparkles"
}
}

View file

@ -33,4 +33,4 @@
]
},
"name": "SparklesSoft"
}
}

View file

@ -122,4 +122,4 @@
]
},
"name": "D"
}
}

View file

@ -25,4 +25,4 @@
]
},
"name": "DiagonalDividingLine"
}
}

View file

@ -59,4 +59,4 @@
]
},
"name": "Dify"
}
}

View file

@ -337,4 +337,4 @@
]
},
"name": "Gdpr"
}
}

View file

@ -33,4 +33,4 @@
]
},
"name": "Github"
}
}

View file

@ -64,4 +64,4 @@
]
},
"name": "Highlight"
}
}

View file

@ -118,4 +118,4 @@
]
},
"name": "Iso"
}
}

View file

@ -25,4 +25,4 @@
]
},
"name": "Line3"
}
}

View file

@ -35,4 +35,4 @@
]
},
"name": "Lock"
}
}

View file

@ -34,4 +34,4 @@
]
},
"name": "MessageChatSquare"
}
}

View file

@ -150,4 +150,4 @@
]
},
"name": "MultiPathRetrieval"
}
}

View file

@ -143,4 +143,4 @@
]
},
"name": "NTo1Retrieval"
}
}

View file

@ -80,4 +80,4 @@
]
},
"name": "Notion"
}
}

View file

@ -935,4 +935,4 @@
]
},
"name": "Soc2"
}
}

View file

@ -44,4 +44,4 @@
]
},
"name": "SparklesSoft"
}
}

View file

@ -24,4 +24,4 @@
]
},
"name": "Triangle"
}
}

View file

@ -178,4 +178,4 @@
]
},
"name": "Csv"
}
}

View file

@ -166,4 +166,4 @@
]
},
"name": "Doc"
}
}

View file

@ -175,4 +175,4 @@
]
},
"name": "Docx"
}
}

View file

@ -175,4 +175,4 @@
]
},
"name": "Html"
}
}

View file

@ -175,4 +175,4 @@
]
},
"name": "Json"
}
}

View file

@ -141,4 +141,4 @@
]
},
"name": "Md"
}
}

View file

@ -166,4 +166,4 @@
]
},
"name": "Pdf"
}
}

View file

@ -177,4 +177,4 @@
]
},
"name": "Txt"
}
}

View file

@ -196,4 +196,4 @@
]
},
"name": "Unknown"
}
}

View file

@ -142,4 +142,4 @@
]
},
"name": "Xlsx"
}
}

View file

@ -178,4 +178,4 @@
]
},
"name": "Yaml"
}
}

View file

@ -113,4 +113,4 @@
]
},
"name": "Chunk"
}
}

View file

@ -59,4 +59,4 @@
]
},
"name": "Collapse"
}
}

View file

@ -35,4 +35,4 @@
]
},
"name": "GeneralType"
}
}

View file

@ -33,4 +33,4 @@
]
},
"name": "LayoutRight2LineMod"
}
}

View file

@ -53,4 +53,4 @@
]
},
"name": "ParentChildType"
}
}

View file

@ -113,4 +113,4 @@
]
},
"name": "SelectionMod"
}
}

View file

@ -34,4 +34,4 @@
]
},
"name": "Anthropic"
}
}

View file

@ -1043,4 +1043,4 @@
]
},
"name": "AnthropicDark"
}
}

View file

@ -1043,4 +1043,4 @@
]
},
"name": "AnthropicLight"
}
}

View file

@ -536,4 +536,4 @@
]
},
"name": "AnthropicText"
}
}

View file

@ -71,4 +71,4 @@
]
},
"name": "AzureOpenaiService"
}
}

View file

@ -233,4 +233,4 @@
]
},
"name": "AzureOpenaiServiceText"
}
}

View file

@ -177,4 +177,4 @@
]
},
"name": "Azureai"
}
}

View file

@ -240,4 +240,4 @@
]
},
"name": "AzureaiText"
}
}

View file

@ -73,4 +73,4 @@
]
},
"name": "Baichuan"
}
}

View file

@ -153,4 +153,4 @@
]
},
"name": "BaichuanText"
}
}

View file

@ -69,4 +69,4 @@
]
},
"name": "Chatglm"
}
}

View file

@ -132,4 +132,4 @@
]
},
"name": "ChatglmText"
}
}

View file

@ -109,4 +109,4 @@
]
},
"name": "Cohere"
}
}

View file

@ -87,4 +87,4 @@
]
},
"name": "CohereText"
}
}

View file

@ -48,4 +48,4 @@
]
},
"name": "Gpt3"
}
}

View file

@ -48,4 +48,4 @@
]
},
"name": "Gpt4"
}
}

View file

@ -155,4 +155,4 @@
]
},
"name": "Huggingface"
}
}

View file

@ -319,4 +319,4 @@
]
},
"name": "HuggingfaceText"
}
}

View file

@ -347,4 +347,4 @@
]
},
"name": "HuggingfaceTextHub"
}
}

View file

@ -41,4 +41,4 @@
]
},
"name": "IflytekSpark"
}
}

View file

@ -184,4 +184,4 @@
]
},
"name": "IflytekSparkText"
}
}

View file

@ -95,4 +95,4 @@
]
},
"name": "IflytekSparkTextCn"
}
}

View file

@ -32,4 +32,4 @@
]
},
"name": "Jina"
}
}

View file

@ -79,4 +79,4 @@
]
},
"name": "JinaText"
}
}

View file

@ -104,4 +104,4 @@
]
},
"name": "Localai"
}
}

View file

@ -167,4 +167,4 @@
]
},
"name": "LocalaiText"
}
}

View file

@ -73,4 +73,4 @@
]
},
"name": "Microsoft"
}
}

View file

@ -34,4 +34,4 @@
]
},
"name": "OpenaiBlack"
}
}

Some files were not shown because too many files have changed in this diff Show more