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
// https://tailwindcomponents.com/component/tailwind-css-admin-dashboard-layout | |
// https://gist.github.com/Klerith/3949f1c8b884d7101e378dfb668f0f3a | |
import Link from "next/link"; | |
const links = [ | |
{ name: "accordion", href: "accordion" }, | |
{ name: "alert", href: "alert" }, | |
]; |
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
{ | |
mixed: { | |
default: 'No es válido', | |
required: 'Este campo es requerido', | |
oneOf: 'Debe ser uno de los siguientes valores: ${values}', | |
notOneOf: 'No debe ser uno de los siguientes valores: ${values}', | |
defined: 'Debe estar definido', | |
notNull: 'No puede ser nulo', | |
notType: 'Debe ser de tipo ${type}', | |
}, |
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
import * as yup from 'yup'; | |
// Establecer el idioma de los mensajes de error en español | |
yup.setLocale({ | |
mixed: { | |
default: 'No es válido', | |
required: 'Este campo es requerido', | |
oneOf: 'Debe ser uno de los siguientes valores: ${values}', | |
notOneOf: 'No debe ser uno de los siguientes valores: ${values}', | |
defined: 'Debe estar definido', |
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
<template> | |
<div class="flex flex-col h-screen"> | |
<!-- Header --> | |
<header class="flex items-center h-14 px-4 border-b border-gray-300 sm:h-16 md:px-6 lg:px-8"> | |
<div> | |
<a class="flex items-center gap-2 font-semibold" href="#"> | |
<img alt="Vue logo" class="logo" src="@/assets/logo.svg" width="40" height="40" /> | |
</a> | |
</div> |
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
.fade-in { | |
animation: fadeIn 0.3s; | |
-webkit-animation: fadeIn 0.3s; | |
-moz-animation: fadeIn 0.3s; | |
-o-animation: fadeIn 0.3s; | |
-ms-animation: fadeIn 0.3s; | |
} | |
@keyframes fadeIn { | |
0% {opacity:0;} | |
100% {opacity:1;} |
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
{ | |
"extends": "./tsconfig.app.json", | |
"exclude": [], | |
"compilerOptions": { | |
"composite": true, | |
"tsBuildInfoFile": "./node_modules/.tmp/tsconfig.vitest.tsbuildinfo", | |
"lib": [], | |
"types": ["node", "jsdom", "vitest/globals"] | |
} | |
} |
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
<!-- Fuente: https://tailwindcomponents.com/component/chat-layout --> | |
<template> | |
<div class="bg-gray-100 h-screen flex flex-col max-w-lg mx-auto"> | |
<div class="bg-blue-500 p-4 text-white flex justify-between items-center"> | |
<span>Mi esposa</span> | |
</div> | |
<div class="flex-1 overflow-y-auto p-4"> | |
<div class="flex flex-col space-y-2"> | |
<!-- Messages go here --> |
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
const heroes = [ | |
{ | |
id: 1, | |
name: 'Batman', | |
owner: 'DC' | |
}, | |
{ | |
id: 2, | |
name: 'Spiderman', | |
owner: 'Marvel' |
NewerOlder