Переглянути джерело

Feat: Modify the style of the agent page bright theme #3221 (#9162)

### What problem does this PR solve?

Feat: Modify the style of the agent page bright theme #3221

### Type of change


- [x] New Feature (non-breaking change which adds functionality)
tags/v0.20.0
balibabu 3 місяці тому
джерело
коміт
8fd12b670e
Аккаунт користувача з таким Email не знайдено

+ 16
- 6
web/src/assets/svg/arxiv.svg Переглянути файл

@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<svg width="160px" height="160px" viewBox="0 0 160 160" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<svg viewBox="0 0 160 160" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<title>arxiv</title>
<defs>
<rect id="path-1" x="0" y="0" width="160" height="160"></rect>
@@ -13,11 +13,21 @@
<use id="矩形" fill-opacity="0" fill="#D8D8D8" xlink:href="#path-1"></use>
<g id="RAGFlow" mask="url(#mask-2)" fill-rule="nonzero">
<g transform="translate(17, 17)">
<path d="M0,92.399959 L0,33.600041 C0,15.0432508 15.0432508,0 33.600041,0 L92.399959,0 C110.956749,0 126,15.0432508 126,33.600041 L126,92.399959 C126,110.956749 110.956749,126 92.399959,126 L33.600041,126 C15.0432508,126 0,110.956749 0,92.399959 Z" id="路径" fill="#FFFFFF"></path>
<path d="M0,92.399959 L0,33.600041 C0,15.0432508 15.0432508,0 33.600041,0 L92.399959,0 C110.956749,0 126,15.0432508 126,33.600041 L126,92.399959 C126,110.956749 110.956749,126 92.399959,126 L33.600041,126 C15.0432508,126 0,110.956749 0,92.399959 Z M4.19995898,92.399959 C4.19995898,100.519986 7.06998633,107.449986 12.810041,113.189959 C18.5500137,118.930014 25.4800137,121.800041 33.600041,121.800041 L92.399959,121.800041 C100.519986,121.800041 107.449986,118.930014 113.189959,113.189959 C118.930014,107.449986 121.800041,100.519986 121.800041,92.399959 L121.800041,33.600041 C121.800041,25.4800137 118.930014,18.5500137 113.189959,12.810041 C107.449986,7.06998633 100.519986,4.19995898 92.399959,4.19995898 L33.600041,4.19995898 C25.4800137,4.19995898 18.5500137,7.06998633 12.810041,12.810041 C7.06998633,18.5500137 4.19995898,25.4800137 4.19995898,33.600041 L4.19995898,92.399959 Z" id="形状" fill="#F0F0F0"></path>
<path d="M53.3315918,51.386959 L62.8487754,62.8865508 L90.8795918,29.9585918 C92.3623066,27.9845508 93.0636738,26.9471426 92.3623066,25.2671836 C91.6052412,23.4496606 89.87227,22.2279294 87.906041,22.1255508 C86.7999035,22.0626843 85.7171853,22.4611021 84.9156328,23.225959 L53.3315918,51.386959 Z" id="路径" fill="#BDB9B4"></path>
<path d="M78.4308164,56.8848164 L33.8856328,14.153959 C33.0032481,13.0616248 31.7621153,12.3175642 30.3828574,12.054041 C28.5139412,12.0106773 26.8064134,13.1080154 26.0694492,14.826041 C25.368082,16.506 25.871959,17.6861426 27.4091836,19.8911426 L62.8572656,62.9077148 L36.4728164,95.3148164 C35.0741426,96.7596328 34.5575918,98.8428164 35.1162246,100.774775 C35.8428164,102.542959 37.5732246,103.689633 39.4841426,103.672959 C40.7054392,103.64707 41.853926,103.086681 42.6257754,102.139857 L78.4055918,68.8758574 C81.963,65.6754082 81.9755508,60.0976934 78.4308164,56.8848164 L78.4308164,56.8848164 Z" id="路径" fill="#B31B1B"></path>
<path d="M98.5697754,105.970184 L62.7649805,62.8151836 L53.2519805,51.3197754 L47.4138984,56.5865508 C45.7270675,58.2188882 44.7746977,60.465769 44.7746977,62.8130918 C44.7746977,65.1604146 45.7270675,67.4072954 47.4138984,69.0396328 L92.8285313,112.803715 C93.6349805,113.643633 94.7815313,114.076143 95.9449395,113.983734 C97.7262667,113.955776 99.3112505,112.846497 99.9475313,111.182449 C100.472427,109.325094 99.944496,107.329272 98.5698984,105.974367 L98.5697754,105.970184 Z" id="路径" fill="#BDB9B4"></path>
<path
d="M0,92.399959 L0,33.600041 C0,15.0432508 15.0432508,0 33.600041,0 L92.399959,0 C110.956749,0 126,15.0432508 126,33.600041 L126,92.399959 C126,110.956749 110.956749,126 92.399959,126 L33.600041,126 C15.0432508,126 0,110.956749 0,92.399959 Z"
id="路径" fill="#FFFFFF"></path>
<path
d="M0,92.399959 L0,33.600041 C0,15.0432508 15.0432508,0 33.600041,0 L92.399959,0 C110.956749,0 126,15.0432508 126,33.600041 L126,92.399959 C126,110.956749 110.956749,126 92.399959,126 L33.600041,126 C15.0432508,126 0,110.956749 0,92.399959 Z M4.19995898,92.399959 C4.19995898,100.519986 7.06998633,107.449986 12.810041,113.189959 C18.5500137,118.930014 25.4800137,121.800041 33.600041,121.800041 L92.399959,121.800041 C100.519986,121.800041 107.449986,118.930014 113.189959,113.189959 C118.930014,107.449986 121.800041,100.519986 121.800041,92.399959 L121.800041,33.600041 C121.800041,25.4800137 118.930014,18.5500137 113.189959,12.810041 C107.449986,7.06998633 100.519986,4.19995898 92.399959,4.19995898 L33.600041,4.19995898 C25.4800137,4.19995898 18.5500137,7.06998633 12.810041,12.810041 C7.06998633,18.5500137 4.19995898,25.4800137 4.19995898,33.600041 L4.19995898,92.399959 Z"
id="形状" fill="#F0F0F0"></path>
<path
d="M53.3315918,51.386959 L62.8487754,62.8865508 L90.8795918,29.9585918 C92.3623066,27.9845508 93.0636738,26.9471426 92.3623066,25.2671836 C91.6052412,23.4496606 89.87227,22.2279294 87.906041,22.1255508 C86.7999035,22.0626843 85.7171853,22.4611021 84.9156328,23.225959 L53.3315918,51.386959 Z"
id="路径" fill="#BDB9B4"></path>
<path
d="M78.4308164,56.8848164 L33.8856328,14.153959 C33.0032481,13.0616248 31.7621153,12.3175642 30.3828574,12.054041 C28.5139412,12.0106773 26.8064134,13.1080154 26.0694492,14.826041 C25.368082,16.506 25.871959,17.6861426 27.4091836,19.8911426 L62.8572656,62.9077148 L36.4728164,95.3148164 C35.0741426,96.7596328 34.5575918,98.8428164 35.1162246,100.774775 C35.8428164,102.542959 37.5732246,103.689633 39.4841426,103.672959 C40.7054392,103.64707 41.853926,103.086681 42.6257754,102.139857 L78.4055918,68.8758574 C81.963,65.6754082 81.9755508,60.0976934 78.4308164,56.8848164 L78.4308164,56.8848164 Z"
id="路径" fill="#B31B1B"></path>
<path
d="M98.5697754,105.970184 L62.7649805,62.8151836 L53.2519805,51.3197754 L47.4138984,56.5865508 C45.7270675,58.2188882 44.7746977,60.465769 44.7746977,62.8130918 C44.7746977,65.1604146 45.7270675,67.4072954 47.4138984,69.0396328 L92.8285313,112.803715 C93.6349805,113.643633 94.7815313,114.076143 95.9449395,113.983734 C97.7262667,113.955776 99.3112505,112.846497 99.9475313,111.182449 C100.472427,109.325094 99.944496,107.329272 98.5698984,105.974367 L98.5697754,105.970184 Z"
id="路径" fill="#BDB9B4"></path>
</g>
</g>
</g>

+ 19
- 7
web/src/assets/svg/duck.svg Переглянути файл

