From 1a5df2647c1e43ed5a40a8ed8c6a7bcc824bb67e Mon Sep 17 00:00:00 2001 From: Moises Sacal Date: Mon, 6 Nov 2023 14:39:03 +1100 Subject: [PATCH] fixes: #1 --- package-lock.json | 76 ++++- package.json | 1 + src/App.vue | 1 + src/components.d.ts | 1 + src/components/Input.vue | 470 ++++++++++++------------------ src/components/ParameterTable.vue | 6 +- src/components/YieldsTable.vue | 2 +- src/main.ts | 4 + src/store.js | 100 +++++++ 9 files changed, 373 insertions(+), 288 deletions(-) create mode 100644 src/store.js diff --git a/package-lock.json b/package-lock.json index 1cf19dc..8c6510a 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,17 +1,18 @@ { "name": "socrates-web", - "version": "0.0.17", + "version": "0.0.23", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "socrates-web", - "version": "0.0.17", + "version": "0.0.23", "dependencies": { "chart.js": "^4.3.0", "element-plus": "^2.3.5", "json-2-csv": "^4.0.0", "lodash": "^4.17.21", + "pinia": "^2.1.7", "vue": "^3.2.47", "vue-chartjs": "^5.2.0", "vue-router": "^4.2.1" @@ -3147,6 +3148,56 @@ "node": ">=0.10.0" } }, + "node_modules/pinia": { + "version": "2.1.7", + "resolved": "https://registry.npmjs.org/pinia/-/pinia-2.1.7.tgz", + "integrity": "sha512-+C2AHFtcFqjPih0zpYuvof37SFxMQ7OEG2zV9jRI12i9BOy3YQVAHwdKtyyc8pDcDyIc33WCIsZaCFWU7WWxGQ==", + "dependencies": { + "@vue/devtools-api": "^6.5.0", + "vue-demi": ">=0.14.5" + }, + "funding": { + "url": "https://github.com/sponsors/posva" + }, + "peerDependencies": { + "@vue/composition-api": "^1.4.0", + "typescript": ">=4.4.4", + "vue": "^2.6.14 || ^3.3.0" + }, + "peerDependenciesMeta": { + "@vue/composition-api": { + "optional": true + }, + "typescript": { + "optional": true + } + } + }, + "node_modules/pinia/node_modules/vue-demi": { + "version": "0.14.6", + "resolved": "https://registry.npmjs.org/vue-demi/-/vue-demi-0.14.6.tgz", + "integrity": "sha512-8QA7wrYSHKaYgUxDA5ZC24w+eHm3sYCbp0EzcDwKqN3p6HqtTCGR/GVsPyZW92unff4UlcSh++lmqDWN3ZIq4w==", + "hasInstallScript": true, + "bin": { + "vue-demi-fix": "bin/vue-demi-fix.js", + "vue-demi-switch": "bin/vue-demi-switch.js" + }, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/antfu" + }, + "peerDependencies": { + "@vue/composition-api": "^1.0.0-rc.1", + "vue": "^3.0.0-0 || ^2.6.0" + }, + "peerDependenciesMeta": { + "@vue/composition-api": { + "optional": true + } + } + }, "node_modules/pirates": { "version": "4.0.5", "resolved": "https://registry.npmjs.org/pirates/-/pirates-4.0.5.tgz", @@ -3812,7 +3863,7 @@ "version": "5.0.4", "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.0.4.tgz", "integrity": "sha512-cW9T5W9xY37cc+jfEnaUvX91foxtHkza3Nw3wkoF4sSlKn0MONdkdEndig/qPBWXNkmplh3NzayQzCiHM4/hqw==", - "dev": true, + "devOptional": true, "bin": { "tsc": "bin/tsc", "tsserver": "bin/tsserver" @@ -6531,6 +6582,23 @@ "integrity": "sha512-udgsAY+fTnvv7kI7aaxbqwWNb0AHiB0qBO89PZKPkoTmGOgdbrHDKD+0B2X4uTfJ/FT1R09r9gTsjUjNJotuog==", "dev": true }, + "pinia": { + "version": "2.1.7", + "resolved": "https://registry.npmjs.org/pinia/-/pinia-2.1.7.tgz", + "integrity": "sha512-+C2AHFtcFqjPih0zpYuvof37SFxMQ7OEG2zV9jRI12i9BOy3YQVAHwdKtyyc8pDcDyIc33WCIsZaCFWU7WWxGQ==", + "requires": { + "@vue/devtools-api": "^6.5.0", + "vue-demi": ">=0.14.5" + }, + "dependencies": { + "vue-demi": { + "version": "0.14.6", + "resolved": "https://registry.npmjs.org/vue-demi/-/vue-demi-0.14.6.tgz", + "integrity": "sha512-8QA7wrYSHKaYgUxDA5ZC24w+eHm3sYCbp0EzcDwKqN3p6HqtTCGR/GVsPyZW92unff4UlcSh++lmqDWN3ZIq4w==", + "requires": {} + } + } + }, "pirates": { "version": "4.0.5", "resolved": "https://registry.npmjs.org/pirates/-/pirates-4.0.5.tgz", @@ -6952,7 +7020,7 @@ "version": "5.0.4", "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.0.4.tgz", "integrity": "sha512-cW9T5W9xY37cc+jfEnaUvX91foxtHkza3Nw3wkoF4sSlKn0MONdkdEndig/qPBWXNkmplh3NzayQzCiHM4/hqw==", - "dev": true + "devOptional": true }, "ufo": { "version": "1.1.2", diff --git a/package.json b/package.json index caa3768..79e2015 100644 --- a/package.json +++ b/package.json @@ -14,6 +14,7 @@ "element-plus": "^2.3.5", "json-2-csv": "^4.0.0", "lodash": "^4.17.21", + "pinia": "^2.1.7", "vue": "^3.2.47", "vue-chartjs": "^5.2.0", "vue-router": "^4.2.1" diff --git a/src/App.vue b/src/App.vue index e60fee8..f852931 100644 --- a/src/App.vue +++ b/src/App.vue @@ -1,5 +1,6 @@