update swiper and tsconfig

This commit is contained in:
somrat sorkar
2023-07-06 10:24:58 +06:00
parent ad03af58a3
commit ebf127bc21
4 changed files with 14 additions and 13 deletions
+8 -8
View File
@@ -1,6 +1,6 @@
{
"name": "astroplate",
"version": "1.3.0",
"version": "1.3.1",
"description": "Astro and Tailwindcss boilerplate",
"author": "zeon.studio",
"license": "MIT",
@@ -13,13 +13,13 @@
"remove-darkmode": "node scripts/removeDarkmode.js && yarn format"
},
"dependencies": {
"@astrojs/image": "^0.17.1",
"@astrojs/image": "^0.17.2",
"@astrojs/mdx": "^0.19.7",
"@astrojs/react": "^2.2.1",
"@astrojs/rss": "^2.4.3",
"@astrojs/sitemap": "^1.3.3",
"@astrojs/tailwind": "^4.0.0",
"astro": "^2.7.0",
"astro": "^2.7.4",
"astro-auto-import": "^0.3.0",
"date-fns": "^2.30.0",
"date-fns-tz": "^2.0.0",
@@ -38,24 +38,24 @@
"remark-collapse": "^0.1.2",
"remark-toc": "^8.0.1",
"sharp": "^0.32.1",
"swiper": "^9.4.1"
"swiper": "^10.0.3"
},
"devDependencies": {
"@tailwindcss/forms": "^0.5.3",
"@tailwindcss/typography": "^0.5.9",
"@types/marked": "^5.0.0",
"@types/node": "20.3.2",
"@types/node": "20.4.0",
"@types/react": "18.2.14",
"@types/react-dom": "18.2.6",
"autoprefixer": "^10.4.14",
"eslint": "^8.43.0",
"eslint": "^8.44.0",
"postcss": "^8.4.24",
"prettier": "^2.8.8",
"prettier": "^3.0.0",
"prettier-plugin-astro": "^0.10.0",
"prettier-plugin-tailwindcss": "^0.3.0",
"sass": "^1.63.6",
"tailwindcss": "^3.3.2",
"tailwind-bootstrap-grid": "^5.0.1",
"typescript": "5.1.3"
"typescript": "5.1.6"
}
}
+4 -3
View File
@@ -79,9 +79,10 @@ const { testimonial } = Astro.props;
}
<script>
import Swiper, { Autoplay, Pagination } from "swiper";
import "swiper/css";
import "swiper/css/pagination";
import { Swiper } from "swiper";
import "swiper/css";
import "swiper/css/pagination";
import { Autoplay, Pagination } from "swiper/modules";
new Swiper(".testimonial-slider", {
modules: [Pagination, Autoplay],
+1 -1
View File
@@ -48,7 +48,7 @@ const htmlEntityDecoder = (htmlWithEntities: string): string => {
/(&amp;|&lt;|&gt;|&quot;|&#39;)/g,
(entity: string): string => {
return entityList[entity];
}
},
);
return htmlWithoutEntities;
};
+1 -1
View File
@@ -19,6 +19,6 @@
"@/*": ["./src/*"]
}
},
"include": ["**/*.ts", "**/*.tsx"],
"include": ["**/*.ts", "**/*.tsx", "**/*.astro"],
"exclude": ["node_modules"]
}