@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<svg width="160px" height="160px" viewBox="0 0 160 160" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<svg viewBox="0 0 160 160" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<title>duckgo</title>
<defs>
<rect id="path-1" x="0" y="0" width="160" height="160"></rect>
@@ -13,12 +13,24 @@
<use id="矩形" fill-opacity="0" fill="#D8D8D8" xlink:href="#path-1"></use>
<g id="RAGFlow" mask="url(#mask-2)" fill-rule="nonzero">
<g transform="translate(17, 17)">
<path d="M0,63 C0,85.507732 12.0077316,106.305734 31.5,117.5596 C50.9922676,128.813467 75.0077324,128.813467 94.5,117.5596 C113.992268,106.305734 126,85.507732 126,63 C126,40.492268 113.992268,19.6942657 94.5,8.4403996 C75.0077324,-2.81346653 50.9922676,-2.81346653 31.5,8.4403996 C12.0077316,19.6942657 0,40.492268 0,63 L0,63 Z" id="路径" fill="#CC6633"></path>
<path d="M4.64210526,63.3315789 C4.64210526,95.3786276 30.6213718,121.357894 62.6684211,121.357894 C94.7154704,121.357894 120.694737,95.3786276 120.694737,63.3315789 C120.694737,31.2845303 94.7154704,5.30526437 62.6684211,5.30526437 C30.6213718,5.30526437 4.64210526,31.2845303 4.64210526,63.3315789 Z" id="路径" fill="#FFFFFF"></path>
<path d="M117.445263,63.8621052 C117.445263,89.7252626 99.54,111.476841 75.4673684,117.31263 C74.0084211,114.527367 72.6157895,111.80842 71.4221053,109.553683 C75.5336842,113.201052 80.5073684,114.593683 83.2926316,112.869473 C86.8736842,110.681052 88.1336842,102.656841 82.5631579,95.3621046 C80.8389474,95.4284204 78.5842105,95.6936835 76.0642105,96.4231572 C72.4831579,97.4842098 69.8305263,99.1421045 68.1063158,100.402104 C66.5810526,98.0810519 64.4589474,94.1021046 63.3978947,88.7968416 C62.5357895,84.4863153 62.7347368,80.7726312 63.0663158,78.2526313 C64.9894737,79.578947 77.7884211,83.8894732 84.1547368,83.7568417 C90.5210526,83.6242101 100.932632,79.7778944 99.8052632,76.6610523 C98.6778947,73.5442103 88.3326316,79.3799997 77.4568421,78.3852628 C69.4326316,77.6557892 68.04,74.0747366 69.8305263,71.4221051 C72.0852632,68.1063157 76.1305263,72.0189472 82.8284211,70.0294735 C89.5263158,68.0399999 98.9431579,64.4589473 102.391579,62.4694737 C110.415789,57.9600001 99.0094737,56.103158 96.3568421,57.363158 C93.7705263,58.5568422 84.9505263,60.811579 80.7726316,61.8063158 C83.0936842,53.6494739 77.5231579,39.4578952 71.2894737,33.2242112 C69.2336842,31.1684217 66.1831579,29.9084217 62.6684211,29.2452639 C61.3421053,27.3884218 59.1536842,25.5978955 56.0368421,24.0063166 C50.0684211,20.8894746 43.3042105,19.7621062 36.6726316,20.8894746 L36.3410526,20.8894746 C35.5452632,21.0221061 35.0810526,21.3536851 34.4178947,21.4200009 C35.2136842,21.4863167 38.1978947,22.8789482 40.1210526,23.6747377 C39.1926316,24.0726324 37.9326316,24.2715798 36.9378947,24.6694745 C36.54,24.7357903 36.2084211,24.8021061 35.8105263,25.0010534 C34.8821053,25.3989482 34.1526316,26.9905271 34.2189474,27.7863165 C38.7284211,27.322106 45.4263158,27.653685 50.3336842,29.1126323 C46.8852632,29.5768428 43.7021053,30.5052638 41.3810526,31.698948 C41.3147368,31.7652638 41.2484211,31.7652638 41.1157895,31.8315796 C40.8505263,31.9642112 40.5189474,32.030527 40.32,32.1631585 C32.9589474,36.0094743 29.7094737,45.0947372 31.6326316,55.9705265 C33.3568421,65.7852631 40.5852632,99.5399992 43.9673684,115.58842 C22.68,108.293683 7.36105263,87.8684205 7.36105263,63.8621052 C7.36105263,33.4231585 32.0305263,8.82000114 62.4031579,8.82000114 C92.7757895,8.82000114 117.445263,33.4894743 117.445263,63.8621052 Z" id="路径" fill="#DE5833"></path>
<path d="M42.6410526,54.9094739 C42.6410526,57.1802362 44.4818692,59.0210527 46.7526316,59.0210527 C49.0233939,59.0210527 50.8642105,57.1802362 50.8642105,54.9094739 C50.8642105,52.6387116 49.0233939,50.797895 46.7526316,50.797895 C44.4818692,50.797895 42.6410526,52.6387116 42.6410526,54.9094739 Z M74.0084211,49.0073687 C72.0852632,48.9410529 70.4273684,50.4663161 70.3610526,52.3894739 C70.2947368,54.3126318 71.82,55.9705265 73.7431579,56.0368423 L74.0084211,56.0368423 C75.9315789,56.0368423 77.5231579,54.4452633 77.5231579,52.5221055 C77.5231579,50.5989476 75.9315789,49.0073687 74.0084211,49.0073687 Z M47.88,43.1052636 C47.88,43.1052636 44.8294737,41.712632 41.8452632,43.5694741 C38.8610526,45.4926319 38.9936842,47.4157898 38.9936842,47.4157898 C38.9936842,47.4157898 37.4021053,43.901053 41.6463158,42.1768425 C45.8242105,40.3863163 47.9463158,43.1052636 47.88,43.1052636 L47.88,43.1052636 Z M76.1305263,42.8400004 C76.1305263,42.8400004 73.9421053,41.5800005 72.2178947,41.5800005 C68.7031579,41.6463162 67.7084211,43.1715794 67.7084211,43.1715794 C67.7084211,43.1715794 68.3052632,39.4578952 72.8147368,40.1873689 C74.2736842,40.5189478 75.5336842,41.4473689 76.1305263,42.8400004 Z" id="形状" fill="#336699"></path>
<path d="M67.5094737,64.6578947 C70.6926316,63.3978947 72.0852632,63.3978947 77.1252632,62.4031579 C80.3084211,61.74 84.4863158,60.8778948 89.3936842,59.3526317 C93.3063158,58.1589475 94.1684211,57.5621054 96.6884211,57.363158 C100.070526,57.0978949 104.778947,57.4957896 105.309474,59.3526317 C105.574737,60.2147369 104.712632,61.1431579 103.983158,62.0052632 C102.126316,64.1273684 99.8052632,64.8568421 96.0252632,65.9842105 C91.3168421,67.4431578 90.9852632,67.4431578 89.3936842,67.9736841 C81.8336842,70.3610525 82.2315789,71.0242104 79.4463158,71.2894735 C74.4063158,71.753684 71.5547368,69.6315788 70.1621053,71.2894735 C69.3,72.3505261 69.5652632,74.1410524 70.1621053,75.2684208 C71.0242105,76.7936839 72.7484211,77.2578944 75.4673684,77.9210523 C78.7831579,78.7168418 81.4357895,78.650526 82.0989474,78.5842102 C84.4863158,78.4515786 86.2105263,77.9873681 88.7305263,77.2578944 C94.0357895,75.7326313 95.5610526,74.4726313 98.0147368,75.2684208 C98.4789474,75.4010524 100.534737,76.0642103 100.667368,77.2578944 C100.932632,79.6452628 93.7042105,82.8947364 87.4042105,83.8894732 C81.3031579,84.8178943 76.1968421,83.5578943 74.8042105,83.2263154 C73.8757895,82.9610522 72.2178947,82.4305259 68.8357895,81.2368417 C64.9894737,79.910526 63.9947368,79.4463154 62.8673684,78.5842102 C61.6736842,77.6557892 59.8831579,76.2631576 59.5515789,73.942105 C59.22,71.5547367 60.7452632,69.6315788 61.5410526,68.636842 C62.7347368,67.1778946 64.3263158,65.9178947 67.5094737,64.6578947 L67.5094737,64.6578947 Z" id="路径" fill="#FDD20A"></path>
<path d="M64.1936842,100.46842 C64.7242105,100.00421 65.3873684,99.5399992 66.1831579,99.1421045 C67.7084211,98.346315 69.1010526,97.9484203 70.1621053,97.8157887 C69.9631579,98.2799993 69.6978947,98.677894 69.4989474,99.1421045 C71.3557895,98.2136835 73.3452632,97.3515782 75.4673684,96.489473 C78.7168421,95.1631572 81.8336842,94.1021046 84.7515789,93.1736836 C85.7463158,94.7652625 87.6031579,97.9484203 88.0673684,102.457894 C88.5315789,107.033683 87.4042105,110.681052 86.7410526,112.405262 C85.9452632,112.869473 82.4968421,114.659999 78.12,113.731578 C73.7431579,112.803157 71.4221053,109.818946 70.8252632,109.089473 C70.6263158,109.752631 70.3610526,110.415788 70.1621053,111.078946 C69.4326316,111.211578 68.2389474,111.34421 66.8463158,111.078946 C65.3210526,110.813683 64.1936842,110.150525 63.5305263,109.752631 C60.4136842,111.277894 57.3631579,112.869473 54.2463158,114.394736 C53.7821053,114.991578 52.9863158,115.256841 52.2568421,115.057894 C51.2621053,114.79263 50.9305263,113.797894 50.9305263,113.731578 C50.2010526,111.543157 49.4715789,108.82421 48.9410526,105.773683 C48.4105263,102.52421 48.2778947,99.606315 48.2778947,97.1526309 C48.0126316,96.3568414 48.3442105,95.4947362 48.9410526,95.1631572 C49.5378947,94.8315783 50.2010526,95.0968414 50.2673684,95.1631572 C52.7210526,95.4947362 56.0368421,96.157894 59.5515789,97.8157887 C61.3421053,98.677894 62.9336842,99.606315 64.1936842,100.46842 L64.1936842,100.46842 Z" id="路径" fill="#66CC33"></path>
<path
d="M0,63 C0,85.507732 12.0077316,106.305734 31.5,117.5596 C50.9922676,128.813467 75.0077324,128.813467 94.5,117.5596 C113.992268,106.305734 126,85.507732 126,63 C126,40.492268 113.992268,19.6942657 94.5,8.4403996 C75.0077324,-2.81346653 50.9922676,-2.81346653 31.5,8.4403996 C12.0077316,19.6942657 0,40.492268 0,63 L0,63 Z"
id="路径" fill="#CC6633"></path>
<path
d="M4.64210526,63.3315789 C4.64210526,95.3786276 30.6213718,121.357894 62.6684211,121.357894 C94.7154704,121.357894 120.694737,95.3786276 120.694737,63.3315789 C120.694737,31.2845303 94.7154704,5.30526437 62.6684211,5.30526437 C30.6213718,5.30526437 4.64210526,31.2845303 4.64210526,63.3315789 Z"
id="路径" fill="#FFFFFF"></path>
<path
d="M117.445263,63.8621052 C117.445263,89.7252626 99.54,111.476841 75.4673684,117.31263 C74.0084211,114.527367 72.6157895,111.80842 71.4221053,109.553683 C75.5336842,113.201052 80.5073684,114.593683 83.2926316,112.869473 C86.8736842,110.681052 88.1336842,102.656841 82.5631579,95.3621046 C80.8389474,95.4284204 78.5842105,95.6936835 76.0642105,96.4231572 C72.4831579,97.4842098 69.8305263,99.1421045 68.1063158,100.402104 C66.5810526,98.0810519 64.4589474,94.1021046 63.3978947,88.7968416 C62.5357895,84.4863153 62.7347368,80.7726312 63.0663158,78.2526313 C64.9894737,79.578947 77.7884211,83.8894732 84.1547368,83.7568417 C90.5210526,83.6242101 100.932632,79.7778944 99.8052632,76.6610523 C98.6778947,73.5442103 88.3326316,79.3799997 77.4568421,78.3852628 C69.4326316,77.6557892 68.04,74.0747366 69.8305263,71.4221051 C72.0852632,68.1063157 76.1305263,72.0189472 82.8284211,70.0294735 C89.5263158,68.0399999 98.9431579,64.4589473 102.391579,62.4694737 C110.415789,57.9600001 99.0094737,56.103158 96.3568421,57.363158 C93.7705263,58.5568422 84.9505263,60.811579 80.7726316,61.8063158 C83.0936842,53.6494739 77.5231579,39.4578952 71.2894737,33.2242112 C69.2336842,31.1684217 66.1831579,29.9084217 62.6684211,29.2452639 C61.3421053,27.3884218 59.1536842,25.5978955 56.0368421,24.0063166 C50.0684211,20.8894746 43.3042105,19.7621062 36.6726316,20.8894746 L36.3410526,20.8894746 C35.5452632,21.0221061 35.0810526,21.3536851 34.4178947,21.4200009 C35.2136842,21.4863167 38.1978947,22.8789482 40.1210526,23.6747377 C39.1926316,24.0726324 37.9326316,24.2715798 36.9378947,24.6694745 C36.54,24.7357903 36.2084211,24.8021061 35.8105263,25.0010534 C34.8821053,25.3989482 34.1526316,26.9905271 34.2189474,27.7863165 C38.7284211,27.322106 45.4263158,27.653685 50.3336842,29.1126323 C46.8852632,29.5768428 43.7021053,30.5052638 41.3810526,31.698948 C41.3147368,31.7652638 41.2484211,31.7652638 41.1157895,31.8315796 C40.8505263,31.9642112 40.5189474,32.030527 40.32,32.1631585 C32.9589474,36.0094743 29.7094737,45.0947372 31.6326316,55.9705265 C33.3568421,65.7852631 40.5852632,99.5399992 43.9673684,115.58842 C22.68,108.293683 7.36105263,87.8684205 7.36105263,63.8621052 C7.36105263,33.4231585 32.0305263,8.82000114 62.4031579,8.82000114 C92.7757895,8.82000114 117.445263,33.4894743 117.445263,63.8621052 Z"
id="路径" fill="#DE5833"></path>
<path
d="M42.6410526,54.9094739 C42.6410526,57.1802362 44.4818692,59.0210527 46.7526316,59.0210527 C49.0233939,59.0210527 50.8642105,57.1802362 50.8642105,54.9094739 C50.8642105,52.6387116 49.0233939,50.797895 46.7526316,50.797895 C44.4818692,50.797895 42.6410526,52.6387116 42.6410526,54.9094739 Z M74.0084211,49.0073687 C72.0852632,48.9410529 70.4273684,50.4663161 70.3610526,52.3894739 C70.2947368,54.3126318 71.82,55.9705265 73.7431579,56.0368423 L74.0084211,56.0368423 C75.9315789,56.0368423 77.5231579,54.4452633 77.5231579,52.5221055 C77.5231579,50.5989476 75.9315789,49.0073687 74.0084211,49.0073687 Z M47.88,43.1052636 C47.88,43.1052636 44.8294737,41.712632 41.8452632,43.5694741 C38.8610526,45.4926319 38.9936842,47.4157898 38.9936842,47.4157898 C38.9936842,47.4157898 37.4021053,43.901053 41.6463158,42.1768425 C45.8242105,40.3863163 47.9463158,43.1052636 47.88,43.1052636 L47.88,43.1052636 Z M76.1305263,42.8400004 C76.1305263,42.8400004 73.9421053,41.5800005 72.2178947,41.5800005 C68.7031579,41.6463162 67.7084211,43.1715794 67.7084211,43.1715794 C67.7084211,43.1715794 68.3052632,39.4578952 72.8147368,40.1873689 C74.2736842,40.5189478 75.5336842,41.4473689 76.1305263,42.8400004 Z"
id="形状" fill="#336699"></path>
<path
d="M67.5094737,64.6578947 C70.6926316,63.3978947 72.0852632,63.3978947 77.1252632,62.4031579 C80.3084211,61.74 84.4863158,60.8778948 89.3936842,59.3526317 C93.3063158,58.1589475 94.1684211,57.5621054 96.6884211,57.363158 C100.070526,57.0978949 104.778947,57.4957896 105.309474,59.3526317 C105.574737,60.2147369 104.712632,61.1431579 103.983158,62.0052632 C102.126316,64.1273684 99.8052632,64.8568421 96.0252632,65.9842105 C91.3168421,67.4431578 90.9852632,67.4431578 89.3936842,67.9736841 C81.8336842,70.3610525 82.2315789,71.0242104 79.4463158,71.2894735 C74.4063158,71.753684 71.5547368,69.6315788 70.1621053,71.2894735 C69.3,72.3505261 69.5652632,74.1410524 70.1621053,75.2684208 C71.0242105,76.7936839 72.7484211,77.2578944 75.4673684,77.9210523 C78.7831579,78.7168418 81.4357895,78.650526 82.0989474,78.5842102 C84.4863158,78.4515786 86.2105263,77.9873681 88.7305263,77.2578944 C94.0357895,75.7326313 95.5610526,74.4726313 98.0147368,75.2684208 C98.4789474,75.4010524 100.534737,76.0642103 100.667368,77.2578944 C100.932632,79.6452628 93.7042105,82.8947364 87.4042105,83.8894732 C81.3031579,84.8178943 76.1968421,83.5578943 74.8042105,83.2263154 C73.8757895,82.9610522 72.2178947,82.4305259 68.8357895,81.2368417 C64.9894737,79.910526 63.9947368,79.4463154 62.8673684,78.5842102 C61.6736842,77.6557892 59.8831579,76.2631576 59.5515789,73.942105 C59.22,71.5547367 60.7452632,69.6315788 61.5410526,68.636842 C62.7347368,67.1778946 64.3263158,65.9178947 67.5094737,64.6578947 L67.5094737,64.6578947 Z"
id="路径" fill="#FDD20A"></path>
<path
d="M64.1936842,100.46842 C64.7242105,100.00421 65.3873684,99.5399992 66.1831579,99.1421045 C67.7084211,98.346315 69.1010526,97.9484203 70.1621053,97.8157887 C69.9631579,98.2799993 69.6978947,98.677894 69.4989474,99.1421045 C71.3557895,98.2136835 73.3452632,97.3515782 75.4673684,96.489473 C78.7168421,95.1631572 81.8336842,94.1021046 84.7515789,93.1736836 C85.7463158,94.7652625 87.6031579,97.9484203 88.0673684,102.457894 C88.5315789,107.033683 87.4042105,110.681052 86.7410526,112.405262 C85.9452632,112.869473 82.4968421,114.659999 78.12,113.731578 C73.7431579,112.803157 71.4221053,109.818946 70.8252632,109.089473 C70.6263158,109.752631 70.3610526,110.415788 70.1621053,111.078946 C69.4326316,111.211578 68.2389474,111.34421 66.8463158,111.078946 C65.3210526,110.813683 64.1936842,110.150525 63.5305263,109.752631 C60.4136842,111.277894 57.3631579,112.869473 54.2463158,114.394736 C53.7821053,114.991578 52.9863158,115.256841 52.2568421,115.057894 C51.2621053,114.79263 50.9305263,113.797894 50.9305263,113.731578 C50.2010526,111.543157 49.4715789,108.82421 48.9410526,105.773683 C48.4105263,102.52421 48.2778947,99.606315 48.2778947,97.1526309 C48.0126316,96.3568414 48.3442105,95.4947362 48.9410526,95.1631572 C49.5378947,94.8315783 50.2010526,95.0968414 50.2673684,95.1631572 C52.7210526,95.4947362 56.0368421,96.157894 59.5515789,97.8157887 C61.3421053,98.677894 62.9336842,99.606315 64.1936842,100.46842 L64.1936842,100.46842 Z"
id="路径" fill="#66CC33"></path>
</g>
</g>
</g>

