added i18n, refactoring
This commit is contained in:
@@ -43,7 +43,7 @@ var _Dot = {
|
||||
oninit(vn){
|
||||
this.id = vn.attrs.id;
|
||||
this.type = vn.attrs.type;
|
||||
|
||||
this.title = vn.attrs.title || "title";
|
||||
this.setuptext(vn);
|
||||
|
||||
if(typeof vn.attrs.active !== 'undefined')
|
||||
@@ -352,18 +352,14 @@ module.exports = {
|
||||
_Ui.init();
|
||||
},
|
||||
view(vn){
|
||||
console.log('_ModeConnections view', vn.attrs.lang);
|
||||
return [
|
||||
m(_Header),
|
||||
m('main', {id:"content", 'class':'mode-connections'}, _dbs.data[vn.attrs.lang].map(p => {
|
||||
if(p.id == 'intro'){
|
||||
return m(_Intro,p);
|
||||
}else{
|
||||
return m(_Part,p);
|
||||
}
|
||||
})
|
||||
),
|
||||
m(_Footer)
|
||||
];
|
||||
// console.log('_ModeConnections view', vn.attrs.lang);
|
||||
return m('main', {id:"content", 'class':'mode-connections'}, _dbs.data[vn.attrs.lang].map(p => {
|
||||
if(p.id == 'intro'){
|
||||
return m(_Intro,p);
|
||||
}else{
|
||||
return m(_Part,p);
|
||||
}
|
||||
})
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user