Skip to content

Commit

Permalink
Nuxt docs fixes (#3012)
Browse files Browse the repository at this point in the history
* docs(): resolve mac aliases

* fix(#2947): highlight code in markdown with grey bg

* fix(#2995): remove empty zh-ch translation

* fix(#2986): optimize some svg

* fix(): enable tailwind purge

* fix(docs): optimize font loading

* fix(#2994): missing discord image

* fix(#2985): hide range prop in slider playground

* fix(docs): star button in ssg
  • Loading branch information
m0ksem authored Feb 17, 2023
1 parent 3b559b6 commit a9fa7d5
Show file tree
Hide file tree
Showing 28 changed files with 345 additions and 5,622 deletions.
15 changes: 6 additions & 9 deletions packages/docs/components/landing/EpicmaxBanner.vue
Original file line number Diff line number Diff line change
Expand Up @@ -19,18 +19,15 @@
aria-label="Visit Epicmax web-site"
>
<svg
xmlns="http://www.w3.org/2000/svg"
width="135"
height="26"
viewBox="0 0 135 26"
fill="none"
xmlns="http://www.w3.org/2000/svg"
alt="Epicmax logo"
>
<path
d="M64.783 0C66.8783 0 68.5401 0.574946 69.7684 1.72485C70.9966 2.87478 71.6108 4.45436 71.6108 6.46369C71.6108 6.68156 71.5867 7.081 71.5385 7.66202L71.5024 7.84358C71.4783 8.01304 71.4121 8.15224 71.3037 8.26117C71.1953 8.37011 71.0689 8.42458 70.9244 8.42458L65.3611 8.60615C64.9998 8.60615 64.8432 8.43669 64.8914 8.09777L64.9998 7.18995C65.048 6.7784 64.9878 6.45158 64.8192 6.20949C64.6506 5.96742 64.4097 5.84636 64.0967 5.84636C63.7595 5.84636 63.4765 5.96742 63.2477 6.20949C63.0189 6.45158 62.8805 6.7784 62.8323 7.18995L61.4234 18.8464C61.3752 19.2337 61.4294 19.5484 61.5859 19.7905C61.7425 20.0326 61.9893 20.1536 62.3265 20.1536C62.6637 20.1536 62.9467 20.0386 63.1755 19.8087C63.4043 19.5787 63.5427 19.2579 63.5909 18.8464L63.6993 17.8659C63.7234 17.6965 63.7896 17.5694 63.898 17.4846C64.0064 17.3999 64.1328 17.3575 64.2773 17.3575L69.8045 17.5391C69.9731 17.5391 70.0995 17.5694 70.1838 17.6299C70.2681 17.6904 70.2982 17.7812 70.2741 17.9022L70.238 18.2654C69.949 20.6136 69.0158 22.4898 67.4383 23.8939C65.8608 25.298 63.9161 26 61.604 26C59.5087 26 57.853 25.419 56.6367 24.257C55.4205 23.095 54.8124 21.5093 54.8124 19.5C54.8124 19.2579 54.8365 18.8464 54.8847 18.2654L56.1852 7.66202C56.4742 5.31376 57.4014 3.44973 58.9668 2.06984C60.5323 0.689946 62.471 0 64.783 0ZM35.1662 0.181818C37.0929 0.181818 38.6162 0.8016 39.7361 2.04116C40.856 3.28075 41.4159 4.92345 41.4159 6.96935C41.4159 7.54702 41.3919 7.99229 41.3437 8.30519C41.151 9.84564 40.6995 11.2055 39.989 12.3849C39.2785 13.5643 38.3633 14.4729 37.2434 15.1108C36.1236 15.7486 34.8893 16.0675 33.5406 16.0675H31.5898C31.4694 16.0675 31.3851 16.1397 31.3369 16.2842L30.2893 24.913C30.2652 25.0815 30.199 25.2139 30.0906 25.3101C29.9822 25.4064 29.8558 25.4545 29.7113 25.4545H24.148C24.0035 25.4545 23.8891 25.4064 23.8048 25.3101C23.7205 25.2139 23.6904 25.0815 23.7145 24.913L26.6767 0.723382C26.7008 0.554891 26.7671 0.422509 26.8754 0.326236C26.9838 0.229964 27.1103 0.181818 27.2548 0.181818H35.1662ZM52.178 0.181818C52.3225 0.181818 52.4369 0.229964 52.5212 0.326236C52.6055 0.422509 52.6356 0.554891 52.6115 0.723382L49.6493 24.913C49.6252 25.0815 49.5589 25.2139 49.4506 25.3101C49.3422 25.4064 49.2157 25.4545 49.0712 25.4545H43.5079C43.3634 25.4545 43.249 25.4064 43.1647 25.3101C43.0805 25.2139 43.0503 25.0815 43.0744 24.913L46.0367 0.723382C46.0608 0.554891 46.127 0.422509 46.2354 0.326236C46.3438 0.229964 46.4702 0.181818 46.6147 0.181818H52.178ZM82.5901 0.181818C82.8791 0.181818 83.0718 0.3142 83.1681 0.578964L85.0105 5.16416C85.0587 5.23636 85.1129 5.27247 85.1731 5.27247C85.2333 5.27247 85.2754 5.23636 85.2995 5.16416L88.2979 0.578964C88.4424 0.3142 88.6592 0.181818 88.9482 0.181818H94.4393C94.5838 0.181818 94.6982 0.229964 94.7825 0.326236C94.8668 0.422509 94.8969 0.554891 94.8728 0.723382L91.9105 24.913C91.8864 25.0815 91.8202 25.2139 91.7118 25.3101C91.6034 25.4064 91.477 25.4545 91.3325 25.4545H85.7692C85.6247 25.4545 85.5103 25.4064 85.426 25.3101C85.3417 25.2139 85.3116 25.0815 85.3357 24.913L87.1419 10.2187C87.1419 10.0984 87.1179 10.0322 87.0697 10.0201C87.0215 10.0081 86.9613 10.0502 86.8891 10.1465L84.4686 13.6125L84.0351 14.2623H83.999L82.1927 10.0743C82.1687 9.97801 82.1265 9.93589 82.0663 9.94792C82.0061 9.95996 81.964 10.0261 81.9399 10.1465L80.1336 24.913C80.1095 25.0815 80.0493 25.2139 79.953 25.3101C79.8566 25.4064 79.7242 25.4545 79.5556 25.4545H74.0284C73.8598 25.4545 73.7334 25.4064 73.6491 25.3101C73.5648 25.2139 73.5347 25.0815 73.5587 24.913L76.521 0.723382C76.5451 0.554891 76.6114 0.422509 76.7197 0.326236C76.8281 0.229964 76.9545 0.181818 77.0991 0.181818H82.5901ZM110.62 0.181818C110.957 0.181818 111.138 0.338273 111.162 0.651164L113.149 24.8769C113.149 25.2861 112.968 25.4545 112.607 25.4545H106.935C106.598 25.4545 106.442 25.2861 106.466 24.9491V22.2413C106.49 22.1691 106.472 22.1149 106.412 22.0788C106.351 22.0427 106.297 22.0247 106.249 22.0247H103.178C103.058 22.0247 102.962 22.0848 102.889 22.2052L102.131 24.9491C102.058 25.2861 101.854 25.4545 101.517 25.4545H96.0255C95.6643 25.4545 95.5318 25.262 95.6281 24.8769L103.576 0.651164C103.672 0.338273 103.889 0.181818 104.226 0.181818H110.62ZM8.59443 0.181818C8.60244 0.181818 8.6105 0.181818 8.61863 0.181818H21.5997C21.7684 0.181818 21.8949 0.229964 21.9793 0.326236C22.0637 0.422509 22.0938 0.554891 22.0697 0.723382L21.4912 5.45298C21.4671 5.62147 21.4008 5.75385 21.2923 5.85013C21.1838 5.9464 21.0452 5.99455 20.8765 5.99455H14.1871C14.0425 5.99455 13.9701 6.06675 13.9701 6.21116L13.5362 9.67714C13.5121 9.82156 13.5724 9.89377 13.717 9.89377H17.1883C17.357 9.89377 17.4836 9.9419 17.5679 10.0382C17.6523 10.1345 17.6824 10.2668 17.6583 10.4353L17.0798 15.1649C17.0075 15.526 16.8026 15.7065 16.4651 15.7065H12.9938C12.8492 15.7065 12.7769 15.7787 12.7769 15.9231L12.343 19.4252C12.3189 19.5696 12.3791 19.6418 12.5238 19.6418H19.2132C19.3819 19.6418 19.5085 19.69 19.5928 19.7862C19.6772 19.8825 19.7073 20.0149 19.6832 20.1834L19.1047 24.913C19.0806 25.0815 19.0143 25.2139 18.9058 25.3101C18.7973 25.4064 18.6587 25.4545 18.49 25.4545H5.50897C5.36433 25.4545 5.24983 25.4064 5.16546 25.3101C5.08109 25.2139 5.05095 25.0815 5.07506 24.913L6.98897 9.29867L0.0812815 0.775055C-0.044929 0.619327 -0.021587 0.390273 0.133417 0.263473C0.197978 0.210655 0.278687 0.181818 0.361942 0.181818H8.59443ZM124.74 0.181818C124.885 0.181818 125.005 0.223945 125.102 0.308182C125.198 0.392418 125.258 0.506745 125.282 0.651164L126.077 5.5974C126.101 5.69367 126.143 5.74182 126.203 5.74182C126.264 5.74182 126.306 5.69367 126.33 5.5974L128.353 0.651164C128.473 0.338273 128.69 0.181818 129.003 0.181818H134.566C134.855 0.181818 135 0.290127 135 0.506745L134.928 0.795582L128.859 12.6738C128.835 12.7219 128.823 12.8182 128.823 12.9626L131.965 24.8408C131.99 24.8889 132.002 24.9491 132.002 25.0213C132.002 25.3101 131.821 25.4545 131.46 25.4545H125.933C125.788 25.4545 125.668 25.4124 125.571 25.3282C125.475 25.2439 125.415 25.1296 125.391 24.9852L124.56 20.0751C124.536 19.9788 124.494 19.9307 124.433 19.9307C124.373 19.9307 124.319 19.9788 124.271 20.0751L122.248 24.9852C122.127 25.2981 121.911 25.4545 121.597 25.4545H116.034C115.745 25.4545 115.601 25.3462 115.601 25.1296L115.673 24.8408L121.742 12.9626C121.766 12.9145 121.778 12.8182 121.778 12.6738L118.635 0.795582C118.611 0.747455 118.599 0.687273 118.599 0.615073C118.599 0.326236 118.78 0.181818 119.141 0.181818H124.74ZM106.122 10.4581C106.062 10.4581 106.02 10.5186 105.996 10.6397L104.298 16.8129C104.226 16.9581 104.286 17.0307 104.479 17.0307H106.032C106.152 17.0307 106.225 16.9581 106.249 16.8129L106.213 10.6397C106.213 10.5186 106.183 10.4581 106.122 10.4581ZM33.2877 6.13687H32.8181C32.6736 6.13687 32.6013 6.20949 32.6013 6.35475L32.0594 10.7849C32.0354 10.9302 32.0956 11.0028 32.2401 11.0028H32.6736C33.2034 11.0028 33.655 10.8031 34.0283 10.4036C34.4016 10.0042 34.6364 9.40503 34.7327 8.60615C34.7568 8.46089 34.7689 8.25512 34.7689 7.98883C34.7689 7.38362 34.6364 6.92365 34.3715 6.60895C34.1066 6.29422 33.7453 6.13687 33.2877 6.13687Z"
fill="#FFFF00"
/>
</svg>
viewBox="0 0 135 26"
><path
fill="#FF0"
d="M64.78 0c2.1 0 3.76.57 4.99 1.72C71 2.87 71.6 4.45 71.6 6.46c0 .22-.02.62-.07 1.2l-.04.18a.72.72 0 0 1-.2.42c-.1.11-.23.16-.38.16l-5.56.19c-.36 0-.52-.17-.47-.51l.11-.91c.05-.41-.01-.74-.18-.98a.83.83 0 0 0-.72-.36c-.34 0-.62.12-.85.36-.23.24-.37.57-.42.98l-1.4 11.66c-.05.38 0 .7.16.94.15.24.4.36.74.36.33 0 .62-.11.85-.34.22-.23.36-.55.41-.96l.1-.98c.03-.17.1-.3.2-.39a.6.6 0 0 1 .39-.12l5.52.18c.17 0 .3.03.38.09.09.06.12.15.1.27l-.04.37a8.66 8.66 0 0 1-2.8 5.62A8.46 8.46 0 0 1 61.6 26c-2.1 0-3.75-.58-4.96-1.74a6.27 6.27 0 0 1-1.83-4.76c0-.24.03-.65.07-1.23l1.3-10.6a8.55 8.55 0 0 1 2.79-5.6A8.48 8.48 0 0 1 64.78 0ZM35.17.18c1.92 0 3.45.62 4.57 1.86a7.07 7.07 0 0 1 1.68 4.93 10.28 10.28 0 0 1-1.43 5.42 7.35 7.35 0 0 1-6.45 3.68H31.6c-.12 0-.2.07-.25.21l-1.05 8.63a.63.63 0 0 1-.2.4c-.1.1-.23.14-.38.14h-5.56a.43.43 0 0 1-.35-.14c-.08-.1-.11-.23-.09-.4L26.68.72c.02-.17.09-.3.2-.4.1-.09.23-.14.37-.14h7.92Zm17 0c.15 0 .27.05.35.15.09.1.12.22.1.4L49.64 24.9a.63.63 0 0 1-.2.4c-.1.1-.23.14-.38.14h-5.56a.43.43 0 0 1-.35-.14c-.08-.1-.11-.23-.09-.4L46.04.72c.02-.17.09-.3.2-.4.1-.09.23-.14.37-.14h5.57Zm30.42 0c.29 0 .48.13.58.4L85 5.16c.05.08.1.11.16.11s.1-.03.13-.1l3-4.6a.7.7 0 0 1 .65-.39h5.49c.14 0 .26.05.34.15.09.1.12.22.1.4L91.9 24.9a.63.63 0 0 1-.2.4c-.1.1-.23.14-.38.14h-5.56a.43.43 0 0 1-.34-.14c-.09-.1-.12-.23-.1-.4l1.81-14.7c0-.11-.02-.18-.07-.19-.05-.01-.1.03-.18.13l-2.42 3.46-.43.65H84l-1.8-4.19c-.03-.1-.07-.13-.13-.12-.06.01-.1.08-.13.2l-1.8 14.76a.68.68 0 0 1-.19.4c-.1.1-.23.14-.4.14h-5.52c-.17 0-.3-.04-.38-.14-.09-.1-.12-.23-.1-.4L76.53.72c.03-.17.1-.3.2-.4.1-.09.23-.14.38-.14h5.49Zm28.03 0c.34 0 .52.16.54.47l1.99 24.23c0 .4-.18.57-.54.57h-5.67c-.34 0-.5-.16-.47-.5v-2.7c.02-.08 0-.14-.06-.17a.33.33 0 0 0-.16-.06h-3.07c-.12 0-.22.06-.3.19l-.75 2.74c-.07.34-.28.5-.61.5h-5.5c-.36 0-.49-.19-.4-.57L103.59.65c.1-.31.3-.47.65-.47h6.39ZM8.59.18H21.6c.17 0 .3.05.38.15.08.1.11.22.09.4l-.58 4.72a.63.63 0 0 1-.2.4.6.6 0 0 1-.41.14h-6.7c-.14 0-.21.08-.21.22l-.43 3.47c-.03.14.03.21.18.21h3.47c.17 0 .3.05.38.15.08.1.11.23.09.4l-.58 4.72c-.07.37-.28.55-.61.55h-3.48c-.14 0-.21.07-.21.21l-.44 3.5c-.02.15.04.22.18.22h6.7c.16 0 .29.05.37.15.09.1.12.22.1.4l-.59 4.72a.63.63 0 0 1-.2.4.6.6 0 0 1-.41.14H5.51a.43.43 0 0 1-.34-.14c-.09-.1-.12-.23-.1-.4L7 9.3.09.78a.36.36 0 0 1 .27-.6H8.6Zm116.15 0c.15 0 .27.04.36.13.1.08.16.2.18.34l.8 4.95c.02.1.06.14.12.14s.1-.05.13-.14l2.02-4.95c.12-.31.34-.47.65-.47h5.57c.28 0 .43.11.43.33l-.07.29-6.07 11.87a.75.75 0 0 0-.04.3l3.15 11.87c.02.05.03.1.03.18 0 .29-.18.43-.54.43h-5.53a.53.53 0 0 1-.36-.12.56.56 0 0 1-.18-.34l-.83-4.91c-.02-.1-.07-.15-.13-.15s-.11.05-.16.15l-2.02 4.9c-.12.32-.34.47-.65.47h-5.57c-.28 0-.43-.1-.43-.32l.07-.29 6.07-11.88a.75.75 0 0 0 .04-.29L118.64.8a.4.4 0 0 1-.04-.18c0-.3.18-.44.54-.44h5.6Zm-18.62 10.28c-.06 0-.1.06-.12.18l-1.7 6.17c-.07.15-.01.22.18.22h1.55c.12 0 .2-.07.22-.22l-.04-6.17c0-.12-.03-.18-.09-.18ZM33.3 6.14h-.47c-.15 0-.22.07-.22.21l-.54 4.43c-.02.15.04.22.18.22h.43c.53 0 .98-.2 1.36-.6.37-.4.6-1 .7-1.8.03-.14.04-.34.04-.61 0-.6-.13-1.07-.4-1.38a1.34 1.34 0 0 0-1.08-.47Z"
/></svg>
</a>
</div>
</div>
Expand Down
2 changes: 2 additions & 0 deletions packages/docs/components/landing/OpenSource.vue
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@
<nuxt-img
src="/landing/icon-open-source.svg"
alt=""
height="100px"
width="100px"
/>
</div>
<h2 class="opensource__title">
Expand Down
Loading

0 comments on commit a9fa7d5

Please sign in to comment.