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
declare module "*.vue" { | |
import Vue from "vue"; | |
import { ComponentOptions } from "vue"; | |
export default typeof Vue as ComponentOptions<Vue>; | |
} |
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
// most literally copied from https://github.com/preboot/angular-webpack/blob/master/webpack.config.js - view for reference | |
var webpack = require('webpack'); | |
var autoprefixer = require('autoprefixer'); | |
var HtmlWebpackPlugin = require('html-webpack-plugin'); | |
var ExtractTextPlugin = require('extract-text-webpack-plugin'); | |
var CopyWebpackPlugin = require('copy-webpack-plugin'); | |
/** | |
* Env | |
* Get npm lifecycle event to identify the environment |
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
export default Ember.Component.extend({ | |
attributeBindings: ['background:style'], | |
size: 'medium', | |
background: computed('user.[]', function() { | |
const email = this.get('user.email'); | |
const size = this.get('size'); | |
const defaultAvatar = `//www.gravatar.com/avatar/${md5(email)}.jpg`; | |
const avatar_path = this.get('user.avatar') ? this.get('user.avatar') : defaultAvatar; |
NewerOlder