diff --git a/components.json b/components.json new file mode 100644 index 000000000..a2672fe89 --- /dev/null +++ b/components.json @@ -0,0 +1,20 @@ +{ + "$schema": "https://ui.shadcn.com/schema.json", + "style": "default", + "rsc": false, + "tsx": true, + "tailwind": { + "config": "tailwind.config.js", + "css": "src/css/custom.scss", + "baseColor": "slate", + "cssVariables": true, + "prefix": "" + }, + "aliases": { + "components": "@/components", + "utils": "@/lib/utils", + "ui": "@/components/ui", + "examples": "@/components/examples", + "blocks": "@/components/blocks" + } +} \ No newline at end of file diff --git a/i18n/zh/code.json b/i18n/zh/code.json index 3965edec2..0a9dd01c0 100644 --- a/i18n/zh/code.json +++ b/i18n/zh/code.json @@ -425,6 +425,9 @@ "Rich Features": { "message": "丰富的特性" }, + "Rich Features and Fully Pluggable": { + "message": "丰富的特性和完全可插拔" + }, "Fully Pluggable": { "message": "完全可插拔" }, @@ -482,6 +485,9 @@ "Everything inside Farm is powered by plugins, Supports both Rust and JavaScript plugins. Support Vite plugins out of box.": { "message": "Farm 由插件驱动, 通过创建插件来实现任何您想要的功能, 同时支持 Rust 和 JavaScript 两种插件模式, 开箱即用支持 Vite 插件。" }, + "Farm supports compiling HTML, CSS, CSS Modules, Js/Jsx/Ts/Tsx, JSON, Static Assets out of the box, supports Sass, Less, PostCSS, Vue, React, Solid by way of official plugins, supports lazy compiling, partial bundling and more. Everything inside Farm is powered by plugins, Supports both Rust and JavaScript plugins. Support Vite plugins out of box.": { + "message": "丰富的编译能力支持: 开箱即用, Farm 内置了 Js/Ts/Jsx/Tsx、Css/Css Modules/Sass/Less、HTML 和静态资源,可以通过官方插件支持 sass、less、postcss、react、vue、solid 等常用技术栈,支持懒编译、局部打包等海量特性。并且 Farm 由插件驱动, 通过创建插件来实现任何您想要的功能, 同时支持 Rust 和 JavaScript 两种插件模式, 开箱即用支持 Vite 插件。" + }, "Partial Bundling: Bundle your project into a few reasonable bundles, speeding up resource loading without losing caching granularity.": { "message": "自动根据依赖关系、资源大小,将项目打包成若干个资源,提升资源加载性能的同时,保证缓存命中率。" }, diff --git a/nyxbui.json b/nyxbui.json new file mode 100644 index 000000000..35c2caf04 --- /dev/null +++ b/nyxbui.json @@ -0,0 +1,17 @@ +{ + "$schema": "https://nyxbui.design/schema.json", + "style": "default", + "rsc": false, + "tsx": true, + "tailwind": { + "config": "tailwind.config.js", + "css": "src/css/custom.scss", + "baseColor": "rose", + "cssVariables": true, + "prefix": "" + }, + "aliases": { + "components": "~/components", + "utils": "~/lib/utils" + } +} \ No newline at end of file diff --git a/package.json b/package.json index 915895f8f..a7a3d31fe 100644 --- a/package.json +++ b/package.json @@ -35,7 +35,9 @@ "@react-spring/web": "^9.7.3", "@react-three/drei": "7.16.3", "@react-three/fiber": "7.0.16", + "@tabler/icons-react": "^3.11.0", "autoprefixer": "^10.4.14", + "class-variance-authority": "^0.7.0", "docusaurus-plugin-sass": "^0.2.4", "leva": "^0.9.35", "lucide-react": "^0.394.0", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 20f966ff4..f4b748ee1 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -44,9 +44,15 @@ importers: '@react-three/fiber': specifier: 7.0.16 version: 7.0.16(react-dom@18.2.0(react@18.2.0))(react@18.2.0)(three@0.128.0) + '@tabler/icons-react': + specifier: ^3.11.0 + version: 3.11.0(react@18.2.0) autoprefixer: specifier: ^10.4.14 version: 10.4.14(postcss@8.4.24) + class-variance-authority: + specifier: ^0.7.0 + version: 0.7.0 docusaurus-plugin-sass: specifier: ^0.2.4 version: 0.2.4(@docusaurus/core@3.4.0(@docusaurus/types@3.4.0(@swc/core@1.3.101)(react-dom@18.2.0(react@18.2.0))(react@18.2.0))(@swc/core@1.3.101)(react-dom@18.2.0(react@18.2.0))(react@18.2.0)(typescript@4.9.5))(sass@1.63.6)(webpack@5.88.2(@swc/core@1.3.101)) @@ -1557,24 +1563,28 @@ packages: engines: {node: '>=10'} cpu: [arm64] os: [linux] + libc: [glibc] '@swc/core-linux-arm64-musl@1.3.101': resolution: {integrity: sha512-OGjYG3H4BMOTnJWJyBIovCez6KiHF30zMIu4+lGJTCrxRI2fAjGLml3PEXj8tC3FMcud7U2WUn6TdG0/te2k6g==} engines: {node: '>=10'} cpu: [arm64] os: [linux] + libc: [musl] '@swc/core-linux-x64-gnu@1.3.101': resolution: {integrity: sha512-/kBMcoF12PRO/lwa8Z7w4YyiKDcXQEiLvM+S3G9EvkoKYGgkkz4Q6PSNhF5rwg/E3+Hq5/9D2R+6nrkF287ihg==} engines: {node: '>=10'} cpu: [x64] os: [linux] + libc: [glibc] '@swc/core-linux-x64-musl@1.3.101': resolution: {integrity: sha512-kDN8lm4Eew0u1p+h1l3JzoeGgZPQ05qDE0czngnjmfpsH2sOZxVj1hdiCwS5lArpy7ktaLu5JdRnx70MkUzhXw==} engines: {node: '>=10'} cpu: [x64] os: [linux] + libc: [musl] '@swc/core-win32-arm64-msvc@1.3.101': resolution: {integrity: sha512-9Wn8TTLWwJKw63K/S+jjrZb9yoJfJwCE2RV5vPCCWmlMf3U1AXj5XuWOLUX+Rp2sGKau7wZKsvywhheWm+qndQ==} @@ -1613,6 +1623,14 @@ packages: resolution: {integrity: sha512-+PmQX0PiAYPMeVYe237LJAYvOMYW1j2rH5YROyS3b4CTVJum34HfRvKvAzozHAQG0TnHNdUfY9nCeUyRAs//cw==} engines: {node: '>=14.16'} + '@tabler/icons-react@3.11.0': + resolution: {integrity: sha512-xHNBi9mns1slvqos+7LkP3ube4CjWrANMbxMaorzwzO9J/+y1sAEG/sN8CV8FmtpYW/9/gDR+OWCjjLLg0RmAw==} + peerDependencies: + react: '>= 16' + + '@tabler/icons@3.11.0': + resolution: {integrity: sha512-/vZinJNvCYhdAB+RUsyCpanSPuOEKHHIZi4Uu0Bw7ilewHnQhCWUPrT704uHCRli2ROl7spADPmWzAqOganA5A==} + '@trysound/sax@0.2.0': resolution: {integrity: sha512-L7z9BgrNEcYyUYtF+HaEfiS5ebkh9jXqbszz7pC0hRBPaatV0XjSD3+eHrpqFemQfgwiFF0QPIarnIihIDn7OA==} engines: {node: '>=10.13.0'} @@ -2211,6 +2229,9 @@ packages: resolution: {integrity: sha512-eXTggHWSooYhq49F2opQhuHWgzucfF2YgODK4e1566GQs5BIfP30B0oenwBJHfWxAs2fyPB1s7Mg949zLf61Yw==} engines: {node: '>=8'} + class-variance-authority@0.7.0: + resolution: {integrity: sha512-jFI8IQw4hczaL4ALINxqLEXQbWcNjoSkloa4IaufXCJr6QawJyw7tuRysRsrE8w2p/4gGaxKIt/hX3qz/IbD1A==} + clean-css@5.3.2: resolution: {integrity: sha512-JVJbM+f3d3Q704rF4bqQ5UUyTtuJ0JRKNbTKVEeujCCBoMdkEi+V+e8oktO9qGQNSvHrFTM6JZRXrUvGR1czww==} engines: {node: '>= 10.0'} @@ -7897,6 +7918,13 @@ snapshots: dependencies: defer-to-connect: 2.0.1 + '@tabler/icons-react@3.11.0(react@18.2.0)': + dependencies: + '@tabler/icons': 3.11.0 + react: 18.2.0 + + '@tabler/icons@3.11.0': {} + '@trysound/sax@0.2.0': {} '@tsconfig/node10@1.0.9': {} @@ -8599,6 +8627,10 @@ snapshots: ci-info@3.8.0: {} + class-variance-authority@0.7.0: + dependencies: + clsx: 2.0.0 + clean-css@5.3.2: dependencies: source-map: 0.6.1 diff --git a/src/components/Benchmark/index.tsx b/src/components/Benchmark/index.tsx index 15348ae4b..04dec9727 100644 --- a/src/components/Benchmark/index.tsx +++ b/src/components/Benchmark/index.tsx @@ -199,7 +199,7 @@ export default function Benchmark() { ))} -
= ({ )} > {children} -
++
+