diff --git a/README.md b/README.md index 5fd9b28a..9ff9d153 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@
-![Mesh Logo](https://meshjs.dev/logos/mesh.png) +![Mesh Logo](https://meshjs.dev/logo-mesh/mesh.png)

Mesh SDK

diff --git a/apps/docs/.eslintrc.js b/apps/docs/.eslintrc.js new file mode 100644 index 00000000..04cdb907 --- /dev/null +++ b/apps/docs/.eslintrc.js @@ -0,0 +1,9 @@ +/** @type {import("eslint").Linter.Config} */ +module.exports = { + root: true, + extends: ["@meshsdk/configs/eslint/next.js"], + parser: "@typescript-eslint/parser", + parserOptions: { + project: true, + }, +}; diff --git a/apps/docs/.eslintrc.json b/apps/docs/.eslintrc.json deleted file mode 100644 index bffb357a..00000000 --- a/apps/docs/.eslintrc.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "next/core-web-vitals" -} diff --git a/apps/docs/next.config.mjs b/apps/docs/next.config.mjs index 8a4630cb..7c1e5db2 100644 --- a/apps/docs/next.config.mjs +++ b/apps/docs/next.config.mjs @@ -3,10 +3,10 @@ const nextConfig = { images: { remotePatterns: [ { - protocol: 'https', - hostname: 'meshjs.dev', - port: '', - pathname: '/**', + protocol: "https", + hostname: "meshjs.dev", + port: "", + pathname: "/**", }, ], }, @@ -14,6 +14,9 @@ const nextConfig = { config.resolve.fallback = { fs: false }; return config; }, + typescript: { + ignoreBuildErrors: true, + }, }; export default nextConfig; diff --git a/apps/docs/package.json b/apps/docs/package.json index c0a400dc..151d009a 100644 --- a/apps/docs/package.json +++ b/apps/docs/package.json @@ -1,5 +1,5 @@ { - "name": "@meshsdk/docs", + "name": "docs", "version": "0.1.0", "private": true, "scripts": { @@ -27,13 +27,15 @@ "simple-functional-loader": "1.2.1", "unist-util-filter": "5.0.1", "unist-util-visit": "5.0.0", - "uuid": "10.0.0", + "uuid": "^10.0.0", "zustand": "4.5.2" }, "devDependencies": { + "@meshsdk/configs": "*", "@types/node": "20.14.2", "@types/react": "18.3.3", "@types/react-dom": "18.3.0", + "@types/uuid": "^10.0.0", "autoprefixer": "10.4.19", "postcss": "8.4.38", "tailwindcss": "3.4.4", diff --git a/apps/docs/src/app/[package]/classes/[name]/page.tsx b/apps/docs/src/app/[package]/classes/[name]/page.tsx index bf723f92..5c81db57 100644 --- a/apps/docs/src/app/[package]/classes/[name]/page.tsx +++ b/apps/docs/src/app/[package]/classes/[name]/page.tsx @@ -23,7 +23,7 @@ export default function Page({ params }: { params: { name: string } }) { - {meshGroup.map((group, i) => { + {meshGroup.map((group: any) => { return ; })} diff --git a/apps/docs/src/components/Code.tsx b/apps/docs/src/components/Code.tsx index 5cd59f66..3a5535c1 100644 --- a/apps/docs/src/components/Code.tsx +++ b/apps/docs/src/components/Code.tsx @@ -285,7 +285,7 @@ function useTabGroupProps(availableLanguages: Array) { let activeLanguage = [...availableLanguages].sort( (a, z) => preferredLanguages.indexOf(z) - preferredLanguages.indexOf(a) )[0]; - let languageIndex = availableLanguages.indexOf(activeLanguage); + let languageIndex = availableLanguages.indexOf(activeLanguage!); let newSelectedIndex = languageIndex === -1 ? selectedIndex : languageIndex; if (newSelectedIndex !== selectedIndex) { setSelectedIndex(newSelectedIndex); @@ -299,7 +299,7 @@ function useTabGroupProps(availableLanguages: Array) { selectedIndex, onChange: (newSelectedIndex: number) => { preventLayoutShift(() => - addPreferredLanguage(availableLanguages[newSelectedIndex]) + addPreferredLanguage(availableLanguages[newSelectedIndex]!) ); }, }; diff --git a/apps/docs/src/components/SectionProvider.tsx b/apps/docs/src/components/SectionProvider.tsx index 1da9634e..e3417d3e 100644 --- a/apps/docs/src/components/SectionProvider.tsx +++ b/apps/docs/src/components/SectionProvider.tsx @@ -76,7 +76,7 @@ function useVisibleSections(sectionStore: StoreApi) { sectionIndex < sections.length; sectionIndex++ ) { - let { id, headingRef, offsetRem = 0 } = sections[sectionIndex] + let { id, headingRef, offsetRem = 0 } = sections[sectionIndex]! if (!headingRef?.current) { continue diff --git a/apps/docs/tsconfig.json b/apps/docs/tsconfig.json index d92effdd..51401540 100644 --- a/apps/docs/tsconfig.json +++ b/apps/docs/tsconfig.json @@ -1,28 +1,16 @@ { + "extends": "@meshsdk/configs/typescript/nextjs.json", "compilerOptions": { - "lib": ["dom", "dom.iterable", "esnext"], - "allowJs": true, - "skipLibCheck": true, - "strict": true, - "noEmit": true, - "esModuleInterop": true, - "module": "esnext", - "moduleResolution": "bundler", - "resolveJsonModule": true, - "isolatedModules": true, - "jsx": "preserve", - "incremental": true, - "plugins": [ - { - "name": "next" - } - ], "paths": { "@/*": ["./src/*"] - }, - "noImplicitAny": false, - "strictNullChecks": false, + } }, - "include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", ".next/types/**/*.ts"], + "include": [ + "next-env.d.ts", + "next.config.js", + "**/*.ts", + "**/*.tsx", + ".next/types/**/*.ts" + ], "exclude": ["node_modules"] } diff --git a/apps/playground/package.json b/apps/playground/package.json index cfb70d27..2d7a48ba 100644 --- a/apps/playground/package.json +++ b/apps/playground/package.json @@ -1,5 +1,5 @@ { - "name": "@meshsdk/playground", + "name": "playground", "version": "1.0.0", "private": true, "scripts": { diff --git a/apps/playground/public/logos/black/logo-mesh-black-128x128.png b/apps/playground/public/logo-mesh/black/logo-mesh-black-128x128.png similarity index 100% rename from apps/playground/public/logos/black/logo-mesh-black-128x128.png rename to apps/playground/public/logo-mesh/black/logo-mesh-black-128x128.png diff --git a/apps/playground/public/logos/black/logo-mesh-black-16x16.png b/apps/playground/public/logo-mesh/black/logo-mesh-black-16x16.png similarity index 100% rename from apps/playground/public/logos/black/logo-mesh-black-16x16.png rename to apps/playground/public/logo-mesh/black/logo-mesh-black-16x16.png diff --git a/apps/playground/public/logos/black/logo-mesh-black-256x256.png b/apps/playground/public/logo-mesh/black/logo-mesh-black-256x256.png similarity index 100% rename from apps/playground/public/logos/black/logo-mesh-black-256x256.png rename to apps/playground/public/logo-mesh/black/logo-mesh-black-256x256.png diff --git a/apps/playground/public/logos/black/logo-mesh-black-300x300.png b/apps/playground/public/logo-mesh/black/logo-mesh-black-300x300.png similarity index 100% rename from apps/playground/public/logos/black/logo-mesh-black-300x300.png rename to apps/playground/public/logo-mesh/black/logo-mesh-black-300x300.png diff --git a/apps/playground/public/logos/black/logo-mesh-black-32x32.png b/apps/playground/public/logo-mesh/black/logo-mesh-black-32x32.png similarity index 100% rename from apps/playground/public/logos/black/logo-mesh-black-32x32.png rename to apps/playground/public/logo-mesh/black/logo-mesh-black-32x32.png diff --git a/apps/playground/public/logos/black/logo-mesh-black-512x512.png b/apps/playground/public/logo-mesh/black/logo-mesh-black-512x512.png similarity index 100% rename from apps/playground/public/logos/black/logo-mesh-black-512x512.png rename to apps/playground/public/logo-mesh/black/logo-mesh-black-512x512.png diff --git a/apps/playground/public/logos/black/logo-mesh-black-64x64.png b/apps/playground/public/logo-mesh/black/logo-mesh-black-64x64.png similarity index 100% rename from apps/playground/public/logos/black/logo-mesh-black-64x64.png rename to apps/playground/public/logo-mesh/black/logo-mesh-black-64x64.png diff --git a/apps/playground/public/logos/logo-mesh-vector.svg b/apps/playground/public/logo-mesh/black/logo-mesh-vector.svg similarity index 100% rename from apps/playground/public/logos/logo-mesh-vector.svg rename to apps/playground/public/logo-mesh/black/logo-mesh-vector.svg diff --git a/apps/playground/public/logos/mesh.png b/apps/playground/public/logo-mesh/mesh.png similarity index 100% rename from apps/playground/public/logos/mesh.png rename to apps/playground/public/logo-mesh/mesh.png diff --git a/apps/playground/public/logo-mesh/white/logo-mesh-vector.svg b/apps/playground/public/logo-mesh/white/logo-mesh-vector.svg new file mode 100644 index 00000000..8394def8 --- /dev/null +++ b/apps/playground/public/logo-mesh/white/logo-mesh-vector.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/apps/playground/public/logos/white/logo-mesh-white-128x128.png b/apps/playground/public/logo-mesh/white/logo-mesh-white-128x128.png similarity index 100% rename from apps/playground/public/logos/white/logo-mesh-white-128x128.png rename to apps/playground/public/logo-mesh/white/logo-mesh-white-128x128.png diff --git a/apps/playground/public/logos/white/logo-mesh-white-16x16.png b/apps/playground/public/logo-mesh/white/logo-mesh-white-16x16.png similarity index 100% rename from apps/playground/public/logos/white/logo-mesh-white-16x16.png rename to apps/playground/public/logo-mesh/white/logo-mesh-white-16x16.png diff --git a/apps/playground/public/logos/white/logo-mesh-white-256x256.png b/apps/playground/public/logo-mesh/white/logo-mesh-white-256x256.png similarity index 100% rename from apps/playground/public/logos/white/logo-mesh-white-256x256.png rename to apps/playground/public/logo-mesh/white/logo-mesh-white-256x256.png diff --git a/apps/playground/public/logos/white/logo-mesh-white-300x300.png b/apps/playground/public/logo-mesh/white/logo-mesh-white-300x300.png similarity index 100% rename from apps/playground/public/logos/white/logo-mesh-white-300x300.png rename to apps/playground/public/logo-mesh/white/logo-mesh-white-300x300.png diff --git a/apps/playground/public/logos/white/logo-mesh-white-32x32.png b/apps/playground/public/logo-mesh/white/logo-mesh-white-32x32.png similarity index 100% rename from apps/playground/public/logos/white/logo-mesh-white-32x32.png rename to apps/playground/public/logo-mesh/white/logo-mesh-white-32x32.png diff --git a/apps/playground/public/logos/white/logo-mesh-white-512x512.png b/apps/playground/public/logo-mesh/white/logo-mesh-white-512x512.png similarity index 100% rename from apps/playground/public/logos/white/logo-mesh-white-512x512.png rename to apps/playground/public/logo-mesh/white/logo-mesh-white-512x512.png diff --git a/apps/playground/public/logos/white/logo-mesh-white-64x64.png b/apps/playground/public/logo-mesh/white/logo-mesh-white-64x64.png similarity index 100% rename from apps/playground/public/logos/white/logo-mesh-white-64x64.png rename to apps/playground/public/logo-mesh/white/logo-mesh-white-64x64.png diff --git a/apps/playground/public/team/abdelkrim.png b/apps/playground/public/team/abdelkrim.png new file mode 100644 index 00000000..496f8a04 Binary files /dev/null and b/apps/playground/public/team/abdelkrim.png differ diff --git a/apps/playground/public/team/felix.png b/apps/playground/public/team/felix.png new file mode 100644 index 00000000..52f4f3ec Binary files /dev/null and b/apps/playground/public/team/felix.png differ diff --git a/apps/playground/public/team/hinson.png b/apps/playground/public/team/hinson.png new file mode 100644 index 00000000..b715e8b0 Binary files /dev/null and b/apps/playground/public/team/hinson.png differ diff --git a/apps/playground/public/team/jingles.png b/apps/playground/public/team/jingles.png new file mode 100644 index 00000000..c5d509e0 Binary files /dev/null and b/apps/playground/public/team/jingles.png differ diff --git a/apps/playground/public/team/tszwai.png b/apps/playground/public/team/tszwai.png new file mode 100644 index 00000000..f1403953 Binary files /dev/null and b/apps/playground/public/team/tszwai.png differ diff --git a/apps/playground/src/components/card/card-title-desc-image.tsx b/apps/playground/src/components/card/card-title-desc-image.tsx index cf0ffe1f..8bf1e2c5 100644 --- a/apps/playground/src/components/card/card-title-desc-image.tsx +++ b/apps/playground/src/components/card/card-title-desc-image.tsx @@ -32,7 +32,7 @@ export default function CardTitleDescImage({
{title}