+ 6
- 3
web/src/assets/svg/github.svg Переглянути файл

@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<svg width="160px" height="160px" viewBox="0 0 160 160" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<svg viewBox="0 0 160 160" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<title>GitHub</title>
<defs>
<rect id="path-1" x="0" y="0" width="160" height="160"></rect>
@@ -11,9 +11,12 @@
<use xlink:href="#path-1"></use>
</mask>
<use id="矩形" fill-opacity="0" fill="#D8D8D8" xlink:href="#path-1"></use>
<g id="GitHub-·-Build-and-ship-software-on-a-single,-collaborative-platform" mask="url(#mask-2)" fill="#FFFFFF" fill-rule="nonzero">
<g id="GitHub-·-Build-and-ship-software-on-a-single,-collaborative-platform" mask="url(#mask-2)"
fill="currentColor" fill-rule="nonzero">
<g transform="translate(17, 19)" id="路径">
<path d="M63,0 C28.1925,0 0,28.1925 0,63 C0,90.8775 18.03375,114.42375 43.07625,122.77125 C46.22625,123.3225 47.4075,121.4325 47.4075,119.77875 C47.4075,118.2825 47.32875,113.32125 47.32875,108.045 C31.5,110.95875 27.405,104.18625 26.145,100.6425 C25.43625,98.83125 22.365,93.24 19.6875,91.74375 C17.4825,90.5625 14.3325,87.64875 19.60875,87.57 C24.57,87.49125 28.11375,92.1375 29.295,94.0275 C34.965,103.55625 44.02125,100.87875 47.64375,99.225 C48.195,95.13 49.84875,92.37375 51.66,90.79875 C37.6425,89.22375 22.995,83.79 22.995,59.6925 C22.995,52.84125 25.43625,47.17125 29.4525,42.76125 C28.8225,41.18625 26.6175,34.72875 30.0825,26.06625 C30.0825,26.06625 35.35875,24.4125 47.4075,32.52375 C52.4475,31.10625 57.8025,30.3975 63.1575,30.3975 C68.5125,30.3975 73.8675,31.10625 78.9075,32.52375 C90.95625,24.33375 96.2325,26.06625 96.2325,26.06625 C99.6975,34.72875 97.4925,41.18625 96.8625,42.76125 C100.87875,47.17125 103.32,52.7625 103.32,59.6925 C103.32,83.86875 88.59375,89.22375 74.57625,90.79875 C76.86,92.7675 78.82875,96.5475 78.82875,102.45375 C78.82875,110.88 78.75,117.6525 78.75,119.77875 C78.75,121.4325 79.93125,123.40125 83.08125,122.77125 C108.725764,114.113918 125.99308,90.0664077 126,63 C126,28.1925 97.8075,0 63,0 L63,0 Z"></path>
<path
d="M63,0 C28.1925,0 0,28.1925 0,63 C0,90.8775 18.03375,114.42375 43.07625,122.77125 C46.22625,123.3225 47.4075,121.4325 47.4075,119.77875 C47.4075,118.2825 47.32875,113.32125 47.32875,108.045 C31.5,110.95875 27.405,104.18625 26.145,100.6425 C25.43625,98.83125 22.365,93.24 19.6875,91.74375 C17.4825,90.5625 14.3325,87.64875 19.60875,87.57 C24.57,87.49125 28.11375,92.1375 29.295,94.0275 C34.965,103.55625 44.02125,100.87875 47.64375,99.225 C48.195,95.13 49.84875,92.37375 51.66,90.79875 C37.6425,89.22375 22.995,83.79 22.995,59.6925 C22.995,52.84125 25.43625,47.17125 29.4525,42.76125 C28.8225,41.18625 26.6175,34.72875 30.0825,26.06625 C30.0825,26.06625 35.35875,24.4125 47.4075,32.52375 C52.4475,31.10625 57.8025,30.3975 63.1575,30.3975 C68.5125,30.3975 73.8675,31.10625 78.9075,32.52375 C90.95625,24.33375 96.2325,26.06625 96.2325,26.06625 C99.6975,34.72875 97.4925,41.18625 96.8625,42.76125 C100.87875,47.17125 103.32,52.7625 103.32,59.6925 C103.32,83.86875 88.59375,89.22375 74.57625,90.79875 C76.86,92.7675 78.82875,96.5475 78.82875,102.45375 C78.82875,110.88 78.75,117.6525 78.75,119.77875 C78.75,121.4325 79.93125,123.40125 83.08125,122.77125 C108.725764,114.113918 125.99308,90.0664077 126,63 C126,28.1925 97.8075,0 63,0 L63,0 Z">
</path>
</g>
</g>
</g>

+ 7
- 3
web/src/assets/svg/google-scholar.svg Переглянути файл

@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<svg width="160px" height="160px" viewBox="0 0 160 160" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<svg viewBox="0 0 160 160" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<title>Google scholar</title>
<defs>
<rect id="path-1" x="0" y="0" width="160" height="160"></rect>
@@ -15,8 +15,12 @@
<g transform="translate(17, 17)" id="路径">
<polygon fill="#4285F4" points="63 101.174063 0 49.875082 63 0"></polygon>
<polygon fill="#356AC3" points="63 101.174063 126 49.875082 63 0"></polygon>
<path d="M26.250082,89.250082 C26.250082,109.546501 42.7035807,126 63,126 C83.2964193,126 99.749918,109.546501 99.749918,89.250082 C99.749918,76.1206008 92.7454234,63.9884597 81.3749591,57.423719 C70.0044949,50.8589783 55.9955051,50.8589783 44.6250409,57.423719 C33.2545766,63.9884597 26.250082,76.1206008 26.250082,89.250082 L26.250082,89.250082 Z" fill="#A0C3FF"></path>
<path d="M29.7864492,73.500082 C35.6848242,61.0839141 48.3399492,52.499918 63,52.499918 C77.6600508,52.499918 90.3151758,61.0839141 96.2135508,73.500082 L29.7864492,73.500082 L29.7864492,73.500082 Z" fill="#76A7FA"></path>
<path
d="M26.250082,89.250082 C26.250082,109.546501 42.7035807,126 63,126 C83.2964193,126 99.749918,109.546501 99.749918,89.250082 C99.749918,76.1206008 92.7454234,63.9884597 81.3749591,57.423719 C70.0044949,50.8589783 55.9955051,50.8589783 44.6250409,57.423719 C33.2545766,63.9884597 26.250082,76.1206008 26.250082,89.250082 L26.250082,89.250082 Z"
fill="#A0C3FF"></path>
<path
d="M29.7864492,73.500082 C35.6848242,61.0839141 48.3399492,52.499918 63,52.499918 C77.6600508,52.499918 90.3151758,61.0839141 96.2135508,73.500082 L29.7864492,73.500082 L29.7864492,73.500082 Z"
fill="#76A7FA"></path>
</g>
</g>
</g>

+ 5
- 2
web/src/assets/svg/google.svg
Різницю між файлами не показано, бо вона завелика
Переглянути файл


+ 18
- 7
web/src/assets/svg/pubmed.svg Переглянути файл

