Looks like the board turned to conductive char from the power device running so hot in there, along with the hot resistor adding extra heat to help it along. Then the power mosfet ( or transistor) went short circuit, which is why the copper traces blew off from the mains side, which would also have tripped the house breaker as well.
Actually a reasonable SMPS, they put in the fuses, input filtering and proper isolation on the transformer, along with correct creepage distance between primary and secondary. Only killer is that the components are run so hot, a bigger case, a better heatsink and a cooler running design will have a much longer lifetime, just because it does not run so hot the board itself cooks.