@italentjs/italent-header
Advanced tools
Comparing version 1.0.23 to 1.0.24
@@ -364,3 +364,3 @@ /* | ||
self.model.set({ | ||
list: self.formatData(ret.Data.tenantLanguages) | ||
list: ret.Data.tenantLanguageModels || [] | ||
}); | ||
@@ -372,34 +372,2 @@ self.render(); | ||
} | ||
,formatData:function(list) { | ||
/** | ||
* | ||
* | ||
[{ | ||
text: '中文(简体)', | ||
value: "zh_CN", | ||
}, { | ||
text: '中文(繁体)', | ||
value: 'zh_TW' | ||
}, { | ||
text: '英语(English)', | ||
value: 'en_US' | ||
} | ||
* | ||
*/ | ||
var mapping = { | ||
"zh_CN" : '中文(简体)', | ||
'zh_TW': '中文(繁体)', | ||
'en_US': '英语(English)' | ||
} | ||
var data = []; | ||
for(var i = 0 ; i < list.length ; i++) { | ||
var item = list[i]; | ||
data.push({ | ||
text: mapping[item], | ||
value: item | ||
}) | ||
} | ||
return data; | ||
} | ||
,showList:function(e){ | ||
@@ -406,0 +374,0 @@ var self = this; |
34
index.js
@@ -364,3 +364,3 @@ /* | ||
self.model.set({ | ||
list: self.formatData(ret.Data.tenantLanguages) | ||
list: ret.Data.tenantLanguageModels || [] | ||
}); | ||
@@ -372,34 +372,2 @@ self.render(); | ||
} | ||
,formatData:function(list) { | ||
/** | ||
* | ||
* | ||
[{ | ||
text: '中文(简体)', | ||
value: "zh_CN", | ||
}, { | ||
text: '中文(繁体)', | ||
value: 'zh_TW' | ||
}, { | ||
text: '英语(English)', | ||
value: 'en_US' | ||
} | ||
* | ||
*/ | ||
var mapping = { | ||
"zh_CN" : '中文(简体)', | ||
'zh_TW': '中文(繁体)', | ||
'en_US': '英语(English)' | ||
} | ||
var data = []; | ||
for(var i = 0 ; i < list.length ; i++) { | ||
var item = list[i]; | ||
data.push({ | ||
text: mapping[item], | ||
value: item | ||
}) | ||
} | ||
return data; | ||
} | ||
,showList:function(e){ | ||
@@ -406,0 +374,0 @@ var self = this; |
@@ -8,3 +8,3 @@ { | ||
"configUser": "ux", | ||
"version": "1.0.23", | ||
"version": "1.0.24", | ||
"scripts": { | ||
@@ -11,0 +11,0 @@ "build-prod": "rm -rf index.css && rm -rf index.js && grunt build", |
@@ -40,3 +40,3 @@ | ||
self.model.set({ | ||
list: self.formatData(ret.Data.tenantLanguages) | ||
list: ret.Data.tenantLanguageModels || [] | ||
}); | ||
@@ -48,34 +48,2 @@ self.render(); | ||
} | ||
,formatData:function(list) { | ||
/** | ||
* | ||
* | ||
[{ | ||
text: '中文(简体)', | ||
value: "zh_CN", | ||
}, { | ||
text: '中文(繁体)', | ||
value: 'zh_TW' | ||
}, { | ||
text: '英语(English)', | ||
value: 'en_US' | ||
} | ||
* | ||
*/ | ||
var mapping = { | ||
"zh_CN" : '中文(简体)', | ||
'zh_TW': '中文(繁体)', | ||
'en_US': '英语(English)' | ||
} | ||
var data = []; | ||
for(var i = 0 ; i < list.length ; i++) { | ||
var item = list[i]; | ||
data.push({ | ||
text: mapping[item], | ||
value: item | ||
}) | ||
} | ||
return data; | ||
} | ||
,showList:function(e){ | ||
@@ -82,0 +50,0 @@ var self = this; |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
11379434
73504