upgraded tool

This commit is contained in:
Saifeddine ALOUI 2023-10-15 21:26:36 +02:00
parent f0507f9e5c
commit 8d306cc70c
11 changed files with 439 additions and 65 deletions

132
web/dist/assets/brain_green-97e4d230.svg vendored Normal file
View File

@ -0,0 +1,132 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Created with Inkscape (http://www.inkscape.org/) -->
<svg
width="64mm"
height="64mm"
viewBox="0 0 64 64"
version="1.1"
id="svg1"
inkscape:version="1.3 (0e150ed6c4, 2023-07-21)"
sodipodi:docname="brain_green.svg"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns="http://www.w3.org/2000/svg"
xmlns:svg="http://www.w3.org/2000/svg">
<sodipodi:namedview
id="namedview1"
pagecolor="#ffffff"
bordercolor="#000000"
borderopacity="0.25"
inkscape:showpageshadow="2"
inkscape:pageopacity="0.0"
inkscape:pagecheckerboard="0"
inkscape:deskcolor="#d1d1d1"
inkscape:document-units="mm"
inkscape:zoom="0.55663503"
inkscape:cx="125.75565"
inkscape:cy="196.71777"
inkscape:window-width="1920"
inkscape:window-height="1009"
inkscape:window-x="-8"
inkscape:window-y="-8"
inkscape:window-maximized="1"
inkscape:current-layer="layer1" />
<defs
id="defs1" />
<g
inkscape:label="Calque 1"
inkscape:groupmode="layer"
id="layer1">
<path
style="fill:none;fill-opacity:1;stroke:#00ff00;stroke-width:2.22539;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;paint-order:normal"
d="m 26.917422,35.959579 c 0,-0.796055 1.159115,-1.37136 1.955165,-1.37136 h 7.303095"
id="path845"
inkscape:connector-curvature="0"
sodipodi:nodetypes="csc" />
<path
sodipodi:nodetypes="csc"
inkscape:connector-curvature="0"
id="path847"
d="m 26.917422,33.216859 c 0,0.79605 1.159115,1.37136 1.955165,1.37136 h 7.303095"
style="fill:none;fill-opacity:1;stroke:#00ff00;stroke-width:2.22539;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;paint-order:normal" />
<path
style="fill:none;fill-opacity:1;stroke:#00ff00;stroke-width:2.22539;stroke-linecap:round;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;paint-order:normal"
d="m 41.937042,34.281884 c 2.660405,-0.72373 9.06735,-1.23098 8.401985,-6.12145 -0.252535,-1.856165 -1.849255,-2.836355 -3.24076,-3.32078 1.210355,-2.840455 -0.727205,-6.00171 -3.72088,-5.88139 -2.6259,0.105535 -3.85882,3.870325 -2.44058,5.681345"
id="path849"
inkscape:connector-curvature="0"
sodipodi:nodetypes="cscsc" />
<path
style="fill:none;fill-opacity:1;stroke:#00ff00;stroke-width:2.22539;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;paint-order:normal"
d="m 41.728627,19.355254 c -1.11487,-4.205836 -5.17627,-3.591565 -6.673205,-2.077385 -1.223735,-3.046116 -5.750675,-4.143771 -7.64181,0.280065 -4.47775,-1.750545 -6.63282,2.26973 -5.641335,4.92116 -3.852755,0.722955 -5.20504,6.159225 0.360085,8.441995"
id="path851"
inkscape:connector-curvature="0"
sodipodi:nodetypes="ccccc" />
<path
style="fill:none;fill-opacity:1;stroke:#00ff00;stroke-width:2.22539;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;paint-order:normal"
d="m 24.951197,26.595269 c 1.33039,-0.830955 1.614125,-1.79275 1.754035,-2.772515 1.70159,1.36475 4.427895,1.246215 6.05427,-1.2448 0.9111,1.047805 1.897725,2.01694 4.583135,1.21651"
id="path853"
inkscape:connector-curvature="0"
sodipodi:nodetypes="cccc" />
<path
style="fill:none;fill-opacity:1;stroke:#00ff00;stroke-width:2.22539;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;paint-order:normal"
d="m 44.401232,27.599599 c -1.87171,2.204045 -4.656555,2.41888 -7.41223,2.41888 h -11.64588 c -2.258645,0 -4.78117,2.33708 -4.78117,4.595715 0,2.284395 2.496775,4.70888 4.78117,4.70888 h 26.116705 c 3.476055,0 5.397205,-2.72965 4.922635,-6.249175"
id="path855"
inkscape:connector-curvature="0"
sodipodi:nodetypes="csssssc" />
<path
style="fill:none;fill-opacity:1;stroke:#00ff00;stroke-width:2.22539;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;paint-order:normal"
d="m 51.969062,33.243644 c 7.86792,1.973925 7.397275,-7.159325 3.45149,-7.751725 2.738275,-3.22418 0.50359,-7.33604 -3.28174,-6.789825 1.358665,-3.846341 -2.31936,-6.685126 -5.545035,-5.318701 0.240115,-4.1360449 -3.861375,-5.6147599 -6.789825,-3.9041549"
id="path857"
inkscape:connector-curvature="0"
sodipodi:nodetypes="ccccc" />
<path
style="fill:none;fill-opacity:1;stroke:#00ff00;stroke-width:2.22539;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;paint-order:normal"
d="m 39.464457,13.072188 c 1.65178,-6.8297549 -5.986405,-7.7034498 -7.4971,-3.8758599 -1.46649,-4.0016399 -5.9227,-3.0323699 -7.58198,-0.3112 -2.487515,-3.1795699 -6.48695,-2.004885 -7.41223,1.5236899 -4.18271,-2.4645899 -7.5088195,2.159005 -6.16743,4.72861 -6.084589,0.442736 -4.451764,7.148311 -1.9364895,8.201866"
id="path859"
inkscape:connector-curvature="0"
sodipodi:nodetypes="cccccc" />
<path
style="fill:none;fill-opacity:1;stroke:#00ff00;stroke-width:2.22539;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;paint-order:normal"
d="m 21.980652,11.912258 c 1.63465,-1.812945 3.5807,-1.89096 5.743055,-0.763855"
id="path861"
inkscape:connector-curvature="0"
sodipodi:nodetypes="cc" />
<path
style="fill:none;fill-opacity:1;stroke:#00ff00;stroke-width:2.22539;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;paint-order:normal"
d="m 14.709872,18.588929 c 0.70723,-0.70574 1.565525,-1.28559 3.168585,-1.2448 -0.34692,-1.13439 -0.663915,-2.271506 -0.198035,-3.479791"
id="path863"
inkscape:connector-curvature="0"
sodipodi:nodetypes="ccc" />
<path
style="fill:none;fill-opacity:1;stroke:#00ff00;stroke-width:2.22539;stroke-linecap:round;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;paint-order:normal"
d="m 6.986438,21.248284 c -4.10728,1.568505 -4.77052,6.12198 -1.244795,8.26095 -2.13183,2.661155 0.57789,7.09191 4.979204,5.884525 1.19975,1.771325 2.703925,2.720875 5.40357,1.78233"
id="path865"
inkscape:connector-curvature="0"
sodipodi:nodetypes="cccc" />
<path
style="fill:none;fill-opacity:1;stroke:#00ff00;stroke-width:2.22539;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;paint-order:normal"
d="m 13.530327,22.018984 c -7.132619,-1.8328 -6.819994,9.256015 -0.18004,8.101915 1.398115,3.922245 5.833955,4.67311 8.72206,0.900215 h 0.02"
id="path867"
inkscape:connector-curvature="0"
sodipodi:nodetypes="cccc" />
<path
style="fill:none;fill-opacity:1;stroke:#00ff00;stroke-width:2.22539;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;paint-order:normal"
d="m 16.303707,33.298219 c -1.09979,5.93442 3.06832,10.46966 8.166545,10.46966 h 5.57332"
id="path869"
inkscape:connector-curvature="0"
sodipodi:nodetypes="csc" />
<path
style="fill:none;fill-opacity:1;stroke:#00ff00;stroke-width:2.22539;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;paint-order:normal"
d="m 31.161062,39.354494 c -1.59489,2.66585 -1.0315,5.148545 0.367785,6.917135 4.224765,5.339785 8.00502,3.53637 11.528465,8.154425 l 1.75414,2.29909 c 1.547135,2.02778 4.70985,0.141905 3.67783,-2.319865 l -2.544185,-6.068825"
id="path871"
inkscape:connector-curvature="0"
sodipodi:nodetypes="cssssc" />
<path
style="fill:none;fill-opacity:1;stroke:#00ff00;stroke-width:2.22539;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;paint-order:normal"
d="m 47.798432,39.323074 c 2.681605,0 5.716665,0.7135 4.32102,5.161225 -0.866645,2.76187 -3.352745,3.8009 -5.801375,3.8009 h -3.745285 c -2.448625,0 -4.934725,-1.03903 -5.80137,-3.8009 -1.39565,-4.447725 1.639415,-5.161225 4.32102,-5.161225 z"
id="path873"
inkscape:connector-curvature="0"
sodipodi:nodetypes="sssssss" />
</g>
</svg>

After

Width:  |  Height:  |  Size: 8.7 KiB

132
web/dist/assets/brain_red-f4d79882.svg vendored Normal file
View File

@ -0,0 +1,132 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Created with Inkscape (http://www.inkscape.org/) -->
<svg
width="64mm"
height="64mm"
viewBox="0 0 64 64"
version="1.1"
id="svg1"
inkscape:version="1.3 (0e150ed6c4, 2023-07-21)"
sodipodi:docname="brain_red.svg"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns="http://www.w3.org/2000/svg"
xmlns:svg="http://www.w3.org/2000/svg">
<sodipodi:namedview
id="namedview1"
pagecolor="#ffffff"
bordercolor="#000000"
borderopacity="0.25"
inkscape:showpageshadow="2"
inkscape:pageopacity="0.0"
inkscape:pagecheckerboard="0"
inkscape:deskcolor="#d1d1d1"
inkscape:document-units="mm"
inkscape:zoom="0.55663503"
inkscape:cx="125.75565"
inkscape:cy="196.71777"
inkscape:window-width="1920"
inkscape:window-height="1009"
inkscape:window-x="-8"
inkscape:window-y="-8"
inkscape:window-maximized="1"
inkscape:current-layer="layer1" />
<defs
id="defs1" />
<g
inkscape:label="Calque 1"
inkscape:groupmode="layer"
id="layer1">
<path
style="fill:none;fill-opacity:1;stroke:#ff0000;stroke-width:2.22539;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;paint-order:normal"
d="m 26.917422,35.959579 c 0,-0.796055 1.159115,-1.37136 1.955165,-1.37136 h 7.303095"
id="path845"
inkscape:connector-curvature="0"
sodipodi:nodetypes="csc" />
<path
sodipodi:nodetypes="csc"
inkscape:connector-curvature="0"
id="path847"
d="m 26.917422,33.216859 c 0,0.79605 1.159115,1.37136 1.955165,1.37136 h 7.303095"
style="fill:none;fill-opacity:1;stroke:#ff0000;stroke-width:2.22539;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;paint-order:normal" />
<path
style="fill:none;fill-opacity:1;stroke:#ff0000;stroke-width:2.22539;stroke-linecap:round;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;paint-order:normal"
d="m 41.937042,34.281884 c 2.660405,-0.72373 9.06735,-1.23098 8.401985,-6.12145 -0.252535,-1.856165 -1.849255,-2.836355 -3.24076,-3.32078 1.210355,-2.840455 -0.727205,-6.00171 -3.72088,-5.88139 -2.6259,0.105535 -3.85882,3.870325 -2.44058,5.681345"
id="path849"
inkscape:connector-curvature="0"
sodipodi:nodetypes="cscsc" />
<path
style="fill:none;fill-opacity:1;stroke:#ff0000;stroke-width:2.22539;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;paint-order:normal"
d="m 41.728627,19.355254 c -1.11487,-4.205836 -5.17627,-3.591565 -6.673205,-2.077385 -1.223735,-3.046116 -5.750675,-4.143771 -7.64181,0.280065 -4.47775,-1.750545 -6.63282,2.26973 -5.641335,4.92116 -3.852755,0.722955 -5.20504,6.159225 0.360085,8.441995"
id="path851"
inkscape:connector-curvature="0"
sodipodi:nodetypes="ccccc" />
<path
style="fill:none;fill-opacity:1;stroke:#ff0000;stroke-width:2.22539;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;paint-order:normal"
d="m 24.951197,26.595269 c 1.33039,-0.830955 1.614125,-1.79275 1.754035,-2.772515 1.70159,1.36475 4.427895,1.246215 6.05427,-1.2448 0.9111,1.047805 1.897725,2.01694 4.583135,1.21651"
id="path853"
inkscape:connector-curvature="0"
sodipodi:nodetypes="cccc" />
<path
style="fill:none;fill-opacity:1;stroke:#ff0000;stroke-width:2.22539;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;paint-order:normal"
d="m 44.401232,27.599599 c -1.87171,2.204045 -4.656555,2.41888 -7.41223,2.41888 h -11.64588 c -2.258645,0 -4.78117,2.33708 -4.78117,4.595715 0,2.284395 2.496775,4.70888 4.78117,4.70888 h 26.116705 c 3.476055,0 5.397205,-2.72965 4.922635,-6.249175"
id="path855"
inkscape:connector-curvature="0"
sodipodi:nodetypes="csssssc" />
<path
style="fill:none;fill-opacity:1;stroke:#ff0000;stroke-width:2.22539;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;paint-order:normal"
d="m 51.969062,33.243644 c 7.86792,1.973925 7.397275,-7.159325 3.45149,-7.751725 2.738275,-3.22418 0.50359,-7.33604 -3.28174,-6.789825 1.358665,-3.846341 -2.31936,-6.685126 -5.545035,-5.318701 0.240115,-4.1360449 -3.861375,-5.6147599 -6.789825,-3.9041549"
id="path857"
inkscape:connector-curvature="0"
sodipodi:nodetypes="ccccc" />
<path
style="fill:none;fill-opacity:1;stroke:#ff0000;stroke-width:2.22539;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;paint-order:normal"
d="m 39.464457,13.072188 c 1.65178,-6.8297549 -5.986405,-7.7034498 -7.4971,-3.8758599 -1.46649,-4.0016399 -5.9227,-3.0323699 -7.58198,-0.3112 -2.487515,-3.1795699 -6.48695,-2.004885 -7.41223,1.5236899 -4.18271,-2.4645899 -7.5088195,2.159005 -6.16743,4.72861 -6.084589,0.442736 -4.451764,7.148311 -1.9364895,8.201866"
id="path859"
inkscape:connector-curvature="0"
sodipodi:nodetypes="cccccc" />
<path
style="fill:none;fill-opacity:1;stroke:#ff0000;stroke-width:2.22539;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;paint-order:normal"
d="m 21.980652,11.912258 c 1.63465,-1.812945 3.5807,-1.89096 5.743055,-0.763855"
id="path861"
inkscape:connector-curvature="0"
sodipodi:nodetypes="cc" />
<path
style="fill:none;fill-opacity:1;stroke:#ff0000;stroke-width:2.22539;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;paint-order:normal"
d="m 14.709872,18.588929 c 0.70723,-0.70574 1.565525,-1.28559 3.168585,-1.2448 -0.34692,-1.13439 -0.663915,-2.271506 -0.198035,-3.479791"
id="path863"
inkscape:connector-curvature="0"
sodipodi:nodetypes="ccc" />
<path
style="fill:none;fill-opacity:1;stroke:#ff0000;stroke-width:2.22539;stroke-linecap:round;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;paint-order:normal"
d="m 6.986438,21.248284 c -4.10728,1.568505 -4.77052,6.12198 -1.244795,8.26095 -2.13183,2.661155 0.57789,7.09191 4.979204,5.884525 1.19975,1.771325 2.703925,2.720875 5.40357,1.78233"
id="path865"
inkscape:connector-curvature="0"
sodipodi:nodetypes="cccc" />
<path
style="fill:none;fill-opacity:1;stroke:#ff0000;stroke-width:2.22539;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;paint-order:normal"
d="m 13.530327,22.018984 c -7.132619,-1.8328 -6.819994,9.256015 -0.18004,8.101915 1.398115,3.922245 5.833955,4.67311 8.72206,0.900215 h 0.02"
id="path867"
inkscape:connector-curvature="0"
sodipodi:nodetypes="cccc" />
<path
style="fill:none;fill-opacity:1;stroke:#ff0000;stroke-width:2.22539;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;paint-order:normal"
d="m 16.303707,33.298219 c -1.09979,5.93442 3.06832,10.46966 8.166545,10.46966 h 5.57332"
id="path869"
inkscape:connector-curvature="0"
sodipodi:nodetypes="csc" />
<path
style="fill:none;fill-opacity:1;stroke:#ff0000;stroke-width:2.22539;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;paint-order:normal"
d="m 31.161062,39.354494 c -1.59489,2.66585 -1.0315,5.148545 0.367785,6.917135 4.224765,5.339785 8.00502,3.53637 11.528465,8.154425 l 1.75414,2.29909 c 1.547135,2.02778 4.70985,0.141905 3.67783,-2.319865 l -2.544185,-6.068825"
id="path871"
inkscape:connector-curvature="0"
sodipodi:nodetypes="cssssc" />
<path
style="fill:none;fill-opacity:1;stroke:#ff0000;stroke-width:2.22539;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;paint-order:normal"
d="m 47.798432,39.323074 c 2.681605,0 5.716665,0.7135 4.32102,5.161225 -0.866645,2.76187 -3.352745,3.8009 -5.801375,3.8009 h -3.745285 c -2.448625,0 -4.934725,-1.03903 -5.80137,-3.8009 -1.39565,-4.447725 1.639415,-5.161225 4.32102,-5.161225 z"
id="path873"
inkscape:connector-curvature="0"
sodipodi:nodetypes="sssssss" />
</g>
</svg>

After

Width:  |  Height:  |  Size: 8.7 KiB

File diff suppressed because one or more lines are too long

8
web/dist/assets/index-79ca9eb1.css vendored Normal file

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

4
web/dist/index.html vendored
View File

@ -6,8 +6,8 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>LoLLMS WebUI - Welcome</title>
<script type="module" crossorigin src="/assets/index-a63dc690.js"></script>
<link rel="stylesheet" href="/assets/index-50e8a572.css">
<script type="module" crossorigin src="/assets/index-ce8f854c.js"></script>
<link rel="stylesheet" href="/assets/index-79ca9eb1.css">
</head>
<body>
<div id="app"></div>

6
web/package-lock.json generated
View File

@ -23,6 +23,7 @@
"prismjs": "^1.29.0",
"socket.io-client": "^4.6.1",
"vue": "^3.2.47",
"vue-inline-svg": "^2.1.3",
"vue-router": "^4.1.6",
"vuex": "^4.0.2"
},
@ -3247,6 +3248,11 @@
"eslint": ">=6.0.0"
}
},
"node_modules/vue-inline-svg": {
"version": "2.1.3",
"resolved": "https://registry.npmjs.org/vue-inline-svg/-/vue-inline-svg-2.1.3.tgz",
"integrity": "sha512-rLuN4NBsCkUVhEUB5L9i3aMxZ4XuBHMZk6Ga5EXtN6S415QedKN9SrcXR7Wbntyh53JtC1QaTlcDSvIjD7cRpw=="
},
"node_modules/vue-resize": {
"version": "2.0.0-alpha.1",
"resolved": "https://registry.npmjs.org/vue-resize/-/vue-resize-2.0.0-alpha.1.tgz",

View File

@ -25,6 +25,7 @@
"prismjs": "^1.29.0",
"socket.io-client": "^4.6.1",
"vue": "^3.2.47",
"vue-inline-svg": "^2.1.3",
"vue-router": "^4.1.6",
"vuex": "^4.0.2"
},

