Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@italentjs/italent-header

Package Overview
Dependencies
Maintainers
1
Versions
86
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@italentjs/italent-header - npm Package Compare versions

Comparing version 1.0.23 to 1.0.24

34

app/scripts/vendor/components/@italentjs/italent-header/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;

@@ -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;

2

package.json

@@ -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;

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc