commit 744a8dd2b7abb8a94d7500e05506866b95686ab2 Author: Zhenfei.Li Date: Thu Oct 15 21:00:20 2020 +0800 init diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..9cbddbd --- /dev/null +++ b/.gitignore @@ -0,0 +1,7 @@ +.idea +lib +.project +*.iml +.settings +classes/ +target/ \ No newline at end of file diff --git a/README.md b/README.md new file mode 100644 index 0000000..a656ed2 --- /dev/null +++ b/README.md @@ -0,0 +1,2 @@ +### 插件调试环境搭建 +1. \ No newline at end of file diff --git a/build.xml b/build.xml new file mode 100644 index 0000000..5f13422 --- /dev/null +++ b/build.xml @@ -0,0 +1,121 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/plugin.xml b/plugin.xml new file mode 100644 index 0000000..b033a67 --- /dev/null +++ b/plugin.xml @@ -0,0 +1,32 @@ + + com.fr.plugin.pack.request + + yes + 0.0.1 + 10.0 + 2020-08-07 + 帆软 + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/pom.xml b/pom.xml new file mode 100644 index 0000000..dcf2c23 --- /dev/null +++ b/pom.xml @@ -0,0 +1,40 @@ + + + + + com.finebi.project + nuclear-maven + 5.0-RELEASE-SNAPSHOT + ../nuclear-maven/pom.xml + + + 4.0.0 + + plugin-pack-request + + + + com.finebi + direct-adapter-sdk + ${foundation-version} + + + + + + + org.apache.maven.plugins + maven-compiler-plugin + 3.3 + + 1.8 + 1.8 + + + + /Users/leezerofly/env/direct-bi/WEB-INF/plugins/plugin-com.fr.plugin.pack.request-0.0.1/classes + + + \ No newline at end of file diff --git a/src/main/java/com/fr/plugin/pack/ReportBridge.java b/src/main/java/com/fr/plugin/pack/ReportBridge.java new file mode 100644 index 0000000..f45c106 --- /dev/null +++ b/src/main/java/com/fr/plugin/pack/ReportBridge.java @@ -0,0 +1,17 @@ +package com.fr.plugin.pack; + +import com.finebi.conf.internalimp.component.ReportComponent; +import com.fr.decision.fun.impl.AbstractWebResourceProvider; +import com.fr.web.struct.Atom; + +public class ReportBridge extends AbstractWebResourceProvider { + @Override + public Atom attach() { + return ReportComponent.KEY; + } + + @Override + public Atom client() { + return ReportDef.KEY; + } +} \ No newline at end of file diff --git a/src/main/java/com/fr/plugin/pack/ReportDef.java b/src/main/java/com/fr/plugin/pack/ReportDef.java new file mode 100644 index 0000000..3c81ffc --- /dev/null +++ b/src/main/java/com/fr/plugin/pack/ReportDef.java @@ -0,0 +1,28 @@ +package com.fr.plugin.pack; + +import com.fr.web.struct.Component; +import com.fr.web.struct.Filter; +import com.fr.web.struct.browser.RequestClient; +import com.fr.web.struct.category.ScriptPath; +import com.fr.web.struct.category.StylePath; + +public class ReportDef extends Component { + public static final ReportDef KEY = new ReportDef(); + public ReportDef(){} + public ScriptPath script(RequestClient client ) { + return ScriptPath.build("com/fr/plugin/pack/report.js"); + } + + public StylePath style(RequestClient client ) { + return StylePath.build("com/fr/plugin/pack/report.css"); + } + + public Filter filter() { + return new Filter(){ + @Override + public boolean accept() { + return true; + } + }; + } +} diff --git a/src/main/java/com/fr/plugin/pack/ShowBridge.java b/src/main/java/com/fr/plugin/pack/ShowBridge.java new file mode 100644 index 0000000..4a03be0 --- /dev/null +++ b/src/main/java/com/fr/plugin/pack/ShowBridge.java @@ -0,0 +1,17 @@ +package com.fr.plugin.pack; + +import com.finebi.conf.internalimp.component.ShowComponent; +import com.fr.decision.fun.impl.AbstractWebResourceProvider; +import com.fr.web.struct.Atom; + +public class ShowBridge extends AbstractWebResourceProvider { + @Override + public Atom attach() { + return ShowComponent.KEY; + } + + @Override + public Atom client() { + return ShowDef.KEY; + } +} diff --git a/src/main/java/com/fr/plugin/pack/ShowDef.java b/src/main/java/com/fr/plugin/pack/ShowDef.java new file mode 100644 index 0000000..ff582ec --- /dev/null +++ b/src/main/java/com/fr/plugin/pack/ShowDef.java @@ -0,0 +1,29 @@ +package com.fr.plugin.pack; + +import com.fr.web.struct.Component; +import com.fr.web.struct.Filter; +import com.fr.web.struct.browser.RequestClient; +import com.fr.web.struct.category.ScriptPath; +import com.fr.web.struct.category.StylePath; + +public class ShowDef extends Component { + public static final ShowDef KEY = new ShowDef(); + public ShowDef(){} + + public ScriptPath script( RequestClient client ) { + return ScriptPath.build("com/fr/plugin/enadaptation/show.js"); + } + + public StylePath style( RequestClient client ) { + return StylePath.build("com/fr/plugin/enadaptation/show.css"); + } + + public Filter filter() { + return new Filter(){ + @Override + public boolean accept() { + return true; + } + }; + } +} \ No newline at end of file diff --git a/src/main/resources/com/fr/plugin/pack/report.js b/src/main/resources/com/fr/plugin/pack/report.js new file mode 100644 index 0000000..3781f80 --- /dev/null +++ b/src/main/resources/com/fr/plugin/pack/report.js @@ -0,0 +1,5 @@ +;(function() { + + console.log("report js loaded"); + +})(); diff --git a/src/main/resources/com/fr/plugin/pack/show.js b/src/main/resources/com/fr/plugin/pack/show.js new file mode 100644 index 0000000..f1ec72b --- /dev/null +++ b/src/main/resources/com/fr/plugin/pack/show.js @@ -0,0 +1,5 @@ +;(function() { + + console.log("show js loaded"); + +})(); \ No newline at end of file