-
Notifications
You must be signed in to change notification settings - Fork 362
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: replace fields config by a global config (#338)
BREAKING CHANGE: `--fields-config` option has been removed, use the new `--config` option for all configuration, not just fields.
- Loading branch information
1 parent
6fd6c09
commit d6c1c5f
Showing
11 changed files
with
143 additions
and
124 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,14 @@ | ||
[ | ||
{ | ||
"value": "carModel" | ||
}, | ||
{ | ||
"value": "price", | ||
"default": 1 | ||
}, | ||
{ | ||
"value": "color" | ||
} | ||
] | ||
{ | ||
"fields": [ | ||
{ | ||
"value": "carModel" | ||
}, | ||
{ | ||
"value": "price", | ||
"default": 1 | ||
}, | ||
{ | ||
"value": "color" | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,18 @@ | ||
module.exports = [{ | ||
label: 'PATH1', | ||
value: 'path1' | ||
}, { | ||
label: 'PATH1+PATH2', | ||
value: row => row.path1+row.path2 | ||
}, { | ||
label: 'NEST1', | ||
value: 'bird.nest1' | ||
}, | ||
'bird.nest2', | ||
{ | ||
label: 'nonexistent', | ||
value: 'fake.path', | ||
default: 'col specific default value' | ||
}]; | ||
module.exports = { | ||
fields: [{ | ||
label: 'PATH1', | ||
value: 'path1' | ||
}, { | ||
label: 'PATH1+PATH2', | ||
value: row => row.path1+row.path2 | ||
}, { | ||
label: 'NEST1', | ||
value: 'bird.nest1' | ||
}, | ||
'bird.nest2', | ||
{ | ||
label: 'nonexistent', | ||
value: 'fake.path', | ||
default: 'col specific default value' | ||
}] | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,9 @@ | ||
[{ | ||
"label": "Car Model", | ||
"value": "carModel" | ||
},{ | ||
"label": "Price USD", | ||
"value": "price" | ||
}] | ||
{ | ||
"fields": [{ | ||
"label": "Car Model", | ||
"value": "carModel" | ||
},{ | ||
"label": "Price USD", | ||
"value": "price" | ||
}] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,7 @@ | ||
module.exports = [{ | ||
label: 'Value1', | ||
value: row => row.value1.toLocaleString(), | ||
stringify: false | ||
}]; | ||
module.exports = { | ||
fields: [{ | ||
label: 'Value1', | ||
value: row => row.value1.toLocaleString(), | ||
stringify: false | ||
}] | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,6 @@ | ||
module.exports = [{ | ||
label: 'Value1', | ||
value: row => row.value1.toLocaleString() | ||
}]; | ||
module.exports = { | ||
fields: [{ | ||
label: 'Value1', | ||
value: row => row.value1.toLocaleString() | ||
}] | ||
}; |
Oops, something went wrong.