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
Vue.directive('color', function(el, binding) { | |
let value = binding.value | |
if (binding.modifiers.lighter) { | |
value = LightenDarkenColor(value, 90) | |
} | |
if (binding.modifiers.darken) { | |
value = LightenDarkenColor(value, -50) | |
} |
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
<template id="todo-container"> | |
<div class="item-block"> | |
<button class="ui icon button" data-attr="done"><i class="circle outline icon"></i></button> | |
<div class="text-block"></div> | |
<button class="ui icon button" data-attr="delete"><i class="trash red icon"></i></button> | |
</div> | |
</template> | |
<div class="container"> | |
<h1 class="header">Todo List</h1> |
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": "proxy", | |
"version": "1.0.0", | |
"description": "", | |
"main": "proxy.js", | |
"dependencies": { | |
"http-proxy": "^1.16.2", | |
"mime-types": "^2.1.17" | |
}, | |
"scripts": { |