- Clonar proyecto
- Ejecutar
bun install - Crear
.envbasado en.env.template - Ejecutar
bun run dev
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
| :root { | |
| font-family: system-ui, Avenir, Helvetica, Arial, sans-serif; | |
| line-height: 1.5; | |
| font-weight: 400; | |
| color-scheme: dark; | |
| color: rgba(255, 255, 255, 0.87); | |
| background-color: #242424; | |
| font-synthesis: none; |
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 type { PoliticalParty } from '../types'; | |
| import { generateUuid } from '../utils/generate-uuid'; | |
| const defaultParties = [ | |
| { | |
| name: 'Partido Rojo', | |
| color: 'rgba(220, 53, 69, 0.2)', | |
| borderColor: 'rgb(220, 53, 69)', | |
| votes: 42, | |
| }, |
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
| it('should be created', () => { | |
| // todo: | |
| }); | |
| it('should be created with default values', () => { | |
| // todo: | |
| }); | |
| it('should set resultText, subResultText to "0" when C is pressed', () => { |
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 checkValidations = () => { | |
| fieldErrors.value = {}; | |
| const result = productSchema.safeParse(newProduct.value); | |
| if (!result.success) { | |
| result.error.issues.forEach((issue) => { | |
| const field = issue.path[0]; | |
| if (typeof field === 'string') { |
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
| // auth.d.ts | |
| declare module '#auth-utils' { | |
| // Define the structure of your user object | |
| interface User { | |
| id: string; | |
| email: string; | |
| name?: string; // Optional field | |
| roles: string[]; // Example of a specific role type | |
| } |
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 const products = [ | |
| { | |
| slug: 'cloud-storage-saas', | |
| name: 'Cloud Storage Pro', | |
| description: | |
| 'Servicio de almacenamiento en la nube seguro y escalable para empresas de cualquier tamaño.', | |
| price: 100, | |
| images: [ | |
| 'https://picsum.photos/600/400?random=1', | |
| 'https://picsum.photos/600/400?random=2', |
NewerOlder