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.
38 lines
1.1 KiB
38 lines
1.1 KiB
/* |
|
* Copyright (C), 2015-2019 |
|
* FileName: JavaScriptFile |
|
* Author: |
|
* Date: 2019/8/29 16:33 |
|
* Description: JavaScriptFile |
|
* History: |
|
* <author> <time> <version> <desc> |
|
*/ |
|
package com.fr.plugin.ajhig.web; |
|
|
|
import com.fanruan.api.i18n.I18nKit; |
|
import com.fanruan.api.log.LogKit; |
|
import com.fr.plugin.ajhig.provider.LocaleFinder; |
|
import com.fr.plugin.context.PluginContexts; |
|
import com.fr.stable.fun.Authorize; |
|
import com.fr.stable.fun.impl.AbstractJavaScriptFileHandler; |
|
|
|
/** |
|
* 〈Function Description〉<br> |
|
* 〈JavaScriptFile〉 |
|
* |
|
* @author |
|
* @since 1.0.0 |
|
*/ |
|
@Authorize(callSignKey = LocaleFinder.PLUGIN_ID) |
|
public class JavaScriptFile extends AbstractJavaScriptFileHandler { |
|
@Override |
|
public String[] pathsForFiles() { |
|
if (PluginContexts.currentContext() == null || !PluginContexts.currentContext().isAvailable()) { |
|
LogKit.error(I18nKit.getLocText("Plugin-ajhig_Licence_Expired")); |
|
return new String[0]; |
|
} |
|
return new String[]{ |
|
"/com/fr/plugin/ajhig/web/fileImport.js" |
|
}; |
|
} |
|
} |