Comandos Gerais
Clonar um Repositório
$ git clone 'nome-do-repositório'
Verificar status
$ git status
Clonar um Repositório
$ git clone 'nome-do-repositório'
Verificar status
$ git status
/* | |
Made by Elly Loel - https://ellyloel.com/ | |
With inspiration from: | |
- Josh W Comeau - https://courses.joshwcomeau.com/css-for-js/treasure-trove/010-global-styles/ | |
- Andy Bell - https://piccalil.li/blog/a-modern-css-reset/ | |
- Adam Argyle - https://unpkg.com/open-props@1.3.16/normalize.min.css / https://codepen.io/argyleink/pen/KKvRORE | |
Notes: | |
- `:where()` is used to lower specificity for easy overriding. | |
*/ |
TODO: Write a project description
TODO: Describe the installation process
import { useEffect } from 'react' | |
import hotkeys from 'hotkeys-js' | |
export const useHotkeys = (key: string, cb: () => any, inputs?: any[]) => { | |
useEffect(() => { | |
hotkeys(key, cb) | |
return () => hotkeys.unbind(key) | |
}, inputs) | |
} |
import React from 'react' | |
import { Link } from 'systems/Core/Link' | |
import css from 'styled-jsx/css' | |
export const Header = () => { | |
return ( | |
<header className="Root"> | |
<img src="/logo.svg" width={100} /> | |
<div className="MainMenu"> | |
<ul className="MenuList"> |
/** @jsx jsx */ | |
import { jsx, css } from '@emotion/core' | |
import tw from 'twin.macro' | |
import { Button, Input } from 'systems/Core' | |
export const Subscribe: React.FC = () => { | |
return ( | |
<div css={styles.Root}> | |
<h4>Subscribe to our newsletter</h4> |
'use strict'; | |
var mongoose = require('mongoose'), | |
timestamp = require('timestamp'), | |
Schema = mongoose.Schema, | |
ObjectId = Schema.Types.ObjectId; | |
var ModelSchema = new Schema({ | |
name: { type: String } | |
}); |
import { combineReducers } from 'redux'; | |
// Define the context to search files | |
const CONTEXT = require.context('./', true, /\.\/(.*)\/index.js?$/i); | |
// Populate a object with the reducer | |
const importReducer = (req) => (obj, path) => { | |
const [, componentName] = path.match(/\.\/(.*)\/index.js?$/i); | |
const reducer = { | |
[componentName]: req(path).default |
var async = require('async'); | |
var Product = require('../model/Product'); | |
var Category = require('../model/Category'); | |
var Attribute = require('../model/Attributes'); | |
// bad idea | |
exports.index = function() { | |
Product.find(function(err, products) { | |
Category.find(function(err, categories) { | |
Attribute.find(function(err, attributes) { |