From 2a349459dabfcb2b650feee8424efe159b0d9a21 Mon Sep 17 00:00:00 2001 From: "Collin M. Barrett" Date: Sat, 3 Aug 2019 14:11:46 -0500 Subject: [PATCH] rm axios dep --- src/FilterLists.Web/package-lock.json | Bin 522401 -> 520899 bytes src/FilterLists.Web/package.json | 1 - .../src/modules/home/HomeContainer.tsx | 36 ++++++++++-------- 3 files changed, 21 insertions(+), 16 deletions(-) diff --git a/src/FilterLists.Web/package-lock.json b/src/FilterLists.Web/package-lock.json index 4a376a8bfe46fb1d5cbe12e5ca7ad8606dee5d56..c550b33d1cce95e8ea39a83d8746538fad329f52 100644 GIT binary patch delta 41 pcmZ4ZQU35#`Gzfwd$QYS6*2-b6A&{4F$)m00x{e6S%vKE?EsS~5v>3K delta 596 zcmW;G&1=(e9Ds51GPjD1Ivh@Sn9SjXx+TB7w5#HwHSM}(ZIdl+)1FM5wM&z(N!oO2 zF7u*85Jif7PXp&oc5sRy3=fJ2!JGfVE*=$k@TOw%@Zq^WpT5l;oX*^Pi@i5-qYVeY z$Z0G-_hDn!>i1+H}`iWu>v2=AoCX0D>Np++cg|v9h zG5zum(^oqk#MhZtCALvb6eX%vzB6tj%*7ZtIqQ=hOLQG zA-}xQ%9hy%pue~ZS(msBxz9ux!ebbTA^6zAqVUost`Wn_f&5^;Ko@z7yJG}F&*}04 z$7zaMO;>_Qy4zQasOJi~sN-&0ez#th#S$&%=@O$*TV`s>?=5Q-&(UjU#WJ-*GtX&; zRaVm7Oc73wun0U#lVil}Z5B=*lGE_~4K@z@heQZ&HOX@z?T&D>)>C$Bdo)n{8ya=T->r2^ti zzn)1(q&^j4q@uXtvN1iIXk?iL=Ox@7xWbcDu>S#j1>f8F { }; fetchLanguages() { - axios.request({ url: "/api/v1/languages" }) - .then(l => { this.setState({ languages: l.data }); }) + fetch("/api/v1/languages") + .then(response => response.json()) + .then(json => { this.setState({ languages: json }); }) }; fetchLicenses() { - axios.request({ url: "/api/v1/licenses" }) - .then(l => { this.setState({ licenses: l.data }); }) + fetch("/api/v1/licenses") + .then(response => response.json()) + .then(json => { this.setState({ licenses: json }); }) }; fetchLists() { - axios.request({ url: "/api/v1/lists" }) - .then(l => { this.setState({ lists: l.data }); }) + fetch("/api/v1/lists") + .then(response => response.json()) + .then(json => { this.setState({ lists: json }); }) }; fetchMaintainers() { - axios.request({ url: "/api/v1/maintainers" }) - .then(l => { this.setState({ maintainers: l.data }); }) + fetch("/api/v1/maintainers") + .then(response => response.json()) + .then(json => { this.setState({ maintainers: json }); }) }; fetchSoftware() { - axios.request({ url: "/api/v1/software" }) - .then(l => { this.setState({ software: l.data }); }) + fetch("/api/v1/software") + .then(response => response.json()) + .then(json => { this.setState({ software: json }); }) }; fetchSyntaxes() { - axios.request({ url: "/api/v1/syntaxes" }) - .then(l => { this.setState({ syntaxes: l.data }); }) + fetch("/api/v1/syntaxes") + .then(response => response.json()) + .then(json => { this.setState({ syntaxes: json }); }) }; fetchTags() { - axios.request({ url: "/api/v1/tags" }) - .then(l => { this.setState({ tags: l.data }); }) + fetch("/api/v1/tags") + .then(response => response.json()) + .then(json => { this.setState({ tags: json }); }) }; render() {