Skip to content

Commit

Permalink
feat: add inline table filters for enum fields
Browse files Browse the repository at this point in the history
  • Loading branch information
popstas committed Jun 29, 2021
1 parent 6e0166e commit d697ff6
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/presets/columns.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ module.exports = {
'readability_length',
'readability_links',
'readability_images',
'images',
// 'images',
'images_without_alt',
'images_alt_empty',
'images_outer',
Expand Down
6 changes: 6 additions & 0 deletions src/presets/fields.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ const fields = [
},
groups: ['canonical'],
type: 'boolean',
filterType: 'enum',
},
{
name: 'previousUrl',
Expand All @@ -49,6 +50,7 @@ const fields = [
stat: {
type: 'enum',
},
filterType: 'enum',
},
{
name: 'status',
Expand All @@ -62,6 +64,7 @@ const fields = [
},
groups: ['info'],
type: 'integer',
filterType: 'enum',
},
{
name: 'request_time',
Expand Down Expand Up @@ -154,6 +157,7 @@ const fields = [
},
groups: ['seo'],
type: 'integer',
filterType: 'enum',
},
{
name: 'h2_count',
Expand Down Expand Up @@ -188,6 +192,7 @@ const fields = [
},
groups: ['canonical'],
type: 'integer',
filterType: 'enum',
},
{
name: 'google_amp',
Expand All @@ -200,6 +205,7 @@ const fields = [
},
groups: ['metatags'],
type: 'integer',
filterType: 'enum',
},
{
name: 'images',
Expand Down

0 comments on commit d697ff6

Please sign in to comment.