poi-plugin-milk 1.1.6 → 1.1.7
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/.idea/workspace.xml +211 -101
- package/package.json +1 -1
- package/parts/fleet-list.js +41 -16
- package/parts/functions.js +31 -2
package/.idea/workspace.xml
CHANGED
|
@@ -24,8 +24,8 @@
|
|
|
24
24
|
<file leaf-file-name="fleet-list.js" pinned="false" current-in-tab="false">
|
|
25
25
|
<entry file="file://$PROJECT_DIR$/parts/fleet-list.js">
|
|
26
26
|
<provider selected="true" editor-type-id="text-editor">
|
|
27
|
-
<state relative-caret-position="
|
|
28
|
-
<caret line="
|
|
27
|
+
<state relative-caret-position="902">
|
|
28
|
+
<caret line="208" column="6" lean-forward="false" selection-start-line="208" selection-start-column="6" selection-end-line="208" selection-end-column="6" />
|
|
29
29
|
<folding />
|
|
30
30
|
</state>
|
|
31
31
|
</provider>
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
<file leaf-file-name="index.js" pinned="false" current-in-tab="false">
|
|
35
35
|
<entry file="file://$PROJECT_DIR$/index.js">
|
|
36
36
|
<provider selected="true" editor-type-id="text-editor">
|
|
37
|
-
<state relative-caret-position="
|
|
37
|
+
<state relative-caret-position="362">
|
|
38
38
|
<caret line="43" column="64" lean-forward="false" selection-start-line="43" selection-start-column="64" selection-end-line="43" selection-end-column="64" />
|
|
39
39
|
<folding />
|
|
40
40
|
</state>
|
|
@@ -51,6 +51,16 @@
|
|
|
51
51
|
</provider>
|
|
52
52
|
</entry>
|
|
53
53
|
</file>
|
|
54
|
+
<file leaf-file-name="zh-CN.json" pinned="false" current-in-tab="false">
|
|
55
|
+
<entry file="file://$PROJECT_DIR$/i18n/zh-CN.json">
|
|
56
|
+
<provider selected="true" editor-type-id="text-editor">
|
|
57
|
+
<state relative-caret-position="943">
|
|
58
|
+
<caret line="23" column="1" lean-forward="false" selection-start-line="23" selection-start-column="1" selection-end-line="23" selection-end-column="1" />
|
|
59
|
+
<folding />
|
|
60
|
+
</state>
|
|
61
|
+
</provider>
|
|
62
|
+
</entry>
|
|
63
|
+
</file>
|
|
54
64
|
<file leaf-file-name="package.json" pinned="false" current-in-tab="true">
|
|
55
65
|
<entry file="file://$PROJECT_DIR$/package.json">
|
|
56
66
|
<provider selected="true" editor-type-id="text-editor">
|
|
@@ -64,67 +74,48 @@
|
|
|
64
74
|
<file leaf-file-name="ship-row.js" pinned="false" current-in-tab="false">
|
|
65
75
|
<entry file="file://$PROJECT_DIR$/parts/ship-row.js">
|
|
66
76
|
<provider selected="true" editor-type-id="text-editor">
|
|
67
|
-
<state relative-caret-position="
|
|
77
|
+
<state relative-caret-position="1968">
|
|
68
78
|
<caret line="48" column="64" lean-forward="false" selection-start-line="48" selection-start-column="64" selection-end-line="48" selection-end-column="64" />
|
|
69
79
|
<folding />
|
|
70
80
|
</state>
|
|
71
81
|
</provider>
|
|
72
82
|
</entry>
|
|
73
83
|
</file>
|
|
74
|
-
<file leaf-file-name="
|
|
75
|
-
<entry file="file://$PROJECT_DIR$/parts/
|
|
84
|
+
<file leaf-file-name="functions.js" pinned="false" current-in-tab="false">
|
|
85
|
+
<entry file="file://$PROJECT_DIR$/parts/functions.js">
|
|
76
86
|
<provider selected="true" editor-type-id="text-editor">
|
|
77
|
-
<state relative-caret-position="
|
|
78
|
-
<caret line="
|
|
87
|
+
<state relative-caret-position="205">
|
|
88
|
+
<caret line="5" column="0" lean-forward="true" selection-start-line="5" selection-start-column="0" selection-end-line="5" selection-end-column="0" />
|
|
79
89
|
<folding />
|
|
80
90
|
</state>
|
|
81
91
|
</provider>
|
|
82
92
|
</entry>
|
|
83
93
|
</file>
|
|
84
|
-
<file leaf-file-name="
|
|
85
|
-
<entry file="file://$PROJECT_DIR$/
|
|
86
|
-
<provider selected="true" editor-type-id="text-editor">
|
|
87
|
-
<state relative-caret-position="909">
|
|
88
|
-
<caret line="52" column="37" lean-forward="false" selection-start-line="52" selection-start-column="37" selection-end-line="52" selection-end-column="37" />
|
|
89
|
-
<folding />
|
|
90
|
-
</state>
|
|
91
|
-
</provider>
|
|
92
|
-
</entry>
|
|
93
|
-
</file>
|
|
94
|
-
<file leaf-file-name="index.js.map" pinned="false" current-in-tab="false">
|
|
95
|
-
<entry file="file://$PROJECT_DIR$/index.js.map">
|
|
96
|
-
<provider editor-type-id="sourcemapFileViewerProvider">
|
|
97
|
-
<state />
|
|
98
|
-
</provider>
|
|
94
|
+
<file leaf-file-name="candidates.js" pinned="false" current-in-tab="false">
|
|
95
|
+
<entry file="file://$PROJECT_DIR$/parts/candidates.js">
|
|
99
96
|
<provider selected="true" editor-type-id="text-editor">
|
|
100
|
-
<state relative-caret-position="
|
|
101
|
-
<caret line="
|
|
97
|
+
<state relative-caret-position="41">
|
|
98
|
+
<caret line="43" column="64" lean-forward="false" selection-start-line="43" selection-start-column="64" selection-end-line="43" selection-end-column="64" />
|
|
102
99
|
<folding />
|
|
103
100
|
</state>
|
|
104
101
|
</provider>
|
|
105
102
|
</entry>
|
|
106
103
|
</file>
|
|
107
|
-
<file leaf-file-name="
|
|
108
|
-
<entry file="file://$PROJECT_DIR$/
|
|
109
|
-
<provider editor-type-id="sourcemapFileViewerProvider">
|
|
110
|
-
<state />
|
|
111
|
-
</provider>
|
|
104
|
+
<file leaf-file-name="README-CN.MD" pinned="false" current-in-tab="false">
|
|
105
|
+
<entry file="file://$PROJECT_DIR$/README-CN.MD">
|
|
112
106
|
<provider selected="true" editor-type-id="text-editor">
|
|
113
|
-
<state relative-caret-position="
|
|
114
|
-
<caret line="
|
|
107
|
+
<state relative-caret-position="868">
|
|
108
|
+
<caret line="51" column="42" lean-forward="false" selection-start-line="51" selection-start-column="42" selection-end-line="51" selection-end-column="42" />
|
|
115
109
|
<folding />
|
|
116
110
|
</state>
|
|
117
111
|
</provider>
|
|
118
112
|
</entry>
|
|
119
113
|
</file>
|
|
120
|
-
<file leaf-file-name="
|
|
121
|
-
<entry file="file://$PROJECT_DIR$/
|
|
122
|
-
<provider editor-type-id="sourcemapFileViewerProvider">
|
|
123
|
-
<state />
|
|
124
|
-
</provider>
|
|
114
|
+
<file leaf-file-name="README.MD" pinned="false" current-in-tab="false">
|
|
115
|
+
<entry file="file://$PROJECT_DIR$/README.MD">
|
|
125
116
|
<provider selected="true" editor-type-id="text-editor">
|
|
126
|
-
<state relative-caret-position="
|
|
127
|
-
<caret line="
|
|
117
|
+
<state relative-caret-position="821">
|
|
118
|
+
<caret line="48" column="80" lean-forward="false" selection-start-line="48" selection-start-column="80" selection-end-line="48" selection-end-column="80" />
|
|
128
119
|
<folding />
|
|
129
120
|
</state>
|
|
130
121
|
</provider>
|
|
@@ -156,19 +147,26 @@
|
|
|
156
147
|
<find>fleetAkashiConv</find>
|
|
157
148
|
<find>fleets</find>
|
|
158
149
|
<find>console.log</find>
|
|
159
|
-
<find>poi-plugin-
|
|
160
|
-
<find>
|
|
150
|
+
<find>poi-plugin-anchor</find>
|
|
151
|
+
<find>_shipRow</find>
|
|
152
|
+
<find>996</find>
|
|
153
|
+
<find>preset</find>
|
|
154
|
+
<find>pr</find>
|
|
155
|
+
<find>_fun</find>
|
|
161
156
|
</findStrings>
|
|
157
|
+
<replaceStrings>
|
|
158
|
+
<replace />
|
|
159
|
+
</replaceStrings>
|
|
162
160
|
</component>
|
|
163
161
|
<component name="IdeDocumentHistory">
|
|
164
162
|
<option name="CHANGED_PATHS">
|
|
165
163
|
<list>
|
|
166
|
-
<option value="$PROJECT_DIR$/parts/functions.js" />
|
|
167
164
|
<option value="$PROJECT_DIR$/i18n/zh-CN.json" />
|
|
168
165
|
<option value="$PROJECT_DIR$/parts/ship-row.js" />
|
|
169
|
-
<option value="$PROJECT_DIR$/parts/fleet-list.js" />
|
|
170
166
|
<option value="$PROJECT_DIR$/index.js" />
|
|
171
167
|
<option value="$PROJECT_DIR$/parts/candidates.js" />
|
|
168
|
+
<option value="$PROJECT_DIR$/parts/functions.js" />
|
|
169
|
+
<option value="$PROJECT_DIR$/parts/fleet-list.js" />
|
|
172
170
|
<option value="$PROJECT_DIR$/package.json" />
|
|
173
171
|
</list>
|
|
174
172
|
</option>
|
|
@@ -205,25 +203,26 @@
|
|
|
205
203
|
<foldersAlwaysOnTop value="true" />
|
|
206
204
|
</navigator>
|
|
207
205
|
<panes>
|
|
206
|
+
<pane id="Scope" />
|
|
208
207
|
<pane id="ProjectPane">
|
|
209
208
|
<subPane>
|
|
210
209
|
<PATH>
|
|
211
210
|
<PATH_ELEMENT>
|
|
212
|
-
<option name="myItemId" value="poi-plugin-
|
|
211
|
+
<option name="myItemId" value="poi-plugin-milk" />
|
|
213
212
|
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
|
|
214
213
|
</PATH_ELEMENT>
|
|
215
214
|
<PATH_ELEMENT>
|
|
216
|
-
<option name="myItemId" value="poi-plugin-
|
|
215
|
+
<option name="myItemId" value="poi-plugin-milk" />
|
|
217
216
|
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
|
|
218
217
|
</PATH_ELEMENT>
|
|
219
218
|
</PATH>
|
|
220
219
|
<PATH>
|
|
221
220
|
<PATH_ELEMENT>
|
|
222
|
-
<option name="myItemId" value="poi-plugin-
|
|
221
|
+
<option name="myItemId" value="poi-plugin-milk" />
|
|
223
222
|
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
|
|
224
223
|
</PATH_ELEMENT>
|
|
225
224
|
<PATH_ELEMENT>
|
|
226
|
-
<option name="myItemId" value="poi-plugin-
|
|
225
|
+
<option name="myItemId" value="poi-plugin-milk" />
|
|
227
226
|
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
|
|
228
227
|
</PATH_ELEMENT>
|
|
229
228
|
<PATH_ELEMENT>
|
|
@@ -233,11 +232,11 @@
|
|
|
233
232
|
</PATH>
|
|
234
233
|
<PATH>
|
|
235
234
|
<PATH_ELEMENT>
|
|
236
|
-
<option name="myItemId" value="poi-plugin-
|
|
235
|
+
<option name="myItemId" value="poi-plugin-milk" />
|
|
237
236
|
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
|
|
238
237
|
</PATH_ELEMENT>
|
|
239
238
|
<PATH_ELEMENT>
|
|
240
|
-
<option name="myItemId" value="poi-plugin-
|
|
239
|
+
<option name="myItemId" value="poi-plugin-milk" />
|
|
241
240
|
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
|
|
242
241
|
</PATH_ELEMENT>
|
|
243
242
|
<PATH_ELEMENT>
|
|
@@ -247,11 +246,11 @@
|
|
|
247
246
|
</PATH>
|
|
248
247
|
<PATH>
|
|
249
248
|
<PATH_ELEMENT>
|
|
250
|
-
<option name="myItemId" value="poi-plugin-
|
|
249
|
+
<option name="myItemId" value="poi-plugin-milk" />
|
|
251
250
|
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
|
|
252
251
|
</PATH_ELEMENT>
|
|
253
252
|
<PATH_ELEMENT>
|
|
254
|
-
<option name="myItemId" value="poi-plugin-
|
|
253
|
+
<option name="myItemId" value="poi-plugin-milk" />
|
|
255
254
|
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
|
|
256
255
|
</PATH_ELEMENT>
|
|
257
256
|
<PATH_ELEMENT>
|
|
@@ -261,7 +260,6 @@
|
|
|
261
260
|
</PATH>
|
|
262
261
|
</subPane>
|
|
263
262
|
</pane>
|
|
264
|
-
<pane id="Scope" />
|
|
265
263
|
<pane id="Scratches" />
|
|
266
264
|
</panes>
|
|
267
265
|
</component>
|
|
@@ -274,13 +272,127 @@
|
|
|
274
272
|
<property name="options.splitter.main.proportions" value="0.3" />
|
|
275
273
|
<property name="settings.editor.selected.configurable" value="editor.preferences.smartKeys" />
|
|
276
274
|
<property name="WebServerToolWindowFactoryState" value="false" />
|
|
277
|
-
<property name="last_opened_file_path" value="$PROJECT_DIR
|
|
275
|
+
<property name="last_opened_file_path" value="$PROJECT_DIR$" />
|
|
278
276
|
<property name="HbShouldOpenHtmlAsHb" value="" />
|
|
277
|
+
<property name="js.eslint.eslintPackage" value="" />
|
|
279
278
|
</component>
|
|
280
279
|
<component name="RunManager">
|
|
280
|
+
<configuration default="true" type="DartCommandLineRunConfigurationType" factoryName="Dart Command Line Application">
|
|
281
|
+
<method />
|
|
282
|
+
</configuration>
|
|
283
|
+
<configuration default="true" type="DartTestRunConfigurationType" factoryName="Dart Test">
|
|
284
|
+
<method />
|
|
285
|
+
</configuration>
|
|
286
|
+
<configuration default="true" type="ErlangApplicationRunConfiguration" factoryName="Erlang Application" show_console_on_std_err="false" show_console_on_std_out="false">
|
|
287
|
+
<option name="debugOptions">
|
|
288
|
+
<ErlangDebugOptions>
|
|
289
|
+
<option name="autoUpdateModulesNotToInterpret" value="true" />
|
|
290
|
+
<option name="modulesNotToInterpret">
|
|
291
|
+
<set />
|
|
292
|
+
</option>
|
|
293
|
+
</ErlangDebugOptions>
|
|
294
|
+
</option>
|
|
295
|
+
<option name="erlFlags" value="" />
|
|
296
|
+
<option name="moduleAndFunction" value="" />
|
|
297
|
+
<option name="params" value="" />
|
|
298
|
+
<option name="useTestCodePath" value="false" />
|
|
299
|
+
<option name="workDirectory" />
|
|
300
|
+
<module />
|
|
301
|
+
<method />
|
|
302
|
+
</configuration>
|
|
303
|
+
<configuration default="true" type="ErlangUnitRunConfigurationType" factoryName="Erlang Eunit" show_console_on_std_err="false" show_console_on_std_out="false">
|
|
304
|
+
<option name="debugOptions">
|
|
305
|
+
<ErlangDebugOptions>
|
|
306
|
+
<option name="autoUpdateModulesNotToInterpret" value="true" />
|
|
307
|
+
<option name="modulesNotToInterpret">
|
|
308
|
+
<set />
|
|
309
|
+
</option>
|
|
310
|
+
</ErlangDebugOptions>
|
|
311
|
+
</option>
|
|
312
|
+
<option name="workDirectory" />
|
|
313
|
+
<module />
|
|
314
|
+
<option name="functionNames">
|
|
315
|
+
<set />
|
|
316
|
+
</option>
|
|
317
|
+
<option name="kind" value="MODULE" />
|
|
318
|
+
<option name="moduleNames">
|
|
319
|
+
<set />
|
|
320
|
+
</option>
|
|
321
|
+
<method />
|
|
322
|
+
</configuration>
|
|
323
|
+
<configuration default="true" type="GoApplicationRunConfiguration" factoryName="Go Application">
|
|
324
|
+
<module name="" />
|
|
325
|
+
<working_directory value="$PROJECT_DIR$" />
|
|
326
|
+
<filePath value="$PROJECT_DIR$" />
|
|
327
|
+
<kind value="FILE" />
|
|
328
|
+
<method />
|
|
329
|
+
</configuration>
|
|
330
|
+
<configuration default="true" type="GoRunFileConfiguration" factoryName="Go Single File">
|
|
331
|
+
<module name="" />
|
|
332
|
+
<working_directory value="$PROJECT_DIR$" />
|
|
333
|
+
<filePath value="$PROJECT_DIR$" />
|
|
334
|
+
<method />
|
|
335
|
+
</configuration>
|
|
336
|
+
<configuration default="true" type="GoTestRunConfiguration" factoryName="Go Test">
|
|
337
|
+
<module name="" />
|
|
338
|
+
<working_directory value="$PROJECT_DIR$" />
|
|
339
|
+
<framework value="gotest" />
|
|
340
|
+
<kind value="DIRECTORY" />
|
|
341
|
+
<method />
|
|
342
|
+
</configuration>
|
|
343
|
+
<configuration default="true" type="JavaScriptTestRunnerKarma" factoryName="Karma">
|
|
344
|
+
<config-file value="" />
|
|
345
|
+
<node-interpreter value="project" />
|
|
346
|
+
<envs />
|
|
347
|
+
<method />
|
|
348
|
+
</configuration>
|
|
349
|
+
<configuration default="true" type="JavaScriptTestRunnerProtractor" factoryName="Protractor">
|
|
350
|
+
<config-file value="" />
|
|
351
|
+
<node-interpreter value="project" />
|
|
352
|
+
<envs />
|
|
353
|
+
<method />
|
|
354
|
+
</configuration>
|
|
355
|
+
<configuration default="true" type="JavascriptDebugType" factoryName="JavaScript Debug">
|
|
356
|
+
<method />
|
|
357
|
+
</configuration>
|
|
281
358
|
<configuration default="true" type="NodeJSConfigurationType" factoryName="Node.js" path-to-node="project" working-dir="">
|
|
282
359
|
<method />
|
|
283
360
|
</configuration>
|
|
361
|
+
<configuration default="true" type="RebarEunitRunConfigurationType" factoryName="Erlang Rebar Eunit" show_console_on_std_err="false" show_console_on_std_out="false">
|
|
362
|
+
<option name="command" value="eunit" />
|
|
363
|
+
<option name="skipDependencies" value="true" />
|
|
364
|
+
<module />
|
|
365
|
+
<method />
|
|
366
|
+
</configuration>
|
|
367
|
+
<configuration default="true" type="cucumber.js" factoryName="Cucumber.js">
|
|
368
|
+
<option name="cucumberJsArguments" value="" />
|
|
369
|
+
<option name="executablePath" />
|
|
370
|
+
<option name="filePath" />
|
|
371
|
+
<method />
|
|
372
|
+
</configuration>
|
|
373
|
+
<configuration default="true" type="js.build_tools.gulp" factoryName="Gulp.js">
|
|
374
|
+
<method />
|
|
375
|
+
</configuration>
|
|
376
|
+
<configuration default="true" type="js.build_tools.npm" factoryName="npm">
|
|
377
|
+
<command value="run-script" />
|
|
378
|
+
<scripts />
|
|
379
|
+
<node-interpreter value="project" />
|
|
380
|
+
<envs />
|
|
381
|
+
<method />
|
|
382
|
+
</configuration>
|
|
383
|
+
<configuration default="true" type="mocha-javascript-test-runner" factoryName="Mocha">
|
|
384
|
+
<node-interpreter>project</node-interpreter>
|
|
385
|
+
<node-options />
|
|
386
|
+
<working-directory />
|
|
387
|
+
<pass-parent-env>true</pass-parent-env>
|
|
388
|
+
<envs />
|
|
389
|
+
<ui />
|
|
390
|
+
<extra-mocha-options />
|
|
391
|
+
<test-kind>DIRECTORY</test-kind>
|
|
392
|
+
<test-directory />
|
|
393
|
+
<recursive>false</recursive>
|
|
394
|
+
<method />
|
|
395
|
+
</configuration>
|
|
284
396
|
</component>
|
|
285
397
|
<component name="ShelveChangesManager" show_recycled="false">
|
|
286
398
|
<option name="remove_strategy" value="false" />
|
|
@@ -297,34 +409,35 @@
|
|
|
297
409
|
<workItem from="1764899367749" duration="6504000" />
|
|
298
410
|
<workItem from="1765159374589" duration="297000" />
|
|
299
411
|
<workItem from="1765245689368" duration="11814000" />
|
|
300
|
-
<workItem from="1765330674509" duration="
|
|
412
|
+
<workItem from="1765330674509" duration="116000" />
|
|
413
|
+
<workItem from="1765331299194" duration="3066000" />
|
|
301
414
|
</task>
|
|
302
415
|
<servers />
|
|
303
416
|
</component>
|
|
304
417
|
<component name="TimeTrackingManager">
|
|
305
|
-
<option name="totallyTimeSpent" value="
|
|
418
|
+
<option name="totallyTimeSpent" value="32063000" />
|
|
306
419
|
</component>
|
|
307
420
|
<component name="ToolWindowManager">
|
|
308
421
|
<frame x="140" y="22" width="3700" height="2138" extended-state="0" />
|
|
309
422
|
<editor active="true" />
|
|
310
423
|
<layout>
|
|
311
|
-
<window_info id="Project" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" show_stripe_button="true" weight="0.
|
|
424
|
+
<window_info id="Project" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" show_stripe_button="true" weight="0.24651544" sideWeight="0.5" order="0" side_tool="false" content_ui="combo" />
|
|
312
425
|
<window_info id="TODO" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="6" side_tool="false" content_ui="tabs" />
|
|
313
426
|
<window_info id="Event Log" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="7" side_tool="true" content_ui="tabs" />
|
|
314
|
-
<window_info id="Find" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="
|
|
427
|
+
<window_info id="Find" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.32954547" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
|
|
315
428
|
<window_info id="Version Control" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="false" weight="0.33" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" />
|
|
316
429
|
<window_info id="npm" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="2" side_tool="true" content_ui="tabs" />
|
|
430
|
+
<window_info id="Run" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="2" side_tool="false" content_ui="tabs" />
|
|
317
431
|
<window_info id="Structure" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.25" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
|
|
318
432
|
<window_info id="Terminal" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" />
|
|
319
433
|
<window_info id="Favorites" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="2" side_tool="true" content_ui="tabs" />
|
|
434
|
+
<window_info id="Debug" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.4" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" />
|
|
320
435
|
<window_info id="Cvs" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.25" sideWeight="0.5" order="4" side_tool="false" content_ui="tabs" />
|
|
321
436
|
<window_info id="Message" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="0" side_tool="false" content_ui="tabs" />
|
|
322
437
|
<window_info id="Commander" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.4" sideWeight="0.5" order="0" side_tool="false" content_ui="tabs" />
|
|
323
438
|
<window_info id="Inspection" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.4" sideWeight="0.5" order="5" side_tool="false" content_ui="tabs" />
|
|
324
|
-
<window_info id="Run" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="2" side_tool="false" content_ui="tabs" />
|
|
325
439
|
<window_info id="Hierarchy" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.25" sideWeight="0.5" order="2" side_tool="false" content_ui="combo" />
|
|
326
440
|
<window_info id="Ant Build" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.25" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
|
|
327
|
-
<window_info id="Debug" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.4" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" />
|
|
328
441
|
</layout>
|
|
329
442
|
</component>
|
|
330
443
|
<component name="TypeScriptGeneratedFilesManager">
|
|
@@ -338,6 +451,17 @@
|
|
|
338
451
|
<watches-manager />
|
|
339
452
|
</component>
|
|
340
453
|
<component name="editorHistoryManager">
|
|
454
|
+
<entry file="file://$PROJECT_DIR$/index.js.map">
|
|
455
|
+
<provider editor-type-id="sourcemapFileViewerProvider">
|
|
456
|
+
<state />
|
|
457
|
+
</provider>
|
|
458
|
+
<provider selected="true" editor-type-id="text-editor">
|
|
459
|
+
<state relative-caret-position="0">
|
|
460
|
+
<caret line="0" column="0" lean-forward="false" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
|
|
461
|
+
<folding />
|
|
462
|
+
</state>
|
|
463
|
+
</provider>
|
|
464
|
+
</entry>
|
|
341
465
|
<entry file="file://$PROJECT_DIR$/package.json">
|
|
342
466
|
<provider selected="true" editor-type-id="text-editor">
|
|
343
467
|
<state relative-caret-position="0">
|
|
@@ -651,15 +775,10 @@
|
|
|
651
775
|
</state>
|
|
652
776
|
</provider>
|
|
653
777
|
</entry>
|
|
654
|
-
<entry file="file://$PROJECT_DIR$/
|
|
655
|
-
<provider
|
|
656
|
-
<state
|
|
657
|
-
<caret line="23" column="1" lean-forward="false" selection-start-line="23" selection-start-column="1" selection-end-line="23" selection-end-column="1" />
|
|
658
|
-
<folding />
|
|
659
|
-
</state>
|
|
778
|
+
<entry file="file://$PROJECT_DIR$/index.js.map">
|
|
779
|
+
<provider editor-type-id="sourcemapFileViewerProvider">
|
|
780
|
+
<state />
|
|
660
781
|
</provider>
|
|
661
|
-
</entry>
|
|
662
|
-
<entry file="file://$PROJECT_DIR$/parts/factor.js">
|
|
663
782
|
<provider selected="true" editor-type-id="text-editor">
|
|
664
783
|
<state relative-caret-position="0">
|
|
665
784
|
<caret line="0" column="0" lean-forward="false" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
|
|
@@ -667,10 +786,10 @@
|
|
|
667
786
|
</state>
|
|
668
787
|
</provider>
|
|
669
788
|
</entry>
|
|
670
|
-
<entry file="file://$PROJECT_DIR$/parts/
|
|
789
|
+
<entry file="file://$PROJECT_DIR$/parts/factor.js">
|
|
671
790
|
<provider selected="true" editor-type-id="text-editor">
|
|
672
|
-
<state relative-caret-position="
|
|
673
|
-
<caret line="
|
|
791
|
+
<state relative-caret-position="0">
|
|
792
|
+
<caret line="0" column="0" lean-forward="false" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
|
|
674
793
|
<folding />
|
|
675
794
|
</state>
|
|
676
795
|
</provider>
|
|
@@ -685,73 +804,64 @@
|
|
|
685
804
|
</entry>
|
|
686
805
|
<entry file="file://$PROJECT_DIR$/parts/ship-row.js">
|
|
687
806
|
<provider selected="true" editor-type-id="text-editor">
|
|
688
|
-
<state relative-caret-position="
|
|
807
|
+
<state relative-caret-position="1968">
|
|
689
808
|
<caret line="48" column="64" lean-forward="false" selection-start-line="48" selection-start-column="64" selection-end-line="48" selection-end-column="64" />
|
|
690
809
|
<folding />
|
|
691
810
|
</state>
|
|
692
811
|
</provider>
|
|
693
812
|
</entry>
|
|
694
|
-
<entry file="file://$PROJECT_DIR$/
|
|
813
|
+
<entry file="file://$PROJECT_DIR$/i18n/zh-CN.json">
|
|
695
814
|
<provider selected="true" editor-type-id="text-editor">
|
|
696
|
-
<state relative-caret-position="
|
|
697
|
-
<caret line="
|
|
815
|
+
<state relative-caret-position="943">
|
|
816
|
+
<caret line="23" column="1" lean-forward="false" selection-start-line="23" selection-start-column="1" selection-end-line="23" selection-end-column="1" />
|
|
698
817
|
<folding />
|
|
699
818
|
</state>
|
|
700
819
|
</provider>
|
|
701
820
|
</entry>
|
|
702
|
-
<entry file="file://$PROJECT_DIR$/
|
|
821
|
+
<entry file="file://$PROJECT_DIR$/README-CN.MD">
|
|
703
822
|
<provider selected="true" editor-type-id="text-editor">
|
|
704
|
-
<state relative-caret-position="
|
|
705
|
-
<caret line="
|
|
823
|
+
<state relative-caret-position="868">
|
|
824
|
+
<caret line="51" column="42" lean-forward="false" selection-start-line="51" selection-start-column="42" selection-end-line="51" selection-end-column="42" />
|
|
706
825
|
<folding />
|
|
707
826
|
</state>
|
|
708
827
|
</provider>
|
|
709
828
|
</entry>
|
|
710
|
-
<entry file="file://$PROJECT_DIR$/
|
|
829
|
+
<entry file="file://$PROJECT_DIR$/parts/candidates.js">
|
|
711
830
|
<provider selected="true" editor-type-id="text-editor">
|
|
712
|
-
<state relative-caret-position="
|
|
713
|
-
<caret line="
|
|
831
|
+
<state relative-caret-position="41">
|
|
832
|
+
<caret line="43" column="64" lean-forward="false" selection-start-line="43" selection-start-column="64" selection-end-line="43" selection-end-column="64" />
|
|
714
833
|
<folding />
|
|
715
834
|
</state>
|
|
716
835
|
</provider>
|
|
717
836
|
</entry>
|
|
718
|
-
<entry file="file://$PROJECT_DIR$/index.js
|
|
719
|
-
<provider editor-type-id="sourcemapFileViewerProvider">
|
|
720
|
-
<state />
|
|
721
|
-
</provider>
|
|
837
|
+
<entry file="file://$PROJECT_DIR$/index.js">
|
|
722
838
|
<provider selected="true" editor-type-id="text-editor">
|
|
723
|
-
<state relative-caret-position="
|
|
724
|
-
<caret line="
|
|
839
|
+
<state relative-caret-position="362">
|
|
840
|
+
<caret line="43" column="64" lean-forward="false" selection-start-line="43" selection-start-column="64" selection-end-line="43" selection-end-column="64" />
|
|
725
841
|
<folding />
|
|
726
842
|
</state>
|
|
727
843
|
</provider>
|
|
728
844
|
</entry>
|
|
729
|
-
<entry file="file://$PROJECT_DIR$/
|
|
845
|
+
<entry file="file://$PROJECT_DIR$/README.MD">
|
|
730
846
|
<provider selected="true" editor-type-id="text-editor">
|
|
731
|
-
<state relative-caret-position="
|
|
732
|
-
<caret line="
|
|
847
|
+
<state relative-caret-position="821">
|
|
848
|
+
<caret line="48" column="80" lean-forward="false" selection-start-line="48" selection-start-column="80" selection-end-line="48" selection-end-column="80" />
|
|
733
849
|
<folding />
|
|
734
850
|
</state>
|
|
735
851
|
</provider>
|
|
736
852
|
</entry>
|
|
737
|
-
<entry file="file://$PROJECT_DIR$/parts/
|
|
738
|
-
<provider editor-type-id="sourcemapFileViewerProvider">
|
|
739
|
-
<state />
|
|
740
|
-
</provider>
|
|
853
|
+
<entry file="file://$PROJECT_DIR$/parts/functions.js">
|
|
741
854
|
<provider selected="true" editor-type-id="text-editor">
|
|
742
|
-
<state relative-caret-position="
|
|
743
|
-
<caret line="
|
|
855
|
+
<state relative-caret-position="205">
|
|
856
|
+
<caret line="5" column="0" lean-forward="true" selection-start-line="5" selection-start-column="0" selection-end-line="5" selection-end-column="0" />
|
|
744
857
|
<folding />
|
|
745
858
|
</state>
|
|
746
859
|
</provider>
|
|
747
860
|
</entry>
|
|
748
|
-
<entry file="file://$PROJECT_DIR$/parts/fleet-list.js
|
|
749
|
-
<provider editor-type-id="sourcemapFileViewerProvider">
|
|
750
|
-
<state />
|
|
751
|
-
</provider>
|
|
861
|
+
<entry file="file://$PROJECT_DIR$/parts/fleet-list.js">
|
|
752
862
|
<provider selected="true" editor-type-id="text-editor">
|
|
753
|
-
<state relative-caret-position="
|
|
754
|
-
<caret line="
|
|
863
|
+
<state relative-caret-position="902">
|
|
864
|
+
<caret line="208" column="6" lean-forward="false" selection-start-line="208" selection-start-column="6" selection-end-line="208" selection-end-column="6" />
|
|
755
865
|
<folding />
|
|
756
866
|
</state>
|
|
757
867
|
</provider>
|
package/package.json
CHANGED
package/parts/fleet-list.js
CHANGED
|
@@ -74,6 +74,23 @@ class FleetList extends _react.Component {
|
|
|
74
74
|
}
|
|
75
75
|
break;
|
|
76
76
|
|
|
77
|
+
case '/kcsapi/api_req_hensei/preset_select':
|
|
78
|
+
{
|
|
79
|
+
const { fleet} = this.props;
|
|
80
|
+
|
|
81
|
+
var oldCanRepair = _functions.getCanRepairStatus(fleet);
|
|
82
|
+
|
|
83
|
+
var changeFleetId = parseInt(postBody.api_deck_id, 10);
|
|
84
|
+
if(!Number.isNaN(changeFleetId)&&changeFleetId==this.props.fleet.api_id){
|
|
85
|
+
console.log(fleet);
|
|
86
|
+
var newFleet = getStore('info.fleets')[changeFleetId-1];
|
|
87
|
+
var newCanRepair = _functions.getCanRepairStatus(newFleet);
|
|
88
|
+
console.log(3333333333)
|
|
89
|
+
console.log(oldCanRepair,newCanRepair);
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
}
|
|
93
|
+
break;
|
|
77
94
|
case '/kcsapi/api_req_hensei/change':
|
|
78
95
|
{
|
|
79
96
|
|
|
@@ -103,36 +120,39 @@ class FleetList extends _react.Component {
|
|
|
103
120
|
var secondshipa = _lodash2.default.get(newFleet, 'api_ship.1', -1)
|
|
104
121
|
var flagshipid = _ships[flagshipa]?_ships[flagshipa].api_ship_id:-1;
|
|
105
122
|
var secondshipid = _ships[secondshipa]?_ships[secondshipa].api_ship_id:-1;
|
|
106
|
-
if(
|
|
107
|
-
flagshipid==182||flagshipid==187||
|
|
108
|
-
flagshipid==996||flagshipid==1002||
|
|
109
|
-
secondshipid==996||secondshipid==1002
|
|
110
|
-
){
|
|
123
|
+
if(flagshipid==182||flagshipid==187){
|
|
111
124
|
newCanRepair = 1
|
|
125
|
+
}else if (flagshipid==996||secondshipid==996){
|
|
126
|
+
newCanRepair = 2
|
|
127
|
+
}else if (flagshipid==1002||secondshipid==1002){
|
|
128
|
+
newCanRepair = 3
|
|
129
|
+
}else if (flagshipid==182||flagshipid==187&&secondshipid==996){
|
|
130
|
+
newCanRepair = 4
|
|
131
|
+
}else if (flagshipid==182||flagshipid==187&&secondshipid==1002){
|
|
132
|
+
newCanRepair = 5
|
|
133
|
+
}else{
|
|
134
|
+
newCanRepair = 0
|
|
112
135
|
}
|
|
113
136
|
}
|
|
114
|
-
// console.log(3333333333)
|
|
115
|
-
// console.log(fleetId)
|
|
116
|
-
// console.log(fleet)
|
|
117
|
-
// console.log(flagshipid,secondshipid)
|
|
118
|
-
// console.log(newFleet)
|
|
119
|
-
// console.log(newCanRepair)
|
|
120
137
|
if(fleet.canRepair==0&&newCanRepair==0){
|
|
121
138
|
this.setState({
|
|
122
|
-
|
|
123
|
-
// timeElapsed: 0
|
|
139
|
+
lc:newCanRepair
|
|
124
140
|
});
|
|
125
141
|
}else{
|
|
126
142
|
this.setState({
|
|
127
143
|
lastRefresh: Date.now(),
|
|
128
|
-
timeElapsed: 0
|
|
144
|
+
timeElapsed: 0,
|
|
145
|
+
lc:newCanRepair
|
|
129
146
|
});
|
|
130
147
|
}
|
|
131
148
|
} else if (shipId < 0) {
|
|
132
|
-
|
|
149
|
+
this.setState({
|
|
150
|
+
lc:newCanRepair
|
|
151
|
+
});
|
|
133
152
|
} else {
|
|
134
153
|
this.setState({ // since it has passed more than 20 minutes, need to refresh the hp
|
|
135
|
-
lastRefresh: 0
|
|
154
|
+
lastRefresh: 0,
|
|
155
|
+
lc:newCanRepair
|
|
136
156
|
});
|
|
137
157
|
}
|
|
138
158
|
}
|
|
@@ -183,6 +203,10 @@ class FleetList extends _react.Component {
|
|
|
183
203
|
}else if(fleet.canRepair==4||fleet.canRepair==5){
|
|
184
204
|
s1 = '正在修理和喂奶';
|
|
185
205
|
}
|
|
206
|
+
var lc = this.state.lc;
|
|
207
|
+
//console.log(1111111)
|
|
208
|
+
//console.log(lc)
|
|
209
|
+
//console.log(fleet.canRepair)
|
|
186
210
|
|
|
187
211
|
return _react2.default.createElement(
|
|
188
212
|
_reactBootstrap.Grid,
|
|
@@ -250,6 +274,7 @@ class FleetList extends _react.Component {
|
|
|
250
274
|
})
|
|
251
275
|
)
|
|
252
276
|
),
|
|
277
|
+
|
|
253
278
|
_react2.default.createElement(
|
|
254
279
|
_reactBootstrap.Col,
|
|
255
280
|
{ xs: 4, className: 'info-col' },
|
package/parts/functions.js
CHANGED
|
@@ -1,9 +1,14 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
+
var _lodash = require('lodash');
|
|
4
|
+
|
|
5
|
+
var _lodash2 = _interopRequireDefault(_lodash);
|
|
6
|
+
|
|
7
|
+
|
|
3
8
|
Object.defineProperty(exports, "__esModule", {
|
|
4
9
|
value: true
|
|
5
10
|
});
|
|
6
|
-
exports.getCountdownLabelStyle = exports.getHPLabelStyle = exports.repairEstimate = exports.getTimePerHP = exports.timePerHPCalc = exports.akashiEstimate = exports.AKASHI_INTERVAL = undefined;
|
|
11
|
+
exports.getCountdownLabelStyle = exports.getHPLabelStyle = exports.repairEstimate = exports.getTimePerHP = exports.timePerHPCalc = exports.akashiEstimate = exports.AKASHI_INTERVAL = exports.getCanRepairStatus = undefined;
|
|
7
12
|
|
|
8
13
|
var _factor = require('./factor');
|
|
9
14
|
|
|
@@ -87,4 +92,28 @@ const getCountdownLabelStyle = exports.getCountdownLabelStyle = (props, timeRema
|
|
|
87
92
|
default:
|
|
88
93
|
return 'default';
|
|
89
94
|
}
|
|
90
|
-
};
|
|
95
|
+
};
|
|
96
|
+
|
|
97
|
+
|
|
98
|
+
const getCanRepairStatus = exports.getCanRepairStatus = function(fleet){
|
|
99
|
+
var flagshipa = _lodash2.default.get(fleet, 'api_ship.0', -1)
|
|
100
|
+
var secondshipa = _lodash2.default.get(fleet, 'api_ship.1', -1)
|
|
101
|
+
var flagshipid = _ships[flagshipa]?_ships[flagshipa].api_ship_id:-1;
|
|
102
|
+
var secondshipid = _ships[secondshipa]?_ships[secondshipa].api_ship_id:-1;
|
|
103
|
+
var newCanRepair = 0;
|
|
104
|
+
if(flagshipid==182||flagshipid==187){
|
|
105
|
+
newCanRepair = 1
|
|
106
|
+
}else if (flagshipid==996||secondshipid==996){
|
|
107
|
+
newCanRepair = 2
|
|
108
|
+
}else if (flagshipid==1002||secondshipid==1002){
|
|
109
|
+
newCanRepair = 3
|
|
110
|
+
}else if (flagshipid==182||flagshipid==187&&secondshipid==996){
|
|
111
|
+
newCanRepair = 4
|
|
112
|
+
}else if (flagshipid==182||flagshipid==187&&secondshipid==1002){
|
|
113
|
+
newCanRepair = 5
|
|
114
|
+
}else{
|
|
115
|
+
newCanRepair = 0
|
|
116
|
+
}
|
|
117
|
+
return newCanRepair
|
|
118
|
+
|
|
119
|
+
}
|