Skip to content

Commit

Permalink
Merge pull request #179 from rememberber/develop
Browse files Browse the repository at this point in the history
Develop
  • Loading branch information
rememberber committed Jul 4, 2019
2 parents 289d26e + 149f696 commit ed999fc
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 23 deletions.
1 change: 0 additions & 1 deletion readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,6 @@
+ Swing界面不好控制,导致需要投入较多精力和耐心
+ 工作过于饱和,经常到半夜很晚才挤出一点时间
+ 要做的事情有很多,比如WePush中间件及其附属的集消息中心、通知报警、任务、批量、重试、统计等于一身的方便部署的Web管理应用
+ 需要不断调整工作和个人项目状态
+ 陪家人时间变少或无
+ 锻炼身体时间变少或无
+ 越来越发现需要不断学习源码和底层的重要性
Expand Down
36 changes: 22 additions & 14 deletions src/main/java/com/fangxuele/tool/push/ui/form/AboutForm.form
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?>
<form xmlns="http://www.intellij.com/uidesigner/form/" version="1" bind-to-class="com.fangxuele.tool.push.ui.form.AboutForm">
<grid id="27dc6" binding="aboutPanel" layout-manager="GridLayoutManager" row-count="9" column-count="2" same-size-horizontally="false" same-size-vertically="false" hgap="-1" vgap="-1">
<grid id="27dc6" binding="aboutPanel" layout-manager="GridLayoutManager" row-count="10" column-count="2" same-size-horizontally="false" same-size-vertically="false" hgap="-1" vgap="-1">
<margin top="0" left="0" bottom="0" right="0"/>
<constraints>
<xy x="20" y="20" width="500" height="468"/>
<xy x="20" y="20" width="500" height="513"/>
</constraints>
<properties/>
<border type="none"/>
Expand All @@ -27,14 +27,6 @@
<text value="WePush"/>
</properties>
</component>
<component id="f71a0" class="javax.swing.JLabel">
<constraints>
<grid row="2" column="0" row-span="1" col-span="2" vsize-policy="0" hsize-policy="0" anchor="0" fill="0" indent="0" use-parent-layout="false"/>
</constraints>
<properties>
<text value="Proudly by RememBerBer 周波"/>
</properties>
</component>
<component id="ebcb2" class="javax.swing.JLabel" binding="qrCodeLabel">
<constraints>
<grid row="4" column="0" row-span="1" col-span="2" vsize-policy="0" hsize-policy="0" anchor="0" fill="0" indent="0" use-parent-layout="false"/>
Expand All @@ -47,7 +39,7 @@
</component>
<component id="68142" class="javax.swing.JLabel" binding="versionLabel">
<constraints>
<grid row="6" column="0" row-span="1" col-span="2" vsize-policy="0" hsize-policy="0" anchor="0" fill="0" indent="0" use-parent-layout="false"/>
<grid row="7" column="0" row-span="1" col-span="2" vsize-policy="0" hsize-policy="0" anchor="0" fill="0" indent="0" use-parent-layout="false"/>
</constraints>
<properties>
<font name="Microsoft YaHei UI"/>
Expand All @@ -56,7 +48,7 @@
</component>
<component id="beefe" class="javax.swing.JLabel" binding="checkUpdateLabel">
<constraints>
<grid row="7" column="0" row-span="1" col-span="1" vsize-policy="0" hsize-policy="0" anchor="4" fill="0" indent="0" use-parent-layout="false"/>
<grid row="8" column="0" row-span="1" col-span="1" vsize-policy="0" hsize-policy="0" anchor="4" fill="0" indent="0" use-parent-layout="false"/>
</constraints>
<properties>
<font style="1"/>
Expand All @@ -65,7 +57,7 @@
</component>
<component id="568b4" class="javax.swing.JLabel" binding="companyLabel">
<constraints>
<grid row="8" column="0" row-span="1" col-span="2" vsize-policy="0" hsize-policy="0" anchor="0" fill="0" indent="0" use-parent-layout="false"/>
<grid row="9" column="0" row-span="1" col-span="2" vsize-policy="0" hsize-policy="0" anchor="0" fill="0" indent="0" use-parent-layout="false"/>
</constraints>
<properties>
<font name="Microsoft YaHei UI"/>
Expand All @@ -74,7 +66,7 @@
</component>
<component id="7b6f7" class="javax.swing.JLabel" binding="helpDocLabel">
<constraints>
<grid row="7" column="1" row-span="1" col-span="1" vsize-policy="0" hsize-policy="0" anchor="8" fill="0" indent="0" use-parent-layout="false"/>
<grid row="8" column="1" row-span="1" col-span="1" vsize-policy="0" hsize-policy="0" anchor="8" fill="0" indent="0" use-parent-layout="false"/>
</constraints>
<properties>
<font style="1"/>
Expand All @@ -90,6 +82,22 @@
<toolTipText value=" 自3.4.0版本开始算起"/>
</properties>
</component>
<component id="16539" class="javax.swing.JLabel">
<constraints>
<grid row="2" column="0" row-span="1" col-span="2" vsize-policy="0" hsize-policy="0" anchor="0" fill="0" indent="0" use-parent-layout="false"/>
</constraints>
<properties>
<text value="专注批量推送的小而美的工具"/>
</properties>
</component>
<component id="f71a0" class="javax.swing.JLabel">
<constraints>
<grid row="6" column="0" row-span="1" col-span="2" vsize-policy="0" hsize-policy="0" anchor="0" fill="0" indent="0" use-parent-layout="false"/>
</constraints>
<properties>
<text value="Proudly by RememBerBer 周波"/>
</properties>
</component>
</children>
</grid>
</form>
19 changes: 11 additions & 8 deletions src/main/java/com/fangxuele/tool/push/ui/form/AboutForm.java
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ public static void init() {
*/
private void $$$setupUI$$$() {
aboutPanel = new JPanel();
aboutPanel.setLayout(new GridLayoutManager(9, 2, new Insets(0, 0, 0, 0), -1, -1));
aboutPanel.setLayout(new GridLayoutManager(10, 2, new Insets(0, 0, 0, 0), -1, -1));
sloganLabel = new JLabel();
sloganLabel.setIcon(new ImageIcon(getClass().getResource("/icon/logo-md.png")));
sloganLabel.setText("");
Expand All @@ -60,9 +60,6 @@ public static void init() {
if (label1Font != null) label1.setFont(label1Font);
label1.setText("WePush");
aboutPanel.add(label1, new GridConstraints(1, 0, 1, 2, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));
final JLabel label2 = new JLabel();
label2.setText("Proudly by RememBerBer 周波");
aboutPanel.add(label2, new GridConstraints(2, 0, 1, 2, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));
qrCodeLabel = new JLabel();
qrCodeLabel.setIcon(new ImageIcon(getClass().getResource("/icon/weixin-qrcode.png")));
qrCodeLabel.setText("");
Expand All @@ -72,26 +69,32 @@ public static void init() {
Font versionLabelFont = this.$$$getFont$$$("Microsoft YaHei UI", -1, -1, versionLabel.getFont());
if (versionLabelFont != null) versionLabel.setFont(versionLabelFont);
versionLabel.setText("版本:v_1.00_170607");
aboutPanel.add(versionLabel, new GridConstraints(6, 0, 1, 2, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));
aboutPanel.add(versionLabel, new GridConstraints(7, 0, 1, 2, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));
checkUpdateLabel = new JLabel();
Font checkUpdateLabelFont = this.$$$getFont$$$(null, Font.BOLD, -1, checkUpdateLabel.getFont());
if (checkUpdateLabelFont != null) checkUpdateLabel.setFont(checkUpdateLabelFont);
checkUpdateLabel.setText("检查更新");
aboutPanel.add(checkUpdateLabel, new GridConstraints(7, 0, 1, 1, GridConstraints.ANCHOR_EAST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));
aboutPanel.add(checkUpdateLabel, new GridConstraints(8, 0, 1, 1, GridConstraints.ANCHOR_EAST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));
companyLabel = new JLabel();
Font companyLabelFont = this.$$$getFont$$$("Microsoft YaHei UI", -1, -1, companyLabel.getFont());
if (companyLabelFont != null) companyLabel.setFont(companyLabelFont);
companyLabel.setText("<html>Fork me on Gitee: <a href='https://github.com/rememberber/wepush'>https://gitee.com/zhoubochina/WePush</a></html>");
aboutPanel.add(companyLabel, new GridConstraints(8, 0, 1, 2, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));
aboutPanel.add(companyLabel, new GridConstraints(9, 0, 1, 2, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));
helpDocLabel = new JLabel();
Font helpDocLabelFont = this.$$$getFont$$$(null, Font.BOLD, -1, helpDocLabel.getFont());
if (helpDocLabelFont != null) helpDocLabel.setFont(helpDocLabelFont);
helpDocLabel.setText("| 帮助文档");
aboutPanel.add(helpDocLabel, new GridConstraints(7, 1, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));
aboutPanel.add(helpDocLabel, new GridConstraints(8, 1, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));
pushTotalLabel = new JLabel();
pushTotalLabel.setText("<html>已累计为您推送 <b>0</b> 条消息</html>");
pushTotalLabel.setToolTipText(" 自3.4.0版本开始算起");
aboutPanel.add(pushTotalLabel, new GridConstraints(5, 0, 1, 2, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));
final JLabel label2 = new JLabel();
label2.setText("专注批量推送的小而美的工具");
aboutPanel.add(label2, new GridConstraints(2, 0, 1, 2, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));
final JLabel label3 = new JLabel();
label3.setText("Proudly by RememBerBer 周波");
aboutPanel.add(label3, new GridConstraints(6, 0, 1, 2, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));
}

/**
Expand Down

0 comments on commit ed999fc

Please sign in to comment.