This file contains hidden or 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
| controller.uploadPhoto = async function (req, res) { | |
| try { | |
| const form = new formidable.IncomingForm(); | |
| form.parse(req, function (err, fields, files) { | |
| if (err) throw err; | |
| // photo debe enviado por el form | |
| if (!files.photo) { | |
| return res.status(402).json({ | |
| message: 'Falta archivo enviado', | |
| help: 'Uso: El archivo debe ser enviado en un multipart/form-data como photo' |
This file contains hidden or 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
| export default { | |
| data: function () { | |
| return { | |
| imageFile: null, | |
| result: null, | |
| error: null, | |
| loading: false, | |
| verbose: true, | |
| } | |
| }, |
This file contains hidden or 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
| const fechas = ["01/12/2021", "06/12/2021", "08/12/2021", "13/12/2021", "15/12/2021", "20/12/2021", "22/12/2021", "27/12/2021", "29/12/2021", "04/09/2022"]; | |
| const fechasAgrupadas = { | |
| lunes: [], | |
| martes: [], | |
| miercoles: [], | |
| jueves: [], | |
| viernes: [], | |
| sabado: [], | |
| domingo: [], | |
| }; |
This file contains hidden or 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
| import java.text.ParseException; | |
| import java.text.SimpleDateFormat; | |
| import java.util.ArrayList; | |
| import java.util.Calendar; | |
| import java.util.Date; | |
| import com.google.gson.Gson; | |
| import com.google.gson.GsonBuilder; | |
| public class FormatFecha { |
This file contains hidden or 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
| const mailer = require('express-mailer'); | |
| //.. | |
| app.set('views', path.join(__dirname, 'views')); | |
| app.set('view engine', 'ejs'); | |
| //... | |
| const GMAIL_USER = process.env.GMAIL_USER; | |
| const GMAIL_PASSWORD = process.env.GMAIL_PASSWORD; | |
| mailer.extend(app, { | |
| from: '[email protected]', |
This file contains hidden or 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
| const About = Vue.component('about', { | |
| data() { | |
| return { | |
| hello: 'Hello About!' | |
| }; | |
| }, | |
| template: `<div> | |
| <v-card> | |
| <v-card-title>About</v-card-title> | |
| <v-card-text> |
This file contains hidden or 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
| <!DOCTYPE html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <link href="https://fonts.googleapis.com/css?family=Roboto:100,300,400,500,700,900" rel="stylesheet"> | |
| <link href="https://fonts.googleapis.com/css?family=Material+Icons" rel="stylesheet"> | |
| <link href="https://cdn.jsdelivr.net/npm/@mdi/[email protected]/css/materialdesignicons.min.css" rel="stylesheet"> | |
| <link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/vuetify.min.css" rel="stylesheet"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no, minimal-ui"> | |
| <title>HTML5 + Vue + Router + Vuex + Vuetify</title> |
This file contains hidden or 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
| <!DOCTYPE html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <meta http-equiv="X-UA-Compatible" content="ie=edge"> | |
| <title>HTML5 + Vue + Router + Vuex</title> | |
| </head> | |
| <body> | |
| <div id="app"> |
This file contains hidden or 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
| <!DOCTYPE html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <meta http-equiv="X-UA-Compatible" content="ie=edge"> | |
| <title>HTML5 + Vue + Router</title> | |
| </head> | |
| <body> | |
| <div id="app"> |
This file contains hidden or 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
| <!DOCTYPE html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <meta http-equiv="X-UA-Compatible" content="ie=edge"> | |
| <title>HTML5 + Vue</title> | |
| </head> | |
| <body> | |
| <div id="app"> |