-
-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Allow to add nutriments (#1094)
* Allow to add nutriments * Allow to add nutriments from a list of ids * add-sodium-as-default
- Loading branch information
1 parent
4563306
commit 84c0bba
Showing
4 changed files
with
219 additions
and
5 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,153 @@ | ||
export const UNITS = ["", "g", "mg", "µg"]; | ||
|
||
export const OFF_NUTRIMENTS_TO_IGNORE = [ | ||
"serving", | ||
"energy", // Already available with energy kj and kcal. | ||
"fruits-vegetables-legumes-estimate-from-ingredients", | ||
"fruits-vegetables-nuts-estimate-from-ingredients", | ||
"nova-group", | ||
"nutrition-score-fr", | ||
]; | ||
export const NUTRIMENTS_ORDER = [ | ||
// Energy | ||
"energy-kj", | ||
"energy-kcal", | ||
|
||
// Fat | ||
"fat", | ||
"saturated-fat", | ||
"unsaturated-fat", | ||
"monounsaturated-fat", | ||
"polyunsaturated-fat", | ||
"trans-fat", | ||
"butyric-acid", | ||
"caproic-acid", | ||
"caprylic-acid", | ||
"capric-acid", | ||
"lauric-acid", | ||
"myristic-acid", | ||
"palmitic-acid", | ||
"stearic-acid", | ||
"arachidic-acid", | ||
"behenic-acid", | ||
"lignoceric-acid", | ||
"cerotic-acid", | ||
"montanic-acid", | ||
"melissic-acid", | ||
|
||
// Sucres | ||
"carbohydrates", | ||
"sugars", | ||
"added-sugars", | ||
"sucrose", | ||
"glucose", | ||
"fructose", | ||
"lactose", | ||
"maltose", | ||
"maltodextrins", | ||
|
||
"fiber", | ||
"soluble-fiber", | ||
"insoluble-fiber", | ||
|
||
"proteins", | ||
"casein", | ||
"serum-proteins", | ||
|
||
"salt", | ||
"added-salt", | ||
"sodium", | ||
|
||
"cholesterol", | ||
|
||
"alpha-linolenic-acid", | ||
"eicosapentaenoic-acid", | ||
"docosahexaenoic-acid", | ||
"omega-3-fat", | ||
"omega-6-fat", | ||
"linoleic-acid", | ||
"arachidonic-acid", | ||
"gamma-linolenic-acid", | ||
"dihomo-gamma-linolenic-acid", | ||
"omega-9-fat", | ||
"oleic-acid", | ||
"elaidic-acid", | ||
"gondoic-acid", | ||
"mead-acid", | ||
"erucic-acid", | ||
"nervonic-acid", | ||
|
||
"oligosaccharide", | ||
|
||
"galactose", | ||
"starch", | ||
"Polydextrose", | ||
"polyols", | ||
"erythritol", | ||
|
||
"nucleotides", | ||
"alcohol", | ||
"vitamin-a", | ||
"beta-carotene", | ||
"vitamin-d", | ||
"vitamin-e", | ||
"vitamin-k", | ||
"vitamin-c", | ||
"vitamin-b1", | ||
"vitamin-b2", | ||
"vitamin-pp", | ||
"vitamin-b6", | ||
"vitamin-b9", | ||
"folates", | ||
"vitamin-b12", | ||
"biotin", | ||
"pantothenic-acid", | ||
"silica", | ||
"bicarbonate", | ||
"Sulphate", | ||
"Nitrate", | ||
"Hydrogencarbonate", | ||
"Nitrite", | ||
"potassium", | ||
"chloride", | ||
"calcium", | ||
"phosphorus", | ||
"iron", | ||
"magnesium", | ||
"zinc", | ||
"copper", | ||
"manganese", | ||
"fluoride", | ||
"selenium", | ||
"chromium", | ||
"molybdenum", | ||
"iodine", | ||
"caffeine", | ||
"taurine", | ||
"ph", | ||
"collagen-meat-protein-ratio", | ||
"cocoa", | ||
"chlorophyl", | ||
"glycemic-index", | ||
"water-hardness", | ||
"choline", | ||
"phylloquinone", | ||
"beta-glucan", | ||
"inositol", | ||
"carnitine", | ||
"spermidine", | ||
"water", | ||
"acidity", | ||
"dry-residue", | ||
"beta-alanine", | ||
"creatine", | ||
"l-citrulline", | ||
"l-glutamine", | ||
"bcaa", | ||
"l-valine", | ||
"l-leucine", | ||
"l-isoleucine", | ||
"l-arginine", | ||
"l-cysteine", | ||
"l-Glutathione", | ||
]; |
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