Browse Source
Merge in DESIGN/design from ~HARRISON/design:feature/x to feature/x * commit 'ca024a4f6b0d43a547db871ecfa0ce97571d65af': REPORT-76079【迭代】【起始页】交互问题 1-处理全屏问题 2-上下间距改变的问题 REPORT-78472【迭代】【起始页】不打开任何报表启动,点控件管理保存报错npe npe 处理 REPORT-78469【迭代】【起始页】不打开任何报表启动,点模板主题管理没反应 模板管理部分消除 npe REPORT-76061【迭代】【起始页】起始页已打开,系统文件夹直接打开模板 1-文件名变更为全文件名 2-支持 mac REPORT-76061【迭代】【起始页】起始页已打开,系统文件夹直接打开模板 1-文件名变更为全文件名 2-支持 mac REPORT-76068【迭代】【起始页】埋点没记 REPORT-76068【迭代】【起始页】埋点没记 REPORT-76079【迭代】【起始页】交互问题 处理一下 util 里面的鲁棒性 REPORT-78365【迭代】【起始页】不打开任何报表,普通报表聚合报表都新建失败 规避 npe REPORT-78361 【迭代】【起始页】不打开任何报表启动,设计器目录树打开模板报错npe 规避 npe REPORT-76079【迭代】【起始页】交互问题 1-远程下只显示 ip 2-调整新建报表的按钮位置feature/x
17 changed files with 165 additions and 128 deletions
@ -1,71 +0,0 @@ |
|||||||
package com.fr.startup.metric; |
|
||||||
|
|
||||||
/** |
|
||||||
* 设计器启动页使用数据 |
|
||||||
* |
|
||||||
* created by Harrison on 2022/08/12 |
|
||||||
**/ |
|
||||||
public class DesignerStartupPageStatistic { |
|
||||||
|
|
||||||
/** |
|
||||||
* operate:0-双击工作目录进入 或 点击蓝色箭头进入;1-切换其他工作目录;2-点击展开全部;3-点击工作目录中的模版直接打开 或 直接点击蓝色箭头进入 |
|
||||||
*/ |
|
||||||
private int operate; |
|
||||||
|
|
||||||
/** |
|
||||||
* workplace:工作目录名称,当operate为 0或1时记录 |
|
||||||
*/ |
|
||||||
private String workspace; |
|
||||||
|
|
||||||
/** |
|
||||||
* workplaceNumber:工作目录的个数,当operate为 0或1或2或3时记录 |
|
||||||
*/ |
|
||||||
private String workspaceNum; |
|
||||||
|
|
||||||
/** |
|
||||||
* template:模板名称,当operate为 3时记录 |
|
||||||
*/ |
|
||||||
private String template; |
|
||||||
|
|
||||||
public DesignerStartupPageStatistic(int operate, String workspace, String workspaceNum, String template) { |
|
||||||
this.operate = operate; |
|
||||||
this.workspace = workspace; |
|
||||||
this.workspaceNum = workspaceNum; |
|
||||||
this.template = template; |
|
||||||
} |
|
||||||
|
|
||||||
public DesignerStartupPageStatistic() { |
|
||||||
} |
|
||||||
|
|
||||||
public int getOperate() { |
|
||||||
return operate; |
|
||||||
} |
|
||||||
|
|
||||||
public void setOperate(int operate) { |
|
||||||
this.operate = operate; |
|
||||||
} |
|
||||||
|
|
||||||
public String getWorkspace() { |
|
||||||
return workspace; |
|
||||||
} |
|
||||||
|
|
||||||
public void setWorkspace(String workspace) { |
|
||||||
this.workspace = workspace; |
|
||||||
} |
|
||||||
|
|
||||||
public String getWorkspaceNum() { |
|
||||||
return workspaceNum; |
|
||||||
} |
|
||||||
|
|
||||||
public void setWorkspaceNum(String workspaceNum) { |
|
||||||
this.workspaceNum = workspaceNum; |
|
||||||
} |
|
||||||
|
|
||||||
public String getTemplate() { |
|
||||||
return template; |
|
||||||
} |
|
||||||
|
|
||||||
public void setTemplate(String template) { |
|
||||||
this.template = template; |
|
||||||
} |
|
||||||
} |
|
@ -0,0 +1,21 @@ |
|||||||
|
package com.fr.startup.ui; |
||||||
|
|
||||||
|
import org.junit.Assert; |
||||||
|
import org.junit.Test; |
||||||
|
|
||||||
|
import static org.junit.Assert.*; |
||||||
|
|
||||||
|
public class StartupPageUtilTest { |
||||||
|
|
||||||
|
@Test |
||||||
|
public void testGetRemoteAddress() throws Exception { |
||||||
|
String remoteAddress = StartupPageUtil.getRemoteAddress("https://localhost:9090/webroot"); |
||||||
|
Assert.assertEquals("localhost:9090", remoteAddress); |
||||||
|
|
||||||
|
String remoteAddress1 = StartupPageUtil.getRemoteAddress("https://localhost/webroot"); |
||||||
|
Assert.assertEquals("localhost", remoteAddress1); |
||||||
|
|
||||||
|
String remoteAddress2 = StartupPageUtil.getRemoteAddress(null); |
||||||
|
Assert.assertEquals("", remoteAddress2); |
||||||
|
} |
||||||
|
} |
Loading…
Reference in new issue