mirror of
https://github.com/dataease/dataease.git
synced 2026-05-16 05:50:45 +08:00
feat: 自定义外部国际化文件
This commit is contained in:
@@ -20,9 +20,11 @@ public class StaticResourceConstants {
|
||||
public static String APPEARANCE_DIR = ensureSuffix(USER_HOME, FILE_SEPARATOR) + "appearance";
|
||||
public static String REPORT_DIR = ensureSuffix(USER_HOME, FILE_SEPARATOR) + "report";
|
||||
public static String PLUGIN_DIR = ensureSuffix(USER_HOME, FILE_SEPARATOR) + "plugin";
|
||||
public static String I18N_DIR = ensureSuffix(USER_HOME, FILE_SEPARATOR) + "i18n/front";
|
||||
|
||||
public static String MAP_URL = "/map";
|
||||
public static String GEO_URL = "/geo";
|
||||
public static String I18N_URL = "/i18n";
|
||||
|
||||
/**
|
||||
* Upload prefix.
|
||||
|
||||
@@ -46,6 +46,7 @@ public class WhitelistUtils {
|
||||
"/sysParameter/ui",
|
||||
"/sysParameter/defaultLogin",
|
||||
"/embedded/initIframe",
|
||||
"/sysParameter/i18nOptions",
|
||||
"/");
|
||||
|
||||
public static boolean match(String requestURI) {
|
||||
@@ -84,6 +85,7 @@ public class WhitelistUtils {
|
||||
|| StringUtils.startsWithAny(requestURI, "/typeface/defaultFont")
|
||||
|| StringUtils.startsWithAny(requestURI, "/typeface/listFont")
|
||||
|| StringUtils.startsWithAny(requestURI, "/exportCenter/download")
|
||||
|| StringUtils.startsWithAny(requestURI, "/i18n/")
|
||||
|| StringUtils.startsWithAny(requestURI, "/communicate/image/")
|
||||
|| StringUtils.startsWithAny(requestURI, "/communicate/down/");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user