From 684716e797d52545ffed7f18456dd650ec076778 Mon Sep 17 00:00:00 2001 From: Anthony Galassi <28850131+bendhouseart@users.noreply.github.com> Date: Mon, 11 Aug 2025 15:13:09 -0400 Subject: [PATCH 1/3] added envrionment variable to simplify switching schemas in UI --- package.json | 7 ++++--- src/config.js | 4 +++- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/package.json b/package.json index 4cb4e82..5539fc5 100644 --- a/package.json +++ b/package.json @@ -11,10 +11,12 @@ "i18n:report": "vue-cli-service i18n:report --src './src/**/*.?(js|vue)' --locales './src/locales/**/*.json'" }, "dependencies": { + "@adapttive/vue-markdown": "^4.0.2", "axios": "^1.7.4", "bootstrap-vue": "^2.23.1", "bowser": "^2.11.0", "core-js": "^3.36.1", + "dotenv": "^17.2.1", "file-saver": "^2.0.5", "jsonld": "^8.3.2", "jszip": "^3.10.1", @@ -23,7 +25,6 @@ "msr": "^1.3.4", "vue": "^2.7.16", "vue-i18n": "^8.28.2", - "@adapttive/vue-markdown": "^4.0.2", "vue-multiselect": "^2.1.9", "vue-router": "^3.6.5", "vue-slider-component": "^3.2.24", @@ -33,6 +34,7 @@ "vuex": "^3.6.2" }, "devDependencies": { + "@babel/eslint-parser": "^7.24.1", "@intlify/vue-i18n-loader": "^3.3.0", "@vue/cli-plugin-babel": "^5.0.8", "@vue/cli-plugin-e2e-cypress": "^5.0.8", @@ -42,9 +44,8 @@ "@vue/cli-plugin-vuex": "~5.0.8", "@vue/cli-service": "^5.0.8", "@vue/test-utils": "^1.0.3", - "@babel/eslint-parser": "^7.24.1", - "eslint": "^7.32.0", "cypress": "^13.7.2", + "eslint": "^7.32.0", "eslint-plugin-vue": "^7.20.0", "vue-cli-plugin-i18n": "^2.3.2", "vue-template-compiler": "^2.7.16" diff --git a/src/config.js b/src/config.js index 0c457e6..1fd48a3 100644 --- a/src/config.js +++ b/src/config.js @@ -1,5 +1,5 @@ module.exports = { - githubSrc: 'https://raw.githubusercontent.com/ReproNim/demo-protocol/main/DemoProtocol/DemoProtocol_schema', + githubSrc: process.env.VUE_APP_REPROSCHEMA_GITHUB_SRC || 'https://raw.githubusercontent.com/ReproNim/demo-protocol/main/DemoProtocol/DemoProtocol_schema', startButton: { "en": 'Join', "es": 'Participar' @@ -11,3 +11,5 @@ module.exports = { contact: 'voice_survey@mit.edu', emailSubject: 'Help with Covid19 study' }; + +console.log(`Loading schema from REPROSCHEMA_GITHUB_SRC: ${process.env.VUE_APP_REPROSCHEMA_GITHUB_SRC}`); \ No newline at end of file From 6787b7d9c818f9533c593acbb604db3afd62279e Mon Sep 17 00:00:00 2001 From: Anthony Galassi <28850131+bendhouseart@users.noreply.github.com> Date: Mon, 11 Aug 2025 15:16:35 -0400 Subject: [PATCH 2/3] Update src/config.js --- src/config.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/config.js b/src/config.js index 1fd48a3..9f1462b 100644 --- a/src/config.js +++ b/src/config.js @@ -12,4 +12,4 @@ module.exports = { emailSubject: 'Help with Covid19 study' }; -console.log(`Loading schema from REPROSCHEMA_GITHUB_SRC: ${process.env.VUE_APP_REPROSCHEMA_GITHUB_SRC}`); \ No newline at end of file +console.log(`Loading schema from VUE_APP_REPROSCHEMA_GITHUB_SRC: ${process.env.VUE_APP_REPROSCHEMA_GITHUB_SRC}`); \ No newline at end of file From 9b31f1ba3fb0265be53c8346c349d527ed57540e Mon Sep 17 00:00:00 2001 From: Anthony Galassi <28850131+bendhouseart@users.noreply.github.com> Date: Mon, 25 Aug 2025 14:57:27 -0400 Subject: [PATCH 3/3] Update src/config.js --- src/config.js | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/config.js b/src/config.js index 9f1462b..10cdd82 100644 --- a/src/config.js +++ b/src/config.js @@ -11,5 +11,3 @@ module.exports = { contact: 'voice_survey@mit.edu', emailSubject: 'Help with Covid19 study' }; - -console.log(`Loading schema from VUE_APP_REPROSCHEMA_GITHUB_SRC: ${process.env.VUE_APP_REPROSCHEMA_GITHUB_SRC}`); \ No newline at end of file