From 94358b9b8e64310568217252eff8d5d5b2ab28b3 Mon Sep 17 00:00:00 2001 From: somrat sorkar Date: Wed, 13 Dec 2023 09:53:47 +0600 Subject: [PATCH] updated to astro v4 --- package.json | 30 +++++++++++++++--------------- readme.md | 10 +++++----- src/config/menu.json | 4 ++-- src/content/pages/elements.mdx | 1 - src/layouts/shortcodes/Button.tsx | 2 +- 5 files changed, 23 insertions(+), 24 deletions(-) diff --git a/package.json b/package.json index cc37fff..3a67bdd 100755 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "astroplate", - "version": "2.5.0", + "version": "3.0.0", "description": "Astro and Tailwindcss boilerplate", "author": "zeon.studio", "license": "MIT", @@ -14,21 +14,21 @@ "remove-darkmode": "node scripts/removeDarkmode.js && yarn format" }, "dependencies": { - "@astrojs/mdx": "^1.1.5", - "@astrojs/react": "^3.0.6", - "@astrojs/rss": "^3.0.0", + "@astrojs/mdx": "^2.0.1", + "@astrojs/react": "^3.0.7", + "@astrojs/rss": "^4.0.1", "@astrojs/sitemap": "^3.0.3", - "@astrojs/tailwind": "^5.0.2", - "astro": "^3.6.4", - "astro-auto-import": "^0.4.1", + "@astrojs/tailwind": "^5.0.3", + "astro": "^4.0.4", + "astro-auto-import": "^0.4.2", "date-fns": "^2.30.0", "date-fns-tz": "^2.0.0", "disqus-react": "^1.1.5", "github-slugger": "^2.0.0", "gray-matter": "^4.0.3", - "marked": "^11.0.0", + "marked": "^11.1.0", "prettier-plugin-astro": "^0.12.2", - "prettier-plugin-tailwindcss": "^0.5.7", + "prettier-plugin-tailwindcss": "^0.5.9", "prop-types": "^15.8.1", "react": "^18.2.0", "react-dom": "^18.2.0", @@ -43,18 +43,18 @@ "@tailwindcss/forms": "^0.5.7", "@tailwindcss/typography": "^0.5.10", "@types/marked": "^5.0.2", - "@types/node": "20.10.2", - "@types/react": "18.2.41", + "@types/node": "20.10.4", + "@types/react": "18.2.45", "@types/react-dom": "18.2.17", "autoprefixer": "^10.4.16", "eslint": "^8.55.0", "postcss": "^8.4.32", - "prettier": "^3.1.0", + "prettier": "^3.1.1", "prettier-plugin-astro": "^0.12.2", - "prettier-plugin-tailwindcss": "^0.5.7", + "prettier-plugin-tailwindcss": "^0.5.9", "sass": "^1.69.5", - "tailwindcss": "^3.3.5", + "tailwindcss": "^3.3.6", "tailwind-bootstrap-grid": "^5.1.0", - "typescript": "5.3.2" + "typescript": "5.3.3" } } diff --git a/readme.md b/readme.md index d3b4ad7..c333718 100755 --- a/readme.md +++ b/readme.md @@ -10,8 +10,8 @@

- - + + @@ -65,9 +65,9 @@ ### 📦 Dependencies -- astro 2.3+ -- node v18+ -- npm v9.5+ +- astro 4.0+ +- node v20.10+ +- npm v10.2+ - tailwind v3.3+ ### 👉 Install Dependencies diff --git a/src/config/menu.json b/src/config/menu.json index 04a2fb1..3502218 100755 --- a/src/config/menu.json +++ b/src/config/menu.json @@ -34,8 +34,8 @@ "url": "/categories" }, { - "name": "Search", - "url": "/search" + "name": "Tags", + "url": "/tags" }, { "name": "404 Page", diff --git a/src/content/pages/elements.mdx b/src/content/pages/elements.mdx index d8bff7d..489c5ed 100755 --- a/src/content/pages/elements.mdx +++ b/src/content/pages/elements.mdx @@ -104,7 +104,6 @@ Some text to show that the reference links can follow later. About -`} ``` --- diff --git a/src/layouts/shortcodes/Button.tsx b/src/layouts/shortcodes/Button.tsx index e8e18b3..cb7e72c 100755 --- a/src/layouts/shortcodes/Button.tsx +++ b/src/layouts/shortcodes/Button.tsx @@ -18,7 +18,7 @@ const Button = ({ rel={`noopener noreferrer ${ rel ? (rel === "follow" ? "" : rel) : "nofollow" }`} - className={`btn mb-4 me-4 hover:text-white hover:no-underline ${ + className={`btn mb-4 me-4 hover:text-white dark:hover:text-black hover:no-underline ${ style === "outline" ? "btn-outline-primary" : "btn-primary" }`} >