@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<svg width="160px" height="160px" viewBox="0 0 160 160" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<svg viewBox="0 0 160 160" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<title>pubmed</title>
<defs>
<rect id="path-1" x="0" y="0" width="160" height="160"></rect>
@@ -11,13 +11,24 @@
<use xlink:href="#path-1"></use>
</mask>
<use id="矩形" fill-opacity="0" fill="#D8D8D8" xlink:href="#path-1"></use>
<g id="Download-PubMed-Logo-in-SVG-Vector-or-PNG-File-Format---Logo-..." mask="url(#mask-2)" fill-rule="nonzero">
<g id="Download-PubMed-Logo-in-SVG-Vector-or-PNG-File-Format---Logo-..." mask="url(#mask-2)"
fill-rule="nonzero">
<g transform="translate(10, 55)">
<path d="M57.4181966,2.32006499 L57.4181966,35.3400487 C57.4181966,35.3400487 70.1125914,33.8627132 70.1125914,46.2625508 L70.1125914,15.0133225 C70.1125914,3.20487409 57.4181966,2.32006499 57.4181966,2.32006499" id="路径" fill="#231F1F"></path>
<path d="M63.3639318,0 L63.3639318,29.0542648 C63.3639318,29.0542648 70.3718928,30.4064988 70.3718928,42.805199 C70.3718928,55.2050366 70.4071487,19.7376117 70.4071487,13.0947197 C70.4082859,1.28740861 63.3639318,0 63.3639318,0" id="路径" fill="#AAAAAA"></path>
<path d="M70.5993501,14.7176279 L70.5993501,44.7670187 C70.5993501,44.7670187 76.6940699,27.6963444 102.314866,49.6891958 C102.314866,41.7190902 102.363769,21.6175467 102.363769,14.9735175 C77.0386677,-3.47668562 70.5993501,14.7176279 70.5993501,14.7176279 M0,37.2097482 L5.68643379,37.2097482 L5.68643379,29.9322502 L8.92542648,29.9322502 C13.9158408,29.9322502 16.7181154,27.6622258 16.7181154,22.4830219 C16.7181154,17.4482535 13.4552396,15.2623883 8.73663688,15.2623883 L0,15.2623883 L0,37.2097482 Z M5.68643379,19.8103981 L6.6565394,19.8103981 C8.89130788,19.8103981 10.8030869,19.8411048 10.8030869,22.6570268 C10.8030869,25.3819659 8.74459789,25.3819659 6.6565394,25.3819659 L5.68643379,25.3819659 L5.68643379,19.8103981 Z M18.9915516,22.3124289 L18.9915516,31.264013 C18.9915516,36.1588952 22.4864338,37.6658002 27.0094232,37.6658002 C31.5324127,37.6658002 35.0284322,36.1600325 35.0284322,31.264013 L35.0284322,22.3124289 L29.6831844,22.3124289 L29.6831844,30.2438668 C29.6831844,32.1249391 29.2123477,33.4567019 27.0094232,33.4567019 C24.8064988,33.4567019 24.3367994,32.1249391 24.3367994,30.2438668 L24.3367994,22.3124289 L18.9915516,22.3124289 Z M38.2128351,37.2097482 L43.5580829,37.2097482 L43.5580829,35.5504468 L43.6160845,35.5504468 C44.5725426,37.0084484 46.3683184,37.6646629 48.1072299,37.6646629 C52.5403737,37.6646629 55.6133225,33.9969131 55.6133225,29.6888708 C55.6133225,25.4081235 52.5688058,21.741511 48.1652315,21.741511 C46.4558895,21.741511 44.6885459,22.3943136 43.5592201,23.7283509 L43.5592201,13.0981316 L38.2139724,13.0981316 L38.2128351,37.2097482 Z M46.7424858,26.2917953 C48.8999188,26.2917953 50.1543461,27.8589764 50.1543461,29.7195776 C50.1543461,31.6393176 48.9010561,33.1155158 46.7424858,33.1155158 C44.5850528,33.1155158 43.3306255,31.6393176 43.3306255,29.7195776 C43.3306255,27.8589764 44.5839155,26.2917953 46.7424858,26.2917953 Z" id="形状" fill="#3978AD"></path>
<polygon id="路径" fill="#FFFFFF" points="80.525589 24.573355 80.5835906 24.573355 85.6217709 37.2097482 87.8940699 37.2097482 93.1642567 24.573355 93.2222583 24.573355 94.8235581 37.2097482 100.535012 37.2097482 97.2118603 15.261251 91.5345248 15.261251 86.815922 26.9912266 82.3600325 15.261251 76.7406986 15.261251 73.0138099 37.2097482 78.6911454 37.2097482"></polygon>
<path d="M109.97563,27.5428107 C110.295207,25.9801787 111.576929,25.1545085 113.11909,25.1545085 C114.545248,25.1545085 115.855402,26.0984565 116.12039,27.5428107 L109.97563,27.5428107 Z M121.036881,30.0596263 C121.036881,24.9532088 118.023071,21.7426483 112.817709,21.7426483 C107.935337,21.7426483 104.516653,24.7405361 104.516653,29.7184403 C104.516653,34.8703493 108.228757,37.6646629 113.202112,37.6646629 C116.623071,37.6646629 119.986028,36.0656377 120.834444,32.5468725 L115.725751,32.5468725 C115.143461,33.5351747 114.326889,33.9127539 113.189602,33.9127539 C111.001462,33.9127539 109.861901,32.7538587 109.861901,30.613485 L121.036881,30.613485 L121.036881,30.0596263 Z M134.653615,37.2097482 L140,37.2097482 L140,13.0992689 L134.653615,13.0992689 L134.653615,23.7294882 C133.551584,22.3954509 131.754671,21.7426483 130.046466,21.7426483 C125.641755,21.7426483 122.598375,25.4103981 122.598375,29.6888708 C122.598375,33.9673436 125.699756,37.6635256 130.104468,37.6635256 C131.841105,37.6635256 133.667587,37.0061738 134.593339,35.5493095 L134.653615,35.5493095 L134.653615,37.2097482 Z M131.470349,26.2917953 C133.626645,26.2917953 134.88221,27.8589764 134.88221,29.7195776 C134.88221,31.6393176 133.62892,33.1155158 131.470349,33.1155158 C129.314054,33.1155158 128.058489,31.6393176 128.058489,29.7195776 C128.058489,27.8589764 129.311779,26.2917953 131.470349,26.2917953 Z" id="形状" fill="#3978AD"></path>
<path
d="M57.4181966,2.32006499 L57.4181966,35.3400487 C57.4181966,35.3400487 70.1125914,33.8627132 70.1125914,46.2625508 L70.1125914,15.0133225 C70.1125914,3.20487409 57.4181966,2.32006499 57.4181966,2.32006499"
id="路径" fill="#231F1F"></path>
<path
d="M63.3639318,0 L63.3639318,29.0542648 C63.3639318,29.0542648 70.3718928,30.4064988 70.3718928,42.805199 C70.3718928,55.2050366 70.4071487,19.7376117 70.4071487,13.0947197 C70.4082859,1.28740861 63.3639318,0 63.3639318,0"
id="路径" fill="#AAAAAA"></path>
<path
d="M70.5993501,14.7176279 L70.5993501,44.7670187 C70.5993501,44.7670187 76.6940699,27.6963444 102.314866,49.6891958 C102.314866,41.7190902 102.363769,21.6175467 102.363769,14.9735175 C77.0386677,-3.47668562 70.5993501,14.7176279 70.5993501,14.7176279 M0,37.2097482 L5.68643379,37.2097482 L5.68643379,29.9322502 L8.92542648,29.9322502 C13.9158408,29.9322502 16.7181154,27.6622258 16.7181154,22.4830219 C16.7181154,17.4482535 13.4552396,15.2623883 8.73663688,15.2623883 L0,15.2623883 L0,37.2097482 Z M5.68643379,19.8103981 L6.6565394,19.8103981 C8.89130788,19.8103981 10.8030869,19.8411048 10.8030869,22.6570268 C10.8030869,25.3819659 8.74459789,25.3819659 6.6565394,25.3819659 L5.68643379,25.3819659 L5.68643379,19.8103981 Z M18.9915516,22.3124289 L18.9915516,31.264013 C18.9915516,36.1588952 22.4864338,37.6658002 27.0094232,37.6658002 C31.5324127,37.6658002 35.0284322,36.1600325 35.0284322,31.264013 L35.0284322,22.3124289 L29.6831844,22.3124289 L29.6831844,30.2438668 C29.6831844,32.1249391 29.2123477,33.4567019 27.0094232,33.4567019 C24.8064988,33.4567019 24.3367994,32.1249391 24.3367994,30.2438668 L24.3367994,22.3124289 L18.9915516,22.3124289 Z M38.2128351,37.2097482 L43.5580829,37.2097482 L43.5580829,35.5504468 L43.6160845,35.5504468 C44.5725426,37.0084484 46.3683184,37.6646629 48.1072299,37.6646629 C52.5403737,37.6646629 55.6133225,33.9969131 55.6133225,29.6888708 C55.6133225,25.4081235 52.5688058,21.741511 48.1652315,21.741511 C46.4558895,21.741511 44.6885459,22.3943136 43.5592201,23.7283509 L43.5592201,13.0981316 L38.2139724,13.0981316 L38.2128351,37.2097482 Z M46.7424858,26.2917953 C48.8999188,26.2917953 50.1543461,27.8589764 50.1543461,29.7195776 C50.1543461,31.6393176 48.9010561,33.1155158 46.7424858,33.1155158 C44.5850528,33.1155158 43.3306255,31.6393176 43.3306255,29.7195776 C43.3306255,27.8589764 44.5839155,26.2917953 46.7424858,26.2917953 Z"
id="形状" fill="#3978AD"></path>
<polygon id="路径" fill="#FFFFFF"
points="80.525589 24.573355 80.5835906 24.573355 85.6217709 37.2097482 87.8940699 37.2097482 93.1642567 24.573355 93.2222583 24.573355 94.8235581 37.2097482 100.535012 37.2097482 97.2118603 15.261251 91.5345248 15.261251 86.815922 26.9912266 82.3600325 15.261251 76.7406986 15.261251 73.0138099 37.2097482 78.6911454 37.2097482">
</polygon>
<path
d="M109.97563,27.5428107 C110.295207,25.9801787 111.576929,25.1545085 113.11909,25.1545085 C114.545248,25.1545085 115.855402,26.0984565 116.12039,27.5428107 L109.97563,27.5428107 Z M121.036881,30.0596263 C121.036881,24.9532088 118.023071,21.7426483 112.817709,21.7426483 C107.935337,21.7426483 104.516653,24.7405361 104.516653,29.7184403 C104.516653,34.8703493 108.228757,37.6646629 113.202112,37.6646629 C116.623071,37.6646629 119.986028,36.0656377 120.834444,32.5468725 L115.725751,32.5468725 C115.143461,33.5351747 114.326889,33.9127539 113.189602,33.9127539 C111.001462,33.9127539 109.861901,32.7538587 109.861901,30.613485 L121.036881,30.613485 L121.036881,30.0596263 Z M134.653615,37.2097482 L140,37.2097482 L140,13.0992689 L134.653615,13.0992689 L134.653615,23.7294882 C133.551584,22.3954509 131.754671,21.7426483 130.046466,21.7426483 C125.641755,21.7426483 122.598375,25.4103981 122.598375,29.6888708 C122.598375,33.9673436 125.699756,37.6635256 130.104468,37.6635256 C131.841105,37.6635256 133.667587,37.0061738 134.593339,35.5493095 L134.653615,35.5493095 L134.653615,37.2097482 Z M131.470349,26.2917953 C133.626645,26.2917953 134.88221,27.8589764 134.88221,29.7195776 C134.88221,31.6393176 133.62892,33.1155158 131.470349,33.1155158 C129.314054,33.1155158 128.058489,31.6393176 128.058489,29.7195776 C128.058489,27.8589764 129.311779,26.2917953 131.470349,26.2917953 Z"
id="形状" fill="#3978AD"></path>
</g>
</g>
</g>

+ 19
- 7
web/src/assets/svg/tavily.svg Переглянути файл

