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 function loadLists() { | |
return [ | |
{ | |
title: 'Tarefas', | |
creatable: true, | |
cards: [ | |
{ | |
id: 1, | |
content: 'Estudar módulo 01 de NodeJS', | |
labels: ['#7159c1'], |
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 (enable = false) => { | |
function formatTime (timeInMs) { | |
let date = new Date(timeInMs) | |
// ${date.getDate()}/${date.getMonth()}/${date.getFullYear()} | |
return `${date.getHours()}:${date.getMinutes()}:${date.getSeconds()}.${date.getMilliseconds()}` | |
} | |
function log (type, ...args) { | |
if (enable) { | |
console[type](`%c[${this.$_id}]${formatTime(Date.now())}>> `, |
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
<template> | |
<field :class="classNames" | |
v-bind="{dependsIsOk, id, inline, problem, problems, label, validate, title, tooltip, editable}"> | |
<div slot="component"> | |
<div v-show="editable" :class="['component', problems.length ? 'has-error' : '']"> | |
<i class="material-icons" @click="openWidget"></i> | |
<q-datetime ref="widget" v-model="widget" | |
type="date" ok-label="Ok" cancel-label="Cancelar" clear-label="Limpar"></q-datetime> | |
<input :id="id" ref="input" :type="type" :name="name" class="input full-width" :placeholder="placeholder" |