preeaclampsia/gestational diabetes diet?

what kinds of foods /diet do you have to have to get gestational diabetes or preeaclampsia?