Files
cxyz/src/comicland/index.js
T
nsrb a7c6058540 Add cxyz Android project structure and initial configuration
- Introduced a new Flutter project for the cxyz Android manga/comic reader, including essential files such as pubspec.yaml, AndroidManifest.xml, and Gradle configuration.
- Added .gitignore files to exclude unnecessary files and directories for both the main project and Android-specific files.
- Implemented initial README.md with project description, features, setup instructions, and API details for ComicLand, MangaRead, and MangaTown.
- Configured analysis options and dependencies in pubspec.yaml to support Flutter development.
- Established a pnpm workspace and lockfile for dependency management.
- Included various Android resources such as icons, styles, and launch backgrounds for a complete application setup.
2026-08-29 17:50:31 +07:00

62 lines
1.3 KiB
JavaScript

/**
* ComicLand adapter: JSON API listing + page URLs, image download, and CBZ CLIs.
* Tweak {@link ./constants.js} if the API origin or routes change.
*/
const {
API_JSON_HEADERS,
CDN_IMAGE_HEADERS,
CHAPTER_PATHNAME_PATTERN,
COMICLAND_API_ORIGIN,
COMICLAND_HOSTS,
COMICLAND_ORIGIN,
DEFAULT_LISTING_URL,
LISTING_PATHNAME_PATTERN,
} = require("./constants.js");
const {
fetchChapterLinks,
isChapterPathname,
isLikelyComicLandSite,
isListingPathname,
parseComicLandUrl,
seriesSlugFromListingUrl,
} = require("./chapters.js");
const {
collectChapterImageUrls,
downloadChapterImages,
} = require("./images.js");
const {
chapterUrlToCbz,
resolveCliOutputPath,
sanitizeComicDirName,
sanitizeFsStem,
stemForComicLandChapterCbz,
} = require("./downloadChapterCbz.js");
module.exports = {
API_JSON_HEADERS,
CDN_IMAGE_HEADERS,
CHAPTER_PATHNAME_PATTERN,
COMICLAND_API_ORIGIN,
COMICLAND_HOSTS,
COMICLAND_ORIGIN,
DEFAULT_LISTING_URL,
LISTING_PATHNAME_PATTERN,
chapterUrlToCbz,
collectChapterImageUrls,
downloadChapterImages,
fetchChapterLinks,
isChapterPathname,
isLikelyComicLandSite,
isListingPathname,
parseComicLandUrl,
resolveCliOutputPath,
sanitizeComicDirName,
sanitizeFsStem,
seriesSlugFromListingUrl,
stemForComicLandChapterCbz,
};