@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<svg width="160px" height="160px" viewBox="0 0 160 160" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<svg viewBox="0 0 160 160" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<title>tavily</title>
<defs>
<rect id="path-1" x="0" y="0" width="160" height="160"></rect>
@@ -11,12 +11,24 @@
<use xlink:href="#path-1"></use>
</mask>
<use id="矩形" fill-opacity="0" fill="#D8D8D8" xlink:href="#path-1"></use>
<path d="M65.59265,18.682923 L80.673,42.556618 C83.095,46.390668 80.34,51.389668 75.805,51.389668 L69.6395,51.389668 L69.6395,87.142418 L60.7246,87.142418 L60.7246,16 C62.5938,16 64.463,16.894313 65.59265,18.682923 Z" id="路径" fill="#8FBCFA" fill-rule="nonzero" mask="url(#mask-2)"></path>
<path d="M40.7741,42.556618 L55.8549,18.682923 C56.98455,16.894313 58.85375,16 60.72295,16 L60.72295,87.142918 C57.52935,86.993918 54.43775,87.917918 51.808,89.775418 L51.808,51.389668 L45.64245,51.389668 C41.10745,51.389668 38.35235,46.390668 40.7741,42.556618 Z" id="路径" fill="#468BFF" fill-rule="nonzero" mask="url(#mask-2)"></path>
<path d="M108.0015,110.725918 L70.67,110.725918 C72.824,108.314418 74.1005,105.243918 74.238,101.810918 L143.391,101.810918 C143.391,103.679918 142.4965,105.549418 140.708,106.678918 L116.8345,121.759418 C113.0005,124.181418 108.0015,121.426418 108.0015,116.891418 L108.0015,110.725918 Z" id="路径" fill="#FDBB11" fill-rule="nonzero" mask="url(#mask-2)"></path>
<path d="M116.834,81.862418 L140.7075,96.942918 C142.4965,98.072418 143.3905,99.941918 143.3905,101.810918 L74.2355,101.810918 C74.36,98.609418 73.3665,95.452418 71.4785,92.895918 L108.001,92.895918 L108.001,86.730418 C108.001,82.195418 113,79.440418 116.834,81.862418 Z" id="路径" fill="#F6D785" fill-rule="nonzero" mask="url(#mask-2)"></path>
<path d="M40.47045,120.901918 L18.689455,142.682918 C20.01113,144.004918 21.965175,144.693918 24.0288,144.228418 L51.5736,138.010418 C55.9972,137.011918 57.5839,131.528918 54.37725,128.322418 L50.0175,123.962418 L66.3958,107.530918 C69.8855,104.040918 69.731,98.452918 66.3379,95.059918 L40.47045,120.901918 Z" id="路径" fill="#FF9A9D" fill-rule="nonzero" mask="url(#mask-2)"></path>
<path d="M37.41105,111.357418 L53.8449,94.984918 C57.3347,91.494918 62.94655,91.667418 66.3395,95.059918 L40.4718,120.904418 L18.690655,142.685418 C17.368977,141.363918 16.679669,139.409418 17.1455,137.345918 L23.36325,109.801418 C24.3618,105.377418 29.84475,103.790918 33.0514,106.997418 L37.41105,111.357418 Z" id="路径" fill="#FE363B" fill-rule="nonzero" mask="url(#mask-2)"></path>
<path
d="M65.59265,18.682923 L80.673,42.556618 C83.095,46.390668 80.34,51.389668 75.805,51.389668 L69.6395,51.389668 L69.6395,87.142418 L60.7246,87.142418 L60.7246,16 C62.5938,16 64.463,16.894313 65.59265,18.682923 Z"
id="路径" fill="#8FBCFA" fill-rule="nonzero" mask="url(#mask-2)"></path>
<path
d="M40.7741,42.556618 L55.8549,18.682923 C56.98455,16.894313 58.85375,16 60.72295,16 L60.72295,87.142918 C57.52935,86.993918 54.43775,87.917918 51.808,89.775418 L51.808,51.389668 L45.64245,51.389668 C41.10745,51.389668 38.35235,46.390668 40.7741,42.556618 Z"
id="路径" fill="#468BFF" fill-rule="nonzero" mask="url(#mask-2)"></path>
<path
d="M108.0015,110.725918 L70.67,110.725918 C72.824,108.314418 74.1005,105.243918 74.238,101.810918 L143.391,101.810918 C143.391,103.679918 142.4965,105.549418 140.708,106.678918 L116.8345,121.759418 C113.0005,124.181418 108.0015,121.426418 108.0015,116.891418 L108.0015,110.725918 Z"
id="路径" fill="#FDBB11" fill-rule="nonzero" mask="url(#mask-2)"></path>
<path
d="M116.834,81.862418 L140.7075,96.942918 C142.4965,98.072418 143.3905,99.941918 143.3905,101.810918 L74.2355,101.810918 C74.36,98.609418 73.3665,95.452418 71.4785,92.895918 L108.001,92.895918 L108.001,86.730418 C108.001,82.195418 113,79.440418 116.834,81.862418 Z"
id="路径" fill="#F6D785" fill-rule="nonzero" mask="url(#mask-2)"></path>
<path
d="M40.47045,120.901918 L18.689455,142.682918 C20.01113,144.004918 21.965175,144.693918 24.0288,144.228418 L51.5736,138.010418 C55.9972,137.011918 57.5839,131.528918 54.37725,128.322418 L50.0175,123.962418 L66.3958,107.530918 C69.8855,104.040918 69.731,98.452918 66.3379,95.059918 L40.47045,120.901918 Z"
id="路径" fill="#FF9A9D" fill-rule="nonzero" mask="url(#mask-2)"></path>
<path
d="M37.41105,111.357418 L53.8449,94.984918 C57.3347,91.494918 62.94655,91.667418 66.3395,95.059918 L40.4718,120.904418 L18.690655,142.685418 C17.368977,141.363918 16.679669,139.409418 17.1455,137.345918 L23.36325,109.801418 C24.3618,105.377418 29.84475,103.790918 33.0514,106.997418 L37.41105,111.357418 Z"
id="路径" fill="#FE363B" fill-rule="nonzero" mask="url(#mask-2)"></path>
</g>
</g>
</g>

+ 4
- 2
web/src/assets/svg/wencai.svg
Різницю між файлами не показано, бо вона завелика
Переглянути файл


+ 5
- 3
web/src/assets/svg/wikipedia.svg Переглянути файл

@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<svg width="160px" height="160px" viewBox="0 0 160 160" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<svg viewBox="0 0 160 160" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<title>wikipedia</title>
<defs>
<rect id="path-1" x="0" y="0" width="160" height="160"></rect>
@@ -11,9 +11,11 @@
<use xlink:href="#path-1"></use>
</mask>
<use id="矩形" fill-opacity="0" fill="#D8D8D8" xlink:href="#path-1"></use>
<g id="RAGFlow" mask="url(#mask-2)" fill="#FFFFFF" fill-rule="nonzero">
<g id="RAGFlow" mask="url(#mask-2)" fill="currentColor" fill-rule="nonzero">
<g transform="translate(15, 39)" id="路径">
<path d="M65.4875,47.2959259 C60.4175,57.7609259 53.47875,71.9309259 50.03375,78.3225927 C46.6970833,84.1400927 43.9291667,83.3655094 41.7354167,78.4796759 C34.1195834,60.4909259 18.4816667,28.9496759 11.1258333,11.2642592 C9.76625,8.00884253 8.73708329,5.91800924 7.77291671,5.09467595 C6.7925,4.28217595 4.77208342,3.79467595 1.69541671,3.62675924 C0.557916709,3.49675924 0,3.22050924 0,2.76550924 L0,0.300925949 L0.281666709,0.0571759494 C5.28666671,0.0300926584 29.5370834,0.0571759494 29.5370833,0.0571759494 L29.8133333,0.300925949 L29.8133333,2.65175924 C29.8133333,3.29634253 29.4070833,3.60509253 28.5945833,3.60509266 L25.5395833,3.77300924 C22.9125,3.93009253 21.6016666,4.66134253 21.6016667,6.13467595 C21.6016667,6.86592595 21.88875,7.92217595 22.5008333,9.39009266 C28.3616666,23.7225927 48.5983333,66.3788427 48.5983333,66.3788427 L49.335,66.6280092 L62.3945833,40.5738427 L59.78375,34.7942592 L50.8029167,17.1142592 C50.8029167,17.1142592 49.0804167,13.5717592 48.4845833,12.3909259 C44.54125,4.57467595 44.6279166,4.16842595 40.6466667,3.63217595 C39.5254167,3.50759266 38.95125,3.36134266 38.95125,2.82509266 L38.95125,0.290092658 L39.27625,0.0463426584 L62.5245833,0.0463426584 L63.1366667,0.24675924 L63.1366667,2.68967595 C63.1366667,3.25842595 62.725,3.50217595 61.9070833,3.50217595 L60.23875,3.75675924 C55.94875,4.08717595 56.6583333,5.82050924 59.5020833,11.4592592 L68.07125,29.0742592 L77.59375,10.0942592 C79.1808333,6.62759253 78.8558333,5.75550924 78.195,4.96467595 C77.8158333,4.50967595 76.5429167,3.77300924 73.7966667,3.66467595 L72.7079167,3.55092595 C72.422028,3.55252736 72.1444389,3.45489257 71.9225,3.27467595 C71.6892127,3.11984869 71.5520791,2.85581546 71.5595833,2.57592595 L71.5595833,0.26300924 L71.89,0.0192592405 C78.6445833,-0.0240740506 93.7895833,0.0192592405 93.7895833,0.0192592405 L94.1091667,0.26300924 L94.1091667,2.62467595 C94.1091667,3.28009266 93.7895834,3.58884266 93.06375,3.58884266 C89.5645833,3.75134266 88.8279167,4.10342595 87.5225,5.96675924 C86.8725,6.97425924 85.49125,9.15717595 84.0233333,11.5946759 L71.5595833,34.7400927 L71.2075,35.4713427 L86.3308333,66.4113427 L87.2516667,66.6713427 L111.063333,10.1321759 C111.8975,7.84634266 111.762083,6.22134266 110.716667,5.28425924 C109.649583,4.35259253 108.8425,3.80550924 106.074583,3.68634266 L103.799583,3.59967595 C103.506213,3.60796017 103.217829,3.52258339 102.97625,3.35592595 C102.743333,3.19884266 102.58625,2.94967595 102.58625,2.71134266 L102.58625,0.349675949 L102.905833,0.105925949 L129.777917,0.105925949 L130,0.349675949 L130,2.71675924 C130,3.36134253 129.599167,3.69175924 128.867917,3.69175924 C125.357917,3.85425924 122.763333,4.66675924 121.051667,5.97217595 C119.350833,7.35342595 118.034583,9.30884266 117.065,11.7517592 C117.065,11.7517592 95.1654167,61.8992592 87.6741667,78.5880092 C84.8304167,84.0425925 81.9704167,83.5550925 79.5329167,78.4200927 C76.44,72.0771759 69.9291667,57.9125927 65.2004167,47.4909259 L65.4875,47.2959259 L65.4875,47.2959259 Z"></path>
<path
d="M65.4875,47.2959259 C60.4175,57.7609259 53.47875,71.9309259 50.03375,78.3225927 C46.6970833,84.1400927 43.9291667,83.3655094 41.7354167,78.4796759 C34.1195834,60.4909259 18.4816667,28.9496759 11.1258333,11.2642592 C9.76625,8.00884253 8.73708329,5.91800924 7.77291671,5.09467595 C6.7925,4.28217595 4.77208342,3.79467595 1.69541671,3.62675924 C0.557916709,3.49675924 0,3.22050924 0,2.76550924 L0,0.300925949 L0.281666709,0.0571759494 C5.28666671,0.0300926584 29.5370834,0.0571759494 29.5370833,0.0571759494 L29.8133333,0.300925949 L29.8133333,2.65175924 C29.8133333,3.29634253 29.4070833,3.60509253 28.5945833,3.60509266 L25.5395833,3.77300924 C22.9125,3.93009253 21.6016666,4.66134253 21.6016667,6.13467595 C21.6016667,6.86592595 21.88875,7.92217595 22.5008333,9.39009266 C28.3616666,23.7225927 48.5983333,66.3788427 48.5983333,66.3788427 L49.335,66.6280092 L62.3945833,40.5738427 L59.78375,34.7942592 L50.8029167,17.1142592 C50.8029167,17.1142592 49.0804167,13.5717592 48.4845833,12.3909259 C44.54125,4.57467595 44.6279166,4.16842595 40.6466667,3.63217595 C39.5254167,3.50759266 38.95125,3.36134266 38.95125,2.82509266 L38.95125,0.290092658 L39.27625,0.0463426584 L62.5245833,0.0463426584 L63.1366667,0.24675924 L63.1366667,2.68967595 C63.1366667,3.25842595 62.725,3.50217595 61.9070833,3.50217595 L60.23875,3.75675924 C55.94875,4.08717595 56.6583333,5.82050924 59.5020833,11.4592592 L68.07125,29.0742592 L77.59375,10.0942592 C79.1808333,6.62759253 78.8558333,5.75550924 78.195,4.96467595 C77.8158333,4.50967595 76.5429167,3.77300924 73.7966667,3.66467595 L72.7079167,3.55092595 C72.422028,3.55252736 72.1444389,3.45489257 71.9225,3.27467595 C71.6892127,3.11984869 71.5520791,2.85581546 71.5595833,2.57592595 L71.5595833,0.26300924 L71.89,0.0192592405 C78.6445833,-0.0240740506 93.7895833,0.0192592405 93.7895833,0.0192592405 L94.1091667,0.26300924 L94.1091667,2.62467595 C94.1091667,3.28009266 93.7895834,3.58884266 93.06375,3.58884266 C89.5645833,3.75134266 88.8279167,4.10342595 87.5225,5.96675924 C86.8725,6.97425924 85.49125,9.15717595 84.0233333,11.5946759 L71.5595833,34.7400927 L71.2075,35.4713427 L86.3308333,66.4113427 L87.2516667,66.6713427 L111.063333,10.1321759 C111.8975,7.84634266 111.762083,6.22134266 110.716667,5.28425924 C109.649583,4.35259253 108.8425,3.80550924 106.074583,3.68634266 L103.799583,3.59967595 C103.506213,3.60796017 103.217829,3.52258339 102.97625,3.35592595 C102.743333,3.19884266 102.58625,2.94967595 102.58625,2.71134266 L102.58625,0.349675949 L102.905833,0.105925949 L129.777917,0.105925949 L130,0.349675949 L130,2.71675924 C130,3.36134253 129.599167,3.69175924 128.867917,3.69175924 C125.357917,3.85425924 122.763333,4.66675924 121.051667,5.97217595 C119.350833,7.35342595 118.034583,9.30884266 117.065,11.7517592 C117.065,11.7517592 95.1654167,61.8992592 87.6741667,78.5880092 C84.8304167,84.0425925 81.9704167,83.5550925 79.5329167,78.4200927 C76.44,72.0771759 69.9291667,57.9125927 65.2004167,47.4909259 L65.4875,47.2959259 L65.4875,47.2959259 Z">
</path>
</g>
</g>
</g>

