Skip to content

Commit

Permalink
feat: ✨ 实现并排卷轴模式
Browse files Browse the repository at this point in the history
  • Loading branch information
hymbz committed Jun 21, 2024
1 parent 4827a64 commit 8cde2c3
Show file tree
Hide file tree
Showing 50 changed files with 9,345 additions and 7,504 deletions.
11 changes: 3 additions & 8 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,17 +1,12 @@
{
"vitest.enable": true,
"vitest.commandLine": "pnpm run test",
"todo-tree.filtering.excludeGlobs": [
"**/node_modules/*/**",
"**/*.js"
],
"todo-tree.filtering.excludeGlobs": ["**/node_modules/*/**", "**/*.js"],
"i18n-ally.displayLanguage": "zh",
"i18n-ally.localesPaths": [
"locales"
],
"i18n-ally.localesPaths": ["locales"],
"i18n-ally.pathMatcher": "{locale}.{ext}",
"i18n-ally.keystyle": "nested",
"i18n-ally.sortKeys": true,
"typescript.preferences.importModuleSpecifier": "relative",
"typescript.tsdk": "node_modules\\typescript\\lib",
"typescript.tsdk": "node_modules\\typescript\\lib"
}
14 changes: 10 additions & 4 deletions .xo-config.cjs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module.exports = {
prettier: true,
plugins: ["i18next", "jsdoc", "solid"],
plugins: ["i18next", "jsdoc", "solid", "no-autofix"],
extends: ["plugin:solid/typescript", "plugin:jsdoc/recommended"],
ignores: ["*.js", "*.mjs"],

Expand All @@ -9,8 +9,12 @@ module.exports = {
"@typescript-eslint/no-unused-vars": "warn",
// 提示使用了 console
'no-console': ["warn", { allow: ["warn", "error"] }],

// 禁止重新赋值函数参数
"no-param-reassign": "error",
// 禁用 prefer-const 的自动修复
"prefer-const": "off",
"no-autofix/prefer-const": "warn",

// 不限制代码深度
"max-depth": "off",
Expand Down Expand Up @@ -80,8 +84,6 @@ module.exports = {
// 允许有参数不被写明
"jsdoc/require-param": "off",

"i18next/no-literal-string": "off",

"solid/reactivity": ["warn", {
// "customReactiveFunctions": ["createEffectOn"]
}],
Expand Down Expand Up @@ -139,7 +141,11 @@ module.exports = {
{
files: "**/!(display)*.tsx",
rules: {
"i18next/no-literal-string": "error",
"i18next/no-literal-string": [
"error", {
mode: 'jsx-only',
'jsx-attributes': { include: ['^name'] },
}],
},
},
],
Expand Down
15 changes: 10 additions & 5 deletions locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,17 +39,19 @@
"exit": "Exit",
"jump_to_end": "Jump to the last page",
"jump_to_home": "Jump to the first page",
"page_down": "Turn the page to the down",
"page_up": "Turn the page to the up",
"scroll_down": "Scroll down",
"scroll_left": "Scroll left",
"scroll_right": "Scroll right",
"scroll_up": "Scroll up",
"switch_auto_enlarge": "Switch auto image enlarge option",
"switch_dir": "Switch reading direction",
"switch_grid_mode": "Switch grid mode",
"switch_page_fill": "Switch page fill",
"switch_scroll_mode": "Switch scroll mode",
"switch_single_double_page_mode": "Switch single/double page mode",
"translate_current_page": "Translate current page",
"turn_page_down": "Turn the page to the down",
"turn_page_left": "Turn the page to the left",
"turn_page_right": "Turn the page to the right",
"turn_page_up": "Turn the page to the up"
"translate_current_page": "Translate current page"
},
"img_status": {
"error": "Load Error",
Expand Down Expand Up @@ -103,6 +105,8 @@
},
"language": "Language",
"option": {
"abreast_duplicate": "Column duplicates ratio",
"abreast_mode": "Abreast scroll mode",
"always_load_all_img": "Always load all images",
"background_color": "Background Color",
"click_page_turn_area": "Touch area",
Expand All @@ -114,6 +118,7 @@
"dir_rtl": "RTL (Japanese manga)",
"disable_auto_enlarge": "Disable automatic image enlarge",
"first_page_fill": "Enable first page fill by default",
"fit_to_width": "Fit to width",
"jump_to_next_chapter": "Turn to the next/previous chapter",
"paragraph_dir": "Reading direction",
"paragraph_display": "Display",
Expand Down
17 changes: 11 additions & 6 deletions locales/ru.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,16 +39,18 @@
"exit": "Выход",
"jump_to_end": "Перейти к последней странице",
"jump_to_home": "Перейти к первой странице",
"page_down": "Перелистнуть страницу вниз",
"page_up": "Перелистнуть страницу вверх",
"scroll_down": "Прокрутить вниз",
"scroll_left": "Прокрутить влево",
"scroll_right": "Прокрутите вправо",
"scroll_up": "Прокрутите вверх",
"switch_auto_enlarge": "Автоматическое приближение",
"switch_dir": "Направление чтения",
"switch_grid_mode": "Режим сетки",
"switch_page_fill": "Заполнение страницы",
"switch_scroll_mode": "Режим прокрутки",
"switch_single_double_page_mode": "Одностраничный/Двухстраничный режим",
"turn_page_down": "Перелистнуть страницу вниз",
"turn_page_left": "Перелистнуть страницу влево",
"turn_page_right": "Перелистнуть страницу вправо",
"turn_page_up": "Перелистнуть страницу вверх",
"translate_current_page": "Перевести текущую страницу"
},
"img_status": {
Expand Down Expand Up @@ -103,6 +105,8 @@
},
"language": "Язык",
"option": {
"abreast_duplicate": "Коэффициент дублирования столбцов",
"abreast_mode": "Режим прокрутки в ряд",
"always_load_all_img": "Всегда загружать все изображения",
"background_color": "Цвет фона",
"click_page_turn_area": "Область нажатия",
Expand All @@ -114,6 +118,7 @@
"dir_rtl": "Чтение справа налево (Японская манга)",
"disable_auto_enlarge": "Отключить автоматическое масштабирование изображений",
"first_page_fill": "Включить заполнение первой страницы по умолчанию",
"fit_to_width": "По ширине",
"jump_to_next_chapter": "Перелистнуть главу",
"paragraph_dir": "Направление чтения",
"paragraph_display": "Отображение",
Expand Down Expand Up @@ -166,9 +171,9 @@
"block_totally": "Глобально заблокировать комиксы",
"detect_ad": "Detect advertise page",
"hotkeys_page_turn": "Переворот страниц горячими клавишами",
"load_original_image": "Загружать оригинальное изображение",
"open_link_new_page": "Открывать ссылки в новой вкладке",
"remember_current_site": "Запомнить текущий сайт",
"load_original_image": "Загружать оригинальное изображение"
"remember_current_site": "Запомнить текущий сайт"
},
"changed_load_failed": "Страница изменилась, невозможно загрузить комикс",
"ehentai": {
Expand Down
17 changes: 11 additions & 6 deletions locales/zh.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,16 +39,18 @@
"exit": "退出",
"jump_to_end": "跳至尾页",
"jump_to_home": "跳至首页",
"page_down": "向下翻页",
"page_up": "向上翻页",
"scroll_down": "向下滚动",
"scroll_left": "向左滚动",
"scroll_right": "向右滚动",
"scroll_up": "向上滚动",
"switch_auto_enlarge": "切换图片自动放大选项",
"switch_dir": "切换阅读方向",
"switch_grid_mode": "切换网格模式",
"switch_page_fill": "切换页面填充",
"switch_scroll_mode": "切换卷轴模式",
"switch_single_double_page_mode": "切换单双页模式",
"turn_page_down": "向下翻页",
"turn_page_left": "向左翻页",
"turn_page_right": "向右翻页",
"turn_page_up": "向上翻页",
"translate_current_page": "翻译当前页"
},
"img_status": {
Expand Down Expand Up @@ -103,6 +105,8 @@
},
"language": "语言",
"option": {
"abreast_duplicate": "每列重复比例",
"abreast_mode": "并排卷轴模式",
"always_load_all_img": "始终加载所有图片",
"background_color": "背景颜色",
"click_page_turn_area": "点击区域",
Expand All @@ -114,6 +118,7 @@
"dir_rtl": "从右到左(日漫)",
"disable_auto_enlarge": "禁止图片自动放大",
"first_page_fill": "默认启用首页填充",
"fit_to_width": "图片适合宽度",
"jump_to_next_chapter": "翻页至上/下一话",
"paragraph_dir": "阅读方向",
"paragraph_display": "显示",
Expand Down Expand Up @@ -166,9 +171,9 @@
"block_totally": "彻底屏蔽漫画",
"detect_ad": "识别广告页",
"hotkeys_page_turn": "快捷键翻页",
"load_original_image": "加载原图",
"open_link_new_page": "在新页面中打开链接",
"remember_current_site": "记住当前站点",
"load_original_image": "加载原图"
"remember_current_site": "记住当前站点"
},
"changed_load_failed": "网站发生变化,无法加载漫画",
"ehentai": {
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@
"cssnano": "^6.1.2",
"eslint-plugin-i18next": "^6.0.3",
"eslint-plugin-jsdoc": "^48.2.3",
"eslint-plugin-no-autofix": "^2.0.0",
"eslint-plugin-solid": "^0.13.2",
"fake-indexeddb": "^5.0.2",
"jsdom": "^24.0.0",
Expand Down
Loading

0 comments on commit 8cde2c3

Please sign in to comment.