Browse Source

提交开源任务材料

10.0
LAPTOP-SB56SG4Q\86185 3 years ago
parent
commit
0c9a11668e
  1. BIN
      JSD-8941-需求确认书V1.docx
  2. 5
      README.md
  3. 21
      plugin.xml
  4. 51
      src/main/java/com/fr/plugin/SimpleComponent.java
  5. 18
      src/main/java/com/fr/plugin/SimpleHttpHanders.java
  6. 42
      src/main/java/com/fr/plugin/SimpleTheme.java
  7. BIN
      src/main/resources/com/fr/plugin/theme/simple-only/web/icon.png
  8. 0
      src/main/resources/com/fr/plugin/theme/simple-only/web/style.css
  9. 45
      src/main/resources/com/fr/plugin/theme/simple-only/web/theme.js
  10. 3
      src/main/resources/com/fr/plugin/theme/simple-only/web/themebuy.js
  11. BIN
      使用文档.docx

BIN
JSD-8941-需求确认书V1.docx

Binary file not shown.

5
README.md

@ -1,3 +1,6 @@
# open-JSD-8941
JSD-8941 主题(去掉顶部导航,消息提醒移到左侧)
JSD-8941 主题(去掉顶部导航,消息提醒移到左侧)\
免责说明:该源码为第三方爱好者提供,不保证源码和方案的可靠性,也不提供任何形式的源码教学指导和协助!\
仅作为开发者学习参考使用!禁止用于任何商业用途!\
为保护开发者隐私,开发者信息已隐去!若原开发者希望公开自己的信息,可联系hugh处理。

21
plugin.xml

@ -0,0 +1,21 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<plugin>
<id>com.eco.plugin.xxxx.theme.simple</id>
<name><![CDATA[定制主题]]></name>
<active>yes</active>
<version>1.0.1</version>
<env-version>10.0</env-version>
<jartime>2020-10-10</jartime>
<vendor>fr.open</vendor>
<description><![CDATA[
<p>2020-02025 开始开发</p>
]]></description>
<change-notes><![CDATA[
]]></change-notes>
<extra-decision>
<ThemeVariousProvider class="com.fr.plugin.SimpleTheme"/>
</extra-decision>
<function-recorder class="com.fr.plugin.SimpleTheme"/>
</plugin>

51
src/main/java/com/fr/plugin/SimpleComponent.java

@ -0,0 +1,51 @@
package com.fr.plugin;
import com.fr.decision.config.AppearanceConfig;
import com.fr.plugin.context.PluginContexts;
import com.fr.web.struct.AssembleComponent;
import com.fr.web.struct.Atom;
import com.fr.web.struct.Component;
import com.fr.web.struct.browser.RequestClient;
import com.fr.web.struct.category.FileType;
import com.fr.web.struct.category.ParserType;
import com.fr.web.struct.category.ScriptPath;
import com.fr.web.struct.category.StylePath;
import com.fr.web.struct.Filter;
public class SimpleComponent extends AssembleComponent {
public static final SimpleComponent KEY = new SimpleComponent();
@Override
public Atom[] refer() {
return new Atom[]{
};
}
@Override
public ScriptPath script() {
if (PluginContexts.currentContext().isAvailable()) {
return ScriptPath.build("com/fr/plugin/theme/simple-only/web/theme.js");
}else{
return ScriptPath.build("com/fr/plugin/theme/simple-only/web/themebuy.js");
}
}
@Override
public StylePath style() {
return StylePath.build("com/fr/plugin/theme/simple/web/style.css", ParserType.DYNAMIC);
}
@Override
public Filter filter() {
return new Filter() {
public boolean accept() {
return "com.eco.plugin.xxxx.theme.simple".equals(AppearanceConfig.getInstance().getThemeId());
}
};
}
}

18
src/main/java/com/fr/plugin/SimpleHttpHanders.java

@ -0,0 +1,18 @@
package com.fr.plugin;
import com.fr.decision.fun.HttpHandler;
import com.fr.decision.fun.impl.AbstractHttpHandlerProvider;
import com.fr.stable.fun.Authorize;
@Authorize(callSignKey = "com.eco.plugin.zzl.theme.simple")
public class SimpleHttpHanders extends AbstractHttpHandlerProvider {
private HttpHandler[] actions = new HttpHandler[]{
};
@Override
public HttpHandler[] registerHandlers() {
return actions;
}
}

42
src/main/java/com/fr/plugin/SimpleTheme.java

@ -0,0 +1,42 @@
package com.fr.plugin;
import com.fr.decision.fun.impl.AbstractThemeVariousProvider;
import com.fr.decision.web.MainComponent;
import com.fr.intelli.record.Focus;
import com.fr.intelli.record.Original;
import com.fr.record.analyzer.EnableMetrics;
import com.fr.stable.fun.Authorize;
import com.fr.web.struct.Atom;
@EnableMetrics
@Authorize(callSignKey = "com.eco.plugin.xxxx.theme.simple" )
public class SimpleTheme extends AbstractThemeVariousProvider {
@Override
public Atom attach() {
return MainComponent.KEY;
}
@Override
@Focus(id = "com.eco.plugin.xxxx.theme.simple", text = "Simple", source = Original.PLUGIN)
public Atom client() {
return SimpleComponent.KEY;
}
@Override
public String name() {
return "定制主题";
}
@Override
public String text() {
return "定制主题";
}
@Override
public String coverPath() {
return "com/fr/plugin/theme/simple-only/web/icon.png";
}
}

BIN
src/main/resources/com/fr/plugin/theme/simple-only/web/icon.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 140 KiB

0
src/main/resources/com/fr/plugin/theme/simple-only/web/style.css

45
src/main/resources/com/fr/plugin/theme/simple-only/web/theme.js

@ -0,0 +1,45 @@
!(function () {
BI.Plugin.config(function (type, options) {
}, function (type, object) {
object.element.attr("类型啊啊", object.options.type);
});
BI.config("dec.provider.layout", function (provider) {
console.info(provider)
provider.setConfig({
type: "bi.absolute",
items:
[{
el: {
type: "bi.absolute",
items: [
{
el: {
type: "dec.body"
},
top: 0, bottom: 0, right: 0,
left: 70
}, {
el: {
type: "dec.menu"
},
top: 0, bottom: 0,
left: 0,
width: 70
}
]
},
top: 0, left: 0, right: 0, bottom: 0
}]
}
)
});
// 如果失效,可以使用兼容性写法
BI.config("dec.constant.menu.items", function (items) {
items.push( {
type:"dec.header.message"
} )
return items;
});
})();

3
src/main/resources/com/fr/plugin/theme/simple-only/web/themebuy.js

@ -0,0 +1,3 @@
!(function () {
alert("当前主题授权过期请联系我们")
})();

BIN
使用文档.docx

Binary file not shown.
Loading…
Cancel
Save