+ 11
- 5
web/src/assets/svg/yahoo-finance.svg Переглянути файл

@@ -1,9 +1,10 @@
<?xml version="1.0" encoding="UTF-8"?>
<svg width="160px" height="160px" viewBox="0 0 160 160" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<svg viewBox="0 0 160 160" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<title>yahoofinance</title>
<defs>
<rect id="path-1" x="0" y="0" width="160" height="160"></rect>
<polygon id="path-3" points="0.0045 1.2490009e-16 41.742 1.2490009e-16 41.742 44.2395 3.74700271e-16 44.2395"></polygon>
<polygon id="path-3" points="0.0045 1.2490009e-16 41.742 1.2490009e-16 41.742 44.2395 3.74700271e-16 44.2395">
</polygon>
</defs>
<g id="RAGFlow" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
<g id="tool-logo" transform="translate(-1244, -81)">
@@ -15,14 +16,19 @@
<g id="RAGFlow" mask="url(#mask-2)">
<g transform="translate(17, 17)">
<polygon id="路径" fill="#6001D2" fill-rule="nonzero" points="0 0 126 0 126 126 0 126"></polygon>
<path d="M66.186,49.5 L54.207,78.39 L42.327,49.5 L22.5,49.5 L44.604,99.1215 L36.648,117 L56.0655,117 L85.5,49.5 L66.186,49.5 Z M89.4915,75.9465 C82.3635,75.9465 77.013,81.306 77.013,87.5475 C77.013,93.681 82.1565,98.7525 89.073,98.7525 C96.2055,98.7525 101.5515,93.4875 101.5515,87.156 C101.5515,80.919 96.417,75.951 89.4915,75.951" id="形状" fill="#FFFFFF" fill-rule="nonzero"></path>
<g id="编组" stroke-width="1" fill="none" fill-rule="evenodd" transform="translate(83.7225, 27.4185)">
<path
d="M66.186,49.5 L54.207,78.39 L42.327,49.5 L22.5,49.5 L44.604,99.1215 L36.648,117 L56.0655,117 L85.5,49.5 L66.186,49.5 Z M89.4915,75.9465 C82.3635,75.9465 77.013,81.306 77.013,87.5475 C77.013,93.681 82.1565,98.7525 89.073,98.7525 C96.2055,98.7525 101.5515,93.4875 101.5515,87.156 C101.5515,80.919 96.417,75.951 89.4915,75.951"
id="形状" fill="#FFFFFF" fill-rule="nonzero"></path>
<g id="编组" stroke-width="1" fill="none" fill-rule="evenodd"
transform="translate(83.7225, 27.4185)">
<g id="Clipped">
<mask id="mask-4" fill="white">
<use xlink:href="#path-3"></use>
</mask>
<g id="yahoo-finance_svg__a"></g>
<polygon id="路径" fill="#FFFFFF" fill-rule="nonzero" mask="url(#mask-4)" points="19.719 1.2490009e-16 0.009 44.2395 22.0275 44.2395 41.7375 0.0045"></polygon>
<polygon id="路径" fill="#FFFFFF" fill-rule="nonzero" mask="url(#mask-4)"
points="19.719 1.2490009e-16 0.009 44.2395 22.0275 44.2395 41.7375 0.0045">
</polygon>
</g>
</g>
</g>

+ 4
- 3
web/src/components/highlight-markdown/index.tsx Переглянути файл

@@ -13,15 +13,16 @@ import remarkMath from 'remark-math';
import 'katex/dist/katex.min.css'; // `rehype-katex` does not import the CSS for you

import { preprocessLaTeX } from '@/utils/chat';
import { useIsDarkTheme } from '../theme-provider';
import styles from './index.less';

