@@ -20,7 +20,6 @@ import { useCreateNotification } from "./components/generic/PopUps/Notification"
20
20
import { getGradeValue , calcAverage , findCategory , calcCategoryAverage , calcGeneralAverage , formatSkills , safeParseFloat , calcClassGeneralAverage , calcClassAverage } from "./utils/gradesTools" ;
21
21
import { areOccurenciesEqual , createUserLists , encrypt , decrypt , getBrowser } from "./utils/utils" ;
22
22
import { getCurrentSchoolYear } from "./utils/date" ;
23
- import { getProxiedURL } from "./utils/requests" ;
24
23
import EdpuLogo from "./components/graphics/EdpuLogo" ;
25
24
import { tr } from "date-fns/locale" ;
26
25
@@ -1505,7 +1504,7 @@ export default function App({ edpFetch }) {
1505
1504
referrerPolicy : "no-referrer"
1506
1505
}
1507
1506
1508
- edpFetch ( getProxiedURL ( `https://api.ecoledirecte.com/v3/login.awp?v=${ apiVersion } ` , true ) , options , "text" )
1507
+ edpFetch ( `https://api.ecoledirecte.com/v3/login.awp?v=${ apiVersion } ` , options , "text" )
1509
1508
. then ( ( response ) => {
1510
1509
if ( ! response ) {
1511
1510
setIsEDPUnblockInstalled ( false ) ;
@@ -1615,7 +1614,7 @@ export default function App({ edpFetch }) {
1615
1614
anneeScolaire : getUserSettingValue ( "isSchoolYearEnabled" ) ? getUserSettingValue ( "schoolYear" ) . join ( "-" ) : ""
1616
1615
}
1617
1616
1618
- edpFetch ( getProxiedURL ( `https://api.ecoledirecte.com/v3/eleves/${ accountsListState [ activeAccount ] . id } /timeline.awp?verbe=get&v=${ apiVersion } ` , true ) ,
1617
+ edpFetch ( `https://api.ecoledirecte.com/v3/eleves/${ accountsListState [ activeAccount ] . id } /timeline.awp?verbe=get&v=${ apiVersion } ` ,
1619
1618
{
1620
1619
method : "POST" ,
1621
1620
headers : {
@@ -1664,7 +1663,7 @@ export default function App({ edpFetch }) {
1664
1663
anneeScolaire : getUserSettingValue ( "isSchoolYearEnabled" ) ? getUserSettingValue ( "schoolYear" ) . join ( "-" ) : "" ,
1665
1664
}
1666
1665
edpFetch (
1667
- getProxiedURL ( `https://api.ecoledirecte.com/v3/eleves/${ accountsListState [ userId ] . id } /notes.awp?verbe=get&v=${ apiVersion } ` , true ) ,
1666
+ `https://api.ecoledirecte.com/v3/eleves/${ accountsListState [ userId ] . id } /notes.awp?verbe=get&v=${ apiVersion } ` ,
1668
1667
{
1669
1668
method : "POST" ,
1670
1669
headers : {
@@ -1733,7 +1732,7 @@ export default function App({ edpFetch }) {
1733
1732
abortControllers . current . splice ( abortControllers . current . indexOf ( controller ) , 1 ) ;
1734
1733
} else {
1735
1734
edpFetch (
1736
- getProxiedURL ( `https://api.ecoledirecte.com/v3/Eleves/${ accountsListState [ userId ] . id } /${ endpoint } .awp?verbe=get&v=${ apiVersion } ` , true ) ,
1735
+ `https://api.ecoledirecte.com/v3/Eleves/${ accountsListState [ userId ] . id } /${ endpoint } .awp?verbe=get&v=${ apiVersion } ` ,
1737
1736
{
1738
1737
method : "POST" ,
1739
1738
headers : {
@@ -1798,7 +1797,7 @@ export default function App({ edpFetch }) {
1798
1797
} else {
1799
1798
try {
1800
1799
const response = await edpFetch (
1801
- getProxiedURL ( `https://api.ecoledirecte.com/v3/Eleves/${ accountsListState [ userId ] . id } /${ endpoint } .awp?verbe=get&v=${ apiVersion } ` , true ) ,
1800
+ `https://api.ecoledirecte.com/v3/Eleves/${ accountsListState [ userId ] . id } /${ endpoint } .awp?verbe=get&v=${ apiVersion } ` ,
1802
1801
{
1803
1802
method : "POST" ,
1804
1803
headers : {
@@ -1847,7 +1846,7 @@ export default function App({ edpFetch }) {
1847
1846
const userId = activeAccount ;
1848
1847
1849
1848
return edpFetch (
1850
- getProxiedURL ( `https://api.ecoledirecte.com/v3/Eleves/${ accountsListState [ userId ] . id } /cahierdetexte.awp?verbe=put&v=${ apiVersion } ` , true ) ,
1849
+ `https://api.ecoledirecte.com/v3/Eleves/${ accountsListState [ userId ] . id } /cahierdetexte.awp?verbe=put&v=${ apiVersion } ` ,
1851
1850
{
1852
1851
method : "POST" ,
1853
1852
headers : {
@@ -1909,7 +1908,7 @@ export default function App({ edpFetch }) {
1909
1908
folderId = 0 ;
1910
1909
}
1911
1910
edpFetch (
1912
- getProxiedURL ( `https://api.ecoledirecte.com/v3/${ accountsListState [ userId ] . accountType === "E" ? "eleves/" + accountsListState [ userId ] . id : "familles/" + accountsListState [ userId ] . familyId } /messages.awp?force=false&typeRecuperation=${ specialFolderType } &idClasseur=${ folderId } &orderBy=date&order=desc&query=&onlyRead=&getAll=1&verbe=get&v=${ apiVersion } ` , true ) ,
1911
+ `https://api.ecoledirecte.com/v3/${ accountsListState [ userId ] . accountType === "E" ? "eleves/" + accountsListState [ userId ] . id : "familles/" + accountsListState [ userId ] . familyId } /messages.awp?force=false&typeRecuperation=${ specialFolderType } &idClasseur=${ folderId } &orderBy=date&order=desc&query=&onlyRead=&getAll=1&verbe=get&v=${ apiVersion } ` ,
1913
1912
{
1914
1913
method : "POST" ,
1915
1914
headers : {
@@ -1983,7 +1982,7 @@ export default function App({ edpFetch }) {
1983
1982
const mode = ( oldSortedMessages . find ( ( item ) => item . id === id ) . folderId === - 1 || oldSortedMessages . find ( ( item ) => item . id === id ) . folderId === - 4 ) ? "expediteur" : "destinataire" ;
1984
1983
1985
1984
edpFetch (
1986
- getProxiedURL ( `https://api.ecoledirecte.com/v3/${ accountsListState [ userId ] . accountType === "E" ? "eleves/" + accountsListState [ userId ] . id : "familles/" + accountsListState [ userId ] . familyId } /messages/${ id } .awp?verbe=get&mode=${ mode } &v=${ apiVersion } ` , true ) ,
1985
+ `https://api.ecoledirecte.com/v3/${ accountsListState [ userId ] . accountType === "E" ? "eleves/" + accountsListState [ userId ] . id : "familles/" + accountsListState [ userId ] . familyId } /messages/${ id } .awp?verbe=get&mode=${ mode } &v=${ apiVersion } ` ,
1987
1986
{
1988
1987
method : "POST" ,
1989
1988
headers : {
@@ -2032,7 +2031,7 @@ export default function App({ edpFetch }) {
2032
2031
ids : ids
2033
2032
}
2034
2033
edpFetch (
2035
- getProxiedURL ( `https://api.ecoledirecte.com/v3/${ accountsListState [ userId ] . accountType === "E" ? "eleves/" + accountsListState [ userId ] . id : "familles/" + accountsListState [ userId ] . familyId } /messages.awp?verbe=put&v=${ apiVersion } ` , true ) ,
2034
+ `https://api.ecoledirecte.com/v3/${ accountsListState [ userId ] . accountType === "E" ? "eleves/" + accountsListState [ userId ] . id : "familles/" + accountsListState [ userId ] . familyId } /messages.awp?verbe=put&v=${ apiVersion } ` ,
2036
2035
{
2037
2036
method : "POST" ,
2038
2037
headers : {
@@ -2071,7 +2070,7 @@ export default function App({ edpFetch }) {
2071
2070
anneeScolaire : getUserSettingValue ( "isSchoolYearEnabled" ) ? getUserSettingValue ( "schoolYear" ) . join ( "-" ) : ""
2072
2071
}
2073
2072
2074
- edpFetch ( getProxiedURL ( `https://api.ecoledirecte.com/v3/eleves/${ accountsListState [ activeAccount ] . id } /viescolaire.awp?verbe=get&v=${ apiVersion } ` , true ) ,
2073
+ edpFetch ( `https://api.ecoledirecte.com/v3/eleves/${ accountsListState [ activeAccount ] . id } /viescolaire.awp?verbe=get&v=${ apiVersion } ` ,
2075
2074
{
2076
2075
method : "POST" ,
2077
2076
headers : {
@@ -2116,7 +2115,7 @@ export default function App({ edpFetch }) {
2116
2115
function fetchA2F ( { method = "get" , choice = "" , callback = ( ( ) => { } ) , errorCallback = ( ( ) => { } ) , controller = ( new AbortController ( ) ) } ) {
2117
2116
abortControllers . current . push ( controller ) ;
2118
2117
edpFetch (
2119
- getProxiedURL ( `https://api.ecoledirecte.com/v3/connexion/doubleauth.awp?verbe=${ method } &v=${ apiVersion } ` , true ) ,
2118
+ `https://api.ecoledirecte.com/v3/connexion/doubleauth.awp?verbe=${ method } &v=${ apiVersion } ` ,
2120
2119
{
2121
2120
method : "POST" ,
2122
2121
headers : {
@@ -2153,7 +2152,7 @@ export default function App({ edpFetch }) {
2153
2152
const data = {
2154
2153
libelle : name ,
2155
2154
}
2156
- edpFetch ( getProxiedURL ( "https://api.ecoledirecte.com/v3/messagerie/classeurs.awp?verbe=post%26v=4.52.0" , true ) ,
2155
+ edpFetch ( "https://api.ecoledirecte.com/v3/messagerie/classeurs.awp?verbe=post%26v=4.52.0" ,
2157
2156
{
2158
2157
method : "POST" ,
2159
2158
headers : {
@@ -2185,8 +2184,7 @@ export default function App({ edpFetch }) {
2185
2184
2186
2185
async function fetchAdministrativeDocuments ( selectedYear , controller = ( new AbortController ( ) ) ) {
2187
2186
abortControllers . current . push ( controller ) ;
2188
- return edpFetch (
2189
- getProxiedURL ( `https://api.ecoledirecte.com/v3/${ accountsListState [ activeAccount ] . accountType === "E" ? "eleves" : "famille" } Documents.awp?archive=${ selectedYear } &verbe=get&v=${ apiVersion } ` , true ) ,
2187
+ return edpFetch ( `https://api.ecoledirecte.com/v3/${ accountsListState [ activeAccount ] . accountType === "E" ? "eleves" : "famille" } Documents.awp?archive=${ selectedYear } &verbe=get&v=${ apiVersion } ` ,
2190
2188
{
2191
2189
method : "POST" ,
2192
2190
headers : {
0 commit comments