Skip to content

Instantly share code, notes, and snippets.

@humansonofhuman
Last active January 28, 2019 18:20
Show Gist options
  • Save humansonofhuman/6cab25be482766a68989823b8201cddb to your computer and use it in GitHub Desktop.
Save humansonofhuman/6cab25be482766a68989823b8201cddb to your computer and use it in GitHub Desktop.
Ejemplos de la estructura de los contenidos del proyecto Kristen
{
"idTipoContenidos": 1,
"contenido": {
"texto": "This is the essence of our connection with one another. We must look deeply enough into one another’s souls not only to know what makes us happy but also to understand what causes us pain."
}
}
{
"idTipoContenidos": 10,
"contenido": {
"letra": "Letra en números romanos",
"descripcion": "descripción",
"archivo": "url/al/archivo"
}
}
{
"idTipoContenidos": 11,
"contenido": {
"titulo": "Título de la Lista",
"elementos": [
{
"texto": "Elemento 1",
"url": "https://lipsum.com/"
},
{
"texto": "Elemento 2",
"url": "https://lipsum.com/"
},
{
"texto": "Elemento 3",
"url": "https://lipsum.com/"
},
{
"texto": "Elemento N",
"url": "https://lipsum.com/"
}
]
}
}
{
"idTipoContenidos": 2,
"contenido": {
"src": "https://i.imgur.com/ujwkVVv.jpg",
"alt": "Imagen Ejemplo"
}
}
{
"idTipoContenidos": "3",
"contenido": {
"cols": [
"DEPORTE",
"LUNES",
"MARTES",
"MIERCOLES",
"JUEVES",
"VIERNES",
"LUGAR"
],
"rows": [
[
"Ajedrez",
"10:20 - 13:00",
"07:00 - 10:00",
"09:00 - 12:00",
"07:00 - 10:00",
"09:00 - 12:00",
"UQPROO"
],
[
"Deporte N",
"Horario Lunes",
"Horario Martes",
"Horario Miercoles",
"Horario Jueves",
"Horario Viernes",
"Lugar donde se realiza el deporte"
],
[
"Row n",
"La cantidad de",
"elementos en la",
"row debe ser igual",
"a la cantidad de",
"elementos en el",
"atributo cols"
]
]
}
}
{
"idTipoContenidos": 4,
"contenido": {
"texto": "Lorem Ipsum",
"url": "https://lipsum.com/"
}
}
{
"idTipoContenidos": 5,
"contenido": {
"imagenes": [
"public/images/2018-07-23-4709/gallery2018-07-23-47091.png",
"public/images/2018-07-23-4709/gallery2018-07-23-47092.png",
"public/images/2018-07-23-4709/gallery2018-07-23-47093.png",
"public/images/2018-07-23-4709/gallery2018-07-23-47093.png",
"public/images/2018-07-23-4709/gallery2018-07-23-47093.png",
"public/images/2018-07-23-4709/gallery2018-07-23-47094.png"
]
}
}
{
"idTipoContenidos": 6,
"contenido": {
"imagen": "Foto_del_contecto.jpg",
"nombre": "Nombre Completo Contacto",
"cargo": "Cargo que ocupa",
"descripción": "Leyenda",
"email": "correo@mail.com",
"telefono": "1234567890 ext 123"
}
}
{
"idTipoContenidos": 7,
"contenido": {
"id": "cjfTG8DbwA",
"servidor": "youtube"
}
}
{
"idTipoContenidos": 8,
"contenido": {
"titulo": "Título de la Lista",
"ordenada": true,
"elementos": [
"Elemento 1",
"Elemento 2",
"Elemento 3",
"Elemento N"
]
}
}
{
"idTipoContenidos": 9,
"contenido": {
"texto": "Encabezado"
}
}
@humansonofhuman
Copy link
Author

humansonofhuman commented Jul 24, 2018

@humansonofhuman
Copy link
Author

humansonofhuman commented Dec 2, 2018

[
  {
    "idTipoContenidos": 1,
    "nombre": "Texto",
    "estructura": {
      "texto": "string"
    }
  },
  {
    "idTipoContenidos": 2,
    "nombre": "Imagen",
    "estructura": {
      "src": "string",
      "alt": "string"
    }
  },
  {
    "idTipoContenidos": 3,
    "nombre": "Tabla",
    "estructura": {
      "cols": ["string"],
      "rows": [["string"]]
    }
  },
  {
    "idTipoContenidos": 4,
    "nombre": "Enlace",
    "estructura": {
      "texto": "string",
      "url": "string"
    }
  },
  {
    "idTipoContenidos": 5,
    "nombre": "Galeria",
    "estructura": {
      "imagenes": ["string"]
    }
  },
  {
    "idTipoContenidos": 6,
    "nombre": "Tarjeta Contacto",
    "estructura": {
      "imagen": "string (opcional)",
      "nombre": "string",
      "cargo": "string",
      "descripcion": "string (opcional)",
      "email": "string",
      "telefono": "string"
    }
  },
  {
    "idTipoContenidos": 7,
    "nombre": "Video",
    "estructura": {
      "id": "string",
      "servidor": "string"
    }
  },
  {
    "idTipoContenidos": 8,
    "nombre": "Lista",
    "estructura": {
      "titulo": "string",
      "ordenada": "boolean",
      "elementos":["string"] 
    }
  },
  {
    "idTipoContenidos": 9,
    "nombre": "Encabezado",
    "estructura": {
      "texto": "string"
    }
  },
  {
    "idTipoContenidos": 10,
    "nombre": "Articulo Transparencia",
    "estructura": {
      "letra": "string",
      "descripcion": "string",
      "archivo": "string"
    }
  }
]

@humansonofhuman
Copy link
Author

Se eliminó
TipoId-6-Fecha-Evento.json
TipoId-3-Mapa-curricular.json

y se cambiaron los ids
de Tarjeta-Contacto a id 6
y de Tabla a id 3

@humansonofhuman
Copy link
Author

Agrega atributo telefono a contenido tipo contacto

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment