You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
85 lines
3.0 KiB
85 lines
3.0 KiB
4 years ago
|
package com.fr.plugin.theme.simple;
|
||
|
|
||
|
import com.fr.decision.config.AppearanceConfig;
|
||
|
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();
|
||
|
|
||
|
public SimpleComponent() {
|
||
|
ThemeConfig.getInstance();//初始化配置
|
||
|
}
|
||
|
|
||
|
@Override
|
||
|
public Atom[] refer() {
|
||
|
return new Atom[]{
|
||
|
new Component() {
|
||
|
@Override
|
||
|
public ScriptPath script(RequestClient requestClient) {
|
||
|
return ScriptPath.build("com/fr/plugin/theme/simple/web/js/baseFun.js");
|
||
|
}
|
||
|
},
|
||
|
new Component() {
|
||
|
@Override
|
||
|
public ScriptPath script(RequestClient requestClient) {
|
||
|
return ScriptPath.build("com/fr/plugin/theme/simple/web/js/models.js");
|
||
|
}
|
||
|
},
|
||
|
new Component() {
|
||
|
@Override
|
||
|
public ScriptPath script(RequestClient requestClient) {
|
||
|
return ScriptPath.build("com/fr/plugin/theme/simple/web/js/panles.js");
|
||
|
}
|
||
|
},
|
||
|
new Component() {
|
||
|
@Override
|
||
|
public ScriptPath script(RequestClient requestClient) {
|
||
|
return ScriptPath.build("com/fr/plugin/theme/simple/web/js/customTree.js");
|
||
|
}
|
||
|
},
|
||
|
new Component() {
|
||
|
@Override
|
||
|
public ScriptPath script(RequestClient requestClient) {
|
||
|
return ScriptPath.build("com/fr/plugin/theme/simple/web/js/jquery.slimscroll.min.js");
|
||
|
}
|
||
|
},
|
||
|
new Component() {
|
||
|
@Override
|
||
|
public ScriptPath script(RequestClient requestClient) {
|
||
|
return ScriptPath.build("com/fr/plugin/theme/simple/web/js/jquery.nicescroll.min.js");
|
||
|
}
|
||
|
},
|
||
|
};
|
||
|
}
|
||
|
|
||
|
@Override
|
||
|
public ScriptPath script() {
|
||
|
return ScriptPath.build("com.fr.plugin.theme.simple.SimpleThemeJS", FileType.CLASS);
|
||
|
// return ScriptPath.build("com/fr/plugin/theme/simple/web/theme.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.fr.plugin.decision.theme.zxl.simple".equals(AppearanceConfig.getInstance().getThemeId());
|
||
|
}
|
||
|
};
|
||
|
}
|
||
|
}
|