fix: enable ssr

This commit is contained in:
João Peixoto
2021-01-26 17:47:57 +00:00
committed by João Peixoto
parent 1e44dafe97
commit 1f4191cd76
26 changed files with 132 additions and 52 deletions
-13
View File
@@ -15185,11 +15185,6 @@
"integrity": "sha1-kl0mAdOaxIXgkc8NpcbmlNw9yv8=",
"dev": true
},
"resize-observer-polyfill": {
"version": "1.5.1",
"resolved": "https://registry.npmjs.org/resize-observer-polyfill/-/resize-observer-polyfill-1.5.1.tgz",
"integrity": "sha512-LwZrotdHOo12nQuZlHEmtuXdqGoOD0OhaxopaNFxWzInpEgaLWoVuAMbTzixuosCx2nEG58ngzW3vxdWoxIgdg=="
},
"resolve": {
"version": "1.17.0",
"resolved": "https://registry.npmjs.org/resolve/-/resolve-1.17.0.tgz",
@@ -18367,14 +18362,6 @@
"integrity": "sha512-JNgiEJ5a8YPfk5y2lKyfOAGLmkpAVfhaUi+T4wGpSppRYZ3XSyawSDDketY5KV2CsAiBLAGEIO6jO+0l2hQubg==",
"dev": true
},
"vue-js-modal": {
"version": "2.0.0-rc.6",
"resolved": "https://registry.npmjs.org/vue-js-modal/-/vue-js-modal-2.0.0-rc.6.tgz",
"integrity": "sha512-bJOm7Yhrl0ur/QyXjoC3gMMmE7UxiVEcS2rl8v9iPXIe9QLvjiCSZElSOvvyps8LNuG1X0rPifZGxI/CWKCFaw==",
"requires": {
"resize-observer-polyfill": "^1.5.1"
}
},
"vue-loader": {
"version": "15.9.3",
"resolved": "https://registry.npmjs.org/vue-loader/-/vue-loader-15.9.3.tgz",
+5 -5
View File
@@ -74,7 +74,7 @@ module.exports = {
description:
'All the latest information about the IPFS Project in one place: blog posts, release notes, videos, news coverage, and more.',
},
'/zh/': {
'/zh-cn/': {
lang: 'zh-CN',
title: 'IPFS Blog & News',
description:
@@ -97,10 +97,10 @@ module.exports = {
themeConfig: {
locales: {
'/': themeConfigDefaults,
'/zh/': {
'/zh-cn/': {
...themeConfigDefaults,
footerLinks: [
{ text: 'Blog & news', link: '/zh/' },
{ text: 'Blog & news', link: '/zh-cn/' },
{ text: 'Press', link: 'https://ipfs.io/media/' },
{
text: 'Code of conduct',
@@ -118,7 +118,7 @@ module.exports = {
{ text: 'Install', link: 'https://ipfs.io/#install' },
{ text: 'Docs', link: 'https://docs.ipfs.io/' },
{ text: 'Team', link: 'https://ipfs.io/team' },
{ text: 'Blog', link: '/zh/' },
{ text: 'Blog', link: '/zh-cn' },
{ text: 'Help', link: 'https://ipfs.io/help' },
],
mobileNavLinks: [
@@ -126,7 +126,7 @@ module.exports = {
{ text: 'Install', link: 'https://ipfs.io/#install' },
{ text: 'Docs', link: 'https://docs.ipfs.io/' },
{ text: 'Team', link: 'https://ipfs.io/team' },
{ text: 'Blog', link: '/zh/' },
{ text: 'Blog', link: '/zh-cn/' },
{ text: 'Help', link: 'https://ipfs.io/help' },
],
},
@@ -75,9 +75,11 @@ export default {
@apply text-transparent;
visibility: hidden;
}
.v-lazy-image {
@apply opacity-0 transition-opacity duration-700;
}
.v-lazy-image-loaded {
@apply opacity-100;
}
@@ -25,7 +25,6 @@
<LazyImage
img-class="object-contain"
:alt="$page.title"
src-placeholder="/images/blog/og/default.png"
:src="`${image ? image : '/header-image-placeholder.png'}`"
/>
</div>
+2 -11
View File
@@ -21,7 +21,6 @@
:block-lazy-load="blockLazyLoad"
/>
<div
v-if="mountFinish"
class="grid-margins pt-8 grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-8"
itemscope
itemtype="http://schema.org/Blog"
@@ -35,13 +34,8 @@
all
/>
</div>
<div v-else class="p-48" />
<div
v-if="
mountFinish &&
!infiniteScroll &&
pagesToShow.length < publicPages.length
"
v-if="!infiniteScroll && pagesToShow.length < publicPages.length"
class="flex justify-center mt-8 pb-4"
>
<button
@@ -56,7 +50,7 @@
v-observe-visibility="handleBottomVisibilityChange"
></div>
</div>
<VideoModal v-if="mountFinish" ref="videoModal" />
<VideoModal ref="videoModal" />
</Layout>
</template>
@@ -103,7 +97,6 @@ export default {
{ title: 'Home', link: 'https://ipfs.io/', external: true },
{ title: 'Blog & news' },
],
mountFinish: false,
}
},
computed: {
@@ -209,8 +202,6 @@ export default {
)[0]
this.$store.commit('appState/setLatestWeeklyPost', latestWeeklyPost)
this.mountFinish = true
},
methods: {
updateQuery() {
+5 -2
View File
@@ -12,8 +12,11 @@
<div v-if="$frontmatter.image" class="blog type-rich my-12">
<LazyImage
:alt="$page.title"
src-placeholder="/images/blog/og/default.png"
:src="$frontmatter.image"
:src="
$frontmatter.image
? $frontmatter.image
: '/header-image-placeholder.png'
"
/>
</div>
<Content
@@ -1 +1,7 @@
<svg width="21" height="21" viewBox="0 0 21 21" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M12.4072 4.46973L18.1797 10.2422L12.4072 16.0146" stroke="currentColor" stroke-width="1.6"/><line x1="17.675" y1="10.285" x2="1.66" y2="10.227" stroke="currentColor" stroke-width="1.6"/></svg>
<svg width="21" height="21" viewBox="0 0 21 21" fill="none" xmlns="http://www.w3.org/2000/svg">
<title>Arrow right icon</title>
<g>
<path d="M12.4072 4.46973L18.1797 10.2422L12.4072 16.0146" stroke="currentColor" stroke-width="1.6" />
<line x1="17.675" y1="10.285" x2="1.66" y2="10.227" stroke="currentColor" stroke-width="1.6" />
</g>
</svg>

Before

Width:  |  Height:  |  Size: 296 B

After

Width:  |  Height:  |  Size: 370 B

@@ -1 +1,7 @@
<svg width="21" height="21" viewBox="0 0 21 21" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M7.59766 5.08203L15.7611 5.08203L15.7611 13.2455" stroke="currentColor" stroke-width="1.6"/><line x1="15.435" y1="5.47" x2="4.069" y2="16.752" stroke="currentColor" stroke-width="1.6"/></svg>
<svg width="21" height="21" viewBox="0 0 21 21" fill="none" xmlns="http://www.w3.org/2000/svg">
<title>Arrow up icon</title>
<g>
<path d="M7.59766 5.08203L15.7611 5.08203L15.7611 13.2455" stroke="currentColor" stroke-width="1.6" />
<line x1="15.435" y1="5.47" x2="4.069" y2="16.752" stroke="currentColor" stroke-width="1.6" />
</g>
</svg>

Before

Width:  |  Height:  |  Size: 295 B

After

Width:  |  Height:  |  Size: 366 B

@@ -1 +1,4 @@
<svg fill="none" height="21" viewBox="0 0 22 21" width="22" xmlns="http://www.w3.org/2000/svg"><path d="m16.6953 8.40723-5.7724 5.77247-5.77251-5.77247" stroke="#002256" stroke-width="1.6"/></svg>
<svg fill="none" height="21" viewBox="0 0 22 21" width="22" xmlns="http://www.w3.org/2000/svg">
<title>Chevron down icon</title>
<path d="m16.6953 8.40723-5.7724 5.77247-5.77251-5.77247" stroke="#002256" stroke-width="1.6" />
</svg>

Before

Width:  |  Height:  |  Size: 196 B

After

Width:  |  Height:  |  Size: 240 B

+7 -1
View File
@@ -1 +1,7 @@
<svg fill="none" height="52" viewBox="0 0 52 52" width="52" xmlns="http://www.w3.org/2000/svg"><g stroke="#fff" stroke-width="2"><path d="m15.2929 36.2929 21-21"/><path d="m15.6016 15.2934 21.1551 21.1551"/></g></svg>
<svg fill="none" height="52" viewBox="0 0 52 52" width="52" xmlns="http://www.w3.org/2000/svg">
<title>Close icon</title>
<g stroke="#fff" stroke-width="2">
<path d="m15.2929 36.2929 21-21" />
<path d="m15.6016 15.2934 21.1551 21.1551" />
</g>
</svg>

Before

Width:  |  Height:  |  Size: 217 B

After

Width:  |  Height:  |  Size: 278 B

@@ -1 +1,6 @@
<svg data-v-5a8121a8="" xmlns="http://www.w3.org/2000/svg" width="24" viewBox="-3 -3 35 35" class="mr2"><path data-v-5a8121a8="" d="M22.675 0h-21.35c-.732 0-1.325.593-1.325 1.325v21.351c0 .731.593 1.324 1.325 1.324h11.495v-9.294h-3.128v-3.622h3.128v-2.671c0-3.1 1.893-4.788 4.659-4.788 1.325 0 2.463.099 2.795.143v3.24l-1.918.001c-1.504 0-1.795.715-1.795 1.763v2.313h3.587l-.467 3.622h-3.12v9.293h6.116c.73 0 1.323-.593 1.323-1.325v-21.35c0-.732-.593-1.325-1.325-1.325z"></path></svg>
<svg width="35" height="35" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 35 35">
<title>Facebook icon</title>
<g>
<path d="m28.175,5.5l-21.35,0c-0.732,0 -1.325,0.593 -1.325,1.325l0,21.351c0,0.731 0.593,1.324 1.325,1.324l11.495,0l0,-9.294l-3.128,0l0,-3.622l3.128,0l0,-2.671c0,-3.1 1.893,-4.788 4.659,-4.788c1.325,0 2.463,0.099 2.795,0.143l0,3.24l-1.918,0.001c-1.504,0 -1.795,0.715 -1.795,1.763l0,2.313l3.587,0l-0.467,3.622l-3.12,0l0,9.293l6.116,0c0.73,0 1.323,-0.593 1.323,-1.325l0,-21.35c0,-0.732 -0.593,-1.325 -1.325,-1.325z" />
</g>
</svg>

Before

Width:  |  Height:  |  Size: 484 B

After

Width:  |  Height:  |  Size: 564 B

+14 -1
View File
@@ -1 +1,14 @@
<svg viewBox="-2 -2 35 35" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" class="mb1 mr3" data-v-44e24651=""><g id="Symbols" stroke="none" stroke-width="1" data-v-44e24651=""><g id="components/navigation/footer/Black/desktop" transform="translate(-1024.000000, -483.000000)" data-v-44e24651=""><g id="footer" data-v-44e24651=""><g id="bottom" transform="translate(0.000000, 474.000000)" data-v-44e24651=""><path d="M1036.9988,9 C1029.82105,9 1024,14.9675467 1024,22.3294028 C1024,28.2183968 1027.72455,33.2138544 1032.89039,34.9763795 C1033.54081,35.0991181 1033.77783,34.6875349 1033.77783,34.334048 C1033.77783,34.0182009 1033.76666,33.1794877 1033.76028,32.0674767 C1030.14426,32.8726414 1029.38132,30.2804039 1029.38132,30.2804039 C1028.78996,28.7404447 1027.93763,28.330498 1027.93763,28.330498 C1026.7573,27.5040587 1028.02701,27.5204238 1028.02701,27.5204238 C1029.33184,27.6145233 1030.01817,28.8942769 1030.01817,28.8942769 C1031.17775,30.930918 1033.06117,30.3425914 1033.80177,30.0013784 C1033.91989,29.1405722 1034.25587,28.5530639 1034.62697,28.2200334 C1031.74038,27.8837298 1028.70536,26.7398069 1028.70536,21.6322481 C1028.70536,20.1773875 1029.21213,18.9868239 1030.04371,18.0556477 C1029.90964,17.7185259 1029.46352,16.3626744 1030.1714,14.5281428 C1030.1714,14.5281428 1031.26235,14.1697463 1033.74591,15.8946316 C1034.78259,15.5984226 1035.89509,15.4511364 1037.0004,15.4454086 C1038.10491,15.4511364 1039.21661,15.5984226 1040.25489,15.8946316 C1042.73686,14.1697463 1043.82621,14.5281428 1043.82621,14.5281428 C1044.53568,16.3626744 1044.08957,17.7185259 1043.95629,18.0556477 C1044.78947,18.9868239 1045.29224,20.1773875 1045.29224,21.6322481 C1045.29224,26.752899 1042.25243,27.8796385 1039.35707,28.209396 C1039.82314,28.6209792 1040.23893,29.4343264 1040.23893,30.6780767 C1040.23893,32.4594217 1040.22297,33.8970989 1040.22297,34.334048 C1040.22297,34.6908079 1040.4576,35.1056641 1041.11679,34.9755613 C1046.27865,33.2089449 1050,28.2167603 1050,22.3294028 C1050,14.9675467 1044.17895,9 1036.9988,9" id="icon/github" data-v-44e24651=""></path></g></g></g></g></svg>
<svg width="35" height="35" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 35 35">
<title>Github icon</title>
<g>
<g id="Symbols">
<g id="components/navigation/footer/Black/desktop">
<g id="footer">
<g id="bottom">
<path id="icon/github" d="m17.4988,4.5c-7.17775,0 -12.9988,5.96755 -12.9988,13.3294c0,5.889 3.72455,10.88445 8.89039,12.64698c0.65042,0.12274 0.88744,-0.28885 0.88744,-0.64233c0,-0.31585 -0.01117,-1.15456 -0.01755,-2.26657c-3.61602,0.80516 -4.37896,-1.78708 -4.37896,-1.78708c-0.59136,-1.53996 -1.44369,-1.9499 -1.44369,-1.9499c-1.18033,-0.82644 0.08938,-0.81008 0.08938,-0.81008c1.30483,0.0941 1.99116,1.37386 1.99116,1.37386c1.15958,2.03664 3.043,1.44831 3.7836,1.1071c0.11812,-0.86081 0.4541,-1.44832 0.8252,-1.78135c-2.88659,-0.3363 -5.92161,-1.48022 -5.92161,-6.58778c0,-1.45486 0.50677,-2.64543 1.33835,-3.5766c-0.13407,-0.33712 -0.58019,-1.69298 0.12769,-3.52751c0,0 1.09095,-0.35839 3.57451,1.36649c1.03668,-0.29621 2.14918,-0.44349 3.25449,-0.44922c1.10451,0.00573 2.21621,0.15301 3.25449,0.44922c2.48197,-1.72488 3.57132,-1.36649 3.57132,-1.36649c0.70947,1.83453 0.26336,3.19039 0.13008,3.52751c0.83318,0.93117 1.33595,2.12174 1.33595,3.5766c0,5.12065 -3.03981,6.24739 -5.93517,6.57715c0.46607,0.41158 0.88186,1.22493 0.88186,2.46868c0,1.78134 -0.01596,3.21902 -0.01596,3.65597c0,0.35676 0.23463,0.77161 0.89382,0.64151c5.16186,-1.76662 8.88321,-6.7588 8.88321,-12.64616c0,-7.36185 -5.82105,-13.3294 -13.0012,-13.3294" />
</g>
</g>
</g>
</g>
</g>
</svg>

Before

Width:  |  Height:  |  Size: 2.1 KiB

After

Width:  |  Height:  |  Size: 1.6 KiB

@@ -1 +1,7 @@
<svg width="45" height="45" viewBox="0 0 45 45" fill="none" xmlns="http://www.w3.org/2000/svg"><line x1="5" y1="17" x2="40" y2="17" stroke="currentColor" stroke-width="2"/><line x1="5" y1="26" x2="40" y2="26" stroke="currentColor" stroke-width="2"/></svg>
<svg width="45" height="45" viewBox="0 0 45 45" fill="none" xmlns="http://www.w3.org/2000/svg">
<title>Hamburguer icon</title>
<g>
<line x1="5" y1="17" x2="40" y2="17" stroke="currentColor" stroke-width="2" />
<line x1="5" y1="26" x2="40" y2="26" stroke="currentColor" stroke-width="2" />
</g>
</svg>

Before

Width:  |  Height:  |  Size: 255 B

After

Width:  |  Height:  |  Size: 328 B

+17 -1
View File
@@ -1 +1,17 @@
<svg id="Layer_1" data-name="Layer 1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 553 235.3"><defs><style>.cls-1{fill:#fff}.cls-2{fill:#469ea2}.cls-3{fill:#6acad1}.cls-4,.cls-5{fill:#083b54}.cls-4{fill-opacity:.15}.cls-5{fill-opacity:.05}</style></defs><title>IPFS logo (new)</title><path class="cls-1" d="M239 63h17.8v105H239V63zm35.6 0h36.3c7.9 0 14.5.9 19.6 2.6s9.2 4.1 12.1 7.1a24.45 24.45 0 0 1 6.2 10.2 40.75 40.75 0 0 1 1.8 12.1 45.69 45.69 0 0 1-1.8 12.9 26.58 26.58 0 0 1-6.2 10.8 30.59 30.59 0 0 1-12.1 7.3c-5.1 1.8-11.5 2.7-19.3 2.7h-19.1V168h-17.5V63zm36.2 51a38.37 38.37 0 0 0 11.1-1.3 16.3 16.3 0 0 0 6.8-3.7 13.34 13.34 0 0 0 3.5-5.8 29.75 29.75 0 0 0 1-7.6 25.68 25.68 0 0 0-1-7.7 12 12 0 0 0-3.6-5.5 17.15 17.15 0 0 0-6.9-3.4 41.58 41.58 0 0 0-10.9-1.2h-18.5V114h18.5zm119.9-51v15.3h-49.2V108h46.3v15.4h-46.3V168h-17.8V63h67zm26.2 72.9c.8 6.9 3.3 11.9 7.4 15s10.4 4.7 18.6 4.7a32.61 32.61 0 0 0 10.1-1.3 20.52 20.52 0 0 0 6.6-3.5 12 12 0 0 0 3.5-5.2 19.08 19.08 0 0 0 1-6.4 16.14 16.14 0 0 0-.7-4.9 12.87 12.87 0 0 0-2.6-4.5 16.59 16.59 0 0 0-5.1-3.6 35 35 0 0 0-8.2-2.4l-13.4-2.5a89.76 89.76 0 0 1-14.1-3.7 33.51 33.51 0 0 1-10.4-5.8 22.28 22.28 0 0 1-6.3-8.8 34.1 34.1 0 0 1-2.1-12.7 26 26 0 0 1 11.3-22.4 36.35 36.35 0 0 1 12.6-5.6 65.89 65.89 0 0 1 15.8-1.8c7.2 0 13.3.8 18.2 2.5a34.46 34.46 0 0 1 11.9 6.5 28.21 28.21 0 0 1 6.9 9.3 42.1 42.1 0 0 1 3.2 11l-16.8 2.6c-1.4-5.9-3.7-10.2-7.1-13.1s-8.7-4.3-16.1-4.3a43.9 43.9 0 0 0-10.5 1.1 19.47 19.47 0 0 0-6.8 3.1 11.63 11.63 0 0 0-3.7 4.6 14.08 14.08 0 0 0-1.1 5.4c0 4.6 1.2 8 3.7 10.3s6.9 4 13.2 5.3l14.5 2.8c11.1 2.1 19.2 5.6 24.4 10.5s7.8 12.1 7.8 21.4a31.37 31.37 0 0 1-2.4 12.3 25.27 25.27 0 0 1-7.4 9.8 36.58 36.58 0 0 1-12.4 6.6 56 56 0 0 1-17.3 2.4c-13.4 0-24-2.8-31.6-8.5s-11.9-14.4-12.6-26.2h18z"/><path class="cls-2" d="M30.3 164l84 48.5 84-48.5V67l-84-48.5-84 48.5v97z"/><path class="cls-3" d="M105.7 30.1l-61 35.2a18.19 18.19 0 0 1 0 3.3l60.9 35.2a14.55 14.55 0 0 1 17.3 0l60.9-35.2a18.19 18.19 0 0 1 0-3.3L123 30.1a14.55 14.55 0 0 1-17.3 0zm84 48.2l-61 35.6a14.73 14.73 0 0 1-8.6 15l.1 70a15.57 15.57 0 0 1 2.8 1.6l60.9-35.2a14.73 14.73 0 0 1 8.6-15V79.9a20 20 0 0 1-2.8-1.6zm-150.8.4a15.57 15.57 0 0 1-2.8 1.6v70.4a14.38 14.38 0 0 1 8.6 15l60.9 35.2a15.57 15.57 0 0 1 2.8-1.6v-70.4a14.38 14.38 0 0 1-8.6-15L38.9 78.7z"/><path class="cls-2" d="M114.3 29l75.1 43.4v86.7l-75.1 43.4-75.1-43.4V72.3L114.3 29m0-10.3l-84 48.5v97l84 48.5 84-48.5v-97l-84-48.5z"/><path class="cls-2" d="M114.9 132h-1.2A15.66 15.66 0 0 1 98 116.3v-1.2a15.66 15.66 0 0 1 15.7-15.7h1.2a15.66 15.66 0 0 1 15.7 15.7v1.2a15.66 15.66 0 0 1-15.7 15.7zm0 64.5h-1.2a15.65 15.65 0 0 0-13.7 8l14.3 8.2 14.3-8.2a15.65 15.65 0 0 0-13.7-8zm83.5-48.5h-.6a15.66 15.66 0 0 0-15.7 15.7v1.2a15.13 15.13 0 0 0 2 7.6l14.3-8.3V148zm-14.3-89a15.4 15.4 0 0 0-2 7.6v1.2a15.66 15.66 0 0 0 15.7 15.7h.6V67.2L184.1 59zm-69.8-40.3L100 26.9a15.73 15.73 0 0 0 13.7 8.1h1.2a15.65 15.65 0 0 0 13.7-8l-14.3-8.3zM44.6 58.9l-14.3 8.3v16.3h.6a15.66 15.66 0 0 0 15.7-15.7v-1.2a16.63 16.63 0 0 0-2-7.7zM30.9 148h-.6v16.2l14.3 8.3a15.4 15.4 0 0 0 2-7.6v-1.2A15.66 15.66 0 0 0 30.9 148z"/><path class="cls-4" d="M114.3 213.2v-97.1l-84-48.5v97.1z"/><path class="cls-5" d="M198.4 163.8v-97l-84 48.5v97.1z"/></svg>
<svg id="Layer_1" data-name="Layer 1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 553 235.3">
<defs>
<style>
.cls-1{fill:#fff}.cls-2{fill:#469ea2}.cls-3{fill:#6acad1}.cls-4,.cls-5{fill:#083b54}.cls-4{fill-opacity:.15}.cls-5{fill-opacity:.05}
</style>
</defs>
<title>IPFS logo</title>
<g>
<path class="cls-1" d="M239 63h17.8v105H239V63zm35.6 0h36.3c7.9 0 14.5.9 19.6 2.6s9.2 4.1 12.1 7.1a24.45 24.45 0 0 1 6.2 10.2 40.75 40.75 0 0 1 1.8 12.1 45.69 45.69 0 0 1-1.8 12.9 26.58 26.58 0 0 1-6.2 10.8 30.59 30.59 0 0 1-12.1 7.3c-5.1 1.8-11.5 2.7-19.3 2.7h-19.1V168h-17.5V63zm36.2 51a38.37 38.37 0 0 0 11.1-1.3 16.3 16.3 0 0 0 6.8-3.7 13.34 13.34 0 0 0 3.5-5.8 29.75 29.75 0 0 0 1-7.6 25.68 25.68 0 0 0-1-7.7 12 12 0 0 0-3.6-5.5 17.15 17.15 0 0 0-6.9-3.4 41.58 41.58 0 0 0-10.9-1.2h-18.5V114h18.5zm119.9-51v15.3h-49.2V108h46.3v15.4h-46.3V168h-17.8V63h67zm26.2 72.9c.8 6.9 3.3 11.9 7.4 15s10.4 4.7 18.6 4.7a32.61 32.61 0 0 0 10.1-1.3 20.52 20.52 0 0 0 6.6-3.5 12 12 0 0 0 3.5-5.2 19.08 19.08 0 0 0 1-6.4 16.14 16.14 0 0 0-.7-4.9 12.87 12.87 0 0 0-2.6-4.5 16.59 16.59 0 0 0-5.1-3.6 35 35 0 0 0-8.2-2.4l-13.4-2.5a89.76 89.76 0 0 1-14.1-3.7 33.51 33.51 0 0 1-10.4-5.8 22.28 22.28 0 0 1-6.3-8.8 34.1 34.1 0 0 1-2.1-12.7 26 26 0 0 1 11.3-22.4 36.35 36.35 0 0 1 12.6-5.6 65.89 65.89 0 0 1 15.8-1.8c7.2 0 13.3.8 18.2 2.5a34.46 34.46 0 0 1 11.9 6.5 28.21 28.21 0 0 1 6.9 9.3 42.1 42.1 0 0 1 3.2 11l-16.8 2.6c-1.4-5.9-3.7-10.2-7.1-13.1s-8.7-4.3-16.1-4.3a43.9 43.9 0 0 0-10.5 1.1 19.47 19.47 0 0 0-6.8 3.1 11.63 11.63 0 0 0-3.7 4.6 14.08 14.08 0 0 0-1.1 5.4c0 4.6 1.2 8 3.7 10.3s6.9 4 13.2 5.3l14.5 2.8c11.1 2.1 19.2 5.6 24.4 10.5s7.8 12.1 7.8 21.4a31.37 31.37 0 0 1-2.4 12.3 25.27 25.27 0 0 1-7.4 9.8 36.58 36.58 0 0 1-12.4 6.6 56 56 0 0 1-17.3 2.4c-13.4 0-24-2.8-31.6-8.5s-11.9-14.4-12.6-26.2h18z" />
<path class="cls-2" d="M30.3 164l84 48.5 84-48.5V67l-84-48.5-84 48.5v97z" />
<path class="cls-3" d="M105.7 30.1l-61 35.2a18.19 18.19 0 0 1 0 3.3l60.9 35.2a14.55 14.55 0 0 1 17.3 0l60.9-35.2a18.19 18.19 0 0 1 0-3.3L123 30.1a14.55 14.55 0 0 1-17.3 0zm84 48.2l-61 35.6a14.73 14.73 0 0 1-8.6 15l.1 70a15.57 15.57 0 0 1 2.8 1.6l60.9-35.2a14.73 14.73 0 0 1 8.6-15V79.9a20 20 0 0 1-2.8-1.6zm-150.8.4a15.57 15.57 0 0 1-2.8 1.6v70.4a14.38 14.38 0 0 1 8.6 15l60.9 35.2a15.57 15.57 0 0 1 2.8-1.6v-70.4a14.38 14.38 0 0 1-8.6-15L38.9 78.7z" />
<path class="cls-2" d="M114.3 29l75.1 43.4v86.7l-75.1 43.4-75.1-43.4V72.3L114.3 29m0-10.3l-84 48.5v97l84 48.5 84-48.5v-97l-84-48.5z" />
<path class="cls-2" d="M114.9 132h-1.2A15.66 15.66 0 0 1 98 116.3v-1.2a15.66 15.66 0 0 1 15.7-15.7h1.2a15.66 15.66 0 0 1 15.7 15.7v1.2a15.66 15.66 0 0 1-15.7 15.7zm0 64.5h-1.2a15.65 15.65 0 0 0-13.7 8l14.3 8.2 14.3-8.2a15.65 15.65 0 0 0-13.7-8zm83.5-48.5h-.6a15.66 15.66 0 0 0-15.7 15.7v1.2a15.13 15.13 0 0 0 2 7.6l14.3-8.3V148zm-14.3-89a15.4 15.4 0 0 0-2 7.6v1.2a15.66 15.66 0 0 0 15.7 15.7h.6V67.2L184.1 59zm-69.8-40.3L100 26.9a15.73 15.73 0 0 0 13.7 8.1h1.2a15.65 15.65 0 0 0 13.7-8l-14.3-8.3zM44.6 58.9l-14.3 8.3v16.3h.6a15.66 15.66 0 0 0 15.7-15.7v-1.2a16.63 16.63 0 0 0-2-7.7zM30.9 148h-.6v16.2l14.3 8.3a15.4 15.4 0 0 0 2-7.6v-1.2A15.66 15.66 0 0 0 30.9 148z" />
<path class="cls-4" d="M114.3 213.2v-97.1l-84-48.5v97.1z" />
<path class="cls-5" d="M198.4 163.8v-97l-84 48.5v97.1z" />
</g>
</svg>

Before

Width:  |  Height:  |  Size: 3.2 KiB

After

Width:  |  Height:  |  Size: 3.3 KiB

@@ -1 +1,6 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 34 34"><path d="M24.208 6H10.792A4.793 4.793 0 006 10.792v13.416A4.793 4.793 0 0010.792 29h13.416A4.793 4.793 0 0029 24.208V10.792A4.793 4.793 0 0024.208 6zM13.667 24.208h-2.875V13.667h2.875zM12.229 12.45c-.93 0-1.677-.757-1.677-1.687s.748-1.696 1.677-1.696 1.677.757 1.677 1.686a1.69 1.69 0 01-1.677 1.697zm12.938 11.758h-2.875v-5.366c0-3.23-3.834-2.98-3.834 0v5.366h-2.875V13.667h2.875v1.696c1.342-2.482 6.709-2.664 6.709 2.377z"/></svg>
<svg width="34" height="34" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 34 34">
<title>LinkedIn icon</title>
<g>
<path d="M24.208 6H10.792A4.793 4.793 0 006 10.792v13.416A4.793 4.793 0 0010.792 29h13.416A4.793 4.793 0 0029 24.208V10.792A4.793 4.793 0 0024.208 6zM13.667 24.208h-2.875V13.667h2.875zM12.229 12.45c-.93 0-1.677-.757-1.677-1.687s.748-1.696 1.677-1.696 1.677.757 1.677 1.686a1.69 1.69 0 01-1.677 1.697zm12.938 11.758h-2.875v-5.366c0-3.23-3.834-2.98-3.834 0v5.366h-2.875V13.667h2.875v1.696c1.342-2.482 6.709-2.664 6.709 2.377z" />
</g>
</svg>

Before

Width:  |  Height:  |  Size: 492 B

After

Width:  |  Height:  |  Size: 576 B

+6 -1
View File
@@ -1 +1,6 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 36 36"><path fill-rule="evenodd" d="M20.156 5.697c-.38-.218-.378-.572 0-.788l6.526-3.746c.38-.218.997-.217 1.375 0l6.525 3.746c.38.218.378.572 0 .788l-6.525 3.747c-.38.217-.997.216-1.375 0zm7.947 6.197c0-.436.31-.968.687-1.185l6.524-3.744c.378-.218.686-.034.686.407v18.22c0 .443-.314.982-.698 1.203L19.435 35.9c-.385.222-.698.046-.698-.388v-7.493c0-.435.313-.968.688-1.183l7.989-4.585c.38-.22.688-.754.688-1.186zM7.894 30.132c0 .436-.31.613-.687.396l-6.52-3.742C.306 26.568 0 26.03 0 25.59V7.37c0-.443.315-.621.698-.4l15.867 9.105c.385.221.698.756.698 1.19v7.492c0 .436-.312.61-.69.394l-7.99-4.585c-.38-.22-.689-.038-.689.394zM25.202 10.28c.386.221.389.579.011.795l-6.527 3.747c-.38.218-1.002.214-1.386-.006L1.43 5.706c-.386-.22-.389-.578-.011-.795l6.528-3.747c.38-.218 1.002-.214 1.386.006zm1.433 9.946c0 .435-.31.967-.687 1.182l-6.524 3.745c-.378.218-.687.039-.687-.395v-7.49c0-.436.31-.968.687-1.184l6.525-3.744c.378-.218.687-.039.687.394zm-10.06 6.61c.38.217.688.75.688 1.183v7.493c0 .436-.31.612-.687.395l-6.522-3.742c-.378-.218-.686-.75-.686-1.183v-7.494c0-.436.31-.612.686-.395z"/></svg>
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 36 36">
<title>Protocol Labs logo</title>
<g>
<path fill-rule="evenodd" d="M20.156 5.697c-.38-.218-.378-.572 0-.788l6.526-3.746c.38-.218.997-.217 1.375 0l6.525 3.746c.38.218.378.572 0 .788l-6.525 3.747c-.38.217-.997.216-1.375 0zm7.947 6.197c0-.436.31-.968.687-1.185l6.524-3.744c.378-.218.686-.034.686.407v18.22c0 .443-.314.982-.698 1.203L19.435 35.9c-.385.222-.698.046-.698-.388v-7.493c0-.435.313-.968.688-1.183l7.989-4.585c.38-.22.688-.754.688-1.186zM7.894 30.132c0 .436-.31.613-.687.396l-6.52-3.742C.306 26.568 0 26.03 0 25.59V7.37c0-.443.315-.621.698-.4l15.867 9.105c.385.221.698.756.698 1.19v7.492c0 .436-.312.61-.69.394l-7.99-4.585c-.38-.22-.689-.038-.689.394zM25.202 10.28c.386.221.389.579.011.795l-6.527 3.747c-.38.218-1.002.214-1.386-.006L1.43 5.706c-.386-.22-.389-.578-.011-.795l6.528-3.747c.38-.218 1.002-.214 1.386.006zm1.433 9.946c0 .435-.31.967-.687 1.182l-6.524 3.745c-.378.218-.687.039-.687-.395v-7.49c0-.436.31-.968.687-1.184l6.525-3.744c.378-.218.687-.039.687.394zm-10.06 6.61c.38.217.688.75.688 1.183v7.493c0 .436-.31.612-.687.395l-6.522-3.742c-.378-.218-.686-.75-.686-1.183v-7.494c0-.436.31-.612.686-.395z" />
</g>
</svg>

Before

Width:  |  Height:  |  Size: 1.1 KiB

After

Width:  |  Height:  |  Size: 1.2 KiB

+7 -1
View File
@@ -1 +1,7 @@
<svg fill="none" height="14" viewBox="0 0 12 14" width="12" xmlns="http://www.w3.org/2000/svg"><g fill="#fff"><rect height="13.5" rx="1" width="3.75" y=".5"/><rect height="13.5" rx="1" width="3.75" x="8.25" y=".5"/></g></svg>
<svg fill="none" height="14" viewBox="0 0 12 14" width="12" xmlns="http://www.w3.org/2000/svg">
<title>Pause icon</title>
<g fill="#fff">
<rect height="13.5" rx="1" width="3.75" y=".5" />
<rect height="13.5" rx="1" width="3.75" x="8.25" y=".5" />
</g>
</svg>

Before

Width:  |  Height:  |  Size: 225 B

After

Width:  |  Height:  |  Size: 286 B

+7 -1
View File
@@ -1 +1,7 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 47.51 47.51"><circle fill="#231f20" opacity="0.8" cx="23.75" cy="23.75" r="23.75"/><polygon fill="#ffffff" points="37.16 23.75 16.05 11.57 16.05 35.94 37.16 23.75"/></svg>
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 47.51 47.51">
<title>Play icon</title>
<g>
<circle fill="#231f20" opacity="0.8" cx="23.75" cy="23.75" r="23.75" />
<polygon fill="#ffffff" points="37.16 23.75 16.05 11.57 16.05 35.94 37.16 23.75" />
</g>
</svg>

Before

Width:  |  Height:  |  Size: 224 B

After

Width:  |  Height:  |  Size: 291 B

+6 -1
View File
@@ -1 +1,6 @@
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="-1 -1 34 34" class="pb2 ml2" data-v-5480b51c=""><path d="M6.503 20.752c0 1.794-1.456 3.248-3.251 3.248-1.796 0-3.252-1.454-3.252-3.248 0-1.794 1.456-3.248 3.252-3.248 1.795.001 3.251 1.454 3.251 3.248zm-6.503-12.572v4.811c6.05.062 10.96 4.966 11.022 11.009h4.817c-.062-8.71-7.118-15.758-15.839-15.82zm0-3.368c10.58.046 19.152 8.594 19.183 19.188h4.817c-.03-13.231-10.755-23.954-24-24v4.812z" data-v-5480b51c=""></path></svg>
<svg width="34" height="34" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 34 34">
<title>RSS icon</title>
<g>
<path d="m11.503,25.752c0,1.794 -1.456,3.248 -3.251,3.248c-1.796,0 -3.252,-1.454 -3.252,-3.248c0,-1.794 1.456,-3.248 3.252,-3.248c1.795,0.001 3.251,1.454 3.251,3.248zm-6.503,-12.572l0,4.811c6.05,0.062 10.96,4.966 11.022,11.009l4.817,0c-0.062,-8.71 -7.118,-15.758 -15.839,-15.82zm0,-3.368c10.58,0.046 19.152,8.594 19.183,19.188l4.817,0c-0.03,-13.231 -10.755,-23.954 -24,-24l0,4.812z" />
</g>
</svg>

Before

Width:  |  Height:  |  Size: 497 B

After

Width:  |  Height:  |  Size: 527 B

@@ -1 +1,6 @@
<svg height="34" viewBox="2.5 2.5 24 24" width="34" xmlns="http://www.w3.org/2000/svg"><path d="m13.0553 25.6358c8.0155 0 12.4015-6.647 12.4015-12.4015 0-.187 0-.374-.0085-.561.85-.612 1.5895-1.3855 2.176-2.261-.782.3485-1.6235.578-2.5075.6885.901-.5355 1.5895-1.39403 1.921-2.41403-.8415.5015-1.7765.8585-2.771 1.054-.799-.85-1.9295-1.377-3.179-1.377-2.4055 0-4.3605 1.95503-4.3605 4.36053 0 .34.0425.6715.1105.9945-3.621-.1785-6.834-1.921-8.98449-4.55603-.374.646-.5865 1.39403-.5865 2.19303 0 1.513.7735 2.8475 1.938 3.6295-.714-.0255-1.3855-.221-1.972-.544v.0595c0 2.108 1.5045 3.876 3.49349 4.2755-.3655.102-.74799.153-1.14749.153-.2805 0-.5525-.0255-.816-.0765.5525 1.734 2.16749 2.992 4.07149 3.026-1.496 1.173-3.37449 1.87-5.41449 1.87-.3485 0-.697-.017-1.037-.0595 1.921 1.224 4.21599 1.9465 6.67249 1.9465z"/></svg>
<svg width="24" height="24" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
<title>Twitter icon</title>
<g>
<path d="m8.26558,20.49562c8.0155,0 12.4015,-6.647 12.4015,-12.4015c0,-0.187 0,-0.374 -0.0085,-0.561c0.85,-0.612 1.5895,-1.3855 2.176,-2.261c-0.782,0.3485 -1.6235,0.578 -2.5075,0.6885c0.901,-0.5355 1.5895,-1.39403 1.921,-2.41403c-0.8415,0.5015 -1.7765,0.8585 -2.771,1.054c-0.799,-0.85 -1.9295,-1.377 -3.179,-1.377c-2.4055,0 -4.3605,1.95503 -4.3605,4.36053c0,0.34 0.0425,0.6715 0.1105,0.9945c-3.621,-0.1785 -6.834,-1.921 -8.98449,-4.55603c-0.374,0.646 -0.5865,1.39403 -0.5865,2.19303c0,1.513 0.7735,2.8475 1.938,3.6295c-0.714,-0.0255 -1.3855,-0.221 -1.972,-0.544l0,0.0595c0,2.108 1.5045,3.876 3.49349,4.2755c-0.3655,0.102 -0.74799,0.153 -1.14749,0.153c-0.2805,0 -0.5525,-0.0255 -0.816,-0.0765c0.5525,1.734 2.16749,2.992 4.07149,3.026c-1.496,1.173 -3.37449,1.87 -5.41449,1.87c-0.3485,0 -0.697,-0.017 -1.037,-0.0595c1.921,1.224 4.21599,1.9465 6.67249,1.9465z" />
</g>
</svg>

Before

Width:  |  Height:  |  Size: 825 B

After

Width:  |  Height:  |  Size: 1007 B

@@ -1 +1,6 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="1 0.5 32 32"><defs/><path d="M25.949 18.022c0 1.395-.175 2.787-.175 2.787s-.174 1.133-.696 1.656c-.61.696-1.395.696-1.742.696-2.352.175-5.923.175-5.923.175s-4.442 0-5.748-.175c-.349-.086-1.22-.086-1.916-.696-.523-.523-.697-1.656-.697-1.656s-.174-1.392-.174-2.787v-1.306c0-1.394.174-2.787.174-2.787s.174-1.132.697-1.655c.61-.696 1.393-.696 1.741-.696 2.352-.175 5.923-.175 5.923-.175s3.571 0 5.923.175c.347 0 1.045 0 1.742.696.522.523.696 1.655.696 1.655s.175 1.393.175 2.787v1.306zM15.67 19.591l4.616-2.352-4.616-2.44v4.792zm-11.67-2.178c0 7.404 6.009 13.413 13.412 13.413 7.403 0 13.413-6.01 13.413-13.413C30.913 10.009 24.816 4 17.413 4 10.01 4 4 10.01 4 17.413z"/></svg>
<svg width="32" height="32" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32">
<title>Youtube icon</title>
<g>
<path d="m24.53603,16.609c0,1.395 -0.175,2.787 -0.175,2.787s-0.174,1.133 -0.696,1.656c-0.61,0.696 -1.395,0.696 -1.742,0.696c-2.352,0.175 -5.923,0.175 -5.923,0.175s-4.442,0 -5.748,-0.175c-0.349,-0.086 -1.22,-0.086 -1.916,-0.696c-0.523,-0.523 -0.697,-1.656 -0.697,-1.656s-0.174,-1.392 -0.174,-2.787l0,-1.306c0,-1.394 0.174,-2.787 0.174,-2.787s0.174,-1.132 0.697,-1.655c0.61,-0.696 1.393,-0.696 1.741,-0.696c2.352,-0.175 5.923,-0.175 5.923,-0.175s3.571,0 5.923,0.175c0.347,0 1.045,0 1.742,0.696c0.522,0.523 0.696,1.655 0.696,1.655s0.175,1.393 0.175,2.787l0,1.306zm-10.279,1.569l4.616,-2.352l-4.616,-2.44l0,4.792zm-11.67,-2.178c0,7.404 6.009,13.413 13.412,13.413c7.403,0 13.413,-6.01 13.413,-13.413c0.088,-7.404 -6.009,-13.413 -13.412,-13.413c-7.403,0 -13.413,6.01 -13.413,13.413z" />
</g>
</svg>

Before

Width:  |  Height:  |  Size: 722 B

After

Width:  |  Height:  |  Size: 928 B

@@ -3,7 +3,7 @@ date: 2020-10-29 06:00:00 +0000
permalink: '/2020-10-29-js-ipfs-0-50/'
translationKey: ''
tags: js-ipfs, SECIO
header_image: 'js-ipfs-placeholder-header-image.png'
header_image: '/js-ipfs-placeholder-header-image.png'
title: js-IPFS 0.51.0 adds type definitions and removes SECIO
description: ''
author: Alex Potsides
+1 -1
View File
@@ -1,6 +1,6 @@
---
date: 2019-10-29
permalink: /zh-ch/weekly-65/
permalink: /zh-cn/weekly-65/
translationKey: ipfs-weekly-65
title: IPFS 周报-65
author: 默奕
+1 -1
View File
@@ -1,6 +1,6 @@
---
date: 2019-11-05
permalink: /zh-ch/weekly-66/
permalink: /zh-cn/weekly-66/
translationKey: ipfs-weekly-66
title: IPFS 周报-66
author: 默奕
+1 -1
View File
@@ -1,6 +1,6 @@
---
date: 2019-11-12
permalink: /zh-ch/weekly-67/
permalink: /zh-cn/weekly-67/
translationKey: ipfs-weekly-67
title: IPFS 周报-67
author: 默奕
+1 -1
View File
@@ -1,6 +1,6 @@
---
date: 2019-11-19
permalink: /zh-ch/weekly-68/
permalink: /zh-cn/weekly-68/
translationKey: ipfs-weekly-68
title: IPFS 周报-68
author: 默奕