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
{ | |
"editor.tabSize": 2, | |
"editor.formatOnSave": true, | |
"editor.minimap.enabled": false, | |
"[vue]": { | |
"editor.defaultFormatter": "esbenp.prettier-vscode", | |
}, | |
"editor.fontFamily": "RedHatMono, Menlo, Monaco, 'Courier New', monospace", | |
"workbench.colorTheme": "Moonlight II", | |
"editor.fontSize": 14 |
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
TEST PAGE | |
------------- | |
<template> | |
<div> | |
<h1>Post</h1> | |
<div v-if="post" id="first-post"> | |
<h3 class="text-lg">{{ post.title }}</h3> | |
<p class="text-base">{{ post.body }}</p> | |
</div> | |
</div> |
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> | |
<div> | |
<h1>Post</h1> | |
<div v-if="post" id="first-post"> | |
<h3 class="text-lg">{{ post.title }}</h3> | |
<p class="text-base">{{ post.body }}</p> | |
</div> | |
</div> | |
</template> |
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> | |
<div> | |
<h1>Post</h1> | |
<div v-if="post" id="first-post"> | |
<h3 class="text-lg">{{ post.title }}</h3> | |
<p class="text-base">{{ post.body }}</p> | |
</div> | |
</div> | |
</template> |
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> | |
<div> | |
<h1>Post</h1> | |
<div v-if="post" id="first-post"> | |
<h3 class="text-lg">{{ post.title }}</h3> | |
<p class="text-base">{{ post.body }}</p> | |
</div> | |
</div> | |
</template> |
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> | |
<div> | |
<h1>Post</h1> | |
<div v-if="post" id="first-post"> | |
<h3 class="text-lg">{{ post.title }}</h3> | |
<p class="text-base">{{ post.body }}</p> | |
</div> | |
</div> | |
</template> |
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
{ | |
"new storybook": { | |
"prefix": "ns", | |
"body": [ | |
"import ${1:component} from './${2:index}.vue';", | |
"", | |
"export default { title: '${3:Components}/${1:component}' };", | |
"", | |
"const Template = (args, { argTypes }) => ({", | |
" components: { ${1:component} },", |
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 _ = {}; | |
_.map = (arr, fn) => { | |
const results = []; | |
for(let i = 0; i < arr.length; i++) { | |
results.push(fn(arr[i])); | |
} | |
return results; | |
}; |
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 _ = {}; | |
_.compose = (...fns) => { | |
let result = null; | |
return (...args) => { | |
result = args; | |
for(let i = fns.length - 1; i >= 0; i--) { | |
let fnResult = fns[i](...result); | |
result = Array.isArray(fnResult) ? fnResult : [fnResult]; | |
} |
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 _ = {}; | |
const abc = function(a, b, c) { | |
return [a, b, c]; | |
} | |
_.curry = (fn) => { | |
let arguments = []; | |
const getArgument = (...args) => { |
NewerOlder