From 85ea14d10a97c3c564772a1289f5eab8dac03dbd Mon Sep 17 00:00:00 2001 From: Eg <1711788888@qq.com> Date: Sun, 29 Aug 2021 18:29:26 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E9=83=A8=E5=88=86=E5=B7=B2?= =?UTF-8?q?=E7=9F=A5=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- back_config.setting | 5 ----- pom.xml | 6 +++++- src/main/java/com/eg/www/AliYunPan.java | 4 ++-- src/main/java/com/eg/www/App.java | 6 ++++++ .../java/com/eg/www/common/MyConsole.java | 5 ----- target/classes/com/eg/www/AliYunPan.class | Bin 10554 -> 10575 bytes target/classes/com/eg/www/App.class | Bin 685 -> 759 bytes .../classes/com/eg/www/common/MyConsole.class | Bin 1193 -> 578 bytes .../com/eg/www/common/utils/getToken.class | Bin 0 -> 297 bytes uploadLog.txt | 3 --- 10 files changed, 13 insertions(+), 16 deletions(-) create mode 100644 target/classes/com/eg/www/common/utils/getToken.class diff --git a/back_config.setting b/back_config.setting index 76a9bd3..e69de29 100644 --- a/back_config.setting +++ b/back_config.setting @@ -1,5 +0,0 @@ -[] -tokenText = 77190dd0a59a45b0883650647b85522d -pathText = C:\Users\Administrator\Desktop\HKBTest -folderText = backtest -backType = 0 diff --git a/pom.xml b/pom.xml index 8c564d9..cc3f7db 100644 --- a/pom.xml +++ b/pom.xml @@ -36,7 +36,11 @@ 5.6.5 - + + com.formdev + flatlaf + 0.26 + diff --git a/src/main/java/com/eg/www/AliYunPan.java b/src/main/java/com/eg/www/AliYunPan.java index f7a9096..a16f522 100644 --- a/src/main/java/com/eg/www/AliYunPan.java +++ b/src/main/java/com/eg/www/AliYunPan.java @@ -94,7 +94,7 @@ public class AliYunPan extends JFrame implements ActionListener { } } //设置显示窗口标题 - setTitle("备份助手"); + setTitle("阿里云盘备份工具"); //设置标题栏的图标 this.setIconImage(new ImageIcon(getClass().getResource("/images/logo.png")).getImage()); //设置窗口显示尺寸 @@ -130,7 +130,7 @@ public class AliYunPan extends JFrame implements ActionListener { */ JLabel pathTitle = new JLabel("选择目录"); pathText = new JTextField(); - JLabel tokenTitle = new JLabel("阿里云Token"); + JLabel tokenTitle = new JLabel("Token"); //tokenText = new JTextField(); JLabel folderTitle = new JLabel("备份目录名称"); folderText = new JTextField(); diff --git a/src/main/java/com/eg/www/App.java b/src/main/java/com/eg/www/App.java index 865020d..10a1aa9 100644 --- a/src/main/java/com/eg/www/App.java +++ b/src/main/java/com/eg/www/App.java @@ -1,6 +1,9 @@ package com.eg.www; import cn.hutool.cron.CronUtil; +import com.formdev.flatlaf.FlatDarculaLaf; + +import javax.swing.*; /** * 微信备份程序 @@ -8,6 +11,9 @@ import cn.hutool.cron.CronUtil; */ public class App { public static void main( String[] args ) { + + FlatDarculaLaf.install(); + //加载UI new AliYunPan(); //开启定时 diff --git a/src/main/java/com/eg/www/common/MyConsole.java b/src/main/java/com/eg/www/common/MyConsole.java index c138a7b..a3b2529 100644 --- a/src/main/java/com/eg/www/common/MyConsole.java +++ b/src/main/java/com/eg/www/common/MyConsole.java @@ -10,11 +10,6 @@ import java.awt.*; */ public class MyConsole extends JTextArea { public MyConsole() { - String info="温馨提示:备份目录名称是要备份到阿里云盘那个目录下(不存在则自动创建)\n"; - info+="普通备份:会按本地目录结构上传文件\n"; - info+="分类备份:会将本地文件按文档、压缩包、软件、音乐、图片、视频等分类上传\n"; - info+="运行日志...\n"; - this.setText(info); this.setForeground(Color.white); this.setBackground(Color.BLACK); //启动自动换行 diff --git a/target/classes/com/eg/www/AliYunPan.class b/target/classes/com/eg/www/AliYunPan.class index 74f2f82a6f71e33f4729259c9de1a1563d6cea62..b949832ed7b725cf04e98888a2200fc12a804cb7 100644 GIT binary patch delta 3013 zcmZ8j37n4Q7C-+p%k$1N&nz)xnFTRstPLWPZ4B8XOHq;K+9IPOa^<^pElHMMWxYuV zC1EsUr`^7`n^5@-T12agx#x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t!#u(yXN-T&N3d-lNyHBQe{e{H)tJ!*2_nVX@l^2W%!N4zgdRQ7k*P2ezWjzmEpGtzqJg%P5A9) z_#MLUyupV`1HOGjApAD@lT$9qke>1|mV+L~a@GYi$##daY;+jQs)n)L0bwjl8OE}H zVJz1|7|XT^_O$7OEme^VMhMa?BP@VkG}4P>ev6cqIPRZF=~3q^dE-PzG@rhvZv>wx zkrdM`f}wAPW4&*}c0;Nz5W5Ri+YeB?Mifc4r~;j&LJCj=iltLRMNkrDQ4yUMJECVw zy;h)!bcVhcFX}&z0@oK_*a8GFV>fCX!#G zpXsb6e&^76sCYV8iV$^z)taQN8bwkBBe-IDyNEMPd7=du!7t@A8 zdNUv+6i!=vlS~PSkl{1R%jY5zQ9>nA6&QHh8+0lyN+?9biW?1`MYaLkt2C*NevyO4 zB4*73PB4NJTR#0URmw|jxh*udxPsIy8PV*T8_DmVIae|%%IuhZbGoxjV`&6Kkx7Y( z$%&GVoO|`)_s`1eRd*9D$s=qaMC8*_L0f6rz?z$Ac|NV!Kr2O%PcN^clx`bn)mEA^ za1({%SLf5T+WE95pPtUASJsQKCe()7(`=c>asNP8t#C7{36~>?jK z@nWTEl_xG1(~@GPJgu@E>mk<^MWLZ!Ez*-Bqw?w1k~4i=BvC4t-_3fxk`U#hJtUx_ zygTMk&8`^wOPLbNC`Y1_u6{WWl~F}?#bvVklP5yzUMCn-*49JfUuk8PY6dscYk9O1 z(nHOx#K4A6K}*T76$Q{NNnS9L>2<-0(v@X`^=Vmxcpwkvd!$n;mt%?LVzdG)vEokv C#drSz diff --git a/target/classes/com/eg/www/App.class b/target/classes/com/eg/www/App.class index b5720ba29a7f24c86333de5e876e7e6b3e0fb3ed..7749e9f065835cd0639c2bd33159f8d211b2cb47 100644 GIT binary patch delta 411 zcmYjL%T5A85UgQYhFwQNUGa%13IaYx#CS466647jZv;J*a)?>aOmp)T8-j9(;bkeE`@;$%c)28w*(ESh8X0C5dI-QWjRQY9oy` zj&+XAeetC{2EmaP*g%fKsdrkkaV>q{mldyB>$lHUn04kX8}KoNU` zB+Hi4TIP1Tt*geZbUoGclq*jNk5#wc_tdF!8F;gO(^H}NvnZ=B0}Pad z`Z#TpkP(`NA=ncQAxuz@1f)QWX8lSJh+~q_!W5>7(c&}u);DK_Q1u-~ZHRDn1T#EB zixCFA{&WRxVbpH(W8ing!UwRbn*dYKZgSeZAg3o zU&u|&vl7f<=0B5}-%RE+cnG#XzFyyf9kvV+4b7y%qhXk0+PRsCS>_D$ENB)rOZV;P zT|-4tKkHqm=ND;~W$D4yW#^`QblTM{TUMx8nzS^lmNnKjiDiS$JW;LuPUW|uta4UD zAuRD$vQ(my7$kkvqX>^7@#UfzQ59`}8W<*)EMkP3RNU~Pbi3jB4X@LubUeWK2Lykd y8h$|tIjPFdSRn0x(3nx`1$6B9qNYHdMNgFD-V55%RB@I266_JOFO_l89uwa@Tp{QH diff --git a/target/classes/com/eg/www/common/MyConsole.class b/target/classes/com/eg/www/common/MyConsole.class index e0ce80ee87e2d8c2ee542b8829bc10353593239e..0d141b68ab907362f6c97d6603bfb11575838c19 100644 GIT binary patch delta 252 zcmW-aJyHTe5Juk)3*#=MzygAb3oJh?8xwFBQp(ITcm|3KkQz#WRR#uz-odL_e$8~% z>(|pW-EYZvy!rY2`~ucgDJi{#KDQ|e1GAyoo#Ec_U>JEGJ^6n7y#LKtO@e0}m@o|# z%mQ<>h1rra@MKs~9$wt$P}GjEiPqSO6#6Y*tJ>jYP*fj8)d_c|rWBv4S3<+!4Oj1a l<+u@Zycmczp{bjUHUn`)mnl73m+ob%IvrIJSwqRu{Rb@T8KM9H literal 1193 zcmaJ=Sx*yT6g>mQ);g40-1ps5wd1}oKoeuM>H`L%KIjMoj+PFY4p!gPC za&Ux{28lyiSdL1ETANQv>Jjl&gcx5~sTU))qAD}LKsvP3a*V_LaJ|wjNKHaK9v8@L zR-(ee3n3*MQzFt1Dk?`C6;|Smcuo`|Vzf!9(NsCwL}%_ArB$t$_R6e@=T}ych4Pq& z=^Pr(^vitz3-eZ&)i?4j`@rZ+=$TO~`PLY{YjoYP28PU@!Ce0(n>X5r@;zhuM5jJ- z+e-H2FF(`Muk2tweci98Zy0ZSjNTVU`~6(vm2r)Xq>&k^aC4aXx4!CDInp4hJl10a zhmGd_xA}{O_M}74J}^5w%-+{V?~vWV%G@y@UeVLn^z38v9;r;ZdAhev9L^Z+ZPswc zmT2c1Lv41h9mz`FOPEideZ6?exOv^mzBD?olARkJq&j5eAHCNc5?flNXak2e{)yLIF@Y-lSsDPBrr5*4 zVVZwpAVoN1lExZQ^MBQ*sr8IsoEX=HkP=Z;4khu^vPJ{twHyCBp=za6ZLgwAO{&t$ z^p+QD{*GaLP*NSP3LUVctHt`WKclBmHrtIlRcxWb_8()xULqM$qg{wdb&5(=-9**O zF`0G+i)r7=X@LQb9vW%F8RUIN5j{X--~%{cQ8iKRDMvxXA@B zKw0j{L6DIE diff --git a/target/classes/com/eg/www/common/utils/getToken.class b/target/classes/com/eg/www/common/utils/getToken.class new file mode 100644 index 0000000000000000000000000000000000000000..ee6da02413f99b2a60495bf915fe4fedd773c4ae GIT binary patch literal 297 zcmaivy>7xl5QJxqe~4p##1jBjLXm6IB}#*o$_fRD{%lUpfqf^LbNpPXBBjU!