package com.fr.plugin.yt; 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.ScriptPath; import com.fr.web.struct.category.StylePath; public class MyComponent extends AssembleComponent { public static MyComponent KEY = new MyComponent(); public MyComponent() { } @Override public Atom[] refer() { return new Atom[]{ new Component() { @Override public ScriptPath script(RequestClient requestClient) { return ScriptPath.build("/com/fr/plugin/web/js/group.js"); } },new Component() { @Override public ScriptPath script(RequestClient requestClient) { return ScriptPath.build("/com/fr/plugin/web/js/push.js"); } } }; } public ScriptPath script() { return ScriptPath.build("/com/fr/plugin/web/js/yt.js"); } public StylePath style() { return StylePath.build("/com/fr/plugin/web/css/yt.css"); } }