This file contains hidden or 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
| const modulo = { | |
| cargarDatosA ({ commit, dispatch }) { | |
| axios.get(URL_A) | |
| .then(({ status, data }) => { | |
| if (status === 200) | |
| commit('COMMIT_A', data) | |
| }) | |
| .catch(({ response }) => { | |
| if (response.status === 401) |
This file contains hidden or 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
| import haxe.Json; | |
| /** | |
| * Toss a Dynamic var and get a typedef declaration! (Inspired by http://json2csharp.com) | |
| * (A bit of code stolen from https://gist.github.com/elsassph/16d3b2597f6a51b5817c2fa97dd7f505) | |
| * @author Milton Candelero (Elemental Code) | |
| */ | |
| class JsonClass | |
| { |