diff --git a/.env b/.env index 37b9778..f1a7b2e 100644 --- a/.env +++ b/.env @@ -2,9 +2,9 @@ RROWSER=FALSE SKIP_PREFLIGHT_CHECK=true REACT_APP_API_VERSION=1 REACT_APP_FIREBASE_API_KEY=AIzaSyBb_mfZOYFGmWa_UqQPIXVYhGdnFk6K2zo -# REACT_APP_API_USER_SIGN_IN=https://api.odiprojects.com/api-user/v1/Users/SignIn -# REACT_APP_INSTITUTE_API_PREFIX=https://api.odiprojects.com/api-institute/v -REACT_APP_INSTITUTE_API_PREFIX=https://api-institute.odiprojects.com/v -# REACT_APP_ADMIN_API_PREFIX=https://api.odiprojects.com/api-admin/v -REACT_APP_ADMIN_API_PREFIX=https://api-admin.odiprojects.com/v +# REACT_APP_API_USER_SIGN_IN=https://api.practicekea.com/api-user/v1/Users/SignIn +# REACT_APP_INSTITUTE_API_PREFIX=https://api.practicekea.com/api-institute/v +REACT_APP_INSTITUTE_API_PREFIX=https://api-institute.practicekea.com/v +# REACT_APP_ADMIN_API_PREFIX=https://api.practicekea.com/api-admin/v +REACT_APP_ADMIN_API_PREFIX=https://api-admin.practicekea.com/v diff --git a/.firebase/hosting.YnVpbGQ.cache b/.firebase/hosting.YnVpbGQ.cache index 9009d60..2a268d9 100644 --- a/.firebase/hosting.YnVpbGQ.cache +++ b/.firebase/hosting.YnVpbGQ.cache @@ -1,12 +1,12 @@ robots.txt,1761396900570,bfe106a3fb878dc83461c86818bf74fc1bdc7f28538ba613cd3e775516ce8b49 manifest.json,1761396900568,a9350a49aaac9fe94d3dd77b8270cc998c04ab97944a606189675022431faa51 favicon.svg,1761396900561,a2a4880301751061a600b0bfc5c26fc413aed41e581516c4fa976bcb7fff6663 -service-worker.js,1761849017438,7b0d3a5edd95abc3201cb549087f6daf2296a7d55788a5ebde5d1d57e12185eb -index.html,1761849017438,476073569d8a367c4afff6117fd23bee26c445a576cfee07e8868db873b67595 -asset-manifest.json,1761849017438,9ac197fbc1f11a559b9576e9d5c05c376859ee6b38dc8b63abeab60c3d21b53a -precache-manifest.f1f2ae673655f50d61322f39ea4aa0e1.js,1761849017438,46fc2f89bc81e77f85b1a18ceb0fcd9c0d0c472a8b81d87a5173367c61bd5c0f -static/media/tru-fals-icon.d0b962d8.svg,1761849017299,a1deab7e5db8e8a94a9c5812dcde5f8cbfbe5da790da8500bf106980b9c79c33 -static/media/sub-ques-icon.366b4f1e.svg,1761849017305,8e397611007ec5db7581a4c1bcca006950390ddf652cae209bb3973a645af425 +asset-manifest.json,1761853385780,947bcb706b377c9dbf5a38e63708e532cee066bfea120b9e2e23b6b36368140d +service-worker.js,1761853385779,b77b732bc5ed74bc5eece87a42f726611d4762a43a3b74fdcd9e992a0dd4873d +static/media/sub-ques-icon.366b4f1e.svg,1761853385736,8e397611007ec5db7581a4c1bcca006950390ddf652cae209bb3973a645af425 +index.html,1761853385779,ff959c046bb89ef0a41f7d163ebf43d375ba9005643531f126da31c6c232a165 +precache-manifest.dec188fe831dd96865bf08d8736029aa.js,1761853385779,25aca59ae49e7fec8ee114db57ebf98a3122ccceb668d1d25bb097667eb84567 +static/media/student-engaged.53fb7b0b.svg,1761853385733,5f8e01d1a5efcbdf3aa00ed07de843ab84404a28b672ca91f4d70d89fa8b37cf assets/images/locale-icon.svg,1761396900579,610498c7ca3b5800d268b1654473f0b1d79de2c6493a7c6982bef90456d35179 assets/images/icons/icon-96x96.png,1761396900602,43a8ac4df8945d7a44e3e4911032214f01eaea92267baa31a93e77942b424c73 assets/images/icons/icon-72x72.png,1761396900600,a42f1df8ab0a8fe921573976d49158e1a2c52fe430460c869947f221aba30a94 @@ -16,52 +16,52 @@ assets/images/icons/icon-192x192.png,1761396900592,ac9fe46fbeb4c54fb3c838b645380 assets/images/icons/icon-152x152.png,1761396900590,95a5a117fbd5640f1f1f13c9923398545e3f5b66734ff6c8ce67c942319a8b67 assets/images/icons/icon-144x144.png,1761396900588,e42168e0e1abb5bd7811ebe1b5a2183d0ce287bf266c2efd8d97a23d23ca8d00 assets/images/icons/icon-128x128.png,1761396900585,45b577c86e7c03fef868bfa3f96810c5b36f31156c32c0d85620d2e6fe1fc85b -static/media/translate.610ad011.svg,1761849017302,c06f8a3d0c976b02429ce805d8a4944571ab0128ed2ce49c2d3ca134511ed120 -static/media/student-engaged.53fb7b0b.svg,1761849017297,5f8e01d1a5efcbdf3aa00ed07de843ab84404a28b672ca91f4d70d89fa8b37cf -static/media/quizexam.5545802e.svg,1761849017287,dfc1278bfcd264264a4d0e0e0247c229335abf0573439c5e9829c8607aacd569 -static/media/questions-icon.3d3c1aaf.svg,1761849017297,197f459a359b00c1c44b6ddd71cbc9160f593d1fe08534e3711e9d72a2956ef1 -static/media/question.0c505ed9.svg,1761849017288,29938066f93476c487414bb7a5dd5227d891c8ab8e115a74a7e7ffccd8d87b36 -static/media/PracticeKiaLogo.a8336af5.svg,1761849017279,1a592518bcfabb2f86669d06ae2fb7b2948bbdbfaf5a80d138ab30f4e482a0f8 -static/media/practice.f05e6f00.svg,1761849017288,13b094bcbbb8c50906b1ee0ce68305059e99319464dd4147b4c2194dbb460475 -static/media/practice-icon.bf603115.svg,1761849017298,27b6a729d91914d899f4b3c1f817e26ac58d2ec0be54dc9b93c01f28adcdd00c -static/media/performance.88855f12.svg,1761849017290,03fc1b19005084049382091745d3f1f29a447763091ad4a9bc5d097c338671c9 -static/media/perf-icon.1597a235.svg,1761849017299,7183482b785de425506f49deb27bba02e906132ac7ce5af01f7da8452ef64f28 -static/media/mul-res-icon.8ef3b097.svg,1761849017299,1f0a79350cb5546361ef02af1657ad36efeff833fd7bb61db88a20e127a290b4 -static/media/mul-cho-icon.b3dc9ea9.svg,1761849017299,e8edbceb0eb49f7629cf0b8edf599f9347acbf0c6d1df2fa6145cbed03f37e1f -static/media/locale-icon.b3596424.svg,1761849017296,68618c76952aa4c5f2623bb010514871688960bb3b9edbcda0eab7eb75442054 -static/media/OdiSVGlogo.f0834bb1.svg,1761849017287,3ec1cab31a32db378894d796afedaee7c35f8ff99dfb1039b0bb757225a47235 -static/media/GrayscalePKLogo.6bb74404.svg,1761849017287,576b38300e49eda6407adce420001e7ad0333cca317eb668aff457c3258dcca2 -static/media/getFetch.2b2b7da4.cjs,1761849017286,b2d82abee5b8af22b81d67fc20b3feef1eaaf04585dbc24ec755e3304c469096 -static/media/dashboard.8ec7624b.svg,1761849017287,5a5b5d4bf416d414842bd5eac30432b592342a392450e52943f067db4077bec1 -static/media/feature-2.36f8d7e2.webp,1761849017287,fc1c038517abf3b731ff3a4675cbaf1a6aa1150ca970762dd0ffc4199b92b75c -static/media/exam-icon.10f48851.svg,1761849017297,b766e9975582af716870a844f8deabd4d80e33a47c400d36cee6bc4840062693 -static/media/delete-icon.da38c0f4.svg,1761849017307,8078772ee88a0588989eec477da1ca949430f3f06efaa9c2db860b74c65f6722 -static/media/classes.3b73dba0.svg,1761849017288,2abfbb7015d5bccb8640fd0614d3782c048672c9543fe17d127db63287ac141d -static/media/Checkmark.1356376c.svg,1761849017312,aa56f27c8198bcae3236a881a7134cd3b7d3dbb048ec75654e8ce2d4710ce027 -static/media/class-icon.6afd34b5.svg,1761849017296,a2f492c6c9c7b5201773062dfe90c238c12bc00bec097dc06141201f02b9588e -static/media/batch.3fcff66e.svg,1761849017288,f29038480286f091e3805a43f90ca5a70a13bbcef3076831e0b29b1fcb61d862 -static/media/add-circle.0011f2bc.svg,1761849017297,d9e5d90e8de1ce16df5720b43ca79543036fcf1a6cd6439a9b15c5a97d269f17 -static/media/batch-icon.bf664771.svg,1761849017299,7519e2a92f436a2f46ef7420d721e24df2837d7fce7fe8c30f4bc12980b3d1a0 -static/js/runtime-main.2bdeab81.js,1761849017323,5c04066aee33f757af11aff4783499664f995e641476c3c1552c373bf87171bb -static/js/runtime-main.2bdeab81.js.map,1761849017439,a6cd518ca4773cf5562057dad7acb281edac1b802572abcdc6ee19c33f02b744 -static/js/4.568469c1.chunk.js.map,1761849017441,f626752d2d2cffe76387c84c314248f1ab02d9c6a79a16442a98e124c8f7d5fa -static/media/auth-BG.2835584f.svg,1761849017286,238d3a2ff1aead1c4aaed0e07d23d2c1164f8be0ef2d5fced5c5ade370f3c5bf -static/js/4.568469c1.chunk.js,1761849017330,7f998d124bddb5cb8e916a7bb559ddd2f5c133920e79651382bbabf25affc9c4 -static/js/3.d75ced33.chunk.js.map,1761849017441,a12fbfb03ced36f6a8c055bf8b3961a9170b3676c8e4f545921152b23e9bc4dd -static/js/2.62337eda.chunk.js.LICENSE.txt,1761849017336,9c84bc4d2f8584d32d75e01e0317e22af1e39f5ac5ded3e2e4e34984704c172b -static/js/3.d75ced33.chunk.js,1761849017330,c68f66b973c4099ec168a05edb6212303bf31b91c57a2adc0a46595d31262355 -static/media/logo.0dd03933.png,1761849017287,b9716ed1f565a052edc1154a207334de81856339e8ca43d5d8f51041f3785085 -static/media/feature-1.ea5c34ea.svg,1761849017287,d802659785b69508e521d5543fca40a58cb9076521ffc3e6b006f4786b8079f8 -static/media/feature-3.3d5d81e9.svg,1761849017287,ba23393d89776cb78f7a559903baff48be76665abd99bdd4e5ea103c5e5ed88b -static/js/main.21fe2de6.chunk.js,1761849017312,29f23a2722a37f60354e3f5cccd9ec2b813f3a33dd5432f23feb6a9126058247 -static/css/main.b90ebd71.chunk.css,1761849017308,47c0c4a15920e9cea3ceba32d4bc59829a376a7f4347c15b82d7e8878d59008d -static/css/4.629184c9.chunk.css,1761849017330,dfeba86da1256521df7a877a265d56d314f65016837f30878338c2b7fc62a6ab -static/css/2.561a8df6.chunk.css,1761849017329,c87247fc5cf38902aee0ee29244f6ab0c4bc14e5a0a1d6860cd771410dc826f8 -static/css/3.6c5a3051.chunk.css,1761849017330,1ae150a22b1d42322775be9055605f93c75188e7081cfbdb206a59fc2f5ab8f1 -static/js/main.21fe2de6.chunk.js.map,1761849017440,369512ab4f033f136ac3507aaaca944f5974993775a629cb918a438221c65ce2 -static/css/4.629184c9.chunk.css.map,1761849017441,b82aa57e6e357dbb20067334e544e9b30d20ed0d928c13e6c61e1747e6f5a205 -static/css/3.6c5a3051.chunk.css.map,1761849017426,bcc301c3b3b46c96afc0fc028a6aa3cd299ccda538d7c6cb9ebc87f8de535796 -static/css/main.b90ebd71.chunk.css.map,1761849017331,bff960067cfb59c88b8ec495e5b5334532e05ae898ad3f3a78ee293f74fb7855 -static/css/2.561a8df6.chunk.css.map,1761849017352,ed9f46fc5b36bd835967cfd533fb33fd9ceec9c3aadcbe6c12bfb90b3ad1bc83 -static/js/2.62337eda.chunk.js,1761849017334,77cf5f150a62f871cd755bda4416b033e3beb160bd839ff268a882922536c428 -static/js/2.62337eda.chunk.js.map,1761849017458,b9d5a81200c981136931f3bc4b5e66963f392de9e4de8bd1e6f9821749e0164b +static/media/tru-fals-icon.d0b962d8.svg,1761853385735,a1deab7e5db8e8a94a9c5812dcde5f8cbfbe5da790da8500bf106980b9c79c33 +static/media/PracticeKiaLogo.a8336af5.svg,1761853385716,1a592518bcfabb2f86669d06ae2fb7b2948bbdbfaf5a80d138ab30f4e482a0f8 +static/media/translate.610ad011.svg,1761853385736,c06f8a3d0c976b02429ce805d8a4944571ab0128ed2ce49c2d3ca134511ed120 +static/media/questions-icon.3d3c1aaf.svg,1761853385732,197f459a359b00c1c44b6ddd71cbc9160f593d1fe08534e3711e9d72a2956ef1 +static/media/question.0c505ed9.svg,1761853385722,29938066f93476c487414bb7a5dd5227d891c8ab8e115a74a7e7ffccd8d87b36 +static/media/practice.f05e6f00.svg,1761853385723,13b094bcbbb8c50906b1ee0ce68305059e99319464dd4147b4c2194dbb460475 +static/media/performance.88855f12.svg,1761853385730,03fc1b19005084049382091745d3f1f29a447763091ad4a9bc5d097c338671c9 +static/media/quizexam.5545802e.svg,1761853385722,dfc1278bfcd264264a4d0e0e0247c229335abf0573439c5e9829c8607aacd569 +static/media/mul-res-icon.8ef3b097.svg,1761853385733,1f0a79350cb5546361ef02af1657ad36efeff833fd7bb61db88a20e127a290b4 +static/media/practice-icon.bf603115.svg,1761853385733,27b6a729d91914d899f4b3c1f817e26ac58d2ec0be54dc9b93c01f28adcdd00c +static/media/mul-cho-icon.b3dc9ea9.svg,1761853385734,e8edbceb0eb49f7629cf0b8edf599f9347acbf0c6d1df2fa6145cbed03f37e1f +static/media/perf-icon.1597a235.svg,1761853385734,7183482b785de425506f49deb27bba02e906132ac7ce5af01f7da8452ef64f28 +static/media/GrayscalePKLogo.6bb74404.svg,1761853385722,576b38300e49eda6407adce420001e7ad0333cca317eb668aff457c3258dcca2 +static/media/getFetch.2b2b7da4.cjs,1761853385722,b2d82abee5b8af22b81d67fc20b3feef1eaaf04585dbc24ec755e3304c469096 +static/media/locale-icon.b3596424.svg,1761853385732,68618c76952aa4c5f2623bb010514871688960bb3b9edbcda0eab7eb75442054 +static/media/delete-icon.da38c0f4.svg,1761853385739,8078772ee88a0588989eec477da1ca949430f3f06efaa9c2db860b74c65f6722 +static/media/exam-icon.10f48851.svg,1761853385733,b766e9975582af716870a844f8deabd4d80e33a47c400d36cee6bc4840062693 +static/media/feature-2.36f8d7e2.webp,1761853385722,fc1c038517abf3b731ff3a4675cbaf1a6aa1150ca970762dd0ffc4199b92b75c +static/media/dashboard.8ec7624b.svg,1761853385722,5a5b5d4bf416d414842bd5eac30432b592342a392450e52943f067db4077bec1 +static/media/classes.3b73dba0.svg,1761853385722,2abfbb7015d5bccb8640fd0614d3782c048672c9543fe17d127db63287ac141d +static/media/class-icon.6afd34b5.svg,1761853385732,a2f492c6c9c7b5201773062dfe90c238c12bc00bec097dc06141201f02b9588e +static/media/batch.3fcff66e.svg,1761853385723,f29038480286f091e3805a43f90ca5a70a13bbcef3076831e0b29b1fcb61d862 +static/media/auth-BG.2835584f.svg,1761853385722,238d3a2ff1aead1c4aaed0e07d23d2c1164f8be0ef2d5fced5c5ade370f3c5bf +static/media/add-circle.0011f2bc.svg,1761853385732,d9e5d90e8de1ce16df5720b43ca79543036fcf1a6cd6439a9b15c5a97d269f17 +static/media/Checkmark.1356376c.svg,1761853385740,aa56f27c8198bcae3236a881a7134cd3b7d3dbb048ec75654e8ce2d4710ce027 +static/media/OdiSVGlogo.f0834bb1.svg,1761853385722,3ec1cab31a32db378894d796afedaee7c35f8ff99dfb1039b0bb757225a47235 +static/media/batch-icon.bf664771.svg,1761853385733,7519e2a92f436a2f46ef7420d721e24df2837d7fce7fe8c30f4bc12980b3d1a0 +static/js/runtime-main.2bdeab81.js,1761853385744,5c04066aee33f757af11aff4783499664f995e641476c3c1552c373bf87171bb +static/js/runtime-main.2bdeab81.js.map,1761853385779,a6cd518ca4773cf5562057dad7acb281edac1b802572abcdc6ee19c33f02b744 +static/js/4.568469c1.chunk.js,1761853385750,7f998d124bddb5cb8e916a7bb559ddd2f5c133920e79651382bbabf25affc9c4 +static/js/3.d75ced33.chunk.js.map,1761853385780,a12fbfb03ced36f6a8c055bf8b3961a9170b3676c8e4f545921152b23e9bc4dd +static/js/3.d75ced33.chunk.js,1761853385744,c68f66b973c4099ec168a05edb6212303bf31b91c57a2adc0a46595d31262355 +static/js/2.62337eda.chunk.js.LICENSE.txt,1761853385750,9c84bc4d2f8584d32d75e01e0317e22af1e39f5ac5ded3e2e4e34984704c172b +static/js/4.568469c1.chunk.js.map,1761853385780,f626752d2d2cffe76387c84c314248f1ab02d9c6a79a16442a98e124c8f7d5fa +static/media/logo.0dd03933.png,1761853385722,b9716ed1f565a052edc1154a207334de81856339e8ca43d5d8f51041f3785085 +static/media/feature-1.ea5c34ea.svg,1761853385722,d802659785b69508e521d5543fca40a58cb9076521ffc3e6b006f4786b8079f8 +static/media/feature-3.3d5d81e9.svg,1761853385722,ba23393d89776cb78f7a559903baff48be76665abd99bdd4e5ea103c5e5ed88b +static/js/main.dc7a2e26.chunk.js,1761853385738,1293d0870db2e36165f74a2ecab3f5e9e9400cc6cd21a13a53f945a03daa4aee +static/css/main.b90ebd71.chunk.css,1761853385738,47c0c4a15920e9cea3ceba32d4bc59829a376a7f4347c15b82d7e8878d59008d +static/css/4.629184c9.chunk.css,1761853385744,dfeba86da1256521df7a877a265d56d314f65016837f30878338c2b7fc62a6ab +static/css/2.561a8df6.chunk.css,1761853385744,c87247fc5cf38902aee0ee29244f6ab0c4bc14e5a0a1d6860cd771410dc826f8 +static/css/3.6c5a3051.chunk.css,1761853385744,1ae150a22b1d42322775be9055605f93c75188e7081cfbdb206a59fc2f5ab8f1 +static/css/4.629184c9.chunk.css.map,1761853385780,b82aa57e6e357dbb20067334e544e9b30d20ed0d928c13e6c61e1747e6f5a205 +static/js/main.dc7a2e26.chunk.js.map,1761853385780,c56d0ef8b291303c026aa85a72cd2ded6b170209baa26f266856af48fcba7c01 +static/css/3.6c5a3051.chunk.css.map,1761853385751,bcc301c3b3b46c96afc0fc028a6aa3cd299ccda538d7c6cb9ebc87f8de535796 +static/css/2.561a8df6.chunk.css.map,1761853385751,ed9f46fc5b36bd835967cfd533fb33fd9ceec9c3aadcbe6c12bfb90b3ad1bc83 +static/css/main.b90ebd71.chunk.css.map,1761853385751,bff960067cfb59c88b8ec495e5b5334532e05ae898ad3f3a78ee293f74fb7855 +static/js/2.62337eda.chunk.js,1761853385748,77cf5f150a62f871cd755bda4416b033e3beb160bd839ff268a882922536c428 +static/js/2.62337eda.chunk.js.map,1761853385790,b9d5a81200c981136931f3bc4b5e66963f392de9e4de8bd1e6f9821749e0164b diff --git a/src/_services/authentication.service.js b/src/_services/authentication.service.js index cd61787..824a144 100644 --- a/src/_services/authentication.service.js +++ b/src/_services/authentication.service.js @@ -123,7 +123,7 @@ function authenticate(auth) { }; // return fetch(`${config.apiUrl}/users/authenticate`, requestOptions) - return fetch('https://api.odiprojects.com/api-user/v1/Users/VerifyAccount/' + auth, requestOptions) + return fetch('https://api.practicekea.com/api-user/v1/Users/VerifyAccount/' + auth, requestOptions) .then((response) => { if (response.ok) { // console.log(response.json()); diff --git a/src/_services/config.js b/src/_services/config.js index 523cab2..ac6984c 100644 --- a/src/_services/config.js +++ b/src/_services/config.js @@ -1,4 +1,4 @@ -const DOMAIN = "https://api.odiprojects.com"; +const DOMAIN = "https://api.practicekea.com"; const FIREBASE_API_KEY = process.env.REACT_APP_FIREBASE_API_KEY; const API_VERSION = process.env.REACT_APP_API_VERSION; const INSTITUTE_API_PREFIX = `${DOMAIN}/api-institute/v`; @@ -9,7 +9,7 @@ export const S3_BUCKET_EXAM_PREFIX = "https://s3bucket-for-oa.s3.ap-south-1.amaz export const S3_BUCKET_PRACTICE_PREFIX = "https://s3bucket-for-oa.s3.ap-south-1.amazonaws.com/1/practices/" //ADD FILENAME.PNG AT THE END export const FIREBASE_LOGIN = `https://identitytoolkit.googleapis.com/v1/accounts:signInWithPassword?key=${FIREBASE_API_KEY}` -export const API_USER_SIGN_IN = `https://api.odiprojects.com/api-student/v${API_VERSION}/Users/SignIn`; +export const API_USER_SIGN_IN = `https://api.practicekea.com/api-student/v${API_VERSION}/Users/SignIn`; export const INSTITUTE_API = INSTITUTE_API_PREFIX + API_VERSION; diff --git a/src/_services/user.service.js b/src/_services/user.service.js index 127777d..82d2ce9 100644 --- a/src/_services/user.service.js +++ b/src/_services/user.service.js @@ -23,7 +23,7 @@ // }; // console.log(requestOptions); // //return fetch(`${config.apiUrl}/v1/Users`, requestOptions) -// return fetch(`http://api.odiprojects.com/api-institute/v1/en/Classes`, requestOptions) +// return fetch(`http://api.practicekea.com/api-institute/v1/en/Classes`, requestOptions) // .then((response) => response.text()) // .then((responseText) => { // console.log(JSON.parse(responseText)); diff --git a/src/component/Main/FuncHeader.jsx b/src/component/Main/FuncHeader.jsx index 86a343c..24789af 100644 --- a/src/component/Main/FuncHeader.jsx +++ b/src/component/Main/FuncHeader.jsx @@ -101,7 +101,7 @@ const Headerc = (props) => { } const response = await axios.get( - "https://api.odiprojects.com/api-student/v1/UserGroups/list", + "https://api.practicekea.com/api-student/v1/UserGroups/list", { headers: { Authorization: `Bearer ${token}`, diff --git a/src/component/Questions/EditQuestion/LayoutEdit-re.js b/src/component/Questions/EditQuestion/LayoutEdit-re.js index c8cc142..34f667c 100644 --- a/src/component/Questions/EditQuestion/LayoutEdit-re.js +++ b/src/component/Questions/EditQuestion/LayoutEdit-re.js @@ -85,7 +85,7 @@ console.log(this.props.complexity) currentUser.language_name = "English"; } this.state.loading = true; - return fetch("https://api.odiprojects.com/api-institute/v1/"+currentUser.language_code+"/Questions/"+this.state.id, requestOptions + return fetch("https://api.practicekea.com/api-institute/v1/"+currentUser.language_code+"/Questions/"+this.state.id, requestOptions ).then(response => { console.log(response) if (response.ok) { diff --git a/src/component/Usergroup/Classes.js b/src/component/Usergroup/Classes.js index f4ecbff..186e6b5 100644 --- a/src/component/Usergroup/Classes.js +++ b/src/component/Usergroup/Classes.js @@ -64,7 +64,7 @@ class Classes extends React.Component{ 'Authorization': 'Bearer '.concat(currentUser.jwtToken) } }; - fetch(`https://api-institute.odiprojects.com/v1/UserGroups/Classes/${currentClass}`, requestOptions) + fetch(`https://api-institute.practicekea.com/v1/UserGroups/Classes/${currentClass}`, requestOptions) .then((response) => { return response.json(); }) @@ -101,7 +101,7 @@ class Classes extends React.Component{ 'Authorization': 'Bearer '.concat(currentUser.jwtToken) } }; - fetch(`https://api-institute.odiprojects.com/v1/UserGroups/${userGroupId}/Users`, requestOptions) + fetch(`https://api-institute.practicekea.com/v1/UserGroups/${userGroupId}/Users`, requestOptions) .then((response) => { return response.json(); }) diff --git a/src/redux/actions.js b/src/redux/actions.js index 845caa6..58c1634 100644 --- a/src/redux/actions.js +++ b/src/redux/actions.js @@ -1,6 +1,6 @@ export const userLoginFetch = user => { return dispatch => { - return fetch("https://api.odiprojects.com/api-user/v1/users/signin", { + return fetch("https://api.practicekea.com/api-user/v1/users/signin", { method: "POST", headers: { 'Content-Type': 'application/json', diff --git a/src/services/S3Bucket.js b/src/services/S3Bucket.js index 88288b3..d55c875 100644 --- a/src/services/S3Bucket.js +++ b/src/services/S3Bucket.js @@ -29,7 +29,7 @@ async function examImageUpload(examId, file) { currentUser.language_name = "English"; } try { - const response = await fetch(`https://api-bucket.odiprojects.com/api/AWSS3File/${examId}/uploadExamImage`, requestOptions); + const response = await fetch(`https://api-bucket.practicekea.com/api/AWSS3File/${examId}/uploadExamImage`, requestOptions); const result = await response.json(); console.log(response); if(response.ok) { @@ -64,7 +64,7 @@ async function practiceImageUpload(practiceId, file) { currentUser.language_name = "English"; } try { - const response = await fetch(`https://api-bucket.odiprojects.com/api/AWSS3File/${practiceId}/uploadPracticeImage`, requestOptions); + const response = await fetch(`https://api-bucket.practicekea.com/api/AWSS3File/${practiceId}/uploadPracticeImage`, requestOptions); const result = await response.json(); if (response.ok) { return "https://s3bucket-for-oa.s3.ap-south-1.amazonaws.com/1/practices/"+practiceId+".png" diff --git a/src/services/selectorService.js b/src/services/selectorService.js index 72eca65..bd31150 100644 --- a/src/services/selectorService.js +++ b/src/services/selectorService.js @@ -146,7 +146,7 @@ function loadReport(examId) { currentUser.language_name = "English"; } return fetch( - "https://api.odiprojects.com/api-student/v1/" + + "https://api.practicekea.com/api-student/v1/" + currentUser.language_code + "/ExamAttempts/" + examId + @@ -177,7 +177,7 @@ async function pauseExam(attemptId) { } const languageCode = currentUser.language_code || "En"; - const url = `https://api.odiprojects.com/api-student/v1/${languageCode}/ExamAttempts/${attemptId}/Pause`; + const url = `https://api.practicekea.com/api-student/v1/${languageCode}/ExamAttempts/${attemptId}/Pause`; try { const response = await fetch(url, { @@ -216,7 +216,7 @@ async function endExam(attemptId, payload) { } const languageCode = currentUser.language_code || "En"; - const url = `https://api.odiprojects.com/api-student/v1/${languageCode}/ExamAttempts/${attemptId}/End`; + const url = `https://api.practicekea.com/api-student/v1/${languageCode}/ExamAttempts/${attemptId}/End`; try { const response = await fetch(url, { @@ -255,7 +255,7 @@ async function heartbeat(attemptId) { return null; } - const url = `https://api.odiprojects.com/api-student/v1/ExamAttempts/${attemptId}/Heartbeat`; + const url = `https://api.practicekea.com/api-student/v1/ExamAttempts/${attemptId}/Heartbeat`; try { const response = await fetch(url, { @@ -292,7 +292,7 @@ async function updateExamStatus(attemptId, payload) { return null; } - const url = `https://api.odiprojects.com/api-student/v1/ExamAttempts/${attemptId}/UpdateAnswer`; + const url = `https://api.practicekea.com/api-student/v1/ExamAttempts/${attemptId}/UpdateAnswer`; try { const response = await fetch(url, { @@ -342,7 +342,7 @@ function updateBatchName(obj) { //body: JSON.stringify({ emailId:"sa@odiware.com", userPassword:"aaaa" }) }; return fetch( - "https://api.odiprojects.com/api-institute/v1/UserGroups/" + obj.id, + "https://api.practicekea.com/api-institute/v1/UserGroups/" + obj.id, requestOptions ) .then((response) => { @@ -377,7 +377,7 @@ function getPracticeAttempt(practiceId) { currentUser.language_name = "English"; } return fetch( - "https://api.odiprojects.com/api-institute/v1/" + + "https://api.practicekea.com/api-institute/v1/" + currentUser.language_code + "/PracticeAttempts/" + practiceId + @@ -411,7 +411,7 @@ async function getExamAttempt(attemptId) { const languageCode = currentUser.language_code || "En"; const languageName = currentUser.language_name || "English"; - const url = `https://api.odiprojects.com/api-student/v1/${languageCode}/ExamAttempts/${attemptId}/Questions`; + const url = `https://api.practicekea.com/api-student/v1/${languageCode}/ExamAttempts/${attemptId}/Questions`; try { const response = await fetch(url, { @@ -488,7 +488,7 @@ function getAllBatch() { }, }; return fetch( - // "https://api.odiprojects.com/api-institute/v1"+ + // "https://api.practicekea.com/api-institute/v1"+ checkRole() + "/UserGroups/Classes/" + currentClass, @@ -525,7 +525,7 @@ function getExamBatch(obj) { }, }; return fetch( - // "https://api.odiprojects.com/api-institute/v1"+ + // "https://api.practicekea.com/api-institute/v1"+ checkRole() + "/Exams/" + obj.id + "/Batches", requestOptions @@ -560,7 +560,7 @@ function getPracticeBatch(obj) { }, }; return fetch( - // "https://api.odiprojects.com/api-institute/v1"+ + // "https://api.practicekea.com/api-institute/v1"+ checkRole() + "/Practices/" + obj.id + "/Batches", requestOptions @@ -595,7 +595,7 @@ function getStudentsOfBatch(id) { }, }; return fetch( - "https://api.odiprojects.com/api-institute/v1/UserGroups/" + id + "/Users", + "https://api.practicekea.com/api-institute/v1/UserGroups/" + id + "/Users", requestOptions ) .then((response) => { @@ -630,7 +630,7 @@ function getClassDetails(id) { }, }; return fetch( - "https://api.odiprojects.com/api-institute/v1/Classes/" + id + "/Structure", + "https://api.practicekea.com/api-institute/v1/Classes/" + id + "/Structure", requestOptions ) .then((response) => { @@ -669,7 +669,7 @@ function createPracticeAttempt(practiceId) { currentUser.language_name = "English"; } return fetch( - "https://api.odiprojects.com/api-institute/v1/" + + "https://api.practicekea.com/api-institute/v1/" + currentUser.language_code + "/PracticeAttempts/" + practiceId + "/CreateAttempt", @@ -701,7 +701,7 @@ async function createExamAttempt(examId) { const languageCode = currentUser.language_code || "En"; const languageName = currentUser.language_name || "English"; - const url = `https://api.odiprojects.com/api-student/v1/${languageCode}/ExamAttempts/${examId}`; + const url = `https://api.practicekea.com/api-student/v1/${languageCode}/ExamAttempts/${examId}`; try { const response = await fetch(url, { @@ -756,7 +756,7 @@ function loadLiveExams(jsonObj) { currentUser.language_name = "English"; } return fetch( - "https://api.odiprojects.com/api-student/v1/" + + "https://api.practicekea.com/api-student/v1/" + currentUser.language_code + "/Batches/" + jsonObj.batch + @@ -801,7 +801,7 @@ function loadUpcomingExam(jsonObj) { currentUser.language_name = "English"; } return fetch( - "https://api.odiprojects.com/api-institute/v1/" + + "https://api.practicekea.com/api-institute/v1/" + currentUser.language_code + "/Batches/" + jsonObj.batch + @@ -835,7 +835,7 @@ function getAllClass() { }; return fetch( - "https://api.odiprojects.com/api-institute/v1/Classes", + "https://api.practicekea.com/api-institute/v1/Classes", requestOptions ) .then((response) => { @@ -875,7 +875,7 @@ function publishExam(examId, json) { currentUser.language_name = "English"; } return fetch( - // "https://api.odiprojects.com/api-institute/v1"+ + // "https://api.practicekea.com/api-institute/v1"+ checkRole() + "/Exams/" + examId + "/Publish", requestOptions @@ -915,7 +915,7 @@ function publishPractice(practiceId, json) { currentUser.language_name = "English"; } return fetch( - // "https://api.odiprojects.com/api-institute/v1"+ + // "https://api.practicekea.com/api-institute/v1"+ checkRole() + "/Practices/" + practiceId + @@ -954,7 +954,7 @@ function markQuestions(sectionId, questions) { //body: JSON.stringify({ emailId:"sa@odiware.com", userPassword:"aaaa" }) }; return fetch( - // "https://api.odiprojects.com/api-institute/v1"+ + // "https://api.practicekea.com/api-institute/v1"+ checkRole() + "/ExamSections/" + sectionId + @@ -1016,7 +1016,7 @@ function detachQuestion(sectionId, question) { //body: JSON.stringify({ emailId:"sa@odiware.com", userPassword:"aaaa" }) }; return fetch( - // "https://api.odiprojects.com/api-institute/v1"+ + // "https://api.practicekea.com/api-institute/v1"+ checkRole() + "/ExamSections/" + sectionId + @@ -1055,7 +1055,7 @@ function detachQuestionPractice(practiceId, question) { //body: JSON.stringify({ emailId:"sa@odiware.com", userPassword:"aaaa" }) }; return fetch( - // "https://api.odiprojects.com/api-institute/v1"+ + // "https://api.practicekea.com/api-institute/v1"+ checkRole() + "/Practices/" + practiceId + "/DetachQuestions", requestOptions ) @@ -1094,7 +1094,7 @@ function createClass(obj) { //body: JSON.stringify({ emailId:"sa@odiware.com", userPassword:"aaaa" }) }; return fetch( - "https://api.odiprojects.com/api-institute/v1/Classes", + "https://api.practicekea.com/api-institute/v1/Classes", requestOptions ) .then((response) => { @@ -1129,7 +1129,7 @@ function deleteExamBatch(obj) { //body: JSON.stringify({ emailId:"sa@odiware.com", userPassword:"aaaa" }) }; return fetch( - // "https://api.odiprojects.com/api-institute/v1"+ + // "https://api.practicekea.com/api-institute/v1"+ checkRole() + "/Exams/" + obj.id + @@ -1168,7 +1168,7 @@ function addBatchToExam(obj) { //body: JSON.stringify({ emailId:"sa@odiware.com", userPassword:"aaaa" }) }; return fetch( - // "https://api.odiprojects.com/api-institute/v1"+ + // "https://api.practicekea.com/api-institute/v1"+ checkRole() + "/Exams/" + obj.id + @@ -1229,7 +1229,7 @@ function detachBatchesFromExam(obj) { //body: JSON.stringify({ emailId:"sa@odiware.com", userPassword:"aaaa" }) }; return fetch( - // "https://api.odiprojects.com/api-institute/v1"+ + // "https://api.practicekea.com/api-institute/v1"+ checkRole() + "/Exams/" + obj.id + @@ -1290,7 +1290,7 @@ function addBatchesToExam(obj) { //body: JSON.stringify({ emailId:"sa@odiware.com", userPassword:"aaaa" }) }; return fetch( - // "https://api.odiprojects.com/api-institute/v1"+ + // "https://api.practicekea.com/api-institute/v1"+ checkRole() + "/Exams/" + obj.id + @@ -1329,7 +1329,7 @@ function addSubjectToClass(obj) { //body: JSON.stringify({ emailId:"sa@odiware.com", userPassword:"aaaa" }) }; return fetch( - "https://api.odiprojects.com/api-institute/v1/Classes/" + + "https://api.practicekea.com/api-institute/v1/Classes/" + obj.id + "/Subjects", requestOptions @@ -1424,7 +1424,7 @@ function addTopicToClass(obj) { //body: JSON.stringify({ emailId:"sa@odiware.com", userPassword:"aaaa" }) }; return fetch( - "https://api.odiprojects.com/api-institute/v1/Subjects/" + + "https://api.practicekea.com/api-institute/v1/Subjects/" + obj.id + "/Categories", requestOptions @@ -1462,7 +1462,7 @@ function updateClass(obj) { }; console.log(requestOptions); return fetch( - "https://api.odiprojects.com/api-institute/v1/Classes/" + obj.id, + "https://api.practicekea.com/api-institute/v1/Classes/" + obj.id, requestOptions ) .then((response) => { @@ -1532,7 +1532,7 @@ function getAllBatchForClass(class_id) { }, }; return fetch( - "https://api.odiprojects.com/api-institute/v1/UserGroups/Classes/" + + "https://api.practicekea.com/api-institute/v1/UserGroups/Classes/" + class_id, requestOptions ) @@ -1604,7 +1604,7 @@ function deleteFromBatch(obj) { //body: JSON.stringify({ emailId:"sa@odiware.com", userPassword:"aaaa" }) }; return fetch( - "https://api.odiprojects.com/api-institute/v1/UserGroups/" + + "https://api.practicekea.com/api-institute/v1/UserGroups/" + obj.batch_id + "/DetachUsers", requestOptions @@ -1642,7 +1642,7 @@ function deleteBatch(id) { //body: JSON.stringify({ emailId:"sa@odiware.com", userPassword:"aaaa" }) }; return fetch( - "https://api.odiprojects.com/api-institute/v1/UserGroups/" + id, + "https://api.practicekea.com/api-institute/v1/UserGroups/" + id, requestOptions ) .then((response) => { @@ -1677,7 +1677,7 @@ function deleteClass(id) { //body: JSON.stringify({ emailId:"sa@odiware.com", userPassword:"aaaa" }) }; return fetch( - "https://api.odiprojects.com/api-institute/v1/Classes/" + id, + "https://api.practicekea.com/api-institute/v1/Classes/" + id, requestOptions ) .then((response) => { @@ -1712,7 +1712,7 @@ function loadReviewQuestions(sectionId) { currentUser.language_name = "English"; } return fetch( - // "https://api.odiprojects.com/api-institute/v1"+ + // "https://api.practicekea.com/api-institute/v1"+ checkRole() + "/ExamSections/" + sectionId + @@ -1748,7 +1748,7 @@ function loadReviewQuestionsPractice(practiceId) { currentUser.language_name = "English"; } return fetch( - // "https://api.odiprojects.com/api-institute/v1"+ + // "https://api.practicekea.com/api-institute/v1"+ checkRole() + "/Practices/" + practiceId + @@ -1786,7 +1786,7 @@ function loadSections(examId) { currentUser.language_name = "English"; } return fetch( - // "https://api.odiprojects.com/api-institute/v1"+ + // "https://api.practicekea.com/api-institute/v1"+ checkRole() + "/Exams/" + examId, requestOptions @@ -1820,7 +1820,7 @@ function loadSectionsForPractice(practiceId) { currentUser.language_name = "English"; } return fetch( - // "https://api.odiprojects.com/api-institute/v1"+ + // "https://api.practicekea.com/api-institute/v1"+ checkRole() + "/Practices/" + practiceId, requestOptions @@ -1899,7 +1899,7 @@ function loadComplexity() { //body: JSON.stringify({ emailId:"sa@odiware.com", userPassword:"aaaa" }) }; return fetch( - "https://api.odiprojects.com/api-admin/v1/QuestionTypes", + "https://api.practicekea.com/api-admin/v1/QuestionTypes", requestOptions ) .then((response) => { @@ -1964,7 +1964,7 @@ function deletePractice(practiceId) { //body: JSON.stringify({ emailId:"sa@odiware.com", userPassword:"aaaa" }) }; return fetch( - // "https://api.odiprojects.com/api-institute/v1"+ + // "https://api.practicekea.com/api-institute/v1"+ checkRole() + "/Practices/" + practiceId, requestOptions @@ -2000,7 +2000,7 @@ function deleteExam(examId) { //body: JSON.stringify({ emailId:"sa@odiware.com", userPassword:"aaaa" }) }; return fetch( - // "https://api.odiprojects.com/api-institute/v1"+ + // "https://api.practicekea.com/api-institute/v1"+ checkRole() + "/Exams/" + examId, requestOptions @@ -2189,7 +2189,7 @@ function attachSectionToExam(examId, sections) { //body: JSON.stringify({ emailId:"sa@odiware.com", userPassword:"aaaa" }) }; return fetch( - // "https://api.odiprojects.com/api-institute/v1"+ + // "https://api.practicekea.com/api-institute/v1"+ checkRole() + "/Exams/" + examId + "/Sections", requestOptions @@ -2223,7 +2223,7 @@ function getExamDetails(examId) { currentUser.language_name = "English"; } return fetch( - // "https://api.odiprojects.com/api-institute/v1" + + // "https://api.practicekea.com/api-institute/v1" + checkRole() + "/Exams/" + examId, requestOptions @@ -2256,7 +2256,7 @@ function getPracticeDetails(practiceId) { currentUser.language_name = "English"; } return fetch( - // "https://api.odiprojects.com/api-institute/v1"+ + // "https://api.practicekea.com/api-institute/v1"+ checkRole() + "/Practices/" + practiceId, requestOptions @@ -2292,7 +2292,7 @@ function arrangeSectionsFromExam(examId, sections) { //body: JSON.stringify({ emailId:"sa@odiware.com", userPassword:"aaaa" }) }; return fetch( - // "https://api.odiprojects.com/api-institute/v"+ + // "https://api.practicekea.com/api-institute/v"+ checkRole() + "/Exams/" + examId + "/ArrangeSections", requestOptions @@ -2328,7 +2328,7 @@ function attachQuestionsToExam(examId, questions) { //body: JSON.stringify({ emailId:"sa@odiware.com", userPassword:"aaaa" }) }; return fetch( - // "https://api.odiprojects.com/api-institute/v"+ + // "https://api.practicekea.com/api-institute/v"+ checkRole() + "/ExamSections/" + examId + @@ -2365,7 +2365,7 @@ function attachQuestionsToPractice(practiceId, questions) { //body: JSON.stringify({ emailId:"sa@odiware.com", userPassword:"aaaa" }) }; return fetch( - // "https://api.odiprojects.com/api-institute/v1"+ + // "https://api.practicekea.com/api-institute/v1"+ checkRole() + "/Practices/" + practiceId + "/AttachQuestions", @@ -2407,7 +2407,7 @@ function createExam(exam) { currentUser.language_name = "English"; } return fetch( - // "https://api.odiprojects.com/api-institute/v1/" + + // "https://api.practicekea.com/api-institute/v1/" + checkRole() + "/" + currentUser.language_code + "/Classes/" + @@ -2453,7 +2453,7 @@ function createPractise(obj) { currentUser.language_name = "English"; } return fetch( - // "https://api.odiprojects.com/api-institute/v1" + + // "https://api.practicekea.com/api-institute/v1" + checkRole() + "/" + currentUser.language_code + "/Classes/" + currentClass + @@ -2498,7 +2498,7 @@ function updateExam(exam) { currentUser.language_name = "English"; } return fetch( - // "https://api.odiprojects.com/api-institute/v1" + + // "https://api.practicekea.com/api-institute/v1" + checkRole() + // currentUser.language_code + "/Exams/" + @@ -2584,7 +2584,7 @@ function getQuestionTypes(questionType) { //body: JSON.stringify({ emailId:"sa@odiware.com", userPassword:"aaaa" }) }; return fetch( - "https://api.odiprojects.com/api-admin/v1/QuestionTypes/" + questionType, + "https://api.practicekea.com/api-admin/v1/QuestionTypes/" + questionType, requestOptions ) .then((response) => { @@ -2614,7 +2614,7 @@ function loadLanguages() { //body: JSON.stringify({ emailId:"sa@odiware.com", userPassword:"aaaa" }) }; return fetch( - // "https://api.odiprojects.com/api-admin/v1/Languages", + // "https://api.practicekea.com/api-admin/v1/Languages", LOAD_LANGAUGES, requestOptions ) @@ -2645,7 +2645,7 @@ async function loadClasses() { //body: JSON.stringify({ emailId:"sa@odiware.com", userPassword:"aaaa" }) }; // const response = await fetch(`${checkRole()}/Classes`, requestOptions); - const response = await fetch("https://api.odiprojects.com/api-student/v1/UserGroups/list", requestOptions) + const response = await fetch("https://api.practicekea.com/api-student/v1/UserGroups/list", requestOptions) const data = await response.json(); return data; } @@ -2666,7 +2666,7 @@ function loadSubCategory(category) { currentUser.language_name = "English"; } return fetch( - // "https://api.odiprojects.com/api-institute/v1"+ + // "https://api.practicekea.com/api-institute/v1"+ checkRole() + "/" + currentUser.language_code + "/Categories/" + @@ -2752,7 +2752,7 @@ function loadQuestions(jsonObj) { "/Questions" + queryStr, requestOptions - //return fetch("https://api.odiprojects.com/api-institute/v1/en/Classes/1/Questions?module=subject&module_id=1", requestOptions + //return fetch("https://api.practicekea.com/api-institute/v1/en/Classes/1/Questions?module=subject&module_id=1", requestOptions ) .then((response) => { if (!currentClass) { @@ -2803,14 +2803,14 @@ function draftExam(jsonObj) { currentUser.language_name = "English"; } return fetch( - // "https://api.odiprojects.com/api-institute/v1" + + // "https://api.practicekea.com/api-institute/v1" + checkRole() + "/Classes/" + currentClass + "/DraftExams" + queryStr, requestOptions - //return fetch("https://api.odiprojects.com/api-institute/v1/en/Classes/1/Questions?module=subject&module_id=1", requestOptions + //return fetch("https://api.practicekea.com/api-institute/v1/en/Classes/1/Questions?module=subject&module_id=1", requestOptions ) .then((response) => { if (!currentClass) { @@ -2860,12 +2860,12 @@ function draftPractice(jsonObj) { currentUser.language_name = "English"; } return fetch( - // "https://api.odiprojects.com/api-institute/v1"+ + // "https://api.practicekea.com/api-institute/v1"+ checkRole() + "/Classes/" + currentClass + "/DraftSubjectPractices" + queryStr, requestOptions - //return fetch("https://api.odiprojects.com/api-institute/v1/en/Classes/1/Questions?module=subject&module_id=1", requestOptions + //return fetch("https://api.practicekea.com/api-institute/v1/en/Classes/1/Questions?module=subject&module_id=1", requestOptions ) .then((response) => { if (response.ok) { @@ -2914,12 +2914,12 @@ function livePractice(jsonObj) { currentUser.language_name = "English"; } return fetch( - // "https://api.odiprojects.com/api-institute/v1"+ + // "https://api.practicekea.com/api-institute/v1"+ checkRole() + "/Classes/" + currentClass + "/LiveSubjectPractices" + queryStr, requestOptions - //return fetch("https://api.odiprojects.com/api-institute/v1/en/Classes/1/Questions?module=subject&module_id=1", requestOptions + //return fetch("https://api.practicekea.com/api-institute/v1/en/Classes/1/Questions?module=subject&module_id=1", requestOptions ) .then((response) => { if (response.ok) { @@ -2966,12 +2966,12 @@ function upcomingPractice(jsonObj) { currentUser.language_name = "English"; } return fetch( - // "https://api.odiprojects.com/api-institute/v1"+ + // "https://api.practicekea.com/api-institute/v1"+ checkRole() + "/Classes/" + currentClass + "/UpcomingSubjectPractices" + queryStr, requestOptions - //return fetch("https://api.odiprojects.com/api-institute/v1/en/Classes/1/Questions?module=subject&module_id=1", requestOptions + //return fetch("https://api.practicekea.com/api-institute/v1/en/Classes/1/Questions?module=subject&module_id=1", requestOptions ) .then((response) => { if (response.ok) { @@ -3018,12 +3018,12 @@ function draftPracticeCategory(jsonObj) { currentUser.language_name = "English"; } return fetch( - // "https://api.odiprojects.com/api-institute/v1" + + // "https://api.practicekea.com/api-institute/v1" + checkRole() + "/Classes/" + currentClass + "/DraftCategoryPractices" + queryStr, requestOptions - //return fetch("https://api.odiprojects.com/api-institute/v1/en/Classes/1/Questions?module=subject&module_id=1", requestOptions + //return fetch("https://api.practicekea.com/api-institute/v1/en/Classes/1/Questions?module=subject&module_id=1", requestOptions ) .then((response) => { if (response.ok) { @@ -3070,12 +3070,12 @@ function livePracticeCategory(jsonObj) { currentUser.language_name = "English"; } return fetch( - // "https://api.odiprojects.com/api-institute/v1"+ + // "https://api.practicekea.com/api-institute/v1"+ checkRole() + "/Classes/" + currentClass + "/LiveCategoryPractices" + queryStr, requestOptions - //return fetch("https://api.odiprojects.com/api-institute/v1/en/Classes/1/Questions?module=subject&module_id=1", requestOptions + //return fetch("https://api.practicekea.com/api-institute/v1/en/Classes/1/Questions?module=subject&module_id=1", requestOptions ) .then((response) => { if (response.ok) { @@ -3122,12 +3122,12 @@ function upcomingPracticeCategory(jsonObj) { currentUser.language_name = "English"; } return fetch( - // "https://api.odiprojects.com/api-institute/v1"+ + // "https://api.practicekea.com/api-institute/v1"+ checkRole() + "/Classes/" + currentClass + "/UpcomingCategoryPractices" + queryStr, requestOptions - //return fetch("https://api.odiprojects.com/api-institute/v1/en/Classes/1/Questions?module=subject&module_id=1", requestOptions + //return fetch("https://api.practicekea.com/api-institute/v1/en/Classes/1/Questions?module=subject&module_id=1", requestOptions ) .then((response) => { if (response.ok) { @@ -3174,14 +3174,14 @@ function liveExam(jsonObj) { currentUser.language_name = "English"; } return fetch( - // "https://api.odiprojects.com/api-institute/v1" + + // "https://api.practicekea.com/api-institute/v1" + checkRole() + "/Classes/" + currentClass + "/LiveExams" + queryStr, requestOptions - //return fetch("https://api.odiprojects.com/api-institute/v1/en/Classes/1/Questions?module=subject&module_id=1", requestOptions + //return fetch("https://api.practicekea.com/api-institute/v1/en/Classes/1/Questions?module=subject&module_id=1", requestOptions ) .then((response) => { if (!currentClass) { @@ -3230,13 +3230,13 @@ function livePracticeExams(module) { currentUser.language_name = "English"; } return fetch( - "https://api.odiprojects.com/api-institute/v1/" + + "https://api.practicekea.com/api-institute/v1/" + "Classes/" + currentClass + "/LivePractices" + queryStr, requestOptions - //return fetch("https://api.odiprojects.com/api-institute/v1/en/Classes/1/Questions?module=subject&module_id=1", requestOptions + //return fetch("https://api.practicekea.com/api-institute/v1/en/Classes/1/Questions?module=subject&module_id=1", requestOptions ) .then((response) => { if (response.ok) { @@ -3284,14 +3284,14 @@ function upcomingExam(jsonObj) { currentUser.language_name = "English"; } return fetch( - // "https://api.odiprojects.com/api-institute/v1" + + // "https://api.practicekea.com/api-institute/v1" + checkRole() + "/Classes/" + currentClass + "/UpcomingExams" + queryStr, requestOptions - //return fetch("https://api.odiprojects.com/api-institute/v1/en/Classes/1/Questions?module=subject&module_id=1", requestOptions + //return fetch("https://api.practicekea.com/api-institute/v1/en/Classes/1/Questions?module=subject&module_id=1", requestOptions ) .then((response) => { if (!currentClass) throw ("No class has been set, please reload the page or try setting the class."); @@ -3340,14 +3340,14 @@ function expiredExam(jsonObj) { } return fetch( - // "https://api.odiprojects.com/api-institute/v1" + + // "https://api.practicekea.com/api-institute/v1" + checkRole() + "/Classes/" + currentClass + "/HistoryExams" + queryStr, requestOptions - //return fetch("https://api.odiprojects.com/api-institute/v1/en/Classes/1/Questions?module=subject&module_id=1", requestOptions + //return fetch("https://api.practicekea.com/api-institute/v1/en/Classes/1/Questions?module=subject&module_id=1", requestOptions ) .then((response) => { if (!currentClass) { @@ -3427,7 +3427,7 @@ function loadQuestionsBookmark(jsonObj) { checkRole() + "/" + currentUser.language_code + "/Classes/" + currentClass + "/BookmarkedQuestions" + queryStr, requestOptions - //return fetch("https://api.odiprojects.com/api-institute/v1/en/Classes/1/Questions?module=subject&module_id=1", requestOptions + //return fetch("https://api.practicekea.com/api-institute/v1/en/Classes/1/Questions?module=subject&module_id=1", requestOptions ) .then((response) => { if (!currentClass) { @@ -3551,7 +3551,7 @@ function myQuestion(jsonObj) { } } return fetch( - "https://api.odiprojects.com/api-institute/v1/en/Classes/" + + "https://api.practicekea.com/api-institute/v1/en/Classes/" + currentClass + "/Questions?" + queryStr, @@ -3677,7 +3677,7 @@ function savedDraftQuestion(id, content) { currentUser.language_name = "English"; } return fetch( - "https://api.odiprojects.com/api-institute/v1/" + + "https://api.practicekea.com/api-institute/v1/" + currentUser.language_code + "/Questions/" + id, @@ -3718,7 +3718,7 @@ function submitcreateQuestion(id, content) { currentUser.language_name = "English"; } return fetch( - "https://api.odiprojects.com/api-institute/v1/" + + "https://api.practicekea.com/api-institute/v1/" + currentUser.language_code + "/Questions/" + id, diff --git a/webpack.config.js b/webpack.config.js index d75c326..1f66f7f 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -32,7 +32,7 @@ module.exports = { config: JSON.stringify({ // apiUrl: 'http://localhost:4000' //apiUrl: 'http://localhost:8010/proxy' - apiUrl: 'https://api.odiprojects.com' + apiUrl: 'https://api.practicekea.com' }) } } \ No newline at end of file