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.
24 lines
759 B
24 lines
759 B
3 years ago
|
package com.fr.plugin.iegf.ui;
|
||
|
|
||
|
import com.fanruan.api.i18n.I18nKit;
|
||
|
import com.fanruan.api.log.LogKit;
|
||
|
import com.fr.plugin.context.PluginContexts;
|
||
|
import com.fr.plugin.iegf.Constants;
|
||
|
import com.fr.stable.fun.Authorize;
|
||
|
import com.fr.stable.fun.impl.AbstractJavaScriptFileHandler;
|
||
|
|
||
|
@Authorize(callSignKey = Constants.PLUGIN_ID)
|
||
|
public class JavaScriptFile extends AbstractJavaScriptFileHandler {
|
||
|
@Override
|
||
|
public String[] pathsForFiles() {
|
||
|
if (PluginContexts.currentContext().isAvailable()) {
|
||
|
return new String[]{
|
||
|
"/com/fr/plugin/iegf/ui/iegf.js"
|
||
|
};
|
||
|
} else {
|
||
|
LogKit.error(I18nKit.getLocText("Plugin-iegf_Licence_Expired"));
|
||
|
return new String[]{};
|
||
|
}
|
||
|
}
|
||
|
}
|