This file contains 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
var path = require('path') | |
module.exports = { | |
entry: { | |
app: './src/main.js' | |
}, | |
output: { | |
path: path.resolve(__dirname, '../dist/static'), | |
publicPath: '/static/', | |
filename: '[name].js' |
This file contains 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
mport Vue from 'vue' | |
console.log(Vue.http); | |
export const resources = { | |
employees : Vue.resource('employees{/id}') | |
} | |
export function getAllEmployees({ dispatch }) { | |
resources.employee.get('/employees').then((resp)=>{ |
This file contains 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
'use strict'; | |
// gulpfile.js | |
var gulp = require('gulp'); | |
var sourcemaps = require('gulp-sourcemaps'); | |
var browserify = require('browserify'); | |
var watchify = require('watchify'); | |
var babelify = require('babelify'); |
This file contains 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> | |
// an component | |
import { orderBy, isEmpty } from 'lodash'; | |
import filterByName from '../helpers/filters/by-name'; | |
// omit | |
computed: { | |
listOrdened() { | |
const { orderBy as by, order } = this.configs; |
This file contains 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 Vue from 'vue' | |
import App from './App' | |
import VueRouter from 'vue-router' | |
import Hello from './components/Hello.vue' | |
import Comp from './components/Comp.vue' | |
Vue.use(VueRouter) | |
const routers = [ | |
{ path: '/hello', component: Hello }, |
This file contains 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
atom-workspace { | |
font-family: 'Fira Code'; | |
font-size: 12px; | |
} | |
atom-text-editor { | |
font-family: 'Fira Code'; | |
font-style: normal; | |
text-rendering: optimizeLegibility; | |
} |
This file contains 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 gulp = require('gulp'); | |
const template = require('gulp-template'); | |
const rename = require('gulp-rename'); | |
const path = require('path'); | |
const yargs = require('yargs'); | |
const appRoot = require('app-root-path'); | |
const loadsh = require('lodash'); | |
require('./contains'); | |
/* |
This file contains 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 React, { PureComponent } from 'react'; | |
import { View, Image, ListView, Text, Animated } from 'react-native'; | |
import styles from './styles'; | |
const ds = new ListView.DataSource({rowHasChanged: (r1, r2) => r1 !== r2}); | |
export default class AnimatedScrollView extends PureComponent { | |
constructor(props) { | |
super(props); | |
this.state = { |
This file contains 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
/* | |
* servicos para o site | |
*/ | |
var $service = angular.module('app.services', []); | |
//-----------processo de Autenticação do usuario ----------------------------------// | |
//Factory para autenticação | |
$service.factory('AuthService', function ($rootScope, $http, Session) { |
This file contains 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
{ | |
"name": "My Progressive Web App", | |
"short_name": "PWA", | |
"start_url": "/index.html", // qual pagina sera iniciada | |
"scope": ".", // quais paginas serão incluidas na experiencia do PWA | |
"display": "standalone", // seu pwa ira funcionar de forma autonoma | |
"background_color": "#fff", // qual a cor sera usada enquanto estiver carregando (ou coloque o splashscreen) | |
"theme_color": "#3f51b5", // cor do tema ( customiza a barra de cima do celular ) | |
"description": "Pwa de estudo", // desrição | |
"dir": "ltr", // indica a direção de laitura do seu app ltr - leftToRight |
OlderNewer