poi-plugin-item-improvement2-beta 0.0.2 → 0.0.5

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.
Files changed (62) hide show
  1. package/.eslintrc.js +42 -0
  2. package/.idea/inspectionProfiles/profiles_settings.xml +7 -0
  3. package/.idea/misc.xml +4 -0
  4. package/.idea/modules.xml +8 -0
  5. package/.idea/plugin-item-improvement.iml +8 -0
  6. package/.idea/vcs.xml +6 -0
  7. package/.idea/workspace.xml +72 -6
  8. package/README.md +1 -1
  9. package/assets/db/arsenal_all.nedb +352 -0
  10. package/assets/db/arsenal_weekday.nedb +7 -0
  11. package/assets/db/items.nedb +352 -0
  12. package/assets/icon/100.png +0 -0
  13. package/assets/icon/57.png +0 -0
  14. package/assets/icon/70.png +0 -0
  15. package/assets/icon/71.png +0 -0
  16. package/assets/icon/75.png +0 -0
  17. package/assets/icon/77.png +0 -0
  18. package/assets/icon/78.png +0 -0
  19. package/assets/icon/91.png +0 -0
  20. package/assets/icon/92.png +0 -0
  21. package/assets/icon/94.png +0 -0
  22. package/assets/main.css +3 -2
  23. package/i18n/en-US.json +1 -1
  24. package/i18n/ja-JP.json +1 -1
  25. package/i18n/zh-CN.json +1 -1
  26. package/i18n/zh-TW.json +1 -1
  27. package/package.json +4 -2
  28. package/views/detail-row.js +14 -13
  29. package/views/item-info-area.js +2 -2
  30. package/views/mat-row.js +20 -34
  31. package/views/selectors.js +46 -20
  32. package/views/starcraft/add-new-equip-view.js +35 -33
  33. package/views/starcraft/control-panel.js +29 -14
  34. package/views/starcraft/equip-category-view.js +15 -34
  35. package/views/starcraft/equip-list-view.js +36 -48
  36. package/views/starcraft/equiptype.js +23 -35
  37. package/views/starcraft/plan-modify-control.js +3 -3
  38. package/views/starcraft/starcraft-area.js +30 -44
  39. package/views/starcraft/utils.js +44 -2
  40. package/views/useitem-icon.js +10 -2
  41. package/assets/arsenal.nedb +0 -59
  42. package/assets/data_kcwiki.es +0 -105
  43. package/assets/items.nedb +0 -59
  44. package/views/detail-row.es +0 -174
  45. package/views/divider.es +0 -9
  46. package/views/item-info-area.es +0 -104
  47. package/views/item-info-row.es +0 -55
  48. package/views/item-wrapper.es +0 -86
  49. package/views/mat-row.es +0 -136
  50. package/views/selectors.es +0 -249
  51. package/views/starcraft/add-new-equip-view.es +0 -75
  52. package/views/starcraft/control-panel.es +0 -65
  53. package/views/starcraft/equip-category-view.es +0 -105
  54. package/views/starcraft/equip-list-view.es +0 -87
  55. package/views/starcraft/equip-view.es +0 -106
  56. package/views/starcraft/equiptype.es +0 -112
  57. package/views/starcraft/plan-modify-control.es +0 -148
  58. package/views/starcraft/plan-view.es +0 -63
  59. package/views/starcraft/starcraft-area.es +0 -166
  60. package/views/starcraft/utils.es +0 -40
  61. package/views/useitem-icon.es +0 -43
  62. /package/assets/{useitem.svg → icon/useitem.svg} +0 -0
