diff --git a/package.json b/package.json index 37741217d8..6389c4a9bd 100644 --- a/package.json +++ b/package.json @@ -29,7 +29,7 @@ "eslint-config-prettier": "^8.10.0", "eslint-plugin-svelte": "^2.33.1", "openapi-types": "^12.1.3", - "oslllo-svg-fixer": "^2.2.0", + "oslllo-svg-fixer": "^3.0.0", "prettier": "^2.8.8", "prettier-plugin-svelte": "^2.10.1", "sass": "^1.66.1", @@ -37,7 +37,7 @@ "svelte-check": "^3.5.1", "svelte-markdoc-preprocess": "^0.3.2", "svelte-sequential-preprocessor": "^2.0.1", - "svgtofont": "^3.25.4", + "svgtofont": "^4.0.0", "tslib": "^2.6.2", "typescript": "^5.2.2", "vite": "^4.4.9", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 73df39fa3e..4c3edb9fec 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -13,7 +13,7 @@ dependencies: version: 0.0.7-sl10.0 '@appwrite.io/repo': specifier: github:appwrite/appwrite - version: github.com/appwrite/appwrite/9ba609c46efc9ea3bd1074d308ca2c178321b9dc + version: github.com/appwrite/appwrite/ddb73eb4f60aa807fd0bfe8622da32a69738077a '@fontsource/inter': specifier: ^5.0.8 version: 5.0.8 @@ -68,8 +68,8 @@ devDependencies: specifier: ^12.1.3 version: 12.1.3 oslllo-svg-fixer: - specifier: ^2.2.0 - version: 2.2.0 + specifier: ^3.0.0 + version: 3.0.0 prettier: specifier: ^2.8.8 version: 2.8.8 @@ -92,8 +92,8 @@ devDependencies: specifier: ^2.0.1 version: 2.0.1 svgtofont: - specifier: ^3.25.4 - version: 3.25.4 + specifier: ^4.0.0 + version: 4.0.0 tslib: specifier: ^2.6.2 version: 2.6.2 @@ -166,6 +166,10 @@ packages: the-new-css-reset: 1.9.0 dev: false + /@assemblyscript/loader@0.10.1: + resolution: {integrity: sha512-H71nDOOL8Y7kWRLqf6Sums+01Q5msqBW2KhDUTemh1tvY04eSkSXrK0uj/4mmY0Xr16/3zyZmsrxN7CKuRbNRg==} + dev: true + /@babel/runtime@7.22.15: resolution: {integrity: sha512-T0O+aa+4w0u06iNmapipJXMV4HoUir03hpx3/YqXXhu9xim3w+dVphjFWl1OH8NbZHw5Lbm9k45drDkgq2VNNA==} engines: {node: '>=6.9.0'} @@ -2566,6 +2570,10 @@ packages: engines: {node: '>=0.10.0'} dev: true + /eventemitter-asyncresource@1.0.0: + resolution: {integrity: sha512-39F7TBIV0G7gTelxwbEqnwhp90eqCPON1k0NwNfwhgKn4Co4ybUbj2pECcXT0B3ztRKZ7Pw1JujUUgmQJHcVAQ==} + dev: true + /exif-parser@0.1.12: resolution: {integrity: sha512-c2bQfLNbMzLPmzQuOr8fy0csy84WmwnER81W88DzTp9CYNPJ6yzOj2EZAh9pywYpqHnshVLHQJ8WzldAyfY+Iw==} dev: true @@ -2953,6 +2961,18 @@ packages: kind-of: 4.0.0 dev: true + /hdr-histogram-js@2.0.3: + resolution: {integrity: sha512-Hkn78wwzWHNCp2uarhzQ2SGFLU3JY8SBDDd3TAABK4fc30wm+MuPOrg5QVFVfkKOQd6Bfz3ukJEI+q9sXEkK1g==} + dependencies: + '@assemblyscript/loader': 0.10.1 + base64-js: 1.5.1 + pako: 1.0.11 + dev: true + + /hdr-histogram-percentiles-obj@3.0.0: + resolution: {integrity: sha512-7kIufnBqdsBGcSZLPJwqHT3yhk1QTsSlFsVD3kx5ixH/AlgBs9yM1q6DPhXZ8f8gtdqgh7N7/5btRLpQsS2gHw==} + dev: true + /hey-listen@1.0.8: resolution: {integrity: sha512-COpmrF2NOg4TBWUJ5UVyaCU2A88wEMkUPK4hNqyCkqHbxT92BbvfjoSozkAIIm6XhicGlJHhFdullInrdhwU8Q==} dev: false @@ -3802,6 +3822,29 @@ packages: engines: {node: '>= 0.6'} dev: true + /nice-napi@1.0.2: + resolution: {integrity: sha512-px/KnJAJZf5RuBGcfD+Sp2pAKq0ytz8j+1NehvgIGFkvtvFrDM3T8E4x/JJODXK9WZow8RRGrbA9QQ3hs+pDhA==} + os: ['!win32'] + requiresBuild: true + dependencies: + node-addon-api: 3.2.1 + node-gyp-build: 4.6.1 + dev: true + optional: true + + /node-addon-api@3.2.1: + resolution: {integrity: sha512-mmcei9JghVNDYydghQmeDX8KoAm0FAiYyIcUt/N4nhyAipB17pllZQDOJD2fotxABnt4Mdz+dKTO7eftLg4d0A==} + requiresBuild: true + dev: true + optional: true + + /node-gyp-build@4.6.1: + resolution: {integrity: sha512-24vnklJmyRS8ViBNI8KbtK/r/DmXQMRiOMXTNz2nrTnAYUwjmEEbnnpB/+kt+yWRv73bPsSPRFddrcIbAxSiMQ==} + hasBin: true + requiresBuild: true + dev: true + optional: true + /node-gyp@9.4.0: resolution: {integrity: sha512-dMXsYP6gc9rRbejLXmTbVRYjAHw7ppswsKyMxuxJxxOHzluIO1rGp9TOQgjFJ+2MCqcOcQTOPB/8Xwhr+7s4Eg==} engines: {node: ^12.13 || ^14.13 || >=16} @@ -3918,8 +3961,9 @@ packages: jimp: 0.16.13 dev: true - /oslllo-svg-fixer@2.2.0: - resolution: {integrity: sha512-70jEmHwp/jqq2I2ZVaTOvHykPlEOhIHRto5AHntrjzD8/R6FOk0t8RjlyZNgpPlDjc7T/9a695qKAxF3bFVYKg==} + /oslllo-svg-fixer@3.0.0: + resolution: {integrity: sha512-fk0oWpDfWlcZI42EJfwZV2a7K2hbB63big8KBCDdIU/72QUeUw2z41hTRO/YJeNyFwixb6ecmwOVdJuWQ6SMLg==} + engines: {node: '>=16.0.0'} hasBin: true dependencies: ansi-colors: 4.1.3 @@ -3928,6 +3972,7 @@ packages: oslllo-potrace: 2.0.1 oslllo-svg2: 2.0.2 oslllo-validator: 3.1.0 + piscina: 4.1.0 yargs: 16.2.0 dev: true @@ -4090,6 +4135,16 @@ packages: engines: {node: '>= 6'} dev: true + /piscina@4.1.0: + resolution: {integrity: sha512-sjbLMi3sokkie+qmtZpkfMCUJTpbxJm/wvaPzU28vmYSsTSW8xk9JcFUsbqGJdtPpIQ9tuj+iDcTtgZjwnOSig==} + dependencies: + eventemitter-asyncresource: 1.0.0 + hdr-histogram-js: 2.0.3 + hdr-histogram-percentiles-obj: 3.0.0 + optionalDependencies: + nice-napi: 1.0.2 + dev: true + /pixelmatch@4.0.2: resolution: {integrity: sha512-J8B6xqiO37sU/gkcMglv6h5Jbd9xNER7aHzpfRdNmV4IbQBzBpe4l9XmbG+xPF/znacgu2jfEw+wHffaq/YkXA==} hasBin: true @@ -4902,8 +4957,8 @@ packages: resolution: {integrity: sha512-OIWR6bKzXvdXYyO4DK/UWa1VA1JeKq8E+0ug2DG98Y/vOmMpfZNj+TIG988HjfYSqtcy/hFOtZq/n/j5GSESNg==} dev: true - /svgtofont@3.25.4: - resolution: {integrity: sha512-S4DdXBBBPsV1wDJAS1mGuKeR2IYkDbd2AZnnYeUs3mCrIbGyVi9m40cbEGUgn7LLPTfLcMxv4Ft+LtdCVA1+yw==} + /svgtofont@4.0.0: + resolution: {integrity: sha512-8K0e/4BcJRhBcmQ9d5O5GC7WdNW0sLi7G1egvnzvPi5orICAcAQg/SF3n03DYMLkAGXhJ+UsKfJnC8ovv8/xiw==} engines: {node: '>=16.0.0'} hasBin: true dependencies: @@ -5508,8 +5563,8 @@ packages: engines: {node: '>=12.20'} dev: true - github.com/appwrite/appwrite/9ba609c46efc9ea3bd1074d308ca2c178321b9dc: - resolution: {tarball: https://codeload.github.com/appwrite/appwrite/tar.gz/9ba609c46efc9ea3bd1074d308ca2c178321b9dc} + github.com/appwrite/appwrite/ddb73eb4f60aa807fd0bfe8622da32a69738077a: + resolution: {tarball: https://codeload.github.com/appwrite/appwrite/tar.gz/ddb73eb4f60aa807fd0bfe8622da32a69738077a} name: appwrite version: 0.0.0 dev: false diff --git a/src/icons/scripts.js b/src/icons/scripts.js index 806b990216..a78a44b1b8 100644 --- a/src/icons/scripts.js +++ b/src/icons/scripts.js @@ -1,5 +1,6 @@ -import svgtofont from 'svgtofont'; +// @ts-expect-error missing types import SVGFixer from 'oslllo-svg-fixer'; +import svgtofont from 'svgtofont'; import { resolve } from 'path'; const src = resolve(process.cwd(), 'src/icons/svg'); @@ -25,9 +26,6 @@ export const generateIcons = async () => { }, emptyDist: true, generateInfoData: true, - svgoOptions: { - full: false - } }); }; diff --git a/src/icons/svg/x.svg b/src/icons/svg/x.svg new file mode 100644 index 0000000000..f9e9039002 --- /dev/null +++ b/src/icons/svg/x.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/src/icons/templates/_{{filename}}.css.template b/src/icons/templates/_{{filename}}.css.template index 4fb38f4e71..a63bc46af1 100644 --- a/src/icons/templates/_{{filename}}.css.template +++ b/src/icons/templates/_{{filename}}.css.template @@ -11,7 +11,7 @@ [class^="{{prefix}}-"], [class*=" {{prefix}}-"] { font-family: '{{fontname}}' !important; - font-size: {{fontSize}}; + {{fontSize}} font-style: normal; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; diff --git a/src/icons/templates/_{{filename}}.scss.template b/src/icons/templates/_{{filename}}.scss.template index 311cdba7aa..031efaa7ad 100644 --- a/src/icons/templates/_{{filename}}.scss.template +++ b/src/icons/templates/_{{filename}}.scss.template @@ -9,7 +9,7 @@ [class^="{{prefix}}-"], [class*=" {{prefix}}-"] { font-family: '{{fontname}}' !important; - font-size: {{fontSize}}; + {{fontSize}} font-display: swap; font-style: normal; -webkit-font-smoothing: antialiased; diff --git a/src/lib/animations/OpenSource.svelte b/src/lib/animations/OpenSource.svelte index f41ca6e31d..adaa79012d 100644 --- a/src/lib/animations/OpenSource.svelte +++ b/src/lib/animations/OpenSource.svelte @@ -140,7 +140,7 @@ id="oss-twitter" >
-
125k+ Twitter Followers
diff --git a/src/lib/components/MainFooter.svelte b/src/lib/components/MainFooter.svelte index f16233abbd..a6161ae289 100644 --- a/src/lib/components/MainFooter.svelte +++ b/src/lib/components/MainFooter.svelte @@ -19,7 +19,7 @@ link: 'https://github.com/appwrite' }, { - icon: 'aw-icon-twitter', + icon: 'aw-icon-x', link: 'https://twitter.com/appwrite' }, { diff --git a/src/markdoc/nodes/Fence.svelte b/src/markdoc/nodes/Fence.svelte index 611df8d0df..effc20b3fd 100644 --- a/src/markdoc/nodes/Fence.svelte +++ b/src/markdoc/nodes/Fence.svelte @@ -71,7 +71,7 @@ class="aw-icon-button" aria-label="copy code from code-snippet" > -