added in right hand nav and titles to store

This commit is contained in:
2021-07-14 12:17:45 +01:00
parent f5a0ec2021
commit eab46701e3
17 changed files with 1088 additions and 339 deletions
+4 -3
View File
@@ -3,6 +3,7 @@ import https from "https";
//import {XMLHttpRequest} from 'xmlhttprequest';
process.env["NODE_TLS_REJECT_UNAUTHORIZED"] = 0;
let BASE_URL = "http://localhost:3000";
const agent = new https.Agent({
rejectUnauthorized: false,
@@ -30,7 +31,7 @@ export const getBasicSearch = (searchString) => {
axios
//.get("https://devcrm2016.llcdt.gov.wales/DVPINS/api/data/v8.2/incidents?$select=_accountid_value,_customerid_value,pinswg_appealcasetype,statuscode,ticketnumber,title&$filter=contains(title, '" + searchString + "')&$count=true", crmHeaders)
//.get("https://jsonplaceholder.typicode.com/todos/1",{proxy:{protocol: 'http',host:'lon3.sme.zscloud.net',port: 80}})
.get("/api/searchresults2", {
.get(BASE_URL + "/api/searchresults2", {
httpsAgent: new https.Agent({ rejectUnauthorized: false }),
})
.then((res) => res.data)
@@ -53,7 +54,7 @@ export const getFormData = (whichForm) => {
//.get("api/appealforms/pinswg_harbourrevisionorder", {
//.get("api/appealforms/pinswg_planningappeals78", {
//.get(api/appealforms/pinswg_householderappealhas", {
.get("/api/appealforms/pinswg_" + whichForm, {
.get(BASE_URL + "/api/appealforms/pinswg_" + whichForm, {
httpsAgent: new https.Agent({ rejectUnauthorized: false }),
})
.then((res) => res.data)
@@ -67,7 +68,7 @@ export const getAppealsTypes = () => {
console.log("got to axios: appeal types");
return axios
.get("/api/lookups/pinswg_appealcasetype", {
.get(BASE_URL + "/api/lookups/pinswg_appealcasetype", {
httpsAgent: new https.Agent({ rejectUnauthorized: false }),
})
.then((res) => res.data)