@@ -85,12 +85,6 @@ public class MainController {
85
85
@ FXML
86
86
public TextField searchTextField ;
87
87
88
- @ FXML
89
- public ProgressBar uploadProgress ;
90
-
91
- @ FXML
92
- public ProgressBar downloadProgress ;
93
-
94
88
@ FXML
95
89
public CheckBox folderRecursive ;
96
90
@@ -117,21 +111,6 @@ public class MainController {
117
111
@ FXML
118
112
private TableColumn <FileBean , String > timeColumn ;
119
113
120
- @ FXML
121
- private Hyperlink toCsdnBlog ;
122
-
123
- @ FXML
124
- private Hyperlink toHexoBlog ;
125
-
126
- @ FXML
127
- private Hyperlink toGithubSource ;
128
-
129
- @ FXML
130
- private Hyperlink toIntro ;
131
-
132
- @ FXML
133
- private Hyperlink toIntro1 ;
134
-
135
114
@ FXML
136
115
private Label totalSizeLabel ;
137
116
@@ -279,19 +258,21 @@ private void drawChart(boolean isFluxUnitChange, boolean isBandwidthUnitChange)
279
258
// 获取开始日期和结束日期的时间差
280
259
long timeSpan = localEndDate .getTime () - localStartDate .getTime ();
281
260
if (Checker .isNotEmpty (domainTextField .getText ()) && timeSpan >= 0 && timeSpan <= QiniuValueConsts .DATE_SPAN_OF_THIRTY_ONE ) {
282
- String [] domains = {domainTextField .getText ()};
283
- if (isFluxUnitChange ) {
284
- // 获取流量数据
285
- String fluxUnit = fluxCountUnit .getValue ();
286
- bucketFluxChart .getData ().clear ();
287
- bucketFluxChart .getData ().add (service .getBucketFlux (domains , fromDate , toDate , fluxUnit ));
288
- }
289
- if (isBandwidthUnitChange ) {
290
- // 获取带宽数据
291
- String bandUnit = bandCountUnit .getValue ();
292
- bucketBandChart .getData ().clear ();
293
- bucketBandChart .getData ().add (service .getBucketBandwidth (domains , fromDate , toDate , bandUnit ));
294
- }
261
+ Platform .runLater (() -> {
262
+ String [] domains = {domainTextField .getText ()};
263
+ if (isFluxUnitChange ) {
264
+ // 获取流量数据
265
+ String fluxUnit = fluxCountUnit .getValue ();
266
+ bucketFluxChart .getData ().clear ();
267
+ bucketFluxChart .getData ().add (service .getBucketFlux (domains , fromDate , toDate , fluxUnit ));
268
+ }
269
+ if (isBandwidthUnitChange ) {
270
+ // 获取带宽数据
271
+ String bandUnit = bandCountUnit .getValue ();
272
+ bucketBandChart .getData ().clear ();
273
+ bucketBandChart .getData ().add (service .getBucketBandwidth (domains , fromDate , toDate , bandUnit ));
274
+ }
275
+ });
295
276
}
296
277
}
297
278
@@ -582,11 +563,7 @@ public void uploadFile() {
582
563
}
583
564
// 新建一个上传文件的线程
584
565
ThreadPool .executor .submit (() -> {
585
- Platform .runLater (() -> {
586
- uploadProgress .setVisible (true );
587
- uploadProgress .setProgress (0 );
588
- uploadStatusTextArea .insertText (0 , QiniuValueConsts .CONFIG_UPLOAD_ENVIRONMENT );
589
- });
566
+ Platform .runLater (() -> uploadStatusTextArea .insertText (0 , QiniuValueConsts .CONFIG_UPLOAD_ENVIRONMENT ));
590
567
String bucket = bucketChoiceCombo .getValue ();
591
568
// 默认不指定key的情况下,以文件内容的hash值作为文件名
592
569
String key = Checker .checkNull (filePrefixCombo .getValue ());
@@ -648,8 +625,6 @@ public void uploadFile() {
648
625
Platform .runLater (() -> {
649
626
uploadStatusTextArea .deleteText (0 , end );
650
627
uploadStatusTextArea .insertText (0 , status );
651
- // 设置上传的进度
652
- uploadProgress .setProgress (++upProgress / total );
653
628
});
654
629
}
655
630
Platform .runLater (() -> selectedFileTextArea .deleteText (0 , path .length () + (paths .length > 1 ? 1 : 0 )));
@@ -660,8 +635,6 @@ public void uploadFile() {
660
635
uploadStatusTextArea .positionCaret (0 );
661
636
// 清空待上传的文件列表
662
637
selectedFileTextArea .clear ();
663
- // 上传完成时,设置上传进度度不可见
664
- uploadProgress .setVisible (false );
665
638
});
666
639
mapResourceData ();
667
640
// 添加文件前缀到配置文件
0 commit comments