From 744a8dd2b7abb8a94d7500e05506866b95686ab2 Mon Sep 17 00:00:00 2001 From: "Zhenfei.Li" Date: Thu, 15 Oct 2020 21:00:20 +0800 Subject: [PATCH] init --- .gitignore | 7 + README.md | 2 + build.xml | 121 ++++++++++++++++++ plugin.xml | 32 +++++ pom.xml | 40 ++++++ .../java/com/fr/plugin/pack/ReportBridge.java | 17 +++ .../java/com/fr/plugin/pack/ReportDef.java | 28 ++++ .../java/com/fr/plugin/pack/ShowBridge.java | 17 +++ src/main/java/com/fr/plugin/pack/ShowDef.java | 29 +++++ .../resources/com/fr/plugin/pack/report.js | 5 + src/main/resources/com/fr/plugin/pack/show.js | 5 + 11 files changed, 303 insertions(+) create mode 100644 .gitignore create mode 100644 README.md create mode 100644 build.xml create mode 100644 plugin.xml create mode 100644 pom.xml create mode 100644 src/main/java/com/fr/plugin/pack/ReportBridge.java create mode 100644 src/main/java/com/fr/plugin/pack/ReportDef.java create mode 100644 src/main/java/com/fr/plugin/pack/ShowBridge.java create mode 100644 src/main/java/com/fr/plugin/pack/ShowDef.java create mode 100644 src/main/resources/com/fr/plugin/pack/report.js create mode 100644 src/main/resources/com/fr/plugin/pack/show.js 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