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.
37 lines
1.1 KiB
37 lines
1.1 KiB
package com.fr.plugin.dfui.webresource; |
|
|
|
import com.fr.decision.fun.impl.AbstractWebResourceProvider; |
|
import com.fr.decision.web.LoginComponent; |
|
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 WebResourceProvider extends AbstractWebResourceProvider { |
|
@Override |
|
public Atom attach() { |
|
return LoginComponent.KEY; |
|
} |
|
|
|
@Override |
|
public Atom client() { |
|
return new Component() { |
|
@Override |
|
public ScriptPath script(RequestClient requestClient) { |
|
return ScriptPath.build("/com/fr/plugin/dfui/js/plugin.js"); |
|
} |
|
|
|
@Override |
|
public StylePath style(RequestClient requestClient) { |
|
return StylePath.build("/com/fr/plugin/dfui/css/plugin.css"); |
|
} |
|
}; |
|
} |
|
}
|
|
|