From 49a66ad832727000ac1ed342b59924b43352fba6 Mon Sep 17 00:00:00 2001 From: Moises Sacal Date: Mon, 27 Nov 2023 13:00:02 +1100 Subject: [PATCH] changed so if stubble is burnt removed or retained you cannot have graze --- package-lock.json | 4 +- package.json | 2 +- public/sample-data-20-year.json | 2 +- src/components.d.ts | 1 + src/components/Input.vue | 81 ++++++++++++++----------------- src/components/RotationSelect.vue | 38 +++++++++++++++ 6 files changed, 79 insertions(+), 49 deletions(-) create mode 100644 src/components/RotationSelect.vue diff --git a/package-lock.json b/package-lock.json index 8c6510a..5d362b1 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "socrates-web", - "version": "0.0.23", + "version": "1.0.5", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "socrates-web", - "version": "0.0.23", + "version": "1.0.5", "dependencies": { "chart.js": "^4.3.0", "element-plus": "^2.3.5", diff --git a/package.json b/package.json index 1ff98ba..9c779ff 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "socrates-web", "private": true, - "version": "1.0.4", + "version": "1.0.5", "type": "module", "homepage": "https://soil-and-land.github.io/socrates-web/", "scripts": { diff --git a/public/sample-data-20-year.json b/public/sample-data-20-year.json index bd6c2e1..27caea3 100644 --- a/public/sample-data-20-year.json +++ b/public/sample-data-20-year.json @@ -45,7 +45,7 @@ "year": 2, "plant": 0, "stubble": 0, - "graze": 0, + "graze": null, "fertiliser": 200 }, { diff --git a/src/components.d.ts b/src/components.d.ts index 9024004..576a5df 100644 --- a/src/components.d.ts +++ b/src/components.d.ts @@ -38,6 +38,7 @@ declare module '@vue/runtime-core' { ParameterTable: typeof import('./components/ParameterTable.vue')['default'] PieChart: typeof import('./components/PieChart.vue')['default'] ResultsTable: typeof import('./components/ResultsTable.vue')['default'] + RotationSelect: typeof import('./components/RotationSelect.vue')['default'] RouterLink: typeof import('vue-router')['RouterLink'] RouterView: typeof import('vue-router')['RouterView'] YearlyTable: typeof import('./components/YearlyTable.vue')['default'] diff --git a/src/components/Input.vue b/src/components/Input.vue index 6f41302..3b706a5 100644 --- a/src/components/Input.vue +++ b/src/components/Input.vue @@ -41,6 +41,7 @@ const grazes = [ {'id': 1, 'name': 'Heavy'}, ]; const stubbles = [ + {'id': 'null', 'name': 'None'}, {'id': 0, 'name': 'Burnt or Removed'}, {'id': 1, 'name': 'Retained'} ]; @@ -458,37 +459,39 @@ function isIterable(obj) {

Climate

- +
Method of entering data
- - - - - - - - - - - - - {{ store.toggleMonthlyClimate ? 'Hide Monthly Rain/Temperature' : 'Show Monthly Rain/Temperature' }} - - - {{ store.toggleYearlyClimate ? 'Hide Yearly Rain' : 'Show Yearly Rain' }} - + + + + + + + + + + + + + {{ + store.toggleMonthlyClimate ? 'Hide Monthly Rain/Temperature' : 'Show Monthly Rain/Temperature' + }} + + + {{ store.toggleYearlyClimate ? 'Hide Yearly Rain' : 'Show Yearly Rain' }} +
@@ -589,26 +592,14 @@ function isIterable(obj) {
-
- - - -
+
-
- - - -
+
@@ -634,7 +625,7 @@ function isIterable(obj) {

Yields

- +
Method of entering yield diff --git a/src/components/RotationSelect.vue b/src/components/RotationSelect.vue new file mode 100644 index 0000000..972d9e2 --- /dev/null +++ b/src/components/RotationSelect.vue @@ -0,0 +1,38 @@ + +