瀏覽代碼

some fixes

amenpunk 1 年之前
父節點
當前提交
2b4f361249

+ 15 - 0
src/App.css

478
 .lodingSpinner{
478
 .lodingSpinner{
479
   place-self: center;
479
   place-self: center;
480
 }
480
 }
481
+
482
+
483
+.text_underline:hover {
484
+  cursor: pointer;
485
+  text-decoration: underline;
486
+  text-decoration-color: blue;
487
+}
488
+
489
+/* CSS */
490
+.text_underline {
491
+  transition: color 0.3s ease; /* Transición suave del color durante 0.3 segundos */
492
+  animation: fadeIn 1s ease; /* Aplicar la animación de fade-in */
493
+}
494
+
495
+

+ 1 - 0
src/Components/Home/Candidato.jsx

186
 }
186
 }
187
 
187
 
188
 export function Preview() {
188
 export function Preview() {
189
+  console.log('preview')
189
   return (
190
   return (
190
     <Box sx={{ width: '100%' }}>
191
     <Box sx={{ width: '100%' }}>
191
       <Skeleton height={big_as} animation="wave" />
192
       <Skeleton height={big_as} animation="wave" />

+ 3 - 1
src/Components/Password/Steps/TypePwd.jsx

321
         </div>
321
         </div>
322
 
322
 
323
         <div className="typepwdlist">
323
         <div className="typepwdlist">
324
-          <FormLabel className="demo-radio-buttons-group-label">Selecciona los privilegios</FormLabel>
324
+          <FormLabel className="demo-radio-buttons-group-label">
325
+            Selecciona los privilegios
326
+          </FormLabel>
325
           {
327
           {
326
             recursos &&
328
             recursos &&
327
             Object.keys(recursos).map((k) =>
329
             Object.keys(recursos).map((k) =>

+ 5 - 2
src/Components/Puestos/GridMode.jsx

2
 import { Grow } from '@mui/material';
2
 import { Grow } from '@mui/material';
3
 import { Col } from 'react-bootstrap'
3
 import { Col } from 'react-bootstrap'
4
 import { PuestoCard } from './Card';
4
 import { PuestoCard } from './Card';
5
+import {SinPuestos} from './SinPuestos'
5
 
6
 
6
 export function GridMode(props) {
7
 export function GridMode(props) {
7
 
8
 
8
-  let { data, index, showing, toggle } = props;
9
+  let { data, index, showing, toggle, new_puesto } = props;
10
+  
11
+  console.log(data)
9
 
12
 
10
   return (
13
   return (
11
     <React.Fragment>
14
     <React.Fragment>
21
                 </Col>
24
                 </Col>
22
               </Grow>
25
               </Grow>
23
             )
26
             )
24
-          }) : <div></div>
27
+          }) : <SinPuestos toggle={new_puesto}/>
25
       }
28
       }
26
     </React.Fragment>
29
     </React.Fragment>
27
   )
30
   )

+ 2 - 1
src/Components/Puestos/ListMode.jsx

4
 import ShowI from '@mui/icons-material/Grading';
4
 import ShowI from '@mui/icons-material/Grading';
5
 import EditI from '@mui/icons-material/Edit';
5
 import EditI from '@mui/icons-material/Edit';
6
 import Deletei from '@mui/icons-material/Delete';
6
 import Deletei from '@mui/icons-material/Delete';
7
+import {SinPuestos} from './SinPuestos'
7
 
8
 
8
 export function ListMode(props) {
9
 export function ListMode(props) {
9
 
10
 
63
                       </tr>
64
                       </tr>
64
                     </Zoom>
65
                     </Zoom>
65
                   )
66
                   )
66
-                }) : undefined
67
+                }) : <SinPuestos toggle={props.new_puesto}/>
67
             }
68
             }
68
           </tbody>
69
           </tbody>
69
           <tfoot>
70
           <tfoot>

+ 9 - 0
src/Components/Puestos/SinPuestos.jsx

1
+
2
+export function SinPuestos({ toggle}) {
3
+  return (
4
+    <div style={{ paddingTop: 25  }}>
5
+      <h1>Aun no tienes puestos creados</h1>
6
+      <h1>Crea tu primer puesto haciendo click <i onClick={() => toggle()} className="text_underline">aquí</i> </h1>
7
+    </div>
8
+  )
9
+}

+ 2 - 2
src/Css/all.css

337
 .body-table th {
337
 .body-table th {
338
     font-size: 14px;
338
     font-size: 14px;
339
     /* color: #fff; */
339
     /* color: #fff; */
340
-    font-weight: 300!important;
341
-    border-top: none!important;
340
+    font-weight: bold;
342
     border-left: none!important;
341
     border-left: none!important;
343
     border-right: none!important;
342
     border-right: none!important;
344
     border-bottom: 1px solid #2e3f5b!important;
343
     border-bottom: 1px solid #2e3f5b!important;
344
+    border-top: 1px solid #2e3f5b!important;
345
     /* color: rgba(225,235,245,.8); */
345
     /* color: rgba(225,235,245,.8); */
346
 }
346
 }
347
 .body-table tr {
347
 .body-table tr {

+ 2 - 0
src/Pages/Puestos.jsx

130
                   {isLoading && <Loading />}
130
                   {isLoading && <Loading />}
131
                   { !error ?
131
                   { !error ?
132
                     <GridMode
132
                     <GridMode
133
+                      new_puesto={() => setManual(true) }
133
                       toggle={toggle}
134
                       toggle={toggle}
134
                       showing={alignment}
135
                       showing={alignment}
135
                       data={filter ? Divide(filter) : Divide(result ? result.data  : [])}
136
                       data={filter ? Divide(filter) : Divide(result ? result.data  : [])}
144
                   {isLoading && <Loading />}
145
                   {isLoading && <Loading />}
145
                   { !error ?
146
                   { !error ?
146
                     <ListMode
147
                     <ListMode
148
+                      new_puesto={() => setManual(true) }
147
                       toggle={toggle}
149
                       toggle={toggle}
148
                       showing={alignment}
150
                       showing={alignment}
149
                       data={filter ? Divide(filter) : Divide(result ? result.data : [])}
151
                       data={filter ? Divide(filter) : Divide(result ? result.data : [])}

+ 1 - 1
test/src/test/java/com/psicoweb/test/AppTest.java

64
     WebElement telefono_dos = driver.findElement(By.xpath("//*[@id=\"mui-13\"]"));
64
     WebElement telefono_dos = driver.findElement(By.xpath("//*[@id=\"mui-13\"]"));
65
 
65
 
66
     nit.sendKeys("121212");
66
     nit.sendKeys("121212");
67
-    cui.sendKeys("7373982749832");
67
+    cui.sendKeys("1111111111111111111111111111");
68
     direccion.sendKeys(faker.address().streetName());
68
     direccion.sendKeys(faker.address().streetName());
69
     nacimiento.sendKeys("10/12/1995");
69
     nacimiento.sendKeys("10/12/1995");
70
     telefono_dos.sendKeys("42405339");
70
     telefono_dos.sendKeys("42405339");