-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f28dfbd
commit d02a85e
Showing
14 changed files
with
120 additions
and
343 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
import { fields } from "@keystatic/core"; | ||
import { materiasCBI } from "./data/dataCBI"; | ||
import { semesterOptionsCBI } from "./data/dataSemester"; | ||
|
||
export const cbiDataHandler = fields.conditional( | ||
fields.select({ | ||
label: "Semestre", | ||
description: "Select the semester", | ||
options: semesterOptionsCBI, | ||
defaultValue: "1", | ||
}), | ||
{ | ||
1: fields.select({ | ||
label: "Subject", | ||
description: "Enter the subject of the post", | ||
options: materiasCBI[1], | ||
defaultValue: "F1", | ||
}), | ||
2: fields.select({ | ||
label: "Subject", | ||
description: "Enter the subject of the post", | ||
options: materiasCBI[2], | ||
defaultValue: "F2", | ||
}), | ||
3: fields.select({ | ||
label: "Subject", | ||
description: "Enter the subject of the post", | ||
options: materiasCBI[3], | ||
defaultValue: "DT1", | ||
}), | ||
4: fields.select({ | ||
label: "Subject", | ||
description: "Enter the subject of the post", | ||
options: materiasCBI[4], | ||
defaultValue: "DT2", | ||
}), | ||
}, | ||
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
const materiaCBI1er = [ | ||
{ label: "Álgebra", value: "AL" }, | ||
{ label: "Análisis Matemático 1", value: "A1" }, | ||
{ label: "Física 1", value: "F1" }, | ||
{ label: "Geometría", value: "GE" }, | ||
{ label: "Inglés", value: "IN" }, | ||
{ label: "Química 1", value: "Q1" }, | ||
]; | ||
|
||
const materiaCBI2do = [ | ||
{ label: "Álgebra Lineal", value: "AN" }, | ||
{ label: "Análisis Matemático 2", value: "A2" }, | ||
{ label: "Física 2", value: "F2" }, | ||
{ label: "Análisis Vectorial", value: "AV" }, | ||
{ label: "Computación 1", value: "C1" }, | ||
{ label: "Química 2", value: "Q2" }, | ||
]; | ||
|
||
const materiaCBI3ero = [ | ||
{ label: "Diseño Técnico I", value: "DT1" }, | ||
{ label: "Análisis Matemático III", value: "A3" }, | ||
{ label: "Física III", value: "F3" }, | ||
{ label: "Mecánica Racional I", value: "MR1" }, | ||
{ label: "Probabilidades y Estadística", value: "PE" }, | ||
{ label: "Computación II", value: "C2" }, | ||
{ label: "Diseño Asistido por Computadora I", value: "DAC1" }, | ||
]; | ||
|
||
const materiaCBI4to = [ | ||
{ label: "Diseño Técnico II", value: "DT2" }, | ||
{ label: "Cálculo Numérico", value: "CN" }, | ||
{ label: "Mecánica Racional II", value: "MR2" }, | ||
{ label: "Mecánica de los Materiales I", value: "MM1" }, | ||
{ label: "Tecnología de los Materiales", value: "TM" }, | ||
{ label: "Diseño Asistido por Computadora II", value: "DAC2" }, | ||
{ label: "Construcciones", value: "CON" }, | ||
]; | ||
export const materiasCBI = { | ||
1: materiaCBI1er, | ||
2: materiaCBI2do, | ||
3: materiaCBI3ero, | ||
4: materiaCBI4to, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.