- 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
| // This is your Prisma schema file, | |
| // learn more about it in the docs: https://pris.ly/d/prisma-schema | |
| // Looking for ways to speed up your queries, or scale easily with your serverless or edge functions? | |
| // Try Prisma Accelerate: https://pris.ly/cli/accelerate-init | |
| generator client { | |
| provider = "prisma-client" | |
| output = "../src/generated/prisma" | |
| } |
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 { | |
| createContext, | |
| useCallback, | |
| useEffect, | |
| useRef, | |
| useState, | |
| type ReactNode, | |
| } from 'react'; | |
| import type { Client, LatLng } from '../types'; | |
| import Cookies from 'js-cookie'; |
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 { | |
| createContext, | |
| useCallback, | |
| useEffect, | |
| useState, | |
| type ReactNode, | |
| } from 'react'; | |
| type ConnectionStatus = 'connecting' | 'connected' | 'disconnected' | 'error'; |
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', () => { |
NewerOlder