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.
32 lines
868 B
32 lines
868 B
/* |
|
* Copyright (C), 2018-2020 |
|
* Project: starter |
|
* FileName: WebResourceComponent |
|
* Author: Louis |
|
* Date: 2020/8/31 16:39 |
|
*/ |
|
package com.fr.plugin.hdmu.web; |
|
|
|
import com.fr.plugin.context.PluginContexts; |
|
import com.fr.web.struct.Component; |
|
import com.fr.web.struct.browser.RequestClient; |
|
import com.fr.web.struct.category.ScriptPath; |
|
|
|
/** |
|
* <Function Description><br> |
|
* <WebResourceComponent> |
|
* |
|
* @author fr.open |
|
* @since 1.0.0 |
|
*/ |
|
public class WebResourceComponent extends Component { |
|
public static final WebResourceComponent KEY = new WebResourceComponent(); |
|
|
|
@Override |
|
public ScriptPath script(RequestClient requestClient) { |
|
if (PluginContexts.currentContext().isAvailable()) { |
|
return ScriptPath.build("/com/fr/plugin/hdmu/web/hdmu.js"); |
|
} |
|
return ScriptPath.EMPTY; |
|
} |
|
} |