Enable no-undef linting rule for all frontend files and fix errors GitOrigin-RevId: bf9c789a381af982bdece55a2f518a2b610c9202
Restructure frontend directories GitOrigin-RevId: 5a1224ca186f4809df45680a80d374c1c318d7bf