const HightLightMarkdown = ({
children,
dark = false,
}: {
children: string | null | undefined;
dark?: boolean;
}) => {
const isDarkTheme = useIsDarkTheme();

return (
<Markdown
remarkPlugins={[remarkGfm, remarkMath]}
@@ -37,7 +38,7 @@ const HightLightMarkdown = ({
{...rest}
PreTag="div"
language={match[1]}
style={dark ? oneDark : oneLight}
style={isDarkTheme ? oneDark : oneLight}
>
{String(children).replace(/\n$/, '')}
</SyntaxHighlighter>

+ 0
- 1
web/src/components/next-message-item/index.less Переглянути файл

@@ -24,7 +24,6 @@
.messageText {
.chunkText();
.messageTextBase();
background-color: #e6f4ff;
word-break: break-word;
}
.messageTextDark {

+ 1
- 1
web/src/components/ui/button.tsx Переглянути файл

@@ -16,7 +16,7 @@ const buttonVariants = cva(
outline:
'border border-text-sub-title-invert bg-transparent hover:bg-accent hover:text-accent-foreground',
secondary:
'bg-secondary text-secondary-foreground hover:bg-secondary/80',
'bg-background-card text-secondary-foreground hover:bg-secondary/80',
ghost: 'hover:bg-accent hover:text-accent-foreground',
link: 'text-primary underline-offset-4 hover:underline',
tertiary:

+ 1
- 1
web/src/components/ui/dual-range-slider.tsx Переглянути файл

@@ -33,7 +33,7 @@ const DualRangeSlider = React.forwardRef<
</SliderPrimitive.Track>
{initialValue.map((value, index) => (
<React.Fragment key={index}>
<SliderPrimitive.Thumb className="relative block h-4 w-4 rounded-full border-2 border-primary bg-background ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 cursor-pointer">
<SliderPrimitive.Thumb className="relative block h-4 w-4 rounded-full border-2 border-background-checked bg-white ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 cursor-pointer">
{label && (
<span
className={cn(

+ 1
- 1
web/src/components/ui/tabs.tsx Переглянути файл

@@ -29,7 +29,7 @@ const TabsTrigger = React.forwardRef<
<TabsPrimitive.Trigger
ref={ref}
className={cn(
'inline-flex items-center justify-center whitespace-nowrap rounded-sm px-3 py-1.5 text-sm font-medium ring-offset-background transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-colors-background-inverse-strong data-[state=active]:text-text-title data-[state=active]:shadow-sm',
'inline-flex items-center justify-center whitespace-nowrap rounded-sm px-3 py-1.5 text-sm font-medium ring-offset-background transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-text-title-invert data-[state=active]:text-text-title data-[state=active]:shadow-sm',
className,
)}
{...props}

+ 9
- 2
web/src/pages/agent/canvas/index.tsx Переглянути файл

@@ -1,3 +1,4 @@
import { useIsDarkTheme, useTheme } from '@/components/theme-provider';
import {
Tooltip,
TooltipContent,
@@ -144,6 +145,8 @@ function AgentCanvas({ drawerVisible, hideDrawer }: IProps) {

const { ref, showImage, hideImage, imgVisible, mouse } = useMoveNote();

const { theme } = useTheme();

const onPaneClick = useCallback(() => {
hideFormDrawer();
if (imgVisible) {
@@ -165,6 +168,8 @@ function AgentCanvas({ drawerVisible, hideDrawer }: IProps) {
}
};

const isDarkTheme = useIsDarkTheme();

useHideFormSheetOnNodeDeletion({ hideFormDrawer });

return (
@@ -211,13 +216,15 @@ function AgentCanvas({ drawerVisible, hideDrawer }: IProps) {
onEdgeMouseEnter={onEdgeMouseEnter}
onEdgeMouseLeave={onEdgeMouseLeave}
className="h-full"
colorMode="dark"
colorMode={theme}
defaultEdgeOptions={{
type: 'buttonEdge',
markerEnd: 'logo',
style: {
strokeWidth: 1,
stroke: 'rgba(91, 93, 106, 1)',
stroke: isDarkTheme
? 'rgba(91, 93, 106, 1)'
: 'rgba(151, 154, 171, 1)',
},
zIndex: 1001, // https://github.com/xyflow/xyflow/discussions/3498
}}

+ 1
- 1
web/src/pages/agent/canvas/node/dropdown/next-step-dropdown.tsx Переглянути файл

@@ -60,7 +60,7 @@ function AccordionOperators() {
defaultValue={['item-1', 'item-2', 'item-3', 'item-4', 'item-5']}
>
<AccordionItem value="item-1">
<AccordionTrigger className="text-xl">AI</AccordionTrigger>
<AccordionTrigger className="text-xl">Foundation</AccordionTrigger>
<AccordionContent className="flex flex-col gap-4 text-balance">
<OperatorItemList
operators={[Operator.Agent, Operator.Retrieval]}

+ 1
- 1
web/src/pages/agent/canvas/node/handle.tsx Переглянути файл

@@ -36,7 +36,7 @@ export function CommonHandle({
showModal();
}}
>
<Plus className="size-3 pointer-events-none" />
<Plus className="size-3 pointer-events-none text-text-title-invert" />
{visible && (
<InnerNextStepDropdown hideModal={hideModal}>
<span></span>

+ 7
- 1
web/src/pages/agent/components/background.tsx Переглянути файл

@@ -1,7 +1,13 @@
import { useIsDarkTheme } from '@/components/theme-provider';
import { Background } from '@xyflow/react';

export function AgentBackground() {
const isDarkTheme = useIsDarkTheme();

return (
<Background color="rgba(255,255,255,0.15)" bgColor="rgba(11, 11, 12, 1)" />
<Background
color={isDarkTheme ? 'rgba(255,255,255,0.15)' : '#A8A9B3'}
bgColor={isDarkTheme ? 'rgba(11, 11, 12, 1)' : 'rgba(0, 0, 0, 0.05)'}
/>
);
}

+ 1
- 1
web/src/pages/agent/embed-dialog/index.tsx Переглянути файл

@@ -139,7 +139,7 @@ function EmbedDialog({
</Form>
<div>
<span>Embed code</span>
<HightLightMarkdown dark>{text}</HightLightMarkdown>
<HightLightMarkdown>{text}</HightLightMarkdown>
</div>
<div className=" font-medium mt-4 mb-1">
{t(isAgent ? 'flow' : 'chat', { keyPrefix: 'header' })}

+ 7
- 5
web/src/pages/agent/form-sheet/next.tsx Переглянути файл

@@ -103,11 +103,13 @@ const FormSheet = ({
)}
<X onClick={hideModal} />
</div>
<span>
{t(
`${lowerFirst(operatorName === Operator.Tool ? clickedToolId : operatorName)}Description`,
)}
</span>
{isMcp || (
<span>
{t(
`${lowerFirst(operatorName === Operator.Tool ? clickedToolId : operatorName)}Description`,
)}
</span>
)}
</section>
</SheetHeader>
<section className="pt-4 overflow-auto flex-1">

+ 4
- 4
web/src/pages/agent/form/agent-form/tool-popover/tool-command.tsx Переглянути файл

@@ -37,10 +37,10 @@ const Menus = [
label: 'Communication',
list: [Operator.Email],
},
{
label: 'Productivity',
list: [],
},
// {
// label: 'Productivity',
// list: [],
// },
{
label: 'Developer',
list: [Operator.GitHub, Operator.ExeSQL, Operator.Code, Operator.Retrieval],

+ 0
- 3
web/src/pages/agent/index.tsx Переглянути файл

@@ -1,5 +1,4 @@
import { PageHeader } from '@/components/page-header';
import { useSwitchToDarkThemeOnMount } from '@/components/theme-provider';
import {
Breadcrumb,
BreadcrumbItem,
@@ -98,8 +97,6 @@ export default function Agent() {
const { navigateToAgentLogs } = useNavigatePage();
const time = useWatchAgentChange(chatDrawerVisible);

useSwitchToDarkThemeOnMount();

return (
<section className="h-full">
<PageHeader>

+ 5
- 5
web/src/pages/agent/log-sheet/workFlowTimeline.tsx Переглянути файл

@@ -21,7 +21,7 @@ import {
import { ITraceData } from '@/interfaces/database/agent';
import { cn } from '@/lib/utils';
import { t } from 'i18next';
import { get } from 'lodash';
import { get, isEmpty } from 'lodash';
import { useCallback, useEffect, useMemo, useState } from 'react';
import JsonView from 'react18-json-view';
import { Operator } from '../constant';
@@ -46,7 +46,7 @@ export function JsonViewer({
src={data}
displaySize
collapseStringsAfterLength={100000000000}
className="w-full h-[200px] break-words overflow-auto p-2 bg-slate-800"
className="w-full h-[200px] break-words overflow-auto p-2 bg-background-card"
/>
</section>
);
@@ -219,9 +219,9 @@ export const WorkFlowTimeline = ({
</span>
<span
className={cn(
'border-background -end-1 -top-1 size-2 rounded-full border-2 bg-dot-green',
{ 'text-dot-green': x.data.error === null },
{ 'text-dot-red': x.data.error !== null },
'border-background -end-1 -top-1 size-2 rounded-full',
{ 'bg-dot-green': isEmpty(x.data.error) },
{ 'bg-dot-red': !isEmpty(x.data.error) },
)}
>
<span className="sr-only">Online</span>

+ 28
- 25
web/src/pages/agent/operator-icon.tsx Переглянути файл

@@ -1,5 +1,17 @@
import { ReactComponent as ArxivIcon } from '@/assets/svg/arxiv.svg';
import { ReactComponent as BingIcon } from '@/assets/svg/bing.svg';
import { ReactComponent as CrawlerIcon } from '@/assets/svg/crawler.svg';
import { ReactComponent as DuckIcon } from '@/assets/svg/duck.svg';
import { ReactComponent as GithubIcon } from '@/assets/svg/github.svg';
import { ReactComponent as GoogleScholarIcon } from '@/assets/svg/google-scholar.svg';
import { ReactComponent as GoogleIcon } from '@/assets/svg/google.svg';
import { ReactComponent as PubMedIcon } from '@/assets/svg/pubmed.svg';
import { ReactComponent as TavilyIcon } from '@/assets/svg/tavily.svg';
import { ReactComponent as WenCaiIcon } from '@/assets/svg/wencai.svg';
import { ReactComponent as WikipediaIcon } from '@/assets/svg/wikipedia.svg';
import { ReactComponent as YahooFinanceIcon } from '@/assets/svg/yahoo-finance.svg';

import { IconFont } from '@/components/icon-font';
import SvgIcon from '@/components/svg-icon';
import { cn } from '@/lib/utils';
import { HousePlus } from 'lucide-react';
import { Operator } from './constant';
@@ -27,19 +39,19 @@ export const OperatorIconMap = {
};

const SVGIconMap = {
[Operator.ArXiv]: 'arxiv',
[Operator.GitHub]: 'github',
[Operator.Bing]: 'bing',
[Operator.DuckDuckGo]: 'duck',
[Operator.Google]: 'google',
[Operator.GoogleScholar]: 'google-scholar',
[Operator.PubMed]: 'pubmed',
[Operator.TavilyExtract]: 'tavily',
[Operator.TavilySearch]: 'tavily',
[Operator.Wikipedia]: 'wikipedia',
[Operator.YahooFinance]: 'yahoo-finance',
[Operator.WenCai]: 'wencai',
[Operator.Crawler]: 'crawler',
[Operator.ArXiv]: ArxivIcon,
[Operator.GitHub]: GithubIcon,
[Operator.Bing]: BingIcon,
[Operator.DuckDuckGo]: DuckIcon,
[Operator.Google]: GoogleIcon,
[Operator.GoogleScholar]: GoogleScholarIcon,
[Operator.PubMed]: PubMedIcon,
[Operator.TavilyExtract]: TavilyIcon,
[Operator.TavilySearch]: TavilyIcon,
[Operator.Wikipedia]: WikipediaIcon,
[Operator.YahooFinance]: YahooFinanceIcon,
[Operator.WenCai]: WenCaiIcon,
[Operator.Crawler]: CrawlerIcon,
};

const Empty = () => {
@@ -48,6 +60,7 @@ const Empty = () => {

const OperatorIcon = ({ name, className }: IProps) => {
const Icon = OperatorIconMap[name as keyof typeof OperatorIconMap] || Empty;
const SvgIcon = SVGIconMap[name as keyof typeof SVGIconMap] || Empty;

if (name === Operator.Begin) {
return (
@@ -57,20 +70,10 @@ const OperatorIcon = ({ name, className }: IProps) => {
);
}

if (name in SVGIconMap) {
return (
<SvgIcon
name={SVGIconMap[name as keyof typeof SVGIconMap]}
width={20}
className={className}
></SvgIcon>
);
}

return typeof Icon === 'string' ? (
<IconFont name={Icon} className={cn('size-5', className)}></IconFont>
) : (
<Icon width={20} className={cn('size-5 fill-current', className)}></Icon>
<SvgIcon className={cn('size-5 fill-current', className)}></SvgIcon>
);
};


+ 0
- 3
web/src/pages/next-chats/share/index.tsx Переглянути файл

@@ -4,7 +4,6 @@ import MessageItem from '@/components/next-message-item';
import PdfDrawer from '@/components/pdf-drawer';
import { useClickDrawer } from '@/components/pdf-drawer/hooks';
import { RAGFlowAvatar } from '@/components/ragflow-avatar';
import { useSwitchToDarkThemeOnMount } from '@/components/theme-provider';
import { Button } from '@/components/ui/button';
import { MessageType } from '@/constants/chat';
import { useFetchAppConf } from '@/hooks/logic-hooks';
@@ -101,8 +100,6 @@ const ChatContainer = () => {
}
}, [inputsData, showParameterDialog]);

useSwitchToDarkThemeOnMount();

const handleInputsModalOk = (params: any[]) => {
ok(params);
};

Завантаження…
Відмінити
Зберегти