Refactor project structure and update assets

- Added new directories for Llms and Security components under src.
- Moved existing files into their respective directories for better organization.
- Updated file paths in imports to reflect the new structure.
- Replaced favicon.svg with a new version and updated its import path in index.html.
- Created a new LogoIcon component for the favicon with customizable colors.
- Added main and submenu link data files for navigation.
- Removed unused favicon.svg from public directory.
- Updated theme colors for a refreshed UI look.
This commit is contained in:
2025-05-08 22:28:00 +02:00
parent d45039e2f5
commit 20173e9042
11 changed files with 242 additions and 116 deletions
+47 -28
View File
@@ -33,9 +33,11 @@ E:\Fitz_Studio
│ │ ├── 04
│ │ ├── 05
│ │ ├── 06
│ │ ├── 08
│ │ ├── 0a
│ │ ├── 0b
│ │ ├── 0c
│ │ ├── 0d
│ │ ├── 0e
│ │ ├── 10
│ │ ├── 11
@@ -46,23 +48,33 @@ E:\Fitz_Studio
│ │ ├── 1a
│ │ ├── 1b
│ │ ├── 1d
│ │ ├── 1e
│ │ ├── 1f
│ │ ├── 20
│ │ ├── 21
│ │ ├── 22
│ │ ├── 23
│ │ ├── 24
│ │ ├── 26
│ │ ├── 27
│ │ ├── 28
│ │ ├── 2c
│ │ ├── 2d
│ │ ├── 2f
│ │ ├── 31
│ │ ├── 32
│ │ ├── 33
│ │ ├── 34
│ │ ├── 39
│ │ ├── 3c
│ │ ├── 3d
│ │ ├── 3e
│ │ ├── 3f
│ │ ├── 41
│ │ ├── 42
│ │ ├── 43
│ │ ├── 44
│ │ ├── 45
│ │ ├── 47
│ │ ├── 48
│ │ ├── 4a
@@ -72,12 +84,15 @@ E:\Fitz_Studio
│ │ ├── 4e
│ │ ├── 4f
│ │ ├── 51
│ │ ├── 52
│ │ ├── 55
│ │ ├── 57
│ │ ├── 5a
│ │ ├── 5b
│ │ ├── 5c
│ │ ├── 5d
│ │ ├── 5e
│ │ ├── 5f
│ │ ├── 60
│ │ ├── 61
│ │ ├── 62
@@ -93,6 +108,7 @@ E:\Fitz_Studio
│ │ ├── 74
│ │ ├── 75
│ │ ├── 76
│ │ ├── 77
│ │ ├── 7b
│ │ ├── 7c
│ │ ├── 7d
@@ -106,18 +122,24 @@ E:\Fitz_Studio
│ │ ├── 89
│ │ ├── 8a
│ │ ├── 8b
│ │ ├── 8c
│ │ ├── 90
│ │ ├── 94
│ │ ├── 95
│ │ ├── 97
│ │ ├── 98
│ │ ├── 99
│ │ ├── 9a
│ │ ├── 9c
│ │ ├── 9d
│ │ ├── a0
│ │ ├── a1
│ │ ├── a2
│ │ ├── a3
│ │ ├── a4
│ │ ├── a5
│ │ ├── a6
│ │ ├── a7
│ │ ├── a8
│ │ ├── a9
│ │ ├── aa
@@ -125,6 +147,7 @@ E:\Fitz_Studio
│ │ ├── ac
│ │ ├── ad
│ │ ├── ae
│ │ ├── af
│ │ ├── b1
│ │ ├── b3
│ │ ├── b4
@@ -134,17 +157,25 @@ E:\Fitz_Studio
│ │ ├── b9
│ │ ├── ba
│ │ ├── bb
│ │ ├── bc
│ │ ├── bf
│ │ ├── c0
│ │ ├── c3
│ │ ├── c4
│ │ ├── c5
│ │ ├── c6
│ │ ├── c7
│ │ ├── c9
│ │ ├── cc
│ │ ├── cd
│ │ ├── ce
│ │ ├── cf
│ │ ├── d1
│ │ ├── d4
│ │ ├── d5
│ │ ├── d6
│ │ ├── d7
│ │ ├── d8
│ │ ├── d9
│ │ ├── da
│ │ ├── db
@@ -152,6 +183,7 @@ E:\Fitz_Studio
│ │ ├── dd
│ │ ├── de
│ │ ├── df
│ │ ├── e0
│ │ ├── e3
│ │ ├── e4
│ │ ├── e5
@@ -166,6 +198,7 @@ E:\Fitz_Studio
│ │ ├── f1
│ │ ├── f2
│ │ ├── f3
│ │ ├── f5
│ │ ├── f6
│ │ ├── f7
│ │ ├── f9
@@ -859,38 +892,19 @@ E:\Fitz_Studio
│ │ ├── Router.tsx
│ │ ├── assets
│ │ ├── components
│ │ ├── favicon.svg
│ │ ├── main.tsx
│ │ ├── pages
│ │ ├── public
│ │ ├── theme.ts
│ │ ├── types
│ │ └── vite-env.d.ts
│ ├── test-utils
│ │ ├── index.ts
│ │ └── render.tsx
│ ├── tsconfig.json
│ ├── vite.config.mjs
│ ├── vite.config.js
│ ├── vitest.setup.mjs
│ └── yarn.lock
├── llms
│ ├── Agente.py
│ ├── MCPs
│ │ ├── MCPStdioServer.py
│ │ ├── __init__.py
│ │ └── __pycache__
│ ├── Memory
│ │ ├── Base_MemoryConv.py
│ │ ├── __pycache__
│ │ └── postgres_MemoryConv.py
│ ├── Modelos
│ │ ├── Base_model.py
│ │ ├── Openai_model.py
│ │ ├── Openai_model_mmr.py
│ │ ├── __init__.py
│ │ └── __pycache__
│ ├── __init__.py
│ └── __pycache__
│ ├── Agente.cpython-311.pyc
│ └── __init__.cpython-311.pyc
├── main.py
├── notebooks
│ └── hacer_script_nombres.ipynb
@@ -922,12 +936,6 @@ E:\Fitz_Studio
│ │ └── prueba_carga_postrgesql.cpython-311.pyc
│ └── datos_para_llms
│ └── generar_tree.py
├── security
│ ├── Encriptar.py
│ ├── __init__.py
│ └── __pycache__
│ ├── Encriptar.cpython-311.pyc
│ └── __init__.cpython-311.pyc
├── src
│ ├── ApiKeys
│ │ ├── __init__.py
@@ -948,6 +956,17 @@ E:\Fitz_Studio
│ │ ├── __pycache__
│ │ ├── postgres_credencial.py
│ │ └── postgres_credencial_mmr.py
│ ├── Llms
│ │ ├── Agente.py
│ │ ├── MCPs
│ │ ├── Memory
│ │ ├── Modelos
│ │ ├── __init__.py
│ │ └── __pycache__
│ ├── Security
│ │ ├── Encriptar.py
│ │ ├── __init__.py
│ │ └── __pycache__
│ ├── __init__.py
│ ├── __pycache__
│ │ ├── __init__.cpython-311.pyc
+1 -1
View File
@@ -2,7 +2,7 @@
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="src/public/favicon.svg" />
<link rel="icon" type="image/svg+xml" href="src/assets/icons/favicon.svg" />
<meta
name="viewport"
content="minimum-scale=1, initial-scale=1, width=device-width, user-scalable=no"
+55
View File
@@ -0,0 +1,55 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Created with Inkscape (http://www.inkscape.org/) -->
<svg
width="185.21428mm"
height="185.21428mm"
viewBox="0 0 185.21428 185.21428"
version="1.1"
id="svg1"
sodipodi:docname="favicon.svg"
inkscape:version="1.4 (86a8ad7, 2024-10-11)"
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="#242424"
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.52284039"
inkscape:cx="317.49651"
inkscape:cy="284.02549"
inkscape:window-width="1147"
inkscape:window-height="927"
inkscape:window-x="2024"
inkscape:window-y="105"
inkscape:window-maximized="0"
inkscape:current-layer="layer1" />
<defs
id="defs1" />
<g
inkscape:label="Layer 1"
inkscape:groupmode="layer"
id="layer1"
transform="translate(-13.15728,-55.159447)">
<circle
style="fill:#ffffff"
id="path1"
cx="105.76442"
cy="147.76659"
r="92.60714" />
<path
d="m 60.52824,130.59648 q 5.092664,-3.88488 12.125369,-6.43431 7.032718,-2.54944 15.035463,-4.12768 2.78883,-3.52067 5.45641,-6.91992 2.66758,-3.52066 4.60763,-6.55571 1.94007,-3.15645 3.031358,-5.82731 1.09128,-2.792247 0.84876,-4.977477 l 0.24252,0.2428 q -0.60628,-1.21402 -2.910088,-1.82102 -2.30382,-0.72842 -5.45642,-0.72842 -4.00138,0 -8.972768,1.09262 -4.971406,0.97121 -10.064057,2.91365 -5.092651,1.82102 -10.064057,4.491867 -4.850147,2.67085 -8.851513,5.94871 -3.880108,3.27786 -6.547698,7.16273 -2.546319,3.88487 -2.910081,8.13394 -5.456413,-4.61327 -7.881486,-8.49814 -2.303829,-4.00627 -2.303829,-7.52694 0,-6.19151 3.152597,-10.926187 3.152597,-4.73468 8.124003,-8.13393 5.092651,-3.52067 11.519091,-5.827315 6.547698,-2.306631 13.095396,-3.642054 6.668943,-1.456837 12.852879,-1.94244 6.305193,-0.607005 10.912843,-0.607005 6.911448,0 12.974128,0.971207 6.06269,0.971221 10.54908,3.035062 4.60766,1.942428 7.27523,4.856075 2.66758,2.91365 2.66758,6.91992 -0.72751,3.88487 -2.54632,7.16272 -1.69755,3.277867 -3.88013,6.312907 -2.18257,2.91365 -4.60766,5.94871 -2.30381,2.91365 -4.24387,5.94871 2.78884,0.12142 5.09265,0.36421 2.42508,0.12141 4.72891,0.12141 l -5.33517,13.35423 q -3.27384,0 -5.33517,0 -2.0613,0 -3.6376,0.12142 -1.45505,0 -2.78884,0.12141 -1.21253,0.12141 -2.78884,0.3642 -0.2425,0 -0.36376,0.12142 -0.12128,0 -0.36376,0 -8.730248,12.86862 -13.944158,27.19407 -5.213911,14.20405 -7.881489,28.77232 -4.728902,0.2428 -8.972771,-0.36422 -4.122624,-0.4856 -7.153976,-2.06382 -2.910081,-1.45683 -4.365128,-4.00627 -1.455047,-2.54946 -0.727524,-6.31292 0.848782,-3.27786 2.425074,-7.76973 1.697551,-4.61329 3.637617,-9.59078 2.061313,-5.09889 4.24387,-10.19778 2.303828,-5.22029 4.486386,-9.71218 -3.031339,1.33543 -6.91146,3.15647 -3.880108,1.82102 -6.668943,3.64206 z m 103.06565,44.5546 q 0.24249,3.64205 -1.94006,8.49814 -2.18258,4.8561 -5.69893,10.07639 -3.3951,5.22029 -7.63897,10.31916 -4.24389,5.2203 -8.12401,9.46937 -3.8801,4.24907 -6.91144,7.04132 -3.03134,2.91365 -4.12263,3.52066 -1.57629,0.60702 -3.27384,1.09263 -1.57629,0.607 -3.88013,-0.36422 -1.45506,-0.60699 -3.51638,-1.69963 -1.94005,-0.97122 -3.6376,-2.42803 -1.8188,-1.33542 -2.78884,-3.15646 -1.09128,-1.69963 -0.60626,-3.76347 0.48502,-1.82104 2.30383,-4.49187 1.69755,-2.67085 4.12261,-5.70591 2.54633,-3.03505 5.57768,-6.1915 3.15261,-3.03505 6.3052,-5.82729 3.27385,-2.79225 6.3052,-4.85609 3.15258,-2.06384 5.82015,-3.03506 0.36376,-0.12142 0.72754,-1.82103 0.36375,-1.69964 0.12115,-4.49187 -0.12115,-1.45684 -0.72752,-3.15646 -0.48502,-1.69963 -1.45505,-3.03505 -0.84876,-1.33543 -2.18254,-2.18525 -1.3338,-0.97122 -2.91009,-0.97122 -2.78884,0 -5.82018,2.91365 -3.03134,2.54946 -5.57767,1.82104 -2.4251,-0.72842 -3.7589,-3.03506 -1.21252,-2.42803 -0.84877,-5.46309 0.48502,-3.03505 3.39511,-5.09889 0.97004,-0.60702 4.00138,-3.03505 3.03135,-2.54945 6.66897,-5.7059 3.63759,-3.15646 7.03269,-6.31292 3.39512,-3.27785 5.09267,-5.3417 1.57629,-1.94242 2.0613,-3.03504 0.48502,-1.09261 0.36376,-1.69963 -0.12116,-0.60702 -0.72752,-0.72842 -0.48502,-0.2428 -0.84877,-0.2428 -1.45505,-0.12141 -3.3951,-0.2428 -1.81881,-0.12142 -3.51636,0 -1.69754,0.12128 -3.15259,0.4856 -1.33379,0.2428 -1.81881,0.72842 -0.97002,0.7284 -3.03134,3.88487 -1.94005,3.03505 -4.24386,6.67711 -2.30383,3.64207 -4.48642,7.04132 -2.06132,3.39927 -3.03135,4.85609 -2.18257,3.03505 -4.36511,3.88487 -2.30382,0.72842 -3.88012,0 -1.57631,-0.72841 -1.94007,-2.54945 -0.48501,-1.82102 0.84878,-4.00627 1.45505,-2.30664 3.1526,-5.34169 1.69754,-3.15646 3.51636,-6.55571 1.81878,-3.52067 3.63759,-7.16274 1.94008,-3.64206 3.75889,-7.16273 1.3338,-2.42803 2.78885,-3.88487 1.45503,-1.57822 3.8801,-2.42803 2.9101,-0.72842 6.42644,-0.97122 3.63761,-0.24281 7.15397,-0.12141 3.51636,0 6.66895,0.3642 3.15259,0.2428 5.2139,0.36422 2.30381,0.24279 4.48638,1.94243 2.30383,1.69962 3.88013,3.88485 1.69755,2.18524 2.42507,4.6133 0.72752,2.30664 -0.12116,3.88486 -0.12115,0.24281 -1.45503,1.57823 -1.33379,1.33543 -3.51636,3.39927 -2.06131,2.06383 -4.7289,4.61327 -2.66758,2.42805 -5.33516,4.97749 -2.54633,2.42805 -4.9714,4.61329 -2.42506,2.18523 -4.00137,3.64205 h 1.45505 q 4.60763,0 7.88149,0.72842 3.39511,0.607 6.54769,3.27785 2.66758,-3.03505 5.57768,-7.52693 2.91008,-4.61328 5.45641,-8.74095 2.30381,-4.00628 4.60764,-5.22029 2.42506,-1.21402 4.12263,-0.60702 1.81879,0.48561 2.42507,2.54946 0.72751,1.94243 -0.36376,4.49186 -6.79022,11.0476 -11.15534,18.21033 -4.24387,7.04132 -6.30518,9.95498 z"
id="text1-8-5-1"
style="fill:#000000"
aria-label="Fz"
inkscape:label="text1" />
</g>
</svg>

After

Width:  |  Height:  |  Size: 5.9 KiB

+37
View File
@@ -0,0 +1,37 @@
import React from 'react';
type LogoIconProps = React.SVGProps<SVGSVGElement> & {
circleFill?: string;
pathFill?: string;
};
const LogoIcon: React.FC<LogoIconProps> = ({
style,
circleFill = 'currentColor',
pathFill = 'currentColor',
...props
}) => (
<svg
xmlns="http://www.w3.org/2000/svg"
width="1em"
height="1em"
viewBox="0 0 185.21428 185.21428"
style={style}
{...props}
>
<g transform="translate(-13.15728,-55.159447)">
<circle
cx="105.76442"
cy="147.76659"
r="92.60714"
fill={circleFill}
/>
<path
d="m 60.52824,130.59648 q 5.092664,-3.88488 12.125369,-6.43431 7.032718,-2.54944 15.035463,-4.12768 2.78883,-3.52067 5.45641,-6.91992 2.66758,-3.52066 4.60763,-6.55571 1.94007,-3.15645 3.031358,-5.82731 1.09128,-2.792247 0.84876,-4.977477 l 0.24252,0.2428 q -0.60628,-1.21402 -2.910088,-1.82102 -2.30382,-0.72842 -5.45642,-0.72842 -4.00138,0 -8.972768,1.09262 -4.971406,0.97121 -10.064057,2.91365 -5.092651,1.82102 -10.064057,4.491867 -4.850147,2.67085 -8.851513,5.94871 -3.880108,3.27786 -6.547698,7.16273 -2.546319,3.88487 -2.910081,8.13394 -5.456413,-4.61327 -7.881486,-8.49814 -2.303829,-4.00627 -2.303829,-7.52694 0,-6.19151 3.152597,-10.926187 3.152597,-4.73468 8.124003,-8.13393 5.092651,-3.52067 11.519091,-5.827315 6.547698,-2.306631 13.095396,-3.642054 6.668943,-1.456837 12.852879,-1.94244 6.305193,-0.607005 10.912843,-0.607005 6.911448,0 12.974128,0.971207 6.06269,0.971221 10.54908,3.035062 4.60766,1.942428 7.27523,4.856075 2.66758,2.91365 2.66758,6.91992 -0.72751,3.88487 -2.54632,7.16272 -1.69755,3.277867 -3.88013,6.312907 -2.18257,2.91365 -4.60766,5.94871 -2.30381,2.91365 -4.24387,5.94871 2.78884,0.12142 5.09265,0.36421 2.42508,0.12141 4.72891,0.12141 l -5.33517,13.35423 q -3.27384,0 -5.33517,0 -2.0613,0 -3.6376,0.12142 -1.45505,0 -2.78884,0.12141 -1.21253,0.12141 -2.78884,0.3642 -0.2425,0 -0.36376,0.12142 -0.12128,0 -0.36376,0 -8.730248,12.86862 -13.944158,27.19407 -5.213911,14.20405 -7.881489,28.77232 -4.728902,0.2428 -8.972771,-0.36422 -4.122624,-0.4856 -7.153976,-2.06382 -2.910081,-1.45683 -4.365128,-4.00627 -1.455047,-2.54946 -0.727524,-6.31292 0.848782,-3.27786 2.425074,-7.76973 1.697551,-4.61329 3.637617,-9.59078 2.061313,-5.09889 4.24387,-10.19778 2.303828,-5.22029 4.486386,-9.71218 -3.031339,1.33543 -6.91146,3.15647 -3.880108,1.82102 -6.668943,3.64206 z m 103.06565,44.5546 q 0.24249,3.64205 -1.94006,8.49814 -2.18258,4.8561 -5.69893,10.07639 -3.3951,5.22029 -7.63897,10.31916 -4.24389,5.2203 -8.12401,9.46937 -3.8801,4.24907 -6.91144,7.04132 -3.03134,2.91365 -4.12263,3.52066 -1.57629,0.60702 -3.27384,1.09263 -1.57629,0.607 -3.88013,-0.36422 -1.45506,-0.60699 -3.51638,-1.69963 -1.94005,-0.97122 -3.6376,-2.42803 -1.8188,-1.33542 -2.78884,-3.15646 -1.09128,-1.69963 -0.60626,-3.76347 0.48502,-1.82104 2.30383,-4.49187 1.69755,-2.67085 4.12261,-5.70591 2.54633,-3.03505 5.57768,-6.1915 3.15261,-3.03505 6.3052,-5.82729 3.27385,-2.79225 6.3052,-4.85609 3.15258,-2.06384 5.82015,-3.03506 0.36376,-0.12142 0.72754,-1.82103 0.36375,-1.69964 0.12115,-4.49187 -0.12115,-1.45684 -0.72752,-3.15646 -0.48502,-1.69963 -1.45505,-3.03505 -0.84876,-1.33543 -2.18254,-2.18525 -1.3338,-0.97122 -2.91009,-0.97122 -2.78884,0 -5.82018,2.91365 -3.03134,2.54946 -5.57767,1.82104 -2.4251,-0.72842 -3.7589,-3.03506 -1.21252,-2.42803 -0.84877,-5.46309 0.48502,-3.03505 3.39511,-5.09889 0.97004,-0.60702 4.00138,-3.03505 3.03135,-2.54945 6.66897,-5.7059 3.63759,-3.15646 7.03269,-6.31292 3.39512,-3.27785 5.09267,-5.3417 1.57629,-1.94242 2.0613,-3.03504 0.48502,-1.09261 0.36376,-1.69963 -0.12116,-0.60702 -0.72752,-0.72842 -0.48502,-0.2428 -0.84877,-0.2428 -1.45505,-0.12141 -3.3951,-0.2428 -1.81881,-0.12142 -3.51636,0 -1.69754,0.12128 -3.15259,0.4856 -1.33379,0.2428 -1.81881,0.72842 -0.97002,0.7284 -3.03134,3.88487 -1.94005,3.03505 -4.24386,6.67711 -2.30383,3.64207 -4.48642,7.04132 -2.06132,3.39927 -3.03135,4.85609 -2.18257,3.03505 -4.36511,3.88487 -2.30382,0.72842 -3.88012,0 -1.57631,-0.72841 -1.94007,-2.54945 -0.48501,-1.82102 0.84878,-4.00627 1.45505,-2.30664 3.1526,-5.34169 1.69754,-3.15646 3.51636,-6.55571 1.81878,-3.52067 3.63759,-7.16274 1.94008,-3.64206 3.75889,-7.16273 1.3338,-2.42803 2.78885,-3.88487 1.45503,-1.57822 3.8801,-2.42803 2.9101,-0.72842 6.42644,-0.97122 3.63761,-0.24281 7.15397,-0.12141 3.51636,0 6.66895,0.3642 3.15259,0.2428 5.2139,0.36422 2.30381,0.24279 4.48638,1.94243 2.30383,1.69962 3.88013,3.88485 1.69755,2.18524 2.42507,4.6133 0.72752,2.30664 -0.12116,3.88486 -0.12115,0.24281 -1.45503,1.57823 -1.33379,1.33543 -3.51636,3.39927 -2.06131,2.06383 -4.7289,4.61327 -2.66758,2.42805 -5.33516,4.97749 -2.54633,2.42805 -4.9714,4.61329 -2.42506,2.18523 -4.00137,3.64205 h 1.45505 q 4.60763,0 7.88149,0.72842 3.39511,0.607 6.54769,3.27785 2.66758,-3.03505 5.57768,-7.52693 2.91008,-4.61328 5.45641,-8.74095 2.30381,-4.00628 4.60764,-5.22029 2.42506,-1.21402 4.12263,-0.60702 1.81879,0.48561 2.42507,2.54946 0.72751,1.94243 -0.36376,4.49186 -6.79022,11.0476 -11.15534,18.21033 -4.24387,7.04132 -6.30518,9.95498 z"
fill={pathFill}
/>
</g>
</svg>
);
export default LogoIcon;
+1 -1
View File
@@ -15,4 +15,4 @@ export { default as IconCheck } from './outlined/check.svg?react';
// FILLED
export { default as IconHomeFilled } from './filled/home.svg?react';
export { default as IconUserFilled } from './filled/user.svg?react';
export { default as IconUserFilled } from './filled/user.svg?react';
+26 -65
View File
@@ -1,74 +1,27 @@
import {
IconCalendarStats,
IconDeviceDesktopAnalytics,
IconFingerprint,
IconGauge,
IconHome2,
IconSettings,
IconUserOutline as IconUser,
IconArrowBarLeft,
IconArrowBarRight,
} from '../../assets/icons';
import {
AppShell,
Burger,
Group,
Skeleton,
Tooltip,
UnstyledButton,
ActionIcon,
Title,
} from '@mantine/core';
AppShell,
Burger,
Group,
Skeleton,
Tooltip,
UnstyledButton,
ActionIcon,
Title,
} from '@mantine/core';
import { default as LogoIcon } from '../../assets/icons/favicon'; // ruta relativa ajusta según tu estructura
import { useMantineTheme } from '@mantine/core';
import { mainLinksdata } from '../../data/navigationsLinks_1'; // ajusta la ruta
import { submenuLinks } from '../../data/submenuLinks_1'; // ajusta la ruta según tu estructura
import { useDisclosure, useMediaQuery } from '@mantine/hooks';
import { useEffect, useMemo, useState } from 'react';
import { Link, useLocation } from 'react-router-dom';
import classes from './Appshell.module.css';
const mainLinksdata = [
{ icon: IconHome2, label: 'Home' },
{ icon: IconGauge, label: 'Dashboard' },
{ icon: IconDeviceDesktopAnalytics, label: 'Analytics' },
{ icon: IconCalendarStats, label: 'Releases' },
{ icon: IconUser, label: 'Account' },
{ icon: IconFingerprint, label: 'Security' },
{ icon: IconSettings, label: 'Settings' },
];
const submenuLinks = {
Home: [
{ label: 'Inicio', to: '/' },
{ label: 'Consulta Api', to: '/Consulta_API' },
{ label: 'Prueba_appshell', to: '/prueba_appshell' },
],
Dashboard: [
{ label: 'Resumen', to: '/dashboard/resumen' },
{ label: 'Estadísticas', to: '/dashboard/estadisticas' },
{ label: 'Usuarios', to: '/dashboard/usuarios' },
],
Analytics: [
{ label: 'Conversiones', to: '/analytics/conversiones' },
{ label: 'Tráfico', to: '/analytics/trafico' },
{ label: 'Tendencias', to: '/analytics/tendencias' },
],
Releases: [
{ label: 'Notas de versión', to: '/releases/notas-de-version' },
{ label: 'Historial', to: '/releases/historial' },
],
Account: [
{ label: 'Perfil', to: '/account/perfil' },
{ label: 'Suscripciones', to: '/account/suscripciones' },
],
Security: [
{ label: 'Contraseña', to: '/security/contraseña' },
{ label: '2FA', to: '/security/2fa' },
],
Settings: [
{ label: 'Preferencias', to: '/settings/preferencias' },
{ label: 'Notificaciones', to: '/settings/notificaciones' },
],
};
type AppShellWithMenuProps = {
@@ -77,6 +30,9 @@ import {
export function AppShellWithMenu({ children }: AppShellWithMenuProps) {
const theme = useMantineTheme();
const location = useLocation();
const isMobile = useMediaQuery('(max-width: 768px)');
const [mobileOpened, { toggle: toggleMobile, close: closeMobile }] = useDisclosure(false);
@@ -154,7 +110,12 @@ import {
<Group h="100%" px="sm">
<Burger opened={mobileOpened} onClick={toggleMobile} hiddenFrom="sm" size="sm" />
<Burger opened={desktopOpened} onClick={toggleDesktop} visibleFrom="sm" size="sm" />
<img src="/src/public/favicon.svg" alt="Logo" style={{ width: 30, height: 30 }} />
<LogoIcon
style={{ width: 30, height: 30 }}
circleFill={theme.colors.brand[9]}
pathFill={theme.colors.secondary[2]}
/>
</Group>
</AppShell.Header>
+20
View File
@@ -0,0 +1,20 @@
// src/data/navigationLinks.ts
import {
IconCalendarStats,
IconDeviceDesktopAnalytics,
IconFingerprint,
IconGauge,
IconHome2,
IconSettings,
IconUserOutline as IconUser,
} from '../assets/icons'; // ajusta según tu estructura de proyecto
export const mainLinksdata = [
{ icon: IconHome2, label: 'Home' },
{ icon: IconGauge, label: 'Dashboard' },
{ icon: IconDeviceDesktopAnalytics, label: 'Analytics' },
{ icon: IconCalendarStats, label: 'Releases' },
{ icon: IconUser, label: 'Account' },
{ icon: IconFingerprint, label: 'Security' },
{ icon: IconSettings, label: 'Settings' },
];
+35
View File
@@ -0,0 +1,35 @@
// src/data/submenuLinks.ts
export const submenuLinks = {
Home: [
{ label: 'Inicio', to: '/' },
{ label: 'Consulta Api', to: '/Consulta_API' },
{ label: 'Prueba_appshell', to: '/prueba_appshell' },
],
Dashboard: [
{ label: 'Resumen', to: '/dashboard/resumen' },
{ label: 'Estadísticas', to: '/dashboard/estadisticas' },
{ label: 'Usuarios', to: '/dashboard/usuarios' },
],
Analytics: [
{ label: 'Conversiones', to: '/analytics/conversiones' },
{ label: 'Tráfico', to: '/analytics/trafico' },
{ label: 'Tendencias', to: '/analytics/tendencias' },
],
Releases: [
{ label: 'Notas de versión', to: '/releases/notas-de-version' },
{ label: 'Historial', to: '/releases/historial' },
],
Account: [
{ label: 'Perfil', to: '/account/perfil' },
{ label: 'Suscripciones', to: '/account/suscripciones' },
],
Security: [
{ label: 'Contraseña', to: '/security/contraseña' },
{ label: '2FA', to: '/security/2fa' },
],
Settings: [
{ label: 'Preferencias', to: '/settings/preferencias' },
{ label: 'Notificaciones', to: '/settings/notificaciones' },
],
};
-1
View File
@@ -1 +0,0 @@
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 163 163"><path fill="#339AF0" d="M162.162 81.5c0-45.011-36.301-81.5-81.08-81.5C36.301 0 0 36.489 0 81.5 0 126.51 36.301 163 81.081 163s81.081-36.49 81.081-81.5z"/><path fill="#fff" d="M65.983 43.049a6.234 6.234 0 00-.336 6.884 6.14 6.14 0 001.618 1.786c9.444 7.036 14.866 17.794 14.866 29.52 0 11.726-5.422 22.484-14.866 29.52a6.145 6.145 0 00-1.616 1.786 6.21 6.21 0 00-.694 4.693 6.21 6.21 0 001.028 2.186 6.151 6.151 0 006.457 2.319 6.154 6.154 0 002.177-1.035 50.083 50.083 0 007.947-7.39h17.493c3.406 0 6.174-2.772 6.174-6.194s-2.762-6.194-6.174-6.194h-9.655a49.165 49.165 0 004.071-19.69 49.167 49.167 0 00-4.07-19.692h9.66c3.406 0 6.173-2.771 6.173-6.194 0-3.422-2.762-6.193-6.173-6.193H82.574a50.112 50.112 0 00-7.952-7.397 6.15 6.15 0 00-4.578-1.153 6.189 6.189 0 00-4.055 2.438h-.006z"/><path fill="#fff" fill-rule="evenodd" d="M56.236 79.391a9.342 9.342 0 01.632-3.608 9.262 9.262 0 011.967-3.077 9.143 9.143 0 012.994-2.063 9.06 9.06 0 017.103 0 9.145 9.145 0 012.995 2.063 9.262 9.262 0 011.967 3.077 9.339 9.339 0 01-2.125 10.003 9.094 9.094 0 01-6.388 2.63 9.094 9.094 0 01-6.39-2.63 9.3 9.3 0 01-2.755-6.395z" clip-rule="evenodd"/></svg>

Before

Width:  |  Height:  |  Size: 1.2 KiB

+20 -20
View File
@@ -4,29 +4,29 @@ export const theme = createTheme({
colors: {
// Definición de la paleta principal
brand: [
"#ffeaff",
"#fdd3fc",
"#f6a5f3",
"#ef74eb",
"#e841e2",
"#e631e0",
"#e521de",
"#cc12c5",
"#b608b1",
"#9f009b"
"#e7f2ff",
"#d0e1ff",
"#a1c0fa",
"#6e9df6",
"#447ff1",
"#296df0",
"#1863f0",
"#0753d6",
"#0049c1",
"#003faa"
],
// Puedes añadir hasta 3 colores adicionales si lo deseas
secondary: [
"#f7ecff",
"#e7d6fb",
"#caaaf1",
"#ac7ce8",
"#9354e0",
"#833bdb",
"#7b2eda",
"#6921c2",
"#5d1cae",
"#501599"
"#ecf4ff",
"#dce4f5",
"#b9c7e2",
"#94a8d0",
"#748dc0",
"#5f7cb7",
"#5474b4",
"#44639f",
"#3a5890",
"#2c4b80"
],
accent: [
'#fff3e0',