Skip to content

Instantly share code, notes, and snippets.

🐣
top secret

misha gezha mioe

🐣
top secret
Block or report user

Report or block mioe

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@mioe
mioe / click-outside.js
Created Oct 17, 2019
directive - v-click-outside
View click-outside.js
directives: {
// Click-outside by BosNaufal: https://github.com/BosNaufal/vue-click-outside
'click-outside': {
bind(el, binding, vNode) {
// Provided expression must evaluate to a function.
if (typeof binding.value !== 'function') {
const compName = vNode.context.name
let warn = `[Vue-click-outside:] provided expression ${binding.expression} is not a function, but has to be`
if (compName) {
warn += `Found in component ${compName}`
@mioe
mioe / global.sass
Last active Oct 21, 2019
sass - my global styles 🐣️
View global.sass
@import '_reset.sass'
a
text-decoration: none
.dontTouchMe
user-select: none
[class*=view-]
position: relative
@mioe
mioe / _reset.sass
Last active Oct 17, 2019
sass - reset styles 🐣️
View _reset.sass
/* Box sizing rules */
*,
*::before,
*::after
box-sizing: border-box
/* Remove default padding */
ul,
ol
padding: 0
@mioe
mioe / tslint.json
Last active Oct 19, 2019
tslint - my rules 🐣️
View tslint.json
{
"defaultSeverity": "warning",
"extends": [
"tslint:recommended"
],
"linterOptions": {
"exclude": [
"node_modules/**"
]
},
@mioe
mioe / .gitignore
Last active Sep 11, 2019
gitignore - vue default 🐣️
View .gitignore
.DS_Store
node_modules
build
/dist
# local env files
.env.local
.env.*.local
# log files
@mioe
mioe / .editorconfig
Last active Oct 7, 2019
my editorconfig properties
View .editorconfig
root = true
[*]
charset = utf-8
end_of_line = lf
insert_final_newline = true
indent_style = space
indent_size = 4
trim_trailing_whitespace = true
You can’t perform that action at this time.