From 8f5162e70fd321240f4016e172d85db9c34b689e Mon Sep 17 00:00:00 2001 From: Ikko Eltociear Ashimine Date: Thu, 7 Nov 2024 12:36:14 +0900 Subject: [PATCH 1/9] docs: update cip102.md minor fix --- packages/mesh-contract/src/royalties/cip102.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/mesh-contract/src/royalties/cip102.md b/packages/mesh-contract/src/royalties/cip102.md index 91d6d691a..b7cad9da2 100644 --- a/packages/mesh-contract/src/royalties/cip102.md +++ b/packages/mesh-contract/src/royalties/cip102.md @@ -165,7 +165,7 @@ See the [CIP-0068 Extension Boilerplate](https://github.com/cardano-foundation/C ### Acceptance Criteria - [x] This CIP should receive feedback, criticism, and refinement from: CIP Editors and the community of people involved with NFT projects to review any weaknesses or areas of improvement. -- [x] Guidelines and examples of publication of data as well as discovery and validation should be included as part of of criteria for acceptance. +- [x] Guidelines and examples of publication of data as well as discovery and validation should be included as part of criteria for acceptance. - [x] Minimal reference implementation making use of [Lucid](https://github.com/spacebudz/lucid) (off-chain), [PlutusTx](https://github.com/input-output-hk/plutus) (on-chain): [Reference Implementation](https://github.com/SamDelaney/CIP_102_Reference). - [ ] Implementation and use demonstrated by the community: NFT Projects, Blockchain Explorers, Wallets, Marketplaces. @@ -181,4 +181,4 @@ This CIP is licensed under [CC-BY-4.0](https://creativecommons.org/licenses/by/4 [CIP-0027]: https://github.com/cardano-foundation/CIPs/tree/master/CIP-0027 [CIP-0067]: https://github.com/cardano-foundation/CIPs/tree/master/CIP-0067 -[CIP-0068]: https://github.com/cardano-foundation/CIPs/tree/master/CIP-0068 \ No newline at end of file +[CIP-0068]: https://github.com/cardano-foundation/CIPs/tree/master/CIP-0068 From 9d2c6951569629f31a93f7aa5d63a40df3f3b5b7 Mon Sep 17 00:00:00 2001 From: "Hong Jing (Jingles)" Date: Mon, 11 Nov 2024 09:56:31 +0800 Subject: [PATCH 2/9] update guides --- .../components/sections/hero-two-sections.tsx | 2 +- apps/playground/src/pages/guides/aiken.mdx | 8 ++++++ .../src/pages/guides/custom-provider.mdx | 10 +++++++ .../src/pages/guides/minting-on-nodejs.mdx | 6 +++++ .../pages/guides/multisig-minting/demo.tsx | 1 - .../pages/guides/multisig-minting/index.mdx | 12 +++++++++ apps/playground/src/pages/guides/nextjs.mdx | 26 +++++++++++++++---- .../guides/prove-wallet-ownership/demo.tsx | 1 - .../guides/prove-wallet-ownership/index.mdx | 15 ++++++++++- .../guides/smart-contract-transactions.mdx | 9 +++++++ .../src/pages/guides/standalone.mdx | 8 +++++- .../src/pages/guides/vesting/demo.tsx | 1 - .../src/pages/guides/vesting/index.mdx | 13 +++++++++- 13 files changed, 100 insertions(+), 12 deletions(-) diff --git a/apps/playground/src/components/sections/hero-two-sections.tsx b/apps/playground/src/components/sections/hero-two-sections.tsx index 6b525d7cf..33ec15fb1 100644 --- a/apps/playground/src/components/sections/hero-two-sections.tsx +++ b/apps/playground/src/components/sections/hero-two-sections.tsx @@ -42,7 +42,7 @@ export default function HeroTwoSections({ {code && } - {children && children} + {children &&
{children}
}
{typeof image === "string" ? : image} diff --git a/apps/playground/src/pages/guides/aiken.mdx b/apps/playground/src/pages/guides/aiken.mdx index 51a105bd6..44281f821 100644 --- a/apps/playground/src/pages/guides/aiken.mdx +++ b/apps/playground/src/pages/guides/aiken.mdx @@ -2,12 +2,20 @@ import LayoutImageHeaderAndBody from "~/components/layouts/image-header-and-body import { guideaiken } from "~/data/links-guides"; export default function MDXPage({ children }) { + const sidebarItems = [ + { label: 'System setup', to: 'systemsetup' }, + { label: 'Writing a smart contract with Aiken', to: 'writingasmartcontractwithaiken' }, + { label: 'Creating locking transaction', to: 'creatinglockingtransaction' }, + { label: 'Unlocking assets', to: 'unlockingassets' }, + ] + return ( {children} diff --git a/apps/playground/src/pages/guides/custom-provider.mdx b/apps/playground/src/pages/guides/custom-provider.mdx index a5283c494..64ea93240 100644 --- a/apps/playground/src/pages/guides/custom-provider.mdx +++ b/apps/playground/src/pages/guides/custom-provider.mdx @@ -2,12 +2,22 @@ import LayoutImageHeaderAndBody from "~/components/layouts/image-header-and-body import { guideprovider } from "~/data/links-guides"; export default function MDXPage({ children }) { + const sidebarItems = [ + { label: 'How does it work?', to: 'howdoesitwork' }, + { label: 'Implement your own provider', to: 'implementyourownprovider' }, + { + label: 'Implement Constructor and Functions', + to: 'implementconstructorandfunctions' + } + ] + return ( {children} diff --git a/apps/playground/src/pages/guides/minting-on-nodejs.mdx b/apps/playground/src/pages/guides/minting-on-nodejs.mdx index 11a0974c7..e0d0f76f6 100644 --- a/apps/playground/src/pages/guides/minting-on-nodejs.mdx +++ b/apps/playground/src/pages/guides/minting-on-nodejs.mdx @@ -2,12 +2,18 @@ import LayoutImageHeaderAndBody from "~/components/layouts/image-header-and-body import { guidenodejs } from "~/data/links-guides"; export default function MDXPage({ children }) { + const sidebarItems = [ + { label: 'System setup', to: 'systemsetup' }, + { label: 'Build the minting transaction', to: 'buildthemintingtransaction' }, + ]; + return ( {children} diff --git a/apps/playground/src/pages/guides/multisig-minting/demo.tsx b/apps/playground/src/pages/guides/multisig-minting/demo.tsx index 64a096a83..f340b98fe 100644 --- a/apps/playground/src/pages/guides/multisig-minting/demo.tsx +++ b/apps/playground/src/pages/guides/multisig-minting/demo.tsx @@ -112,7 +112,6 @@ export default function Demo() { return ( <> -

Demo

Connect your wallet and click on the button to mint a token.

diff --git a/apps/playground/src/pages/api/og.tsx b/apps/playground/src/pages/api/og.tsx new file mode 100644 index 000000000..b28f9bc63 --- /dev/null +++ b/apps/playground/src/pages/api/og.tsx @@ -0,0 +1,77 @@ +import { NextRequest } from "next/server"; +import { ImageResponse } from "@vercel/og"; + +export const config = { + runtime: "edge", +}; + +export default function handler(request: NextRequest) { + try { + const { searchParams } = new URL(request.url); + + // ?title= + const hasTitle = searchParams.has("title"); + const title = hasTitle + ? searchParams.get("title")?.slice(0, 100) + : "Mesh JS - Cardano Web3 TypeScript SDK & off-chain Framework"; + + return new ImageResponse( + ( + <div + style={{ + backgroundColor: "black", + backgroundSize: "150px 150px", + height: "100%", + width: "100%", + display: "flex", + textAlign: "center", + alignItems: "center", + justifyContent: "center", + flexDirection: "column", + flexWrap: "nowrap", + }} + > + <div + style={{ + display: "flex", + alignItems: "center", + justifyContent: "center", + justifyItems: "center", + }} + > + <svg + viewBox="0 0 300 200" + xmlns="http://www.w3.org/2000/svg" + fill="white" + > + <path d="m289 127-45-60-45-60c-.9-1.3-2.4-2-4-2s-3.1.7-4 2l-37 49.3c-2 2.7-6 2.7-8 0l-37-49.3c-.9-1.3-2.4-2-4-2s-3.1.7-4 2l-45 60-45 60c-1.3 1.8-1.3 4.2 0 6l45 60c.9 1.3 2.4 2 4 2s3.1-.7 4-2l37-49.3c2-2.7 6-2.7 8 0l37 49.3c.9 1.3 2.4 2 4 2s3.1-.7 4-2l37-49.3c2-2.7 6-2.7 8 0l37 49.3c.9 1.3 2.4 2 4 2s3.1-.7 4-2l45-60c1.3-1.8 1.3-4.2 0-6zm-90-103.3 32.5 43.3c1.3 1.8 1.3 4.2 0 6l-32.5 43.3c-2 2.7-6 2.7-8 0l-32.5-43.3c-1.3-1.8-1.3-4.2 0-6l32.5-43.3c2-2.7 6-2.7 8 0zm-90 0 32.5 43.3c1.3 1.8 1.3 4.2 0 6l-32.5 43.3c-2 2.7-6 2.7-8 0l-32.5-43.3c-1.3-1.8-1.3-4.2 0-6l32.5-43.3c2-2.7 6-2.7 8 0zm-53 152.6-32.5-43.3c-1.3-1.8-1.3-4.2 0-6l32.5-43.3c2-2.7 6-2.7 8 0l32.5 43.3c1.3 1.8 1.3 4.2 0 6l-32.5 43.3c-2 2.7-6 2.7-8 0zm90 0-32.5-43.3c-1.3-1.8-1.3-4.2 0-6l32.5-43.3c2-2.7 6-2.7 8 0l32.5 43.3c1.3 1.8 1.3 4.2 0 6l-32.5 43.3c-2 2.7-6 2.7-8 0zm90 0-32.5-43.3c-1.3-1.8-1.3-4.2 0-6l32.5-43.3c2-2.7 6-2.7 8 0l32.5 43.3c1.3 1.8 1.3 4.2 0 6l-32.5 43.3c-2 2.7-6 2.7-8 0z" /> + </svg> + </div> + <div + style={{ + fontSize: 60, + fontStyle: "normal", + letterSpacing: "-0.025em", + color: "white", + marginTop: 30, + padding: "0 120px", + lineHeight: 1.4, + whiteSpace: "pre-wrap", + }} + > + {title} + </div> + </div> + ), + { + width: 1200, + height: 630, + }, + ); + } catch (e: any) { + console.log(`${e.message}`); + return new Response(`Failed to generate the image`, { + status: 500, + }); + } +} diff --git a/package-lock.json b/package-lock.json index 11c40a57d..e84eff185 100644 --- a/package-lock.json +++ b/package-lock.json @@ -285,6 +285,7 @@ "@meshsdk/react": "*", "@next/mdx": "^14.2.3", "@next/third-parties": "^14.2.5", + "@vercel/og": "^0.6.3", "copy-to-clipboard": "^3.3.3", "flowbite": "^2.5.1", "flowbite-react": "^0.9.0", @@ -13002,6 +13003,14 @@ "react": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 || ^19.0.0" } }, + "node_modules/@resvg/resvg-wasm": { + "version": "2.4.0", + "resolved": "https://registry.npmjs.org/@resvg/resvg-wasm/-/resvg-wasm-2.4.0.tgz", + "integrity": "sha512-C7c51Nn4yTxXFKvgh2txJFNweaVcfUPQxwEUFw4aWsCmfiBDJsTSwviIF8EcwjQ6k8bPyMWCl1vw4BdxE569Cg==", + "engines": { + "node": ">= 10" + } + }, "node_modules/@rollup/plugin-alias": { "version": "3.1.9", "resolved": "https://registry.npmjs.org/@rollup/plugin-alias/-/plugin-alias-3.1.9.tgz", @@ -13504,17 +13513,30 @@ "dev": true, "license": "MIT" }, + "node_modules/@shuding/opentype.js": { + "version": "1.4.0-beta.0", + "resolved": "https://registry.npmjs.org/@shuding/opentype.js/-/opentype.js-1.4.0-beta.0.tgz", + "integrity": "sha512-3NgmNyH3l/Hv6EvsWJbsvpcpUba6R8IREQ83nH83cyakCw7uM1arZKNfHwv1Wz6jgqrF/j4x5ELvR6PnK9nTcA==", + "dependencies": { + "fflate": "^0.7.3", + "string.prototype.codepointat": "^0.2.1" + }, + "bin": { + "ot": "bin/ot" + }, + "engines": { + "node": ">= 8.0.0" + } + }, "node_modules/@sidan-lab/sidan-csl-rs-browser": { - "version": "0.9.4", - "resolved": "https://registry.npmjs.org/@sidan-lab/sidan-csl-rs-browser/-/sidan-csl-rs-browser-0.9.4.tgz", - "integrity": "sha512-+WUeS0aTkh+j/kSjY/qFcXdJQUfhKvZAAxXrjv+i2/EaIphcv1XDGb05CoPUaX+4nUh2lLssFAnc4tEhei3w/w==", - "license": "Apache-2.0" + "version": "0.9.5", + "resolved": "https://registry.npmjs.org/@sidan-lab/sidan-csl-rs-browser/-/sidan-csl-rs-browser-0.9.5.tgz", + "integrity": "sha512-Q8XwrjfjzN+X5ulxD8K3/R5uot4j3+hsDmhZycW1qhFsJ+hJ9J5pkBa50j4BHjtOP2UE/o04Yh2CgOwoLXFCnA==" }, "node_modules/@sidan-lab/sidan-csl-rs-nodejs": { - "version": "0.9.4", - "resolved": "https://registry.npmjs.org/@sidan-lab/sidan-csl-rs-nodejs/-/sidan-csl-rs-nodejs-0.9.4.tgz", - "integrity": "sha512-dmuEkPiDWcdlkOiE72HS3EkY8/XwMxR/ottgrcNcUw6fw09CSL5lynqklQEkTgwV060btvhjZ87ELfEda3w/pA==", - "license": "Apache-2.0" + "version": "0.9.5", + "resolved": "https://registry.npmjs.org/@sidan-lab/sidan-csl-rs-nodejs/-/sidan-csl-rs-nodejs-0.9.5.tgz", + "integrity": "sha512-l8gYVULmD+ggU79/xKKucKjtbqnIXuh2S3bAQfOPAA3AvN9TJuyT563lABUZIMtVMHkyKWo+Dd4la9EthLuPUw==" }, "node_modules/@sinclair/typebox": { "version": "0.27.8", @@ -14396,6 +14418,19 @@ "node": ">=20.0.0" } }, + "node_modules/@vercel/og": { + "version": "0.6.3", + "resolved": "https://registry.npmjs.org/@vercel/og/-/og-0.6.3.tgz", + "integrity": "sha512-aoCrC9FqkeA+WEEb9CwSmjD0rGlFeNqbUsI41JPmKWR9Hx6FFn86tvH96O5HZMF6VAXTGHxa3nPH3BokROpdgA==", + "dependencies": { + "@resvg/resvg-wasm": "2.4.0", + "satori": "0.10.9", + "yoga-wasm-web": "0.3.3" + }, + "engines": { + "node": ">=16" + } + }, "node_modules/@vercel/style-guide": { "version": "5.2.0", "resolved": "https://registry.npmjs.org/@vercel/style-guide/-/style-guide-5.2.0.tgz", @@ -16009,6 +16044,14 @@ "node": ">=8" } }, + "node_modules/camelize": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/camelize/-/camelize-1.0.1.tgz", + "integrity": "sha512-dU+Tx2fsypxTgtLoE36npi3UqcjSSMNYfkqgmoEhtZrraP5VWq0K7FkWVTYa8eMPtnU/G2txVsfdCJTn9uzpuQ==", + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, "node_modules/caniuse-lite": { "version": "1.0.30001677", "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001677.tgz", @@ -16219,6 +16262,7 @@ "version": "3.9.0", "resolved": "https://registry.npmjs.org/ci-info/-/ci-info-3.9.0.tgz", "integrity": "sha512-NIxF55hv4nSqQswkAeiOi1r83xy8JldOFDTWiug55KBu9Jnblncd2U6ViHmYgHf01TPZS77NJBhBMKdWj9HQMQ==", + "dev": true, "funding": [ { "type": "github", @@ -16561,6 +16605,34 @@ "node": ">= 8" } }, + "node_modules/css-background-parser": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/css-background-parser/-/css-background-parser-0.1.0.tgz", + "integrity": "sha512-2EZLisiZQ+7m4wwur/qiYJRniHX4K5Tc9w93MT3AS0WS1u5kaZ4FKXlOTBhOjc+CgEgPiGY+fX1yWD8UwpEqUA==" + }, + "node_modules/css-box-shadow": { + "version": "1.0.0-3", + "resolved": "https://registry.npmjs.org/css-box-shadow/-/css-box-shadow-1.0.0-3.tgz", + "integrity": "sha512-9jaqR6e7Ohds+aWwmhe6wILJ99xYQbfmK9QQB9CcMjDbTxPZjwEmUQpU91OG05Xgm8BahT5fW+svbsQGjS/zPg==" + }, + "node_modules/css-color-keywords": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/css-color-keywords/-/css-color-keywords-1.0.0.tgz", + "integrity": "sha512-FyyrDHZKEjXDpNJYvVsV960FiqQyXc/LlYmsxl2BcdMb2WPx0OGRVgTg55rPSyLSNMqP52R9r8geSp7apN3Ofg==", + "engines": { + "node": ">=4" + } + }, + "node_modules/css-to-react-native": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/css-to-react-native/-/css-to-react-native-3.2.0.tgz", + "integrity": "sha512-e8RKaLXMOFii+02mOlqwjbD00KSEKqblnpO9e++1aXS1fPQOpS1YoqdVHBqPjHNoxeF2mimzVqawm2KCbEdtHQ==", + "dependencies": { + "camelize": "^1.0.0", + "css-color-keywords": "^1.0.0", + "postcss-value-parser": "^4.0.2" + } + }, "node_modules/cssesc": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/cssesc/-/cssesc-3.0.0.tgz", @@ -17451,6 +17523,11 @@ "node": ">=6" } }, + "node_modules/escape-html": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/escape-html/-/escape-html-1.0.3.tgz", + "integrity": "sha512-NiSupZ4OeuGwr68lGIeym/ksIZMJodUGOSCZ/FSnTxcrekbvqrgdUxlJOMpijaKZVjAJrWrGs/6Jy8OMuyj9ow==" + }, "node_modules/escape-string-regexp": { "version": "5.0.0", "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-5.0.0.tgz", @@ -18465,6 +18542,11 @@ "bser": "2.1.1" } }, + "node_modules/fflate": { + "version": "0.7.4", + "resolved": "https://registry.npmjs.org/fflate/-/fflate-0.7.4.tgz", + "integrity": "sha512-5u2V/CDW15QM1XbbgS+0DfPxVB+jUKhWEKuuFuHncbk3tEEqzmoXL+2KyOFuKGqOnmdIy0/davWF1CkuwtibCw==" + }, "node_modules/figlet": { "version": "1.7.0", "resolved": "https://registry.npmjs.org/figlet/-/figlet-1.7.0.tgz", @@ -19588,6 +19670,17 @@ "url": "https://opencollective.com/unified" } }, + "node_modules/hex-rgb": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/hex-rgb/-/hex-rgb-4.3.0.tgz", + "integrity": "sha512-Ox1pJVrDCyGHMG9CFg1tmrRUMRPRsAWYc/PinY0XzJU4K7y7vjNoLKIQ7BR5UJMCxNN8EM1MNDmHWA/B3aZUuw==", + "engines": { + "node": ">=6" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, "node_modules/highlight-words-core": { "version": "1.2.3", "resolved": "https://registry.npmjs.org/highlight-words-core/-/highlight-words-core-1.2.3.tgz", @@ -19618,6 +19711,7 @@ "version": "2.8.9", "resolved": "https://registry.npmjs.org/hosted-git-info/-/hosted-git-info-2.8.9.tgz", "integrity": "sha512-mxIDAb9Lsm6DoOJ7xH+5+X4y1LU/4Hi50L9C5sIswK3JzULS4bwk1FvjdBgvYR4bzT4tuUQiC15FE2f5HbLvYw==", + "dev": true, "license": "ISC" }, "node_modules/html-escaper": { @@ -21315,6 +21409,7 @@ "version": "2.3.1", "resolved": "https://registry.npmjs.org/json-parse-even-better-errors/-/json-parse-even-better-errors-2.3.1.tgz", "integrity": "sha512-xyFwyhro/JEof6Ghe2iz2NcXoj2sloNsWr/XsERDK/oiPCfaNhl5ONfp+jQdAZRQQ0IJWNzH9zIZF7li91kh2w==", + "dev": true, "license": "MIT" }, "node_modules/json-schema-traverse": { @@ -21468,6 +21563,23 @@ "node": ">=10" } }, + "node_modules/linebreak": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/linebreak/-/linebreak-1.1.0.tgz", + "integrity": "sha512-MHp03UImeVhB7XZtjd0E4n6+3xr5Dq/9xI/5FptGk5FrbDR3zagPa2DS6U8ks/3HjbKWG9Q1M2ufOzxV2qLYSQ==", + "dependencies": { + "base64-js": "0.0.8", + "unicode-trie": "^2.0.0" + } + }, + "node_modules/linebreak/node_modules/base64-js": { + "version": "0.0.8", + "resolved": "https://registry.npmjs.org/base64-js/-/base64-js-0.0.8.tgz", + "integrity": "sha512-3XSA2cR/h/73EzlXXdU6YNycmYI7+kicTxks4eJg2g39biHR84slg2+des+p7iHYhbRg/udIS4TD53WabcOUkw==", + "engines": { + "node": ">= 0.4" + } + }, "node_modules/lines-and-columns": { "version": "1.2.4", "resolved": "https://registry.npmjs.org/lines-and-columns/-/lines-and-columns-1.2.4.tgz", @@ -22699,6 +22811,7 @@ "version": "4.2.8", "resolved": "https://registry.npmjs.org/minipass/-/minipass-4.2.8.tgz", "integrity": "sha512-fNzuVyifolSLFL4NzpF+wEF4qrgqaaKX0haXPQEdQ7NKAN+WecoKMHV09YcuL/DHxrUsYQOK3MiuDf7Ip2OXfQ==", + "dev": true, "license": "ISC", "engines": { "node": ">=8" @@ -22958,6 +23071,7 @@ "version": "2.5.0", "resolved": "https://registry.npmjs.org/normalize-package-data/-/normalize-package-data-2.5.0.tgz", "integrity": "sha512-/5CMN3T0R4XTj4DcGaexo+roZSdSFW/0AOOTROrjxzCG1wrWXEsGbRKevjlIL+ZDE4sZlJr5ED4YW0yqmkK+eA==", + "dev": true, "license": "BSD-2-Clause", "dependencies": { "hosted-git-info": "^2.1.4", @@ -22970,6 +23084,7 @@ "version": "5.7.2", "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.2.tgz", "integrity": "sha512-cBznnQ9KjJqU67B52RMC65CMarK2600WFnbkcaiwWq3xy/5haFJlshgnpjovMVJ+Hff49d8GEn0b87C5pDQ10g==", + "dev": true, "license": "ISC", "bin": { "semver": "bin/semver" @@ -26221,6 +26336,11 @@ "node": ">=6" } }, + "node_modules/pako": { + "version": "0.2.9", + "resolved": "https://registry.npmjs.org/pako/-/pako-0.2.9.tgz", + "integrity": "sha512-NUcwaKxUxWrZLpDG+z/xZaCgQITkA/Dv4V/T6bw7VON6l1Xz/VnrBqrYjZQ12TamKHzITTfOEIYUj48y2KXImA==" + }, "node_modules/parent-module": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/parent-module/-/parent-module-1.0.1.tgz", @@ -26233,6 +26353,15 @@ "node": ">=6" } }, + "node_modules/parse-css-color": { + "version": "0.2.1", + "resolved": "https://registry.npmjs.org/parse-css-color/-/parse-css-color-0.2.1.tgz", + "integrity": "sha512-bwS/GGIFV3b6KS4uwpzCFj4w297Yl3uqnSgIPsoQkx7GMLROXfMnWvxfNkL0oh8HVhZA4hvJoEoEIqonfJ3BWg==", + "dependencies": { + "color-name": "^1.1.4", + "hex-rgb": "^4.1.0" + } + }, "node_modules/parse-entities": { "version": "4.0.1", "resolved": "https://registry.npmjs.org/parse-entities/-/parse-entities-4.0.1.tgz", @@ -27779,6 +27908,31 @@ "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==", "license": "MIT" }, + "node_modules/satori": { + "version": "0.10.9", + "resolved": "https://registry.npmjs.org/satori/-/satori-0.10.9.tgz", + "integrity": "sha512-XU9EELUEZuioT4acLIpCXxHcFzrsC8muvg0MY28d+TlqwxbkTzBmWbw+3+hnCzXT7YZ0Qm8k3eXktDaEu+qmEw==", + "dependencies": { + "@shuding/opentype.js": "1.4.0-beta.0", + "css-background-parser": "^0.1.0", + "css-box-shadow": "1.0.0-3", + "css-to-react-native": "^3.0.0", + "emoji-regex": "^10.2.1", + "escape-html": "^1.0.3", + "linebreak": "^1.1.0", + "parse-css-color": "^0.2.1", + "postcss-value-parser": "^4.2.0", + "yoga-wasm-web": "^0.3.3" + }, + "engines": { + "node": ">=16" + } + }, + "node_modules/satori/node_modules/emoji-regex": { + "version": "10.4.0", + "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-10.4.0.tgz", + "integrity": "sha512-EC+0oUMY1Rqm4O6LLrgjtYDvcVYTy7chDnM4Q7030tP4Kwj3u/pR6gP9ygnp2CJMK5Gq+9Q2oqmrFJAz01DXjw==" + }, "node_modules/scheduler": { "version": "0.23.2", "resolved": "https://registry.npmjs.org/scheduler/-/scheduler-0.23.2.tgz", @@ -28082,6 +28236,7 @@ "version": "3.2.0", "resolved": "https://registry.npmjs.org/spdx-correct/-/spdx-correct-3.2.0.tgz", "integrity": "sha512-kN9dJbvnySHULIluDHy32WHRUu3Og7B9sbY7tsFLctQkIqnMh3hErYgdMjTYuqmcXX+lK5T1lnUt3G7zNswmZA==", + "dev": true, "license": "Apache-2.0", "dependencies": { "spdx-expression-parse": "^3.0.0", @@ -28092,12 +28247,14 @@ "version": "2.5.0", "resolved": "https://registry.npmjs.org/spdx-exceptions/-/spdx-exceptions-2.5.0.tgz", "integrity": "sha512-PiU42r+xO4UbUS1buo3LPJkjlO7430Xn5SVAhdpzzsPHsjbYVflnnFdATgabnLude+Cqu25p6N+g2lw/PFsa4w==", + "dev": true, "license": "CC-BY-3.0" }, "node_modules/spdx-expression-parse": { "version": "3.0.1", "resolved": "https://registry.npmjs.org/spdx-expression-parse/-/spdx-expression-parse-3.0.1.tgz", "integrity": "sha512-cbqHunsQWnJNE6KhVSMsMeH5H/L9EpymbzqTQ3uLwNCLZ1Q481oWaofqH7nO6V07xlXwY6PhQdQ2IedWx/ZK4Q==", + "dev": true, "license": "MIT", "dependencies": { "spdx-exceptions": "^2.1.0", @@ -28108,6 +28265,7 @@ "version": "3.0.20", "resolved": "https://registry.npmjs.org/spdx-license-ids/-/spdx-license-ids-3.0.20.tgz", "integrity": "sha512-jg25NiDV/1fLtSgEgyvVyDunvaNHbuwF9lfNV17gSmPFAlYzdfNBlLtLzXTevwkPj7DhGbmN9VnmJIgLnhvaBw==", + "dev": true, "license": "CC0-1.0" }, "node_modules/split-ca": { @@ -28256,6 +28414,11 @@ "url": "https://github.com/chalk/strip-ansi?sponsor=1" } }, + "node_modules/string.prototype.codepointat": { + "version": "0.2.1", + "resolved": "https://registry.npmjs.org/string.prototype.codepointat/-/string.prototype.codepointat-0.2.1.tgz", + "integrity": "sha512-2cBVCj6I4IOvEnjgO/hWqXjqBGsY+zwPmHl12Srk9IXSZ56Jwwmy+66XO5Iut/oQVR7t5ihYdLB0GMa4alEUcg==" + }, "node_modules/string.prototype.includes": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/string.prototype.includes/-/string.prototype.includes-2.0.1.tgz", @@ -28809,6 +28972,11 @@ "integrity": "sha512-oB7yIimd8SuGptespDAZnNkzIz+NWaJCu2RMsbs4Wmp9zSDUM8Nhi3s2OOcqYuv3mN4hitXc8DVx+LyUmbUDiA==", "license": "ISC" }, + "node_modules/tiny-inflate": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/tiny-inflate/-/tiny-inflate-1.0.3.tgz", + "integrity": "sha512-pkY1fj1cKHb2seWDy0B16HeWyczlJA9/WW3u3c4z/NiWDsO3DOU5D7nhTLE9CF0yXv/QZFY7sEJmj24dK+Rrqw==" + }, "node_modules/tinyexec": { "version": "0.3.1", "resolved": "https://registry.npmjs.org/tinyexec/-/tinyexec-0.3.1.tgz", @@ -29696,6 +29864,15 @@ "integrity": "sha512-ve2KP6f/JnbPBFyobGHuerC9g1FYGn/F8n1LWTwNxCEzd6IfqTwUQcNXgEtmmQ6DlRrC1hrSrBnCZPokRrDHjw==", "license": "MIT" }, + "node_modules/unicode-trie": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/unicode-trie/-/unicode-trie-2.0.0.tgz", + "integrity": "sha512-x7bc76x0bm4prf1VLg79uhAzKw8DVboClSN5VxJuQ+LKDOVEW9CdH+VY7SP+vX7xCYQqzzgQpFqz15zeLvAtZQ==", + "dependencies": { + "pako": "^0.2.5", + "tiny-inflate": "^1.0.0" + } + }, "node_modules/unified": { "version": "11.0.5", "resolved": "https://registry.npmjs.org/unified/-/unified-11.0.5.tgz", @@ -29943,6 +30120,7 @@ "version": "3.0.4", "resolved": "https://registry.npmjs.org/validate-npm-package-license/-/validate-npm-package-license-3.0.4.tgz", "integrity": "sha512-DpKm2Ui/xN7/HQKCtpZxoRWBhZ9Z0kqtygG8XCgNQ8ZlDnxuQmWhj566j8fN4Cu3/JmbhsDo7fcAJq4s9h27Ew==", + "dev": true, "license": "Apache-2.0", "dependencies": { "spdx-correct": "^3.0.0", @@ -30228,6 +30406,7 @@ "version": "4.0.2", "resolved": "https://registry.npmjs.org/write-file-atomic/-/write-file-atomic-4.0.2.tgz", "integrity": "sha512-7KxauUdBmSdWnmpaGFg+ppNjKF8uNLry8LyzjauQDOVONfFLNKrKvQOxZ/VuTIcS/gge/YNahf5RIIQWTSarlg==", + "dev": true, "license": "ISC", "dependencies": { "imurmurhash": "^0.1.4", @@ -30241,6 +30420,7 @@ "version": "3.0.7", "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.7.tgz", "integrity": "sha512-wnD2ZE+l+SPC/uoS0vXeE9L1+0wuaMqKlfz9AMUo38JsyLSBWSFcHR1Rri62LZc12vLr1gb3jl7iwQhgwpAbGQ==", + "dev": true, "license": "ISC" }, "node_modules/ws": { @@ -30380,6 +30560,11 @@ "url": "https://github.com/sponsors/sindresorhus" } }, + "node_modules/yoga-wasm-web": { + "version": "0.3.3", + "resolved": "https://registry.npmjs.org/yoga-wasm-web/-/yoga-wasm-web-0.3.3.tgz", + "integrity": "sha512-N+d4UJSJbt/R3wqY7Coqs5pcV0aUj2j9IaQ3rNj9bVCLld8tTGKRa2USARjnvZJWVx1NDmQev8EknoczaOQDOA==" + }, "node_modules/zod": { "version": "3.23.8", "resolved": "https://registry.npmjs.org/zod/-/zod-3.23.8.tgz", @@ -30688,7 +30873,7 @@ }, "packages/mesh-common": { "name": "@meshsdk/common", - "version": "1.7.12", + "version": "1.7.13", "license": "Apache-2.0", "dependencies": { "bech32": "^2.0.0", @@ -30705,12 +30890,12 @@ }, "packages/mesh-contract": { "name": "@meshsdk/contract", - "version": "1.7.12", + "version": "1.7.13", "license": "Apache-2.0", "dependencies": { - "@meshsdk/common": "1.7.12", - "@meshsdk/core": "1.7.12", - "@meshsdk/core-csl": "1.7.12" + "@meshsdk/common": "1.7.13", + "@meshsdk/core": "1.7.13", + "@meshsdk/core-csl": "1.7.13" }, "devDependencies": { "@meshsdk/configs": "*", @@ -30721,16 +30906,16 @@ }, "packages/mesh-core": { "name": "@meshsdk/core", - "version": "1.7.12", + "version": "1.7.13", "license": "Apache-2.0", "dependencies": { - "@meshsdk/common": "1.7.12", - "@meshsdk/core-csl": "1.7.12", - "@meshsdk/core-cst": "1.7.12", - "@meshsdk/provider": "1.7.12", - "@meshsdk/react": "1.7.12", - "@meshsdk/transaction": "1.7.12", - "@meshsdk/wallet": "1.7.12" + "@meshsdk/common": "1.7.13", + "@meshsdk/core-csl": "1.7.13", + "@meshsdk/core-cst": "1.7.13", + "@meshsdk/provider": "1.7.13", + "@meshsdk/react": "1.7.13", + "@meshsdk/transaction": "1.7.13", + "@meshsdk/wallet": "1.7.13" }, "devDependencies": { "@meshsdk/configs": "*", @@ -30741,12 +30926,12 @@ }, "packages/mesh-core-csl": { "name": "@meshsdk/core-csl", - "version": "1.7.12", + "version": "1.7.13", "license": "Apache-2.0", "dependencies": { - "@meshsdk/common": "1.7.12", - "@sidan-lab/sidan-csl-rs-browser": "0.9.4", - "@sidan-lab/sidan-csl-rs-nodejs": "0.9.4", + "@meshsdk/common": "1.7.13", + "@sidan-lab/sidan-csl-rs-browser": "0.9.5", + "@sidan-lab/sidan-csl-rs-nodejs": "0.9.5", "json-bigint": "^1.0.0" }, "devDependencies": { @@ -30760,7 +30945,7 @@ }, "packages/mesh-core-cst": { "name": "@meshsdk/core-cst", - "version": "1.7.12", + "version": "1.7.13", "license": "Apache-2.0", "dependencies": { "@cardano-sdk/core": "0.35.4", @@ -30769,7 +30954,7 @@ "@harmoniclabs/cbor": "1.3.0", "@harmoniclabs/plutus-data": "1.2.4", "@harmoniclabs/uplc": "1.2.4", - "@meshsdk/common": "1.7.12", + "@meshsdk/common": "1.7.13", "@stricahq/bip32ed25519": "^1.1.0", "@stricahq/cbors": "^1.0.0", "pbkdf2": "^3.1.2" @@ -30786,11 +30971,11 @@ }, "packages/mesh-provider": { "name": "@meshsdk/provider", - "version": "1.7.12", + "version": "1.7.13", "license": "Apache-2.0", "dependencies": { - "@meshsdk/common": "1.7.12", - "@meshsdk/core-cst": "1.7.12", + "@meshsdk/common": "1.7.13", + "@meshsdk/core-cst": "1.7.13", "@utxorpc/sdk": "0.6.2", "@utxorpc/spec": "0.10.1", "axios": "^1.7.2" @@ -30804,12 +30989,12 @@ }, "packages/mesh-react": { "name": "@meshsdk/react", - "version": "1.7.12", + "version": "1.7.13", "license": "Apache-2.0", "dependencies": { - "@meshsdk/common": "1.7.12", - "@meshsdk/transaction": "1.7.12", - "@meshsdk/wallet": "1.7.12", + "@meshsdk/common": "1.7.13", + "@meshsdk/transaction": "1.7.13", + "@meshsdk/wallet": "1.7.13", "react": "^18.2.0" }, "devDependencies": { @@ -30824,12 +31009,12 @@ }, "packages/mesh-transaction": { "name": "@meshsdk/transaction", - "version": "1.7.12", + "version": "1.7.13", "license": "Apache-2.0", "dependencies": { - "@meshsdk/common": "1.7.12", - "@meshsdk/core-csl": "1.7.12", - "@meshsdk/core-cst": "1.7.12", + "@meshsdk/common": "1.7.13", + "@meshsdk/core-csl": "1.7.13", + "@meshsdk/core-cst": "1.7.13", "json-bigint": "^1.0.0" }, "devDependencies": { @@ -30842,13 +31027,13 @@ }, "packages/mesh-wallet": { "name": "@meshsdk/wallet", - "version": "1.7.12", + "version": "1.7.13", "license": "Apache-2.0", "dependencies": { - "@meshsdk/common": "1.7.12", - "@meshsdk/core-csl": "1.7.12", - "@meshsdk/core-cst": "1.7.12", - "@meshsdk/transaction": "1.7.12", + "@meshsdk/common": "1.7.13", + "@meshsdk/core-csl": "1.7.13", + "@meshsdk/core-cst": "1.7.13", + "@meshsdk/transaction": "1.7.13", "@nufi/dapp-client-cardano": "0.3.5", "@nufi/dapp-client-core": "0.3.5" }, @@ -30862,7 +31047,7 @@ }, "scripts/mesh-cli": { "name": "meshjs", - "version": "1.7.12", + "version": "1.7.13", "license": "Apache-2.0", "dependencies": { "chalk": "5.3.0", From 2603a1e8e870dfe61f837cffd2c7e55a9916776e Mon Sep 17 00:00:00 2001 From: "Hong Jing (Jingles)" <jinglescode@gmail.com> Date: Mon, 11 Nov 2024 11:45:28 +0800 Subject: [PATCH 6/9] bump version --- packages/mesh-common/package.json | 2 +- packages/mesh-contract/package.json | 8 ++++---- packages/mesh-core-csl/package.json | 4 ++-- packages/mesh-core-cst/package.json | 4 ++-- packages/mesh-core/package.json | 16 ++++++++-------- packages/mesh-provider/package.json | 6 +++--- packages/mesh-react/package.json | 8 ++++---- packages/mesh-transaction/package.json | 8 ++++---- packages/mesh-wallet/package.json | 10 +++++----- scripts/mesh-cli/package.json | 2 +- 10 files changed, 34 insertions(+), 34 deletions(-) diff --git a/packages/mesh-common/package.json b/packages/mesh-common/package.json index 52fb1c9c7..b7e93b6ca 100644 --- a/packages/mesh-common/package.json +++ b/packages/mesh-common/package.json @@ -1,6 +1,6 @@ { "name": "@meshsdk/common", - "version": "1.7.13", + "version": "1.7.14", "description": "", "main": "./dist/index.cjs", "browser": "./dist/index.js", diff --git a/packages/mesh-contract/package.json b/packages/mesh-contract/package.json index a0471d11d..096197fc0 100644 --- a/packages/mesh-contract/package.json +++ b/packages/mesh-contract/package.json @@ -1,6 +1,6 @@ { "name": "@meshsdk/contract", - "version": "1.7.13", + "version": "1.7.14", "description": "", "main": "./dist/index.cjs", "browser": "./dist/index.js", @@ -34,9 +34,9 @@ "typescript": "^5.3.3" }, "dependencies": { - "@meshsdk/common": "1.7.13", - "@meshsdk/core": "1.7.13", - "@meshsdk/core-csl": "1.7.13" + "@meshsdk/common": "1.7.14", + "@meshsdk/core": "1.7.14", + "@meshsdk/core-csl": "1.7.14" }, "prettier": "@meshsdk/configs/prettier", "publishConfig": { diff --git a/packages/mesh-core-csl/package.json b/packages/mesh-core-csl/package.json index 68b8939e8..c76498f34 100644 --- a/packages/mesh-core-csl/package.json +++ b/packages/mesh-core-csl/package.json @@ -1,6 +1,6 @@ { "name": "@meshsdk/core-csl", - "version": "1.7.13", + "version": "1.7.14", "description": "", "main": "./dist/index.cjs", "module": "./dist/index.js", @@ -38,7 +38,7 @@ "typescript": "^5.3.3" }, "dependencies": { - "@meshsdk/common": "1.7.13", + "@meshsdk/common": "1.7.14", "@sidan-lab/sidan-csl-rs-browser": "0.9.5", "@sidan-lab/sidan-csl-rs-nodejs": "0.9.5", "json-bigint": "^1.0.0" diff --git a/packages/mesh-core-cst/package.json b/packages/mesh-core-cst/package.json index 71d450026..2246e1584 100644 --- a/packages/mesh-core-cst/package.json +++ b/packages/mesh-core-cst/package.json @@ -1,6 +1,6 @@ { "name": "@meshsdk/core-cst", - "version": "1.7.13", + "version": "1.7.14", "description": "", "main": "./dist/index.cjs", "browser": "./dist/index.js", @@ -42,7 +42,7 @@ "@harmoniclabs/cbor": "1.3.0", "@harmoniclabs/plutus-data": "1.2.4", "@harmoniclabs/uplc": "1.2.4", - "@meshsdk/common": "1.7.13", + "@meshsdk/common": "1.7.14", "@stricahq/bip32ed25519": "^1.1.0", "@stricahq/cbors": "^1.0.0", "pbkdf2": "^3.1.2" diff --git a/packages/mesh-core/package.json b/packages/mesh-core/package.json index f7e7c2066..ab423ee68 100644 --- a/packages/mesh-core/package.json +++ b/packages/mesh-core/package.json @@ -1,6 +1,6 @@ { "name": "@meshsdk/core", - "version": "1.7.13", + "version": "1.7.14", "description": "", "main": "./dist/index.cjs", "browser": "./dist/index.js", @@ -33,13 +33,13 @@ "typescript": "^5.3.3" }, "dependencies": { - "@meshsdk/common": "1.7.13", - "@meshsdk/core-csl": "1.7.13", - "@meshsdk/core-cst": "1.7.13", - "@meshsdk/provider": "1.7.13", - "@meshsdk/react": "1.7.13", - "@meshsdk/transaction": "1.7.13", - "@meshsdk/wallet": "1.7.13" + "@meshsdk/common": "1.7.14", + "@meshsdk/core-csl": "1.7.14", + "@meshsdk/core-cst": "1.7.14", + "@meshsdk/provider": "1.7.14", + "@meshsdk/react": "1.7.14", + "@meshsdk/transaction": "1.7.14", + "@meshsdk/wallet": "1.7.14" }, "prettier": "@meshsdk/configs/prettier", "publishConfig": { diff --git a/packages/mesh-provider/package.json b/packages/mesh-provider/package.json index 9b3273020..1b37f518d 100644 --- a/packages/mesh-provider/package.json +++ b/packages/mesh-provider/package.json @@ -1,6 +1,6 @@ { "name": "@meshsdk/provider", - "version": "1.7.13", + "version": "1.7.14", "description": "", "main": "./dist/index.cjs", "browser": "./dist/index.js", @@ -34,8 +34,8 @@ "typescript": "^5.3.3" }, "dependencies": { - "@meshsdk/common": "1.7.13", - "@meshsdk/core-cst": "1.7.13", + "@meshsdk/common": "1.7.14", + "@meshsdk/core-cst": "1.7.14", "@utxorpc/sdk": "0.6.2", "@utxorpc/spec": "0.10.1", "axios": "^1.7.2" diff --git a/packages/mesh-react/package.json b/packages/mesh-react/package.json index 5c2278cc8..1e8d5e5be 100644 --- a/packages/mesh-react/package.json +++ b/packages/mesh-react/package.json @@ -1,6 +1,6 @@ { "name": "@meshsdk/react", - "version": "1.7.13", + "version": "1.7.14", "description": "", "main": "./dist/index.cjs", "browser": "./dist/index.js", @@ -30,9 +30,9 @@ }, "dependencies": { "react": "^18.2.0", - "@meshsdk/common": "1.7.13", - "@meshsdk/transaction": "1.7.13", - "@meshsdk/wallet": "1.7.13" + "@meshsdk/common": "1.7.14", + "@meshsdk/transaction": "1.7.14", + "@meshsdk/wallet": "1.7.14" }, "devDependencies": { "@meshsdk/configs": "*", diff --git a/packages/mesh-transaction/package.json b/packages/mesh-transaction/package.json index 2ffedecaa..77dfc0383 100644 --- a/packages/mesh-transaction/package.json +++ b/packages/mesh-transaction/package.json @@ -1,6 +1,6 @@ { "name": "@meshsdk/transaction", - "version": "1.7.13", + "version": "1.7.14", "description": "", "main": "./dist/index.cjs", "browser": "./dist/index.js", @@ -35,9 +35,9 @@ "typescript": "^5.3.3" }, "dependencies": { - "@meshsdk/common": "1.7.13", - "@meshsdk/core-csl": "1.7.13", - "@meshsdk/core-cst": "1.7.13", + "@meshsdk/common": "1.7.14", + "@meshsdk/core-csl": "1.7.14", + "@meshsdk/core-cst": "1.7.14", "json-bigint": "^1.0.0" }, "prettier": "@meshsdk/configs/prettier", diff --git a/packages/mesh-wallet/package.json b/packages/mesh-wallet/package.json index 12c70b344..a2cf32bed 100644 --- a/packages/mesh-wallet/package.json +++ b/packages/mesh-wallet/package.json @@ -1,6 +1,6 @@ { "name": "@meshsdk/wallet", - "version": "1.7.13", + "version": "1.7.14", "description": "", "main": "./dist/index.cjs", "browser": "./dist/index.js", @@ -35,10 +35,10 @@ "typescript": "^5.3.3" }, "dependencies": { - "@meshsdk/common": "1.7.13", - "@meshsdk/core-csl": "1.7.13", - "@meshsdk/core-cst": "1.7.13", - "@meshsdk/transaction": "1.7.13", + "@meshsdk/common": "1.7.14", + "@meshsdk/core-csl": "1.7.14", + "@meshsdk/core-cst": "1.7.14", + "@meshsdk/transaction": "1.7.14", "@nufi/dapp-client-cardano": "0.3.5", "@nufi/dapp-client-core": "0.3.5" }, diff --git a/scripts/mesh-cli/package.json b/scripts/mesh-cli/package.json index f436ef1f7..c454d83b6 100644 --- a/scripts/mesh-cli/package.json +++ b/scripts/mesh-cli/package.json @@ -3,7 +3,7 @@ "description": "A quick and easy way to bootstrap your dApps on Cardano using Mesh.", "homepage": "https://meshjs.dev", "author": "MeshJS", - "version": "1.7.13", + "version": "1.7.14", "license": "Apache-2.0", "type": "module", "main": "./dist/index.cjs", From 94edf4d3d7d63e5261b5d4f297760d3eb261aa58 Mon Sep 17 00:00:00 2001 From: "Hong Jing (Jingles)" <jinglescode@gmail.com> Date: Mon, 11 Nov 2024 12:22:46 +0800 Subject: [PATCH 7/9] attempt to improve og --- .../src/components/site/metatags.tsx | 38 ++++++++++++------- apps/playground/src/pages/api/og.tsx | 2 +- 2 files changed, 26 insertions(+), 14 deletions(-) diff --git a/apps/playground/src/components/site/metatags.tsx b/apps/playground/src/components/site/metatags.tsx index 86e302c7e..1c806c1d9 100644 --- a/apps/playground/src/components/site/metatags.tsx +++ b/apps/playground/src/components/site/metatags.tsx @@ -4,12 +4,10 @@ export default function Metatags({ title, keywords, description, - image, }: { title?: string; keywords?: string; description?: string; - image?: string; }) { if (description === undefined) { description = @@ -19,49 +17,63 @@ export default function Metatags({ keywords = "developer, tools, cardano, blockchain, sdk, plutus, crypto, web3, metaverse, gaming, ecommerce, nfts, apis, aiken"; } + + let _title = title; if (title === undefined) { - title = "Cardano Web3 TypeScript SDK & off-chain Framework"; + _title = "Mesh JS - Cardano Web3 TypeScript SDK & Off-Chain Framework"; + } else { + title = title + " - Mesh JS"; } - title = title + " - Mesh JS"; - return ( <Head> <meta name="viewport" content="width=device-width, initial-scale=1" /> <meta charSet="utf-8" /> - <title>{title} + {title ? title : _title} - - + + - {image ? ( + {/* {image ? ( ) : ( + )} */} + {title && ( + )} - + - + - {image ? ( + {/* {image ? ( ) : ( + )} */} + {title && ( + )} - + Date: Mon, 11 Nov 2024 12:27:53 +0800 Subject: [PATCH 8/9] fix build error --- .../src/components/site/metatags.tsx | 26 +++++++------------ 1 file changed, 9 insertions(+), 17 deletions(-) diff --git a/apps/playground/src/components/site/metatags.tsx b/apps/playground/src/components/site/metatags.tsx index 1c806c1d9..9bfb2de36 100644 --- a/apps/playground/src/components/site/metatags.tsx +++ b/apps/playground/src/components/site/metatags.tsx @@ -4,10 +4,12 @@ export default function Metatags({ title, keywords, description, + image, }: { title?: string; keywords?: string; description?: string; + image?: string; }) { if (description === undefined) { description = @@ -38,15 +40,10 @@ export default function Metatags({ - {/* {image ? ( + {image && ( - ) : ( - - )} */} - {title && ( + )} + {title && image === undefined && ( - {/* {image ? ( - - ) : ( - - )} */} - {title && ( + {image && ( + + )} + {title && image === undefined && ( Date: Mon, 11 Nov 2024 13:33:57 +0800 Subject: [PATCH 9/9] attempt fix og title --- .../src/components/site/metatags.tsx | 16 ++-- apps/playground/src/pages/_app.tsx | 2 - apps/playground/src/pages/about/index.tsx | 2 + apps/playground/src/pages/home/index.tsx | 85 ++++++++++--------- packages/mesh-provider/src/blockfrost.ts | 10 --- 5 files changed, 56 insertions(+), 59 deletions(-) diff --git a/apps/playground/src/components/site/metatags.tsx b/apps/playground/src/components/site/metatags.tsx index 9bfb2de36..c5270fe8d 100644 --- a/apps/playground/src/components/site/metatags.tsx +++ b/apps/playground/src/components/site/metatags.tsx @@ -15,14 +15,14 @@ export default function Metatags({ description = "Intuitive and easy-to-use Web3 development framework to build amazing applications on Cardano."; } + if (keywords === undefined) { keywords = "developer, tools, cardano, blockchain, sdk, plutus, crypto, web3, metaverse, gaming, ecommerce, nfts, apis, aiken"; } - let _title = title; if (title === undefined) { - _title = "Mesh JS - Cardano Web3 TypeScript SDK & Off-Chain Framework"; + title = "Mesh JS - Cardano Web3 TypeScript SDK & Off-Chain Framework"; } else { title = title + " - Mesh JS"; } @@ -32,12 +32,12 @@ export default function Metatags({ - {title ? title : _title} + {title && {title}} - - + {title && } + {title && } {image && ( @@ -49,11 +49,11 @@ export default function Metatags({ content={`https://meshjs.dev/api/og?title=${title}`} /> )} - + {title && } - + {title && } {image && ( @@ -65,7 +65,7 @@ export default function Metatags({ content={`https://meshjs.dev/api/og?title=${title}`} /> )} - + {title && } -
diff --git a/apps/playground/src/pages/about/index.tsx b/apps/playground/src/pages/about/index.tsx index 580c41c88..c0d2c690c 100644 --- a/apps/playground/src/pages/about/index.tsx +++ b/apps/playground/src/pages/about/index.tsx @@ -1,3 +1,4 @@ +import Metatags from "~/components/site/metatags"; import AboutHero from "./about-us/hero"; import AboutIncorporation from "./about-us/incorporation"; import AboutMeeting from "./about-us/meeting"; @@ -8,6 +9,7 @@ import AboutWhatWorkingOn from "./about-us/what-working-on"; export default function AboutPage() { return ( <> + diff --git a/apps/playground/src/pages/home/index.tsx b/apps/playground/src/pages/home/index.tsx index 9628ba660..826378b21 100644 --- a/apps/playground/src/pages/home/index.tsx +++ b/apps/playground/src/pages/home/index.tsx @@ -3,6 +3,7 @@ import { DocumentCheckIcon } from "@heroicons/react/24/solid"; import Link from "~/components/link"; import HeroTwoSections from "~/components/sections/hero-two-sections"; +import Metatags from "~/components/site/metatags"; export default function HomePage() { const [isSSR, setIsSSR] = useState(true); @@ -11,44 +12,50 @@ export default function HomePage() { }, []); return ( -
- - {!isSSR ? ( - - ) : ( - <> - mockup - mockup dark - - )} -
- } - children={ - - Catalyst Proposals - - - } - /> -
+ <> + +
+ + {!isSSR ? ( + + ) : ( + <> + mockup + mockup dark + + )} +
+ } + children={ + + Catalyst Proposals + + + } + /> + + ); } diff --git a/packages/mesh-provider/src/blockfrost.ts b/packages/mesh-provider/src/blockfrost.ts index 15f50ab81..2a662109a 100644 --- a/packages/mesh-provider/src/blockfrost.ts +++ b/packages/mesh-provider/src/blockfrost.ts @@ -473,16 +473,6 @@ export class BlockfrostProvider } } - async fetchUTxO(hash: string, index?: number): Promise { - try { - const utxos = await this.fetchUTxOs(hash); - const utxo = utxos.find((utxo) => utxo.input.outputIndex === index); - return utxo; - } catch (error) { - throw parseHttpError(error); - } - } - async fetchUTxOs(hash: string, index?: number): Promise { try { const { data, status } = await this._axiosInstance.get(