View File

@ -53,6 +53,15 @@ const markdownIt = new MarkdownIt('commonmark', {
'`)">Show in vs code</span>'+
'</button>':''
let btn_open_folder_txt = (lang=='python' || lang=='bash') ?'<button class="px-2 py-1 ml-10 mb-2 text-left p-2 text-sm font-medium bg-bg-dark-tone-panel dark:bg-bg-dark-tone rounded-lg hover:bg-primary dark:hover:bg-primary text-white text-xs transition-colors duration-200">' +
'<span class="mr-1" id="exec-btn_' +
id + '6' +
'" onclick="openFolder(' +
id + '6,' + discussion_id + ',' + message_id + ',`' + lang +
'`)">Open folder</span>'+
'</button>':''
if (lang && hljs.getLanguage(lang)) {
try {
const highlightedCode = hljs.highlight(lang, str).value;
@ -249,6 +258,35 @@ export default {
});
}
function openFolder(id, discussion_id, message_id, lang) {
const codeElement = document.getElementById('code_' + id);
const codeExecElement = document.getElementById('code_exec_' + id);
const preExecElement = document.getElementById('pre_exec_' + id);
const code = codeElement.innerText
const json = JSON.stringify({ 'code': code, 'discussion_id': discussion_id, 'message_id':message_id, 'language': lang})
console.log(json)
fetch('http://localhost:9600/open_folder', {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: json
}).then(response=>{
// Parse the JSON data from the response body
return response.json();
})
.then(jsonData => {
// Now you can work with the JSON data
console.log(jsonData);
preExecElement.classList.remove('hidden');
codeExecElement.innerHTML = jsonData.output
})
.catch(error => {
// Handle any errors that occurred during the fetch process
console.error('Fetch error:', error);
});
}
`;
script.async = true; // Set to true if the script should be loaded asynchronously
document.body.appendChild(script);

View File

@ -77,14 +77,14 @@
type="button" @click="isSearch = !isSearch" :class="isSearch ? 'text-secondary' : ''">
<i data-feather="search"></i>
</button>
<button v-if="!showConfirmation" title="Save configuration" class="text-2xl hover:text-secondary duration-75 active:scale-90"
@click="showConfirmation = true">
<button v-if="!showSaveConfirmation" title="Save configuration" class="text-2xl hover:text-secondary duration-75 active:scale-90"
@click="showSaveConfirmation = true">
<i data-feather="save"></i>
</button>
<!-- SAVE CONFIG -->
<div v-if="showConfirmation" class="flex gap-3 flex-1 items-center duration-75">
<div v-if="showSaveConfirmation" class="flex gap-3 flex-1 items-center duration-75">
<button class="text-2xl hover:text-red-600 duration-75 active:scale-90 " title="Cancel" type="button"
@click.stop="showConfirmation = false">
@click.stop="showSaveConfirmation = false">
<i data-feather="x"></i>
</button>
<button class="text-2xl hover:text-secondary duration-75 active:scale-90" title="Confirm save changes"
@ -92,6 +92,11 @@
<i data-feather="check"></i>
</button>
</div>
<button v-if="!showBrainConfirmation" title="Activate Long term Memory" class="text-2xl hover:text-secondary duration-75 active:scale-90"
@click="toggleLTM()">
<img v-if="UseDiscussionHistory" :src="SVGGreenBrain" width="25" height="25">
<img v-else :src="SVGRedBrain" width="25" height="25">
</button>
<div v-if="loading" title="Loading.." class="flex flex-row flex-grow justify-end">
<!-- SPINNER -->
<div role="status">
@ -273,6 +278,9 @@
<style scoped>
.red-svg path {
fill: red;
}
.slide-right-enter-active {
transition: transform 0.3s ease;
}
@ -340,8 +348,8 @@
}
</style>
<script>
import SVGRedBrain from '@/assets/brain_red.svg';
import SVGGreenBrain from '@/assets/brain_green.svg';
export default {
setup() { },
@ -395,6 +403,8 @@ export default {
isGenerating: false,
isCheckbox: false,
isSelectAll: false,
showSaveConfirmation: false,
showBrainConfirmation: false,
showConfirmation: false,
chime: new Audio("chime_aud.wav"),
showToast: false,
@ -430,6 +440,28 @@ export default {
}
},
toggleLTM(){
this.$store.state.config.use_discussions_history =! this.$store.state.config.use_discussions_history;
this.applyConfiguration();
},
applyConfiguration() {
this.isLoading = true;
axios.post('/apply_settings', {"config":this.$store.state.config}).then((res) => {
this.isLoading = false;
//console.log('apply-res',res)
if (res.data.status) {
this.$refs.toast.showToast("Configuration changed successfully.", 4, true)
//this.save_configuration()
} else {
this.$refs.toast.showToast("Configuration change failed.", 4, false)
}
nextTick(() => {
feather.replace()
})
})
},
save_configuration() {
this.showConfirmation = false
axios.post('/save_settings', {})
@ -1713,6 +1745,9 @@ export default {
},
computed: {
UseDiscussionHistory() {
return this.$store.state.config.use_discussions_history;
},
isReady:{
get() {
@ -1775,6 +1810,7 @@ import { store } from '../main'
import ChoiceDialog from '@/components/ChoiceDialog.vue'
// initialize components based on data attribute selectors
onMounted(() => {
initFlowbite()

View File

@ -760,7 +760,7 @@
</tr>
</table>
</Card>
<Card title="Files Vectorization" :is_subcard="true" class="pb-2 m-2">
<Card title="Data Vectorization" :is_subcard="true" class="pb-2 m-2">
<table class="bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500">
<tr>
<td style="min-width: 200px;">
@ -798,7 +798,7 @@
</tr>
<tr>
<td style="min-width: 200px;">
<label for="data_vectorization_activate" class="text-sm font-bold" style="margin-right: 1rem;">Activate files vectorization:</label>
<label for="data_vectorization_activate" class="text-sm font-bold" style="margin-right: 1rem;">Activate data Vectorization:</label>
</td>
<td>
<div class="flex flex-row">