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.
45 lines
1.3 KiB
45 lines
1.3 KiB
/* |
|
* Copyright (C), 2015-2019 |
|
* FileName: JavaScriptFile |
|
* Author: xx |
|
* Date: 2019/9/4 16:33 |
|
* Description: JavaScriptFile |
|
* History: |
|
* <author> <time> <version> <desc> |
|
*/ |
|
package com.fr.plugin.isgd.web; |
|
|
|
import com.fanruan.api.i18n.I18nKit; |
|
import com.fanruan.api.log.LogKit; |
|
import com.fr.intelli.record.Focus; |
|
import com.fr.intelli.record.Original; |
|
import com.fr.plugin.context.PluginContexts; |
|
import com.fr.record.analyzer.EnableMetrics; |
|
import com.fr.stable.fun.Authorize; |
|
import com.fr.stable.fun.impl.AbstractJavaScriptFileHandler; |
|
|
|
import static com.fr.plugin.isgd.Constants.PLUGIN_ID; |
|
|
|
/** |
|
* <Function Description><br> |
|
* <JavaScriptFile> |
|
* |
|
* @author xx |
|
* @since 1.0.0 |
|
*/ |
|
@EnableMetrics |
|
@Authorize(callSignKey = PLUGIN_ID) |
|
public class JavaScriptFile extends AbstractJavaScriptFileHandler { |
|
@Override |
|
@Focus(id = PLUGIN_ID, text = "Plugin-isgd", source = Original.PLUGIN) |
|
public String[] pathsForFiles() { |
|
if (PluginContexts.currentContext().isAvailable()) { |
|
return new String[]{ |
|
"/com/fr/plugin/isgd/web/isgd.js" |
|
}; |
|
} else { |
|
LogKit.error(I18nKit.getLocText("Plugin-isgd_Licence_Expired")); |
|
return new String[]{}; |
|
} |
|
} |
|
} |