const groupBy = key => array =>
array.reduce((objectsByKeyValue, obj) => {
const value = obj[key];
objectsByKeyValue[value] = (objectsByKeyValue[value] || []).concat(obj);
return objectsByKeyValue;
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 Login from '../components/Login' | |
import LoginForm from '../components/LoginForm' | |
import LoginFormReset from '../components/LoginFormReset' | |
export default [ | |
{ | |
path: '/login', | |
component: Login, | |
meta: {free: true}, | |
children: [ | |
{ |
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 { PromisePipeFactory } from './p-pipe' | |
import { isFunction, isArray } from 'lodash' | |
const w = window | |
/** | |
* @type Function | |
* @param {Function} | |
* @returns {void} | |
*/ | |
const subscribe = (() => { |
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 prefix = process.env.PREFIX | |
const nodeEnv = process.env.NODE_ENV | |
let logCounter = 0 | |
let errorCounter = 0 | |
let fatalCounter = 0 | |
let warnCounter = 0 | |
export const vLogger = { | |
install (Vue, options) { |
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> | |
<div> | |
<v-card width="100%"> | |
<v-card-title> | |
<h1>{{name}}</h1> | |
<v-spacer></v-spacer> | |
<v-text-field | |
append-icon="search" | |
label="Pesquisar" |
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
upload(files) { | |
const config = { | |
onUploadProgress: function(progressEvent) { | |
var percentCompleted = Math.round((progressEvent.loaded * 100) / progressEvent.total) | |
console.log(percentCompleted) | |
} | |
} | |
let data = new FormData() | |
data.append('file', files[0]) |
Se você quiser adicionar mais algum tópico deixe seu comentário, o objetico é facilitar para os iniciantes ou aqueles que buscam dominar JavaScript, quais tópicos são importantes para dominar JavaScript.
São tópicos para quem sabe o minimo de JavaScript (declarar variáveis), a ordem em que eles aparecem são por importância para o dominio como um todo. Mesmo que você já tenha experiência com JS, recomendo que leia os links de cada tópico para fortalecer suas bases teóricas e ter um comportamento mais profundo da linguagem.
Lista originalmente criada e compilada por Vinicius Reis
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
//You need to use html input type file for this purpose. | |
// INPUT TYPE FILE GIVES A WEIRD LOOK FOR APP SO I HAVE | |
//STYLED IT LIKE BELOW. | |
//the html code is as below ex home.html | |
<label ion-button for="uploadResume" block style="background-color: #16a085;color: white;" color="secondary">Choose Resume</label> | |
<input style="display: none;" type="file" name="" id="uploadResume" (change)="OnResumeSelect($event)"> | |
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
<script> | |
import c3 from 'c3' | |
import { debounce, cloneDeep, defaultsDeep } from 'lodash' | |
export default { | |
name: 'c3-chart', | |
props: { | |
config: { | |
type: Object, | |
default: () => ({}) |