export const env = RUNTIME_ENV ; export const isDebug = env === 'development' ; export const isRelease = env === 'production' ; export const isWeb = TARGET_BROWSER === 'web' ; export const extensionName = 'weel-translate-x' ; export const extensionTagName = extensionName ; export const requestTimeout = 12000 ; export const presetIdReg = /[\d\w\_]+?/ ; export const presetIdJsonReg = /"id":"([\d\w\_]+?)"/ ; export const avoidanceReg = { urls : [ /^about:/ , /^http[s]:\/\/addons\.mozilla\.org/ , ] , } ; export const theme = { color : { primary : '#6200ee' , secondary : '#5800d5' , } , } ; export const modifiedLocaleRules = [ 'en-us:>en' , 'zh:>zh-cn' ] ; export const updatedConfigKeys = { '3.0.6' : [ 'translation_sources' , 'translation_enabled_sources' , 'template_source_layouts' , 'template_layouts' , ] , '3.0.10' : [ 'preference_theme_color_primary' , 'preference_theme_color_secondary' , 'translation_sources' , ] , '3.0.12' : [ 'preference_fab_enable' , ] , '3.0.13' : [ 'preference_context_menu_enable' , ] , } ;