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.
40 lines
1.2 KiB
40 lines
1.2 KiB
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"); |
|
} |
|
}
|
|
|