From de8eb42f0f11be7e76cd9b3ce0ad16766b93921a Mon Sep 17 00:00:00 2001 From: Kurisu Date: Tue, 16 Apr 2024 15:32:07 +0800 Subject: [PATCH] 🐱 feat(*): 更新组件库版本 --- package.json | 2 +- pnpm-lock.yaml | 10 ++++------ src/routes/demo/page.tsx | 3 ++- src/routes/index.css | 115 ------------------------------------------------------------------------------------------------------------------- src/routes/page.tsx | 50 ++++---------------------------------------------- 5 files changed, 11 insertions(+), 169 deletions(-) delete mode 100644 src/routes/index.css diff --git a/package.json b/package.json index e92d67b..6c818d0 100644 --- a/package.json +++ b/package.json @@ -23,7 +23,7 @@ "dist/" ], "dependencies": { - "@feewee/h5app-common": "^0.1.5", + "@feewee/h5app-common": "^0.1.7", "@modern-js/plugin-tailwindcss": "2.48.5", "@modern-js/runtime": "2.48.5", "ahooks": "^3.7.11", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index a0c7cdc..8955e08 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -6,8 +6,8 @@ settings: dependencies: '@feewee/h5app-common': - specifier: ^0.1.5 - version: 0.1.5(react-dom@18.2.0)(react@18.2.0)(tailwindcss@3.4.3) + specifier: ^0.1.7 + version: 0.1.7(react-dom@18.2.0)(react@18.2.0) '@modern-js/plugin-tailwindcss': specifier: 2.48.5 version: 2.48.5(@modern-js/runtime@2.48.5)(tailwindcss@3.4.3) @@ -1829,20 +1829,18 @@ packages: - supports-color dev: true - /@feewee/h5app-common@0.1.5(react-dom@18.2.0)(react@18.2.0)(tailwindcss@3.4.3): - resolution: {integrity: sha512-x2ow9qBrPZcQfFKI83XHD1vIOsPNcn6vzqb6t2DrDNVUCsnzufpk+a1BNSLVgCndHxhfCt2QHpPfwb5gXnMteg==} + /@feewee/h5app-common@0.1.7(react-dom@18.2.0)(react@18.2.0): + resolution: {integrity: sha512-GCah1XFT46nePzysKdAOGHAmG7Z2k8w5ZICBnbqofceBODeUGXjDKCaziOqVHEWQH4ZUyrfUCtagvRdfY4z8Sw==} engines: {node: '>=18', npm: '>=6.9.0'} peerDependencies: react: '>=18' react-dom: '>=18' - tailwindcss: ~3.3.3 dependencies: '@nutui/icons-react': 1.0.4 '@nutui/nutui-react': 2.6.0(react-dom@18.2.0)(react@18.2.0) clsx: 2.1.0 react: 18.2.0 react-dom: 18.2.0(react@18.2.0) - tailwindcss: 3.4.3 dev: false /@humanwhocodes/config-array@0.11.14: diff --git a/src/routes/demo/page.tsx b/src/routes/demo/page.tsx index 86a7288..c35f612 100644 --- a/src/routes/demo/page.tsx +++ b/src/routes/demo/page.tsx @@ -1,5 +1,5 @@ import { Helmet } from '@modern-js/runtime/head'; -import { ListRow } from '@feewee/h5app-common'; +import { ListRow, Button } from '@feewee/h5app-common'; const Index = () => ( <> @@ -9,6 +9,7 @@ const Index = () => (
demo 页面
console.info('点击事件')} /> +
); diff --git a/src/routes/index.css b/src/routes/index.css deleted file mode 100644 index 2a542bc..0000000 --- a/src/routes/index.css +++ /dev/null @@ -1,115 +0,0 @@ -html, -body { - padding: 0; - margin: 0; - font-family: PingFang SC, Hiragino Sans GB, Microsoft YaHei, Arial, sans-serif; - background: linear-gradient(to bottom, transparent, #fff) #eceeef; -} - -p { - margin: 0; -} - -* { - -webkit-font-smoothing: antialiased; - -moz-osx-font-smoothing: grayscale; - box-sizing: border-box; -} - -.container-box { - min-height: 100vh; - max-width: 100%; - display: flex; - flex-direction: column; - justify-content: center; - align-items: center; - padding-top: 10px; -} - -main { - flex: 1; - display: flex; - flex-direction: column; - justify-content: center; - align-items: center; -} - -.title { - display: flex; - margin: 4rem 0 4rem; - align-items: center; - font-size: 4rem; - font-weight: 600; -} - -.logo { - width: 6rem; - margin: 7px 0 0 1rem; -} - -.name { - color: #4ecaff; -} - -.description { - text-align: center; - line-height: 1.5; - font-size: 1.3rem; - color: #1b3a42; - margin-bottom: 5rem; -} - -.code { - background: #fafafa; - border-radius: 12px; - padding: 0.6rem 0.9rem; - font-size: 1.05rem; - font-family: Menlo, Monaco, Lucida Console, Liberation Mono, DejaVu Sans Mono, - Bitstream Vera Sans Mono, Courier New, monospace; -} - -.container-box .grid { - display: flex; - align-items: center; - justify-content: center; - width: 1100px; - margin-top: 3rem; -} - -.card { - padding: 1.5rem; - display: flex; - flex-direction: column; - justify-content: center; - height: 100px; - color: inherit; - text-decoration: none; - transition: 0.15s ease; - width: 45%; -} - -.card:hover, -.card:focus { - transform: scale(1.05); -} - -.card h2 { - display: flex; - align-items: center; - font-size: 1.5rem; - margin: 0; - padding: 0; -} - -.card p { - opacity: 0.6; - font-size: 0.9rem; - line-height: 1.5; - margin-top: 1rem; -} - -.arrow-right { - width: 1.3rem; - margin-left: 0.5rem; - margin-top: 3px; -} diff --git a/src/routes/page.tsx b/src/routes/page.tsx index c2ca0e1..a326841 100644 --- a/src/routes/page.tsx +++ b/src/routes/page.tsx @@ -1,56 +1,14 @@ import { Helmet } from '@modern-js/runtime/head'; -import './index.css'; const Index = () => ( -
+ <> -
-
- Welcome to - Modern.js Logo -

Modern.js

-
-

- Get started by editing src/routes/page.tsx -

-
- -

- Guide - -

-

Follow the guides to use all features of Modern.js.

-
- -

- Tutorials - -

-

Learn to use Modern.js to create your first application.

-
- -

- Config - -

-

Find all configuration options provided by Modern.js.

-
- -

- Github - -

-

View the source code of Github, feel free to contribute.

-
-
+
+
这是首页 页面
-
+ ); export default Index; -- libgit2 0.22.2