package/.eslintrc.js ADDED
@@ -0,0 +1,42 @@
1
+ module.exports = {
2
+ extends: ['airbnb', 'poi-plugin'],
3
+ plugins: ['react', 'jsx-a11y', 'import'],
4
+ env: {
5
+ browser: true,
6
+ es6: true,
7
+ node: true
8
+ },
9
+ parser: 'babel-eslint',
10
+ rules: {
11
+ semi: ['error', 'never'],
12
+ 'import/no-unresolved': [2, { ignore: ['views/.*'] }],
13
+ 'react/jsx-filename-extension': 'off',
14
+ 'no-underscore-dangle': ['error', { allowAfterThis: true }],
15
+ 'import/extensions': ['error', { es: 'never' }],
16
+ 'import/no-extraneous-dependencies': 'off',
17
+ 'comma-dangle': ['error', 'always-multiline'],
18
+ 'no-confusing-arrow': ['error', { allowParens: true }],
19
+ 'import/prefer-default-export': 'off',
20
+ 'jsx-a11y/no-static-element-interactions': 'off',
21
+ 'arrow-parens': ['error', 'as-needed'],
22
+ 'no-underscore-dangle': ['error', { allow: ['__'] }],
23
+ 'no-console': ['error', { allow: ['warn', 'error'] }],
24
+ 'space-in-parens': 'off',
25
+ 'object-curly-spacing': 'off',
26
+ 'react/jsx-curly-spacing': 'off',
27
+ 'react/jsx-first-prop-new-line': 'off',
28
+ 'react/jsx-closing-bracket-location': 'off',
29
+ 'react/jsx-indent-props': 'off',
30
+ 'space-unary-ops': 'off',
31
+ 'object-property-newline': 'off',
32
+ 'space-infix-ops': 'off',
33
+ curly: 'off',
34
+ 'comma-spacing': 'off',
35
+ 'array-callback-return': 'off',
36
+ 'no-nested-ternary': 'off',
37
+ 'no-confusing-arrow': 'off',
38
+ 'no-else-return': 'off',
39
+ 'no-plusplus': ['error', { allowForLoopAfterthoughts: true }],
40
+ 'react/forbid-prop-types': 'off'
41
+ }
42
+ }
@@ -0,0 +1,7 @@
1
+ <component name="InspectionProjectProfileManager">
2
+ <settings>
3
+ <option name="PROJECT_PROFILE" value="Default" />
4
+ <option name="USE_PROJECT_PROFILE" value="false" />
5
+ <version value="1.0" />
6
+ </settings>
7
+ </component>
package/.idea/misc.xml ADDED
@@ -0,0 +1,4 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="ProjectRootManager" version="2" project-jdk-name="Python 3.9 (shizhidadong)" project-jdk-type="Python SDK" />
4
+ </project>
@@ -0,0 +1,8 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="ProjectModuleManager">
4
+ <modules>
5
+ <module fileurl="file://$PROJECT_DIR$/.idea/plugin-item-improvement.iml" filepath="$PROJECT_DIR$/.idea/plugin-item-improvement.iml" />
6
+ </modules>
7
+ </component>
8
+ </project>
@@ -0,0 +1,8 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <module type="PYTHON_MODULE" version="4">
3
+ <component name="NewModuleRootManager">
4
+ <content url="file://$MODULE_DIR$" />
5
+ <orderEntry type="jdk" jdkName="Python 3.9 (shizhidadong)" jdkType="Python SDK" />
6
+ <orderEntry type="sourceFolder" forTests="false" />
7
+ </component>
8
+ </module>
package/.idea/vcs.xml ADDED
@@ -0,0 +1,6 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="VcsDirectoryMappings">
4
+ <mapping directory="$PROJECT_DIR$" vcs="Git" />
5
+ </component>
6
+ </project>
@@ -4,13 +4,37 @@
4
4
  <option name="autoReloadType" value="SELECTIVE" />
5
5
  </component>
6
6
  <component name="ChangeListManager">
7
- <list default="true" id="40128e24-f8c8-43c8-87be-27f4e2d2db24" name="更改" comment="" />
7
+ <list default="true" id="40128e24-f8c8-43c8-87be-27f4e2d2db24" name="更改" comment="">
8
+ <change beforePath="$PROJECT_DIR$/package.json" beforeDir="false" afterPath="$PROJECT_DIR$/package.json" afterDir="false" />
9
+ <change beforePath="$PROJECT_DIR$/views/detail-row.es" beforeDir="false" afterPath="$PROJECT_DIR$/views/detail-row.es" afterDir="false" />
10
+ <change beforePath="$PROJECT_DIR$/views/item-info-area.es" beforeDir="false" afterPath="$PROJECT_DIR$/views/item-info-area.es" afterDir="false" />
11
+ <change beforePath="$PROJECT_DIR$/views/mat-row.es" beforeDir="false" afterPath="$PROJECT_DIR$/views/mat-row.es" afterDir="false" />
12
+ <change beforePath="$PROJECT_DIR$/views/selectors.es" beforeDir="false" afterPath="$PROJECT_DIR$/views/selectors.es" afterDir="false" />
13
+ <change beforePath="$PROJECT_DIR$/views/starcraft/add-new-equip-view.es" beforeDir="false" afterPath="$PROJECT_DIR$/views/starcraft/add-new-equip-view.es" afterDir="false" />
14
+ <change beforePath="$PROJECT_DIR$/views/starcraft/control-panel.es" beforeDir="false" afterPath="$PROJECT_DIR$/views/starcraft/control-panel.es" afterDir="false" />
15
+ <change beforePath="$PROJECT_DIR$/views/starcraft/equip-view.es" beforeDir="false" afterPath="$PROJECT_DIR$/views/starcraft/equip-view.es" afterDir="false" />
16
+ <change beforePath="$PROJECT_DIR$/views/starcraft/plan-modify-control.es" beforeDir="false" afterPath="$PROJECT_DIR$/views/starcraft/plan-modify-control.es" afterDir="false" />
17
+ <change beforePath="$PROJECT_DIR$/views/starcraft/plan-view.es" beforeDir="false" afterPath="$PROJECT_DIR$/views/starcraft/plan-view.es" afterDir="false" />
18
+ <change beforePath="$PROJECT_DIR$/views/starcraft/utils.es" beforeDir="false" afterPath="$PROJECT_DIR$/views/starcraft/utils.es" afterDir="false" />
19
+ </list>
8
20
  <option name="SHOW_DIALOG" value="false" />
