diff options
| author | zephex0 <[email protected]> | 2024-04-19 02:39:43 +0000 |
|---|---|---|
| committer | zephex0 <[email protected]> | 2024-04-19 02:39:43 +0000 |
| commit | 38114280277b1720b0114b882d337d10231b5baf (patch) | |
| tree | 2e9c3e315b4be79f6eb66462b15a2e8de3194380 | |
| parent | feature added: tracker for mangas (diff) | |
| download | dramalama-38114280277b1720b0114b882d337d10231b5baf.tar.xz dramalama-38114280277b1720b0114b882d337d10231b5baf.zip | |
test changes
| -rw-r--r-- | package-lock.json | 42 | ||||
| -rw-r--r-- | src/app/manga/[title]/[id]/[read]/currentReading.jsx | 34 | ||||
| -rw-r--r-- | src/app/manga/history/continueWatching/page.jsx | 2 |
3 files changed, 20 insertions, 58 deletions
diff --git a/package-lock.json b/package-lock.json index 0709dc7..e5b21c0 100644 --- a/package-lock.json +++ b/package-lock.json @@ -20,9 +20,8 @@ "react-icons": "^5.0.1", "react-player": "^2.15.1", "react-router-dom": "^6.22.3", - "say": "^0.16.0", "sharp": "^0.33.3", - "sleep-promise": "^9.1.0" + "swiper": "^11.1.1" }, "devDependencies": { "@types/node": "20.11.28", @@ -3638,11 +3637,6 @@ "wrappy": "1" } }, - "node_modules/one-time": { - "version": "0.0.4", - "resolved": "https://registry.npmjs.org/one-time/-/one-time-0.0.4.tgz", - "integrity": "sha512-qAMrwuk2xLEutlASoiPiAMW3EN3K96Ka/ilSXYr6qR1zSVXw2j7+yDSqGTC4T9apfLYxM3tLLjKvgPdAUK7kYQ==" - }, "node_modules/optionator": { "version": "0.9.3", "resolved": "https://registry.npmjs.org/optionator/-/optionator-0.9.3.tgz", @@ -4193,17 +4187,6 @@ "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/say": { - "version": "0.16.0", - "resolved": "https://registry.npmjs.org/say/-/say-0.16.0.tgz", - "integrity": "sha512-yEfncNu3I6lcZ6RIrXgE9DqbrEmvV5uQQ8ReM14u/DodlvJYpveqNphO55RLMSj77b06ZKNif/FLmhzQxcuUXg==", - "dependencies": { - "one-time": "0.0.4" - }, - "engines": { - "node": ">=6.9" - } - }, "node_modules/scheduler": { "version": "0.23.0", "resolved": "https://registry.npmjs.org/scheduler/-/scheduler-0.23.0.tgz", @@ -4381,11 +4364,6 @@ "node": ">=8" } }, - "node_modules/sleep-promise": { - "version": "9.1.0", - "resolved": "https://registry.npmjs.org/sleep-promise/-/sleep-promise-9.1.0.tgz", - "integrity": "sha512-UHYzVpz9Xn8b+jikYSD6bqvf754xL2uBUzDFwiU6NcdZeifPr6UfgU43xpkPu67VMS88+TI2PSI7Eohgqf2fKA==" - }, "node_modules/source-map-js": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/source-map-js/-/source-map-js-1.0.2.tgz", @@ -4624,6 +4602,24 @@ "url": "https://github.com/sponsors/ljharb" } }, + "node_modules/swiper": { + "version": "11.1.1", + "resolved": "https://registry.npmjs.org/swiper/-/swiper-11.1.1.tgz", + "integrity": "sha512-jGmEA/fNz1lACIcY4/40ggm1Gcyv+EUivmgV/Jd2WFPsEJhbWXnRAwzZR8OPjkBLtDxmzcoYG/iiAMWfRs0YKQ==", + "funding": [ + { + "type": "patreon", + "url": "https://www.patreon.com/swiperjs" + }, + { + "type": "open_collective", + "url": "http://opencollective.com/swiper" + } + ], + "engines": { + "node": ">= 4.7.0" + } + }, "node_modules/tapable": { "version": "2.2.1", "resolved": "https://registry.npmjs.org/tapable/-/tapable-2.2.1.tgz", diff --git a/src/app/manga/[title]/[id]/[read]/currentReading.jsx b/src/app/manga/[title]/[id]/[read]/currentReading.jsx deleted file mode 100644 index 0050d61..0000000 --- a/src/app/manga/[title]/[id]/[read]/currentReading.jsx +++ /dev/null @@ -1,34 +0,0 @@ -"use client"; - -import styles from "./read.module.css"; -import { useEffect } from "react"; - -function get_current_info(title) { - let req = {}; - - useEffect(() => { - const data = JSON.parse(localStorage.getItem("mangaData")); - data.watchHis.forEach((element) => { - if (element.title === title) { - req.chapter = element.chapter; - req.volume = element.volume; - } - }); - }, []); - - return req || false; -} - -export default function Current({ name: title }) { - let data = get_current_info(title); - if (!data) { - return; - } - - return ( - <section className={styles.CurrentMain}> - <p className={styles.CurrentChapter}>{data.chapter}</p> - <p className={styles.CurrentVolume}>{data.volume}</p> - </section> - ); -} diff --git a/src/app/manga/history/continueWatching/page.jsx b/src/app/manga/history/continueWatching/page.jsx index 0d0a02e..8c5f651 100644 --- a/src/app/manga/history/continueWatching/page.jsx +++ b/src/app/manga/history/continueWatching/page.jsx @@ -25,7 +25,7 @@ const ContinueWatching = () => { return ( <main className={styles.main}> - <p className={styles.mainText}>Continue Watching</p> + <p className={styles.mainText}>Continue Reading</p> {localItems && ( <div className={styles.animeContainer}> {localItems.watchHis && |