diff --git a/package-lock.json b/package-lock.json index 3c88fc2..562b2ea 100644 --- a/package-lock.json +++ b/package-lock.json @@ -18294,9 +18294,9 @@ } }, "node_modules/webpack-dev-server/node_modules/ws": { - "version": "8.16.0", - "resolved": "https://registry.npmjs.org/ws/-/ws-8.16.0.tgz", - "integrity": "sha512-HS0c//TP7Ina87TfiPUz1rQzMhHrl/SG2guqRcTOIUYD2q8uhUdNHZYJUaQ8aTGPzCh+c6oawMKW35nFl1dxyQ==", + "version": "8.18.0", + "resolved": "https://registry.npmjs.org/ws/-/ws-8.18.0.tgz", + "integrity": "sha512-8VbfWfHLbbwu3+N6OKsOMpBdT4kXPDDB9cJk2bJ6mh9ucxdlnNvH1e+roYkKmN9Nxw2yjz7VzeO9oOz2zJ04Pw==", "dev": true, "engines": { "node": ">=10.0.0" @@ -18560,9 +18560,9 @@ } }, "node_modules/ws": { - "version": "7.5.9", - "resolved": "https://registry.npmjs.org/ws/-/ws-7.5.9.tgz", - "integrity": "sha512-F+P9Jil7UiSKSkppIiD94dN07AwvFixvLIj1Og1Rl9GGMuNipJnV9JzjD6XuqmAeiswGvUmNLjr5cFuXwNS77Q==", + "version": "7.5.10", + "resolved": "https://registry.npmjs.org/ws/-/ws-7.5.10.tgz", + "integrity": "sha512-+dbF1tHwZpXcbOJdVOkzLDxZP1ailvSxM6ZweXTegylPny803bFhA+vqBYw4s31NSAk4S2Qz+AKXK9a4wkdjcQ==", "dev": true, "engines": { "node": ">=8.3.0" diff --git a/src/App.vue b/src/App.vue index 0407b60..c123890 100644 --- a/src/App.vue +++ b/src/App.vue @@ -474,7 +474,7 @@ export default { // default to false this.visibility[index] = false; } - console.log('making request', request, 'cache', this.cache); + // console.log('making request', request, 'cache', this.cache); const resp = await axios(request); // this.visibility[index] = resp.data; this.cache[cacheKey] = resp.data.qualified; diff --git a/src/components/Section/Section.vue b/src/components/Section/Section.vue index 0958b3c..a76c36f 100644 --- a/src/components/Section/Section.vue +++ b/src/components/Section/Section.vue @@ -243,7 +243,7 @@ export default { const responseUuid = uuidv4(); // eslint-disable-next-line no-unused-vars const responseActivity = { - '@context': 'https://raw.githubusercontent.com/ReproNim/reproschema/1.0.0-rc2/contexts/generic', + '@context': 'https://raw.githubusercontent.com/ReproNim/reproschema/1.0.0/contexts/reproschema', '@type': 'reproschema:ResponseActivity', '@id': `uuid:${respActivityUuid}`, used: [`${itemUrl}`, @@ -260,7 +260,7 @@ export default { generated: `uuid:${responseUuid}`, }; const respData = { - '@context': 'https://raw.githubusercontent.com/ReproNim/reproschema/1.0.0-rc2/contexts/generic', + '@context': 'https://raw.githubusercontent.com/ReproNim/reproschema/1.0.0/contexts/reproschema', '@type': 'reproschema:Response', '@id': `uuid:${responseUuid}`, wasAttributedTo: { diff --git a/src/components/Survey/Survey.vue b/src/components/Survey/Survey.vue index 4b66e2f..9319a97 100644 --- a/src/components/Survey/Survey.vue +++ b/src/components/Survey/Survey.vue @@ -247,11 +247,12 @@ }, setResponse(val, index, mp_progress=100) { const itemUrl = this.context[index]['@id']; + //console.log(val, index, mp_progress, itemUrl); let exportVal = val; let usedList = []; let isAboutUrl = itemUrl; // eslint-disable-next-line no-prototype-builtins - if (_.isObject(val) && !val.hasOwnProperty('unitCode')) { // to find sub-activities; condition might need to be changed + if (_.isObject(val) && !val.hasOwnProperty('unitCode') && !(val instanceof Blob)) { // to find sub-activities; condition might need to be changed const sectionItemKey = Object.keys(val)[0]; const sectionItemValue = Object.values(val)[0]; exportVal = sectionItemValue; @@ -269,7 +270,7 @@ const respActivityUuid = uuidv4(); const responseUuid = uuidv4(); const responseActivity = { - '@context': 'https://raw.githubusercontent.com/ReproNim/reproschema/1.0.0-rc2/contexts/generic', + '@context': 'https://raw.githubusercontent.com/ReproNim/reproschema/1.0.0/contexts/reproschema', '@type': 'reproschema:ResponseActivity', '@id': `uuid:${respActivityUuid}`, used: usedList, @@ -284,7 +285,7 @@ generated: `uuid:${responseUuid}`, }; const respData = { - '@context': 'https://raw.githubusercontent.com/ReproNim/reproschema/1.0.0-rc2/contexts/generic', + '@context': 'https://raw.githubusercontent.com/ReproNim/reproschema/1.0.0/contexts/reproschema', '@type': 'reproschema:Response', '@id': `uuid:${responseUuid}`, wasAttributedTo: { @@ -462,7 +463,7 @@ }, formatData(data) { const currentIndex = parseInt(this.$store.state.activityIndex); - console.log(464, 'data response: ', data.response[currentIndex]); + // console.log(464, 'data response: ', data.response[currentIndex]); const TOKEN = this.$store.getters.getAuthToken; const expiryMinutes = this.$store.state.expiryMinutes; const jszip = new JSZip();