9
21
  <option name="HIGHLIGHT_CONFLICTS" value="true" />
10
22
  <option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
11
23
  <option name="LAST_RESOLUTION" value="IGNORE" />
12
24
  </component>
25
+ <component name="FileTemplateManagerImpl">
26
+ <option name="RECENT_TEMPLATES">
27
+ <list>
28
+ <option value="JavaScript File" />
29
+ </list>
30
+ </option>
31
+ </component>
13
32
  <component name="Git.Settings">
33
+ <option name="RECENT_BRANCH_BY_REPOSITORY">
34
+ <map>
35
+ <entry key="$PROJECT_DIR$" value="bd4b1890cf609ab4812e5d1f934a40b672439046" />
36
+ </map>
37
+ </option>
14
38
  <option name="RECENT_GIT_ROOT_PATH" value="$PROJECT_DIR$" />
15
39
  </component>
16
40
  <component name="ProjectColorInfo">{
@@ -23,27 +47,44 @@
23
47
  </component>
24
48
  <component name="PropertiesComponent">{
25
49
  &quot;keyToString&quot;: {
50
+ &quot;ASKED_SHARE_PROJECT_CONFIGURATION_FILES&quot;: &quot;true&quot;,
26
51
  &quot;ModuleVcsDetector.initialDetectionPerformed&quot;: &quot;true&quot;,
52
+ &quot;Node.js.item-info-row.es.executor&quot;: &quot;Run&quot;,
53
+ &quot;Node.js.item-info-row.js.executor&quot;: &quot;Run&quot;,
54
+ &quot;Node.js.mat-row.es.executor&quot;: &quot;Run&quot;,
55
+ &quot;Node.js.publish.js.executor&quot;: &quot;Run&quot;,
27
56
  &quot;Node.js.selectors.es.executor&quot;: &quot;Run&quot;,
57
+ &quot;Node.js.useitem-icon.es.executor&quot;: &quot;Run&quot;,
28
58
  &quot;RunOnceActivity.ShowReadmeOnStart&quot;: &quot;true&quot;,
29
59
  &quot;RunOnceActivity.TerminalTabsStorage.copyFrom.TerminalArrangementManager.252&quot;: &quot;true&quot;,
30
60
  &quot;RunOnceActivity.git.unshallow&quot;: &quot;true&quot;,
31
61
  &quot;RunOnceActivity.typescript.service.memoryLimit.init&quot;: &quot;true&quot;,
32
- &quot;git-widget-placeholder&quot;: &quot;master&quot;,
62
+ &quot;SHARE_PROJECT_CONFIGURATION_FILES&quot;: &quot;true&quot;,
63
+ &quot;git-widget-placeholder&quot;: &quot;main&quot;,
33
64
  &quot;javascript.preferred.runtime.type.id&quot;: &quot;node&quot;,
34
- &quot;last_opened_file_path&quot;: &quot;/Users/sakana/code/plugin-item-improvement/assets&quot;,
65
+ &quot;last_opened_file_path&quot;: &quot;/Users/sakana/code/plugin-item-improvement/assets/db&quot;,
35
66
  &quot;node.js.detected.package.eslint&quot;: &quot;true&quot;,
67
+ &quot;node.js.detected.package.stylelint&quot;: &quot;true&quot;,
36
68
  &quot;node.js.detected.package.tslint&quot;: &quot;true&quot;,
37
69
  &quot;node.js.selected.package.eslint&quot;: &quot;(autodetect)&quot;,
70
+ &quot;node.js.selected.package.stylelint&quot;: &quot;&quot;,
38
71
  &quot;node.js.selected.package.tslint&quot;: &quot;(autodetect)&quot;,
39
72
  &quot;nodejs_package_manager_path&quot;: &quot;npm&quot;,
40
73
  &quot;settings.editor.selected.configurable&quot;: &quot;preferences.keymap&quot;,
74
+ &quot;ts.external.directory.path&quot;: &quot;/Applications/WebStorm.app/Contents/plugins/javascript-plugin/jsLanguageServicesImpl/external&quot;,
41
75
  &quot;vue.rearranger.settings.migration&quot;: &quot;true&quot;
42
76
  }
43
77
  }</component>
44
78
  <component name="RecentsManager">
45
79
  <key name="CopyFile.RECENT_KEYS">
80
+ <recent name="$PROJECT_DIR$/assets/db" />
46
81
  <recent name="$PROJECT_DIR$/assets" />
82
+ <recent name="$PROJECT_DIR$/assets/icon" />
83
+ <recent name="$PROJECT_DIR$/views" />
84
+ </key>
85
+ <key name="MoveFile.RECENT_KEYS">
86
+ <recent name="$PROJECT_DIR$/assets/db" />
87
+ <recent name="$PROJECT_DIR$/assets/icon" />
47
88
  </key>
48
89
  </component>
49
90
  <component name="SharedIndexes">
@@ -63,7 +104,27 @@
63
104
  <workItem from="1766954534702" duration="24000" />
64
105
  <workItem from="1766954565993" duration="12934000" />
65
106
  <workItem from="1766998961559" duration="8885000" />
66
- <workItem from="1767112889804" duration="135000" />
107
+ <workItem from="1767112889804" duration="3312000" />
108
+ <workItem from="1767127690697" duration="9838000" />
109
+ <workItem from="1767265931452" duration="395000" />
110
+ <workItem from="1767266330648" duration="5077000" />
111
+ <workItem from="1767272485923" duration="3120000" />
112
+ <workItem from="1767275985364" duration="4189000" />
113
+ <workItem from="1767280935871" duration="42697000" />
114
+ <workItem from="1767358619187" duration="6000" />
115
+ <workItem from="1767358634299" duration="15946000" />
116
+ <workItem from="1767380289747" duration="38000" />
117
+ <workItem from="1767380434707" duration="2000" />
118
+ <workItem from="1767381357135" duration="110000" />
119
+ <workItem from="1767381761070" duration="21000" />
120
+ <workItem from="1767382251786" duration="4000" />
121
+ <workItem from="1767440947438" duration="7760000" />
122
+ <workItem from="1767463589760" duration="11011000" />
123
+ <workItem from="1767536472672" duration="47997000" />
124
+ <workItem from="1767955263226" duration="560000" />
125
+ <workItem from="1768276631547" duration="4031000" />
126
+ <workItem from="1768281570910" duration="27860000" />
127
+ <workItem from="1768310872462" duration="13647000" />
67
128
  </task>
68
129
  <servers />
69
130
  </component>
@@ -73,12 +134,12 @@
73
134
  <component name="Vcs.Log.Tabs.Properties">
74
135
  <option name="OPEN_GENERIC_TABS">
75
136
  <map>
76
- <entry key="683b2fe7-9e57-4f14-9ef3-fb8fde1bfbcd" value="TOOL_WINDOW" />
137
+ <entry key="712592f3-c312-49ef-9be5-7df54c39e845" value="TOOL_WINDOW" />
77
138
  </map>
78
139
  </option>
79
140
  <option name="TAB_STATES">
80
141
  <map>
81
- <entry key="683b2fe7-9e57-4f14-9ef3-fb8fde1bfbcd">
142
+ <entry key="712592f3-c312-49ef-9be5-7df54c39e845">
82
143
  <value>
83
144
  <State>
84
145
  <option name="FILTERS">
@@ -103,6 +164,11 @@
103
164
  </State>
104
165
  </value>
105
166
  </entry>
167
+ <entry key="MAIN">
168
+ <value>
169
+ <State />
170
+ </value>
171
+ </entry>
106
172
  </map>
107
173
  </option>
108
174
  </component>
package/README.md CHANGED
@@ -4,4 +4,4 @@ Show improvable items of the day
4
4
  Put the folder into /path/to/poi/resources/app/plugins.
5
5
 
6
6
  #### Data source
7
- The plugin makes use of data from [WhoCallsTheFleet](https://github.com/Diablohu/WhoCallsTheFleet) and [Kcwiki API](http://api.kcwiki.moe/) Project.
7
+ The plugin makes use of data from [JA Wiki](https://wikiwiki.jp/kancolle/%E6%94%B9%E4%BF%AE%E8%A1%A8#SmallCaliber/) and [Kcwiki API](http://api.kcwiki.moe/) Project.