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
Font Format | Release year | Browser support | File size | Score | |
---|---|---|---|---|---|
OTF/TTF | 1985 | 98.6% | 57 kb | 69/100 | |
SVG | 2001 | 19.4% | 113 kb | 20/100 | |
EOT | 2007 | 0.87% | 27 kb | 43/100 | |
WOFF | 2009 | 98.6% | 30 kb | 88/100 | |
WOFF2 | 2017 | 96.8% | 23 kb | 98/100 |
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
Days | +1 +2 +3 +4 +5 +6 +7 +8 +9 +10 +11 +12 +13 +14 +15 +16 +17 +18 +19 +20 +21 +22 +23 +24 +25 +26 +27 +28 | |
------------------------------------------------------------------------------------------------------------------------------------------------------- | |
Daily CLS | 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 | |
Average | 0.9 0.8 0.8 0.8 0.8 0.8 0.7 0.7 0.6 0.6 0.6 0.5 0.5 0.5 0.4 0.4 0.4 0.3 0.3 0.3 0.2 0.2 0.1 0.1 0.1 0.0 0.0 0.0 |
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
Days | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 | |
------------------------------------------------------------------------------------------------------------------------------------------------------- | |
Daily CLS | 1.0 1.0 1.0 1.0 1.0 1.0 1.0 1.0 1.0 1.0 1.0 1.0 1.0 1.0 1.0 1.0 1.0 1.0 1.0 1.0 1.0 1.0 1.0 1.0 1.0 1.0 1.0 0.0 | |
Average | 1.0 1.0 1.0 1.0 1.0 1.0 1.0 1.0 1.0 1.0 1.0 1.0 1.0 1.0 1.0 1.0 1.0 1.0 1.0 1.0 1.0 1.0 1.0 1.0 1.0 1.0 1.0 0.96 |
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
find . -type f -exec stat -f "%m %N" "{}" \; | sort -nr | head |
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
// creating our functional component | |
<script lang="tsx"> | |
Vue.component('MyFunctionalComponent', { | |
functional: true, | |
render: (h: CreateElement, ctx: RenderContext<any>) => { | |
return <img {...ctx.data} /> | |
} | |
} | |
</script> |
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
render(h: CreateElement, context: RenderContext) { | |
return ( | |
<div {...context.data}> | |
<h1>Hello World</h1> | |
</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
render: (createElement: CreateElement, context: RenderContext) => { | |
return createElement( | |
'h' + this.level, // tag name | |
this.$slots.default // array of children | |
) | |
} |
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 functional> | |
<button | |
class="btn btn-primary" | |
v-bind="data.attrs" | |
v-on="listeners" | |
> | |
<slot/> | |
</button> | |
</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
/** | |
* usage: | |
* | |
* <AnyComponent v-toggleClass="{ 'any-component--active': isActive }"></AnyComponent> | |
*/ | |
// toggleClass.directive.ts | |
import { DirectiveOptions } from 'vue'; | |
function toggle(el, classKeys: {[key: string]: boolean}) { |
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
// the 3 line reduce callback | |
[{key: 'USA', value: […]}, {key: 'Germany', value: […]}, {key: null, value: []}] | |
.filter(item => item.key) | |
.map(item => { | |
item.key = item.key.toUpperCase(); | |
return item; | |
}) | |
.reduce((accumulator, item) => { | |
accumulator[item.key] = item.value; | |
return accumulator; |
NewerOlder