mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-16 02:36:16 +01:00
ESlint comma-dangle
This commit is contained in:
@@ -17,7 +17,7 @@ admin.get = function (callback) {
|
||||
{ name: 'Global Footer', template: 'global', location: 'footer' },
|
||||
|
||||
{ name: 'Group Page (Left)', template: 'groups/details.tpl', location: 'left'},
|
||||
{ name: 'Group Page (Right)', template: 'groups/details.tpl', location: 'right'}
|
||||
{ name: 'Group Page (Right)', template: 'groups/details.tpl', location: 'right'},
|
||||
];
|
||||
|
||||
plugins.fireHook('filter:widgets.getAreas', defaultAreas, next);
|
||||
@@ -27,7 +27,7 @@ admin.get = function (callback) {
|
||||
},
|
||||
adminTemplate: function (next) {
|
||||
fs.readFile(path.resolve(nconf.get('views_dir'), 'admin/partials/widget-settings.tpl'), 'utf8', next);
|
||||
}
|
||||
},
|
||||
}, function (err, widgetData) {
|
||||
if (err) {
|
||||
return callback(err);
|
||||
@@ -56,7 +56,7 @@ admin.get = function (callback) {
|
||||
list[area.template] = index;
|
||||
templates.push({
|
||||
template: area.template,
|
||||
areas: []
|
||||
areas: [],
|
||||
});
|
||||
|
||||
index++;
|
||||
@@ -64,14 +64,14 @@ admin.get = function (callback) {
|
||||
|
||||
templates[list[area.template]].areas.push({
|
||||
name: area.name,
|
||||
location: area.location
|
||||
location: area.location,
|
||||
});
|
||||
});
|
||||
|
||||
callback(false, {
|
||||
templates: templates,
|
||||
areas: widgetData.areas,
|
||||
widgets: widgetData.widgets
|
||||
widgets: widgetData.widgets,
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user