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.
36 lines
1.0 KiB
36 lines
1.0 KiB
3 years ago
|
package com.fr.plugin.hwWeb.bean;
|
||
|
|
||
|
import com.fr.decision.fun.impl.AbstractWebResourceProvider;
|
||
|
import com.fr.decision.web.MainComponent;
|
||
|
import com.fr.plugin.transform.FunctionRecorder;
|
||
|
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.ScriptPath;
|
||
|
import com.fr.web.struct.category.StylePath;
|
||
|
|
||
|
/**
|
||
|
* Created by zhouping on 2019/1/16.
|
||
|
*/
|
||
|
@FunctionRecorder
|
||
|
public class ThemeWebResourceProvider extends AbstractWebResourceProvider {
|
||
|
@Override
|
||
|
public Atom attach() {
|
||
|
return MainComponent.KEY;
|
||
|
}
|
||
|
|
||
|
@Override
|
||
|
public Atom client() {
|
||
|
return new Component() {
|
||
|
@Override
|
||
|
public ScriptPath script(RequestClient requestClient) {
|
||
|
return ScriptPath.build("/com/fr/plugin/hwWeb/js/hw.js");
|
||
|
}
|
||
|
@Override
|
||
|
public StylePath style(RequestClient requestClient) {
|
||
|
return StylePath.build("/com/fr/plugin/hwWeb/css/hw.css");
|
||
|
}
|
||
|
};
|
||
|
}
|
||
|
}
|