The system should cover all the previous use cases.
Please, follow this mockup.
You should provide a workout log that works looks this mock, but remmember this is a mock and we are open to new ideas on how it should work.
function sendForm(id){ | |
var form = document.getElementById(id); | |
form.submit(); | |
} |
function Time(str){ | |
"use strict"; | |
var values = str.split(':'), | |
seconds = parseInt(values[2]), | |
minutes = parseInt(values[1]), | |
hours = parseInt(values[0]); | |
The system should cover all the previous use cases.
Please, follow this mockup.
You should provide a workout log that works looks this mock, but remmember this is a mock and we are open to new ideas on how it should work.
["Acrelândia - AC","Assis Brasil - AC","Brasiléia - AC","Bujari - AC","Capixaba - AC","Cruzeiro do Sul - AC","Epitaciolândia - AC","Feijó - AC","Jordão - AC","Mâncio Lima - AC","Manoel Urbano - AC","Marechal Thaumaturgo - AC","Plácido de Castro - AC","Porto Acre - AC","Porto Walter - AC","Rio Branco - AC","Rodrigues Alves - AC","Santa Rosa do Purus - AC","Sena Madureira - AC","Senador Guiomard - AC","Tarauacá - AC","Xapuri - AC","Água Branca - AL","Anadia - AL","Arapiraca - AL","Atalaia - AL","Barra de Santo Antônio - AL","Barra de São Miguel - AL","Batalha - AL","Belém - AL","Belo Monte - AL","Boca da Mata - AL","Branquinha - AL","Cacimbinhas - AL","Cajueiro - AL","Campestre - AL","Campo Alegre - AL","Campo Grande - AL","Canapi - AL","Capela - AL","Carneiros - AL","Chã Preta - AL","Coité do Nóia - AL","Colônia Leopoldina - AL","Coqueiro Seco - AL","Coruripe - AL","Craíbas - AL","Delmiro Gouveia - AL","Dois Riachos - AL","Estrela de Alagoas - AL","Feira Grande - AL","Feliz Deserto - AL","Flexeiras - AL","Gir |
This is a draft where we can think of how to improve the FaunaDB JS driver type system, so if you have any suggestions on how we can improve this, feel free to comment and submit your changes.
Current
import faunadb from "faunadb";
type Note = {
I hereby claim:
To claim this, I am signing this object:
import logsFunction from '../logs'; | |
import { IncomingMessage, ServerResponse } from 'http'; | |
import { Socket } from 'net'; | |
import { NowRequestQuery, NowRequestCookies, NowRequestBody } from '@now/node'; | |
class NowRequestMock extends IncomingMessage { | |
public query: NowRequestQuery = {}; | |
public cookies: NowRequestCookies = {}; | |
public body: NowRequestBody; |
import { IncomingMessage } from 'http' | |
import { | |
NextApiRequestCookies, | |
NextApiRequestQuery, | |
} from 'next/dist/next-server/server/api-utils' | |
import { Socket } from 'net' | |
import { ServerResponse } from 'http' | |
import { NextApiRequest, NextApiResponse } from 'next' | |
import { Env } from 'next/dist/lib/load-env-config' |
function initializeForm(form) { | |
return Object.keys(form).reduce((newForm, key) => { | |
let value | |
if(form[key] === null || form[key] === undefined) { | |
value = '' | |
} else if(typeof form[key] === 'string') { | |
value = form[key] | |
} else if(typeof form[key] === 'object') { | |
value = initializeForm(form[key]) |