Skip to content

Commit 462d1a5

Browse files
committed
refactor(monkey): optimize genStorage types and restructure copymanga-enhance
1 parent 276d6cb commit 462d1a5

31 files changed

Lines changed: 105 additions & 91 deletions

‎src/monkey/copymanga-enhance/index.ts‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import html from './template.html'
2-
import { render } from './scripts/newPage'
3-
import { getPageInfo, refreshImage, windowScrollTo } from './scripts/old'
4-
import storage from './scripts/storage'
2+
import { render } from './scripts/detail/newPage'
3+
import { getPageInfo, refreshImage, windowScrollTo } from './scripts/detail/old'
4+
import storage from './scripts/detail/storage'
55
import GM_getResourceText from '../polyfill/GM_getResourceText'
66

77
const renderNewPage = async () => {

src/monkey/copymanga-enhance/scripts/newPage/component/App/index.ts renamed to src/monkey/copymanga-enhance/scripts/detail/newPage/component/App/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import GM_addStyle from "../../../../../polyfill/GM_addStyle";
1+
import GM_addStyle from "../../../../../../polyfill/GM_addStyle";
22
import useKeyWatcher from "../../hooks/useKeyWatcher";
33
import useMouseWatcher from "../../hooks/useMouseWatcher";
44
import { defineComponent, Fragment, h, onMounted } from "../../vue";

src/monkey/copymanga-enhance/scripts/newPage/component/App/style.css renamed to src/monkey/copymanga-enhance/scripts/detail/newPage/component/App/style.css

File renamed without changes.

src/monkey/copymanga-enhance/scripts/newPage/component/AppBody/index.ts renamed to src/monkey/copymanga-enhance/scripts/detail/newPage/component/AppBody/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import GM_addStyle from "../../../../../polyfill/GM_addStyle";
1+
import GM_addStyle from "../../../../../../polyfill/GM_addStyle";
22
import cc from 'classcat'
33
import { ACTION_GRID_MAP, DirectionMode, PageType } from "../../constant";
44
import useDirectionMode from "../../hooks/useDirectionMode";
@@ -9,7 +9,7 @@ import { defineComponent, onMounted, unref, h, watch, ref } from "../../vue";
99
import Image from "../Image";
1010
import css from './style.css'
1111
import WhitePage from '../WhitePage';
12-
import flow from "../../../../../utils/flow";
12+
import flow from "../../../../../../utils/flow";
1313
import useMouseGrid from "../../hooks/useMouseGrid";
1414

1515
type ImageItem = {

src/monkey/copymanga-enhance/scripts/newPage/component/AppBody/style.css renamed to src/monkey/copymanga-enhance/scripts/detail/newPage/component/AppBody/style.css

File renamed without changes.

src/monkey/copymanga-enhance/scripts/newPage/component/AppHeader/index.ts renamed to src/monkey/copymanga-enhance/scripts/detail/newPage/component/AppHeader/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import GM_addStyle from "../../../../../polyfill/GM_addStyle";
1+
import GM_addStyle from "../../../../../../polyfill/GM_addStyle";
22
import { DirectionMode } from "../../constant";
33
import useDirectionMode from "../../hooks/useDirectionMode";
44
import useImageInfoMap from "../../hooks/useImageInfoMap";
@@ -58,7 +58,7 @@ export default defineComponent({
5858
h('option', { value: DirectionMode.RTL, selected: unref(directionModeRef) === DirectionMode.RTL }, '日漫模式'),
5959
h('option', { value: DirectionMode.LTR, selected: unref(directionModeRef) === DirectionMode.LTR }, '普通模式'),
6060
h('option', { value: DirectionMode.TTB, selected: unref(directionModeRef) === DirectionMode.TTB }, '国漫模式'),
61-
])
61+
]),
6262
]),
6363
])
6464
},

src/monkey/copymanga-enhance/scripts/newPage/component/AppHeader/style.css renamed to src/monkey/copymanga-enhance/scripts/detail/newPage/component/AppHeader/style.css

File renamed without changes.

src/monkey/copymanga-enhance/scripts/newPage/component/Image/index.ts renamed to src/monkey/copymanga-enhance/scripts/detail/newPage/component/Image/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import GM_addStyle from "../../../../../polyfill/GM_addStyle";
1+
import GM_addStyle from "../../../../../../polyfill/GM_addStyle";
22
import { PageType } from "../../constant";
33
import useImageInfoMap from "../../hooks/useImageInfoMap";
44
import useImageList from "../../hooks/useImageList";

src/monkey/copymanga-enhance/scripts/newPage/component/Image/style.css renamed to src/monkey/copymanga-enhance/scripts/detail/newPage/component/Image/style.css

File renamed without changes.

src/monkey/copymanga-enhance/scripts/newPage/component/WhitePage/index.ts renamed to src/monkey/copymanga-enhance/scripts/detail/newPage/component/WhitePage/index.ts

File renamed without changes.

0 commit comments

Comments
 (0)