poi-plugin-quest-info-2 0.12.22 → 0.13.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +10 -0
- package/build/kcQuestsData/DATA_VERSION +1 -1
- package/build/kcQuestsData/index.ts +1 -1
- package/build/kcQuestsData/quests-scn.json +4 -4
- package/i18n/en-US.json +1 -0
- package/i18n/ja-JP.json +1 -0
- package/i18n/ko-KR.json +1 -0
- package/i18n/zh-CN.json +1 -0
- package/i18n/zh-TW.json +1 -0
- package/package.json +18 -16
- package/src/Settings.tsx +3 -3
- package/src/components/QuestCard/MinimalQuestCard.tsx +2 -4
- package/src/components/QuestCard/index.tsx +9 -3
- package/src/components/QuestList.tsx +1 -1
- package/src/tags.tsx +0 -2
package/CHANGELOG.md
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
8fd9ff93a65ef9e50f2c6f2098c53b0205fe6110
|
|
@@ -2540,8 +2540,8 @@
|
|
|
2540
2540
|
},
|
|
2541
2541
|
"373": {
|
|
2542
2542
|
"code": "Cy14",
|
|
2543
|
-
"desc": "【法国舰队演习】编成以法国出生的舰艇为旗舰、包含期间在内法国舰艇 3 艘以上的演习舰队。以此舰队在本日内达成演习【A 判定】胜利 4 次以上!
|
|
2544
|
-
"memo2": "年常任务 (7 月)
|
|
2543
|
+
"desc": "【法国舰队演习】编成以法国出生的舰艇为旗舰、包含期间在内法国舰艇 3 艘以上的演习舰队。以此舰队在本日内达成演习【A 判定】胜利 4 次以上!Merci♪",
|
|
2544
|
+
"memo2": "年常任务 (7 月) 演习舰队需要 【包括旗舰在内共 3 艘「海外舰 | 法国船」】 演习 4 回 A 胜",
|
|
2545
2545
|
"name": "【法国舰队】演习!",
|
|
2546
2546
|
"pre": [],
|
|
2547
2547
|
"rewards": "奖励:以下奖励三选一: 新型兵装资材 新型火炮兵装资材 开发资材 ×8 以下奖励三选一: 「13.8cm 连装炮」×3 「15.2cm 三连装主炮」×2 「38cm 四连装炮」"
|
|
@@ -3436,7 +3436,7 @@
|
|
|
3436
3436
|
"pre": [
|
|
3437
3437
|
"B56"
|
|
3438
3438
|
],
|
|
3439
|
-
"rewards": "奖励:开发资材 ×2
|
|
3439
|
+
"rewards": "奖励:开发资材 ×2 「九六式陆攻」"
|
|
3440
3440
|
},
|
|
3441
3441
|
"642": {
|
|
3442
3442
|
"code": "F38",
|
|
@@ -6166,7 +6166,7 @@
|
|
|
6166
6166
|
},
|
|
6167
6167
|
"1142": {
|
|
6168
6168
|
"code": "F127",
|
|
6169
|
-
"desc": "在旗舰 “「翔鹤 | 翔鹤改二 / 甲」” 的第一装备栏装备 “「天山一二型 (村田队)
|
|
6169
|
+
"desc": "在旗舰 “「翔鹤 | 翔鹤改二 / 甲」” 的第一装备栏装备 “「天山一二型 (村田队)」”。废弃天山 ×4。准备「天山一二型甲改 (空六号电探改装备机)」×1、「新型航空兵装资材」×2、「开发资材」×48、「夜间熟练搭乘员」×1!",
|
|
6170
6170
|
"name": "配备最精锐【天山】舰攻队",
|
|
6171
6171
|
"pre": [],
|
|
6172
6172
|
"rewards": "奖励:「天山一二型甲改二 (村田队 / 电探装备)」"
|
package/i18n/en-US.json
CHANGED
|
@@ -40,6 +40,7 @@
|
|
|
40
40
|
"Search in wikiwiki": "Search in 艦これ 攻略 Wiki",
|
|
41
41
|
"Search in Kcwiki": "Search in Kcwiki",
|
|
42
42
|
"Search in KanColle Wiki": "Search in KanColle Wiki",
|
|
43
|
+
"Search in Richelieu Manager": "Search in Richelieu Manager",
|
|
43
44
|
"Star project, support the author": "Star project, support the author",
|
|
44
45
|
"": ""
|
|
45
46
|
}
|
package/i18n/ja-JP.json
CHANGED
|
@@ -35,6 +35,7 @@
|
|
|
35
35
|
"Search in wikiwiki": "艦これ 攻略 Wikiでこのタスクを検索",
|
|
36
36
|
"Search in Kcwiki": "艦娘百科でこのタスクを検索",
|
|
37
37
|
"Search in KanColle Wiki": "KanColle Wikiでこのタスクを検索",
|
|
38
|
+
"Search in Richelieu Manager": "リシュリューの任務マネージャを検索",
|
|
38
39
|
"Star project, support the author": "Starプロジェクト、著者をサポート",
|
|
39
40
|
"": ""
|
|
40
41
|
}
|
package/i18n/ko-KR.json
CHANGED
|
@@ -19,6 +19,7 @@
|
|
|
19
19
|
"Search in wikiwiki": "艦これ 攻略 Wiki에서 이 작업 검색",
|
|
20
20
|
"Search in Kcwiki": "艦娘百科에서 이 작업 검색",
|
|
21
21
|
"Search in KanColle Wiki": "KanColle Wiki에서 이 작업 검색",
|
|
22
|
+
"Search in Richelieu Manager": "リシュリューの任務マネージャ에서 이 작업 검색",
|
|
22
23
|
"Star project, support the author": "스타 프로젝트, 작가 지원",
|
|
23
24
|
"": ""
|
|
24
25
|
}
|
package/i18n/zh-CN.json
CHANGED
package/i18n/zh-TW.json
CHANGED
|
@@ -35,6 +35,7 @@
|
|
|
35
35
|
"Search in wikiwiki": "在 艦これ 攻略 Wiki 搜索該任務",
|
|
36
36
|
"Search in Kcwiki": "在 艦娘百科 搜索該任務",
|
|
37
37
|
"Search in KanColle Wiki": "在 KanColle Wiki 搜索該任務",
|
|
38
|
+
"Search in Richelieu Manager": "在 黎塞留任務管理器 搜索該任務",
|
|
38
39
|
"Star project, support the author": "Star項目,支持作者",
|
|
39
40
|
"": ""
|
|
40
41
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "poi-plugin-quest-info-2",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.13.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "show quest info",
|
|
6
6
|
"homepage": "https://github.com/lawvs/poi-plugin-quest-2/",
|
|
@@ -37,11 +37,13 @@
|
|
|
37
37
|
"release": "npm run build && changeset publish"
|
|
38
38
|
},
|
|
39
39
|
"dependencies": {
|
|
40
|
-
"moize": "^6.1.
|
|
40
|
+
"moize": "^6.1.6",
|
|
41
41
|
"react-highlight-words": "^0.20.0",
|
|
42
|
-
"react-use": "^17.
|
|
43
|
-
"react-virtualized-auto-sizer": "^1.0.
|
|
44
|
-
"react-window": "^1.8.
|
|
42
|
+
"react-use": "^17.5.1",
|
|
43
|
+
"react-virtualized-auto-sizer": "^1.0.24",
|
|
44
|
+
"react-window": "^1.8.10",
|
|
45
|
+
"styled-components": "^6.1.13",
|
|
46
|
+
"stylis": "^4.3.4"
|
|
45
47
|
},
|
|
46
48
|
"devDependencies": {
|
|
47
49
|
"@babel/core": "^7.12.10",
|
|
@@ -49,7 +51,7 @@
|
|
|
49
51
|
"@babel/preset-react": "^7.22.15",
|
|
50
52
|
"@babel/preset-typescript": "^7.23.2",
|
|
51
53
|
"@blueprintjs/core": "^4.19.5",
|
|
52
|
-
"@changesets/cli": "^2.
|
|
54
|
+
"@changesets/cli": "^2.27.7",
|
|
53
55
|
"@storybook/addon-actions": "^7.5.2",
|
|
54
56
|
"@storybook/addon-essentials": "^7.5.2",
|
|
55
57
|
"@storybook/addon-links": "^7.5.2",
|
|
@@ -61,30 +63,29 @@
|
|
|
61
63
|
"@types/react-virtualized-auto-sizer": "^1.0.1",
|
|
62
64
|
"@types/react-window": "^1.8.5",
|
|
63
65
|
"@types/sharp": "^0.27.1",
|
|
64
|
-
"@types/styled-components": "^5.1.
|
|
66
|
+
"@types/styled-components": "^5.1.34",
|
|
65
67
|
"@typescript-eslint/eslint-plugin": "^6.9.0",
|
|
66
68
|
"@typescript-eslint/parser": "^6.9.0",
|
|
67
69
|
"babel-loader": "^8.2.2",
|
|
68
70
|
"eslint": "^8.52.0",
|
|
69
|
-
"eslint-config-prettier": "^9.
|
|
70
|
-
"eslint-plugin-prettier": "^5.
|
|
71
|
-
"eslint-plugin-react": "^7.
|
|
71
|
+
"eslint-config-prettier": "^9.1.0",
|
|
72
|
+
"eslint-plugin-prettier": "^5.2.1",
|
|
73
|
+
"eslint-plugin-react": "^7.35.0",
|
|
72
74
|
"eslint-plugin-react-hooks": "^4.5.0",
|
|
73
75
|
"eslint-plugin-storybook": "^0.6.15",
|
|
74
|
-
"https-proxy-agent": "^
|
|
76
|
+
"https-proxy-agent": "^7.0.5",
|
|
75
77
|
"i18next": "^19.8.5",
|
|
76
78
|
"jest": "^30.0.0-alpha.1",
|
|
77
79
|
"pangu": "^4.0.7",
|
|
78
80
|
"poi-asset-themes": "^4.5.0",
|
|
79
|
-
"prettier": "^3.
|
|
81
|
+
"prettier": "^3.3.3",
|
|
80
82
|
"react": "^18.2.0",
|
|
81
83
|
"react-dom": "^18.2.0",
|
|
82
84
|
"react-i18next": "^11.8.5",
|
|
83
|
-
"sharp": "^0.
|
|
85
|
+
"sharp": "^0.33.5",
|
|
84
86
|
"storybook": "^7.5.2",
|
|
85
|
-
"styled-components": "^5.3.3",
|
|
86
87
|
"ts-jest": "^29.1.1",
|
|
87
|
-
"ts-node": "^10.
|
|
88
|
+
"ts-node": "^10.9.2",
|
|
88
89
|
"typescript": "^4.7.4"
|
|
89
90
|
},
|
|
90
91
|
"poiPlugin": {
|
|
@@ -94,5 +95,6 @@
|
|
|
94
95
|
"i18nDir": "./i18n",
|
|
95
96
|
"priority": 2,
|
|
96
97
|
"apiVer": {}
|
|
97
|
-
}
|
|
98
|
+
},
|
|
99
|
+
"packageManager": "npm@10.7.0"
|
|
98
100
|
}
|
package/src/Settings.tsx
CHANGED
|
@@ -11,7 +11,7 @@ import type { ChangeEvent } from 'react'
|
|
|
11
11
|
import React, { StrictMode, useCallback, useState } from 'react'
|
|
12
12
|
import styled from 'styled-components'
|
|
13
13
|
import { version as DATA_VERSION } from '../build/kcanotifyGamedata'
|
|
14
|
-
import
|
|
14
|
+
import PKG from '../package.json'
|
|
15
15
|
import { IN_POI } from './poi/env'
|
|
16
16
|
import { usePluginTranslation, useStateExporter } from './poi/hooks'
|
|
17
17
|
import { tips } from './poi/utils'
|
|
@@ -102,13 +102,13 @@ const SettingsMain = () => {
|
|
|
102
102
|
onChange={handleEnabledChange}
|
|
103
103
|
/>
|
|
104
104
|
|
|
105
|
-
<Text>{t('Version', { version:
|
|
105
|
+
<Text>{t('Version', { version: PKG.version })}</Text>
|
|
106
106
|
<Text>{t('Data Version', { version: DATA_VERSION })}</Text>
|
|
107
107
|
<AnchorButton
|
|
108
108
|
icon={IconNames.CODE}
|
|
109
109
|
rightIcon={IconNames.SHARE}
|
|
110
110
|
text={t('View source code on GitHub')}
|
|
111
|
-
href={homepage}
|
|
111
|
+
href={PKG.homepage}
|
|
112
112
|
target="_blank"
|
|
113
113
|
/>
|
|
114
114
|
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { Card, Elevation, Text, Tooltip } from '@blueprintjs/core'
|
|
2
|
-
import React, { forwardRef } from 'react'
|
|
3
|
-
import type { StyledComponentProps } from 'styled-components'
|
|
2
|
+
import React, { ComponentPropsWithoutRef, forwardRef } from 'react'
|
|
4
3
|
import { guessQuestCategory, QUEST_STATUS } from '../../questHelper'
|
|
5
4
|
import type { QuestCardProps } from './index'
|
|
6
5
|
import { CardBody, CardTail, CatIndicator, FlexCard } from './styles'
|
|
@@ -11,8 +10,7 @@ import { questStatusMap } from './utils'
|
|
|
11
10
|
*/
|
|
12
11
|
export const MinimalQuestCard = forwardRef<
|
|
13
12
|
Card,
|
|
14
|
-
|
|
15
|
-
QuestCardProps & StyledComponentProps<typeof Card, any, {}, never>
|
|
13
|
+
QuestCardProps & ComponentPropsWithoutRef<typeof FlexCard>
|
|
16
14
|
>(({ code, name, desc, tip, status = QUEST_STATUS.DEFAULT, ...props }, ref) => {
|
|
17
15
|
const indicatorColor = guessQuestCategory(code).color
|
|
18
16
|
const TailIcon = questStatusMap[status]
|
|
@@ -10,10 +10,9 @@ import {
|
|
|
10
10
|
Popover,
|
|
11
11
|
} from '@blueprintjs/core'
|
|
12
12
|
import { IconNames } from '@blueprintjs/icons'
|
|
13
|
-
import React, { forwardRef } from 'react'
|
|
13
|
+
import React, { ComponentPropsWithoutRef, forwardRef } from 'react'
|
|
14
14
|
// https://github.com/bvaughn/react-highlight-words
|
|
15
15
|
import Highlighter from 'react-highlight-words'
|
|
16
|
-
import type { StyledComponentProps } from 'styled-components'
|
|
17
16
|
import { usePluginTranslation } from '../../poi/hooks'
|
|
18
17
|
import {
|
|
19
18
|
QUEST_STATUS,
|
|
@@ -80,7 +79,7 @@ const CardAction = ({ gameId }: { gameId: number }) => {
|
|
|
80
79
|
|
|
81
80
|
export const QuestCard = forwardRef<
|
|
82
81
|
Card,
|
|
83
|
-
QuestCardProps &
|
|
82
|
+
QuestCardProps & ComponentPropsWithoutRef<typeof FlexCard>
|
|
84
83
|
>(({ gameId, code, name, desc, tip, tip2, ...props }, ref) => {
|
|
85
84
|
const status = useQuestStatus(gameId)
|
|
86
85
|
const headIcon = questIconMap[guessQuestCategory(code).type]
|
|
@@ -171,6 +170,13 @@ export const MoreOptions = forwardRef<
|
|
|
171
170
|
href={`https://kancolle.fandom.com/wiki/Quests#:~:text=${code}`}
|
|
172
171
|
target="_blank"
|
|
173
172
|
/>
|
|
173
|
+
<MenuItem
|
|
174
|
+
icon={IconNames.Control}
|
|
175
|
+
text={t('Search in Richelieu Manager')}
|
|
176
|
+
tagName="a"
|
|
177
|
+
href={`https://richelieu-manager.net/quest/${code}`}
|
|
178
|
+
target="_blank"
|
|
179
|
+
/>
|
|
174
180
|
<MenuDivider />
|
|
175
181
|
<MenuItem
|
|
176
182
|
icon={IconNames.Heart}
|
|
@@ -93,7 +93,7 @@ export const QuestList = ({ quests }: { quests: UnionQuest[] }) => {
|
|
|
93
93
|
return (
|
|
94
94
|
<QuestListWrapper>
|
|
95
95
|
<AutoSizer>
|
|
96
|
-
{({ height, width }) => (
|
|
96
|
+
{({ height, width }: { height: number; width: number }) => (
|
|
97
97
|
<ListWrapper
|
|
98
98
|
ref={listRef}
|
|
99
99
|
height={height}
|
package/src/tags.tsx
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { Tag } from '@blueprintjs/core'
|
|
2
|
-
import { IconNames } from '@blueprintjs/icons'
|
|
3
2
|
import React from 'react'
|
|
4
3
|
import styled from 'styled-components'
|
|
5
4
|
import { useGameTab, usePluginTranslation } from './poi/hooks'
|
|
@@ -111,7 +110,6 @@ export const ProgressTags = () => {
|
|
|
111
110
|
{t('Locked', { number: lockedQuestNum })}
|
|
112
111
|
</Tag>
|
|
113
112
|
<Tag
|
|
114
|
-
icon={IconNames.EXCHANGE}
|
|
115
113
|
onClick={() => {
|
|
116
114
|
toggleTag(PROGRESS_TAG.Unlocked)
|
|
117
115
|
}}
|