From a822acfe31f66832eca1f787bcb4d126a66b7309 Mon Sep 17 00:00:00 2001 From: Tyrel Souza Date: Fri, 6 Oct 2023 23:32:36 -0400 Subject: [PATCH] emit changes --- benchtop-fe/package-lock.json | 8 +- benchtop-fe/package.json | 3 +- benchtop-fe/public/funky-lines.webp | Bin 0 -> 7180 bytes .../NewCalibrationDeviceForm.vue | 122 +++++++++---- benchtop-fe/src/components/CustomerForm.vue | 21 ++- .../src/components/EnvironmentForm.vue | 31 ++-- .../Instrument/NewInstrumentForm.vue | 166 ++++++++++++------ benchtop-fe/src/components/Sheet.vue | 54 +++++- benchtop-fe/src/components/UploadForm.vue | 9 +- benchtop-fe/src/components/_UploadForm.vue | 111 ------------ benchtop-fe/src/style.css | 12 +- 11 files changed, 293 insertions(+), 244 deletions(-) create mode 100644 benchtop-fe/public/funky-lines.webp delete mode 100644 benchtop-fe/src/components/_UploadForm.vue diff --git a/benchtop-fe/package-lock.json b/benchtop-fe/package-lock.json index 1434980..bbbb888 100644 --- a/benchtop-fe/package-lock.json +++ b/benchtop-fe/package-lock.json @@ -12,8 +12,7 @@ "@vuepic/vue-datepicker": "^7.0.0", "vls": "^0.8.5", "volar-service-vetur": "^0.0.13", - "vue": "^3.3.4", - "vue-upload-component": "^3.1.8" + "vue": "^3.3.4" }, "devDependencies": { "@vitejs/plugin-vue": "^4.2.3", @@ -2513,11 +2512,6 @@ "eslint": ">=6.0.0" } }, - "node_modules/vue-upload-component": { - "version": "3.1.8", - "resolved": "https://registry.npmjs.org/vue-upload-component/-/vue-upload-component-3.1.8.tgz", - "integrity": "sha512-8LHCrgmEZPg+1hbkKjQgMce2uasmGLEnIsLE8YG+vNyfNDuaQA71T+5t6kdDSG/szeh+E8mjb26uEd9WkVSFtg==" - }, "node_modules/which": { "version": "2.0.2", "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz", diff --git a/benchtop-fe/package.json b/benchtop-fe/package.json index 4d6ecb1..9cc46a5 100644 --- a/benchtop-fe/package.json +++ b/benchtop-fe/package.json @@ -13,8 +13,7 @@ "@vuepic/vue-datepicker": "^7.0.0", "vls": "^0.8.5", "volar-service-vetur": "^0.0.13", - "vue": "^3.3.4", - "vue-upload-component": "^3.1.8" + "vue": "^3.3.4" }, "devDependencies": { "@vitejs/plugin-vue": "^4.2.3", diff --git a/benchtop-fe/public/funky-lines.webp b/benchtop-fe/public/funky-lines.webp new file mode 100644 index 0000000000000000000000000000000000000000..9385220d0d7196797a9abfccdd6f25a6d7c26555 GIT binary patch literal 7180 zcmXw8c|26__qQ*Ttt{DhMTp1}q4*$6+1H6dA<5YHF?NbFS+b?ZE~K%KeHk&bBs3Ib z8M2F+EOTx7POsnV_s2c2d+&4aInQ%m@8^Bq=Uz)A0|PoiDk?jDU2|J=byGlqib?^| z`-o$qsL)4X;M8cBz3+5PC*B}~YgDjLHtd`y&rvLfis??@Ma~P0FB2Jb9^xMn)CJb- z?#S^P%JCZ9aTEcFv~o;-a#TcWDk|tR5`St5#Z@_L^wfzS$3@PdIWGrNGs;c0VHjedgYIwCTs1EKAvy=UBe+ zXvk|xhYZOt*^KsDC%wAmpV%#?3|A{8XF~*yZrSGl*F1J8WY3HUNSHkzQooppNNy8Q zDn9oUH45P3TN7Ko6jrycB&L~xZ=+@!nWO?;9ZKoAXpas4dmh~|IA@dnAZ@*yAMH~j z(&GGLpZ}bU?0!F1F&2GxdPG_tUYk5RMMJvb(H*hbz9I_pYfi)Dh3JHAc9f2mEAb@i zDCcR}kCmga`Q%W`Z+~yoyYj*z!zMl3WgY2p!y+Ggu7J9aS48Nvk)Xtd?Nc)K0>B`u zFLUar8=G?sln{Hve8Qe3=Xi62bl?WAS@qANIlA1YSwDL}q6N}ujR?uzqT1C~XI8{k z-Hx`dT*QwHEjkF8^y!2d0+rflIMu9E7*MBWKv+9|h=_cNQ8?e;ir`9Q9sY9&4Aec> z(Ypm&5HuiEh-eK8r1i~HL9B7jqXXKjRlKr>1TbFa^p~N?FV$Nlr_mE_Af@K15Ij+Y z(I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U1rzxI3Hn{2Gc29-zA6_P{(fi@$Mw<3!qwzb8(SaaHwL>%*kA zO&L-4DrNM{r+SdFX5_VMXzYjAUFM5^Un)`@-mdUCkH<`RS^=a|A4Z0zeU{$wyD42B z`a@(77iP(BtHlQ;!9yl$+%XWBg)p1m&5*HILVskTUGHMupA#C~sBPAleyZ!}Q~HPt zi}BUOVp-)zQCb{L&r&QyTM6s373AX2_%!FQQ8sJAq=6S~v}(vCHE_fJ>{U`S>f8Za#PfFgpi5oO z2Pye3ZQQbh=Q4JsE6$I7+Op>Hdc&%#M(16%yFk&v5o>#Pa8LeL@99jRY>XoV3N^(d z?|aTtjrhM`AQqHw;Ud`G$cILTWc5ykUE$<&@;O;+hy6GTA$#7rDXivR68Z4wkO8?x z{)+)w{US)`<8%ljlPd@zVaDHv_4!dhPFWenT$dA=TgEqxYkl?BXv4k<3PQ{pQ+)pa zOMgQVC-Ic~=f6V`vKg;-{K56d3tBt7)sY1rC6NW$&w>z>4HVO!LNQ?Ri*w6u@)U=d ze-7Cw=F@sqI9dJUL?}YQn%wfIdv3?S>gT#JT8d(>>JpN1=R5w<=45rsI$9deoq`dv z8Y3IL%R!dO=XW#pe z+yXVBtiX)oQATKPc_@l<;h?iCTtNw0@$Z@aYZUY8-_*h4ln1h-N87Qi=g9L&{Q5jV zZW;gOxSw22+V$@{rko(XNf5t1MD_SW^$-hPead%#npVJC*~B$R>ODKWOM`(tSPXVq ffT@RN&uP>G5#Ac=_Y~^8M#7}v>TmwW^sD_3NFR-; literal 0 HcmV?d00001 diff --git a/benchtop-fe/src/components/CalibrationDevice/NewCalibrationDeviceForm.vue b/benchtop-fe/src/components/CalibrationDevice/NewCalibrationDeviceForm.vue index abae57e..f204175 100644 --- a/benchtop-fe/src/components/CalibrationDevice/NewCalibrationDeviceForm.vue +++ b/benchtop-fe/src/components/CalibrationDevice/NewCalibrationDeviceForm.vue @@ -3,49 +3,93 @@
- - - - - - - - - - - - + + + + + + + + + + + + - - - - + + + +

Calibration Date

- -

Calibration Due Date

- -
Model - -
Serial # - -
+

Calibration Date

+ +
+

Calibration Due Date

+ +
Model + +
Serial # + +
Cert ID - -
Cert ID + +
\ No newline at end of file +import VueDatePicker from "@vuepic/vue-datepicker"; +import "@vuepic/vue-datepicker/dist/main.css"; + +const + model = ref(""), + serial = ref(""), + cert_id = ref(""), + due_date = ref(""), + date = ref("") + +const flow = ref(["year", "month", "calendar"]); + +const emit = defineEmits(); +watchEffect(() => { + emit("new-calibration-form", { + model, + serial, + cert_id, + due_date, + date, + }); +}); + diff --git a/benchtop-fe/src/components/CustomerForm.vue b/benchtop-fe/src/components/CustomerForm.vue index 125ee24..aee8b30 100644 --- a/benchtop-fe/src/components/CustomerForm.vue +++ b/benchtop-fe/src/components/CustomerForm.vue @@ -34,10 +34,21 @@ \ No newline at end of file diff --git a/benchtop-fe/src/components/EnvironmentForm.vue b/benchtop-fe/src/components/EnvironmentForm.vue index de7e39a..8d3de13 100644 --- a/benchtop-fe/src/components/EnvironmentForm.vue +++ b/benchtop-fe/src/components/EnvironmentForm.vue @@ -6,14 +6,14 @@ Accuracy - + - Barometric Pressure (mbar) + Barometric Pressure (psi) - + @@ -24,7 +24,7 @@ - Humidity + Humidity (%RH) @@ -35,10 +35,21 @@ \ No newline at end of file diff --git a/benchtop-fe/src/components/Instrument/NewInstrumentForm.vue b/benchtop-fe/src/components/Instrument/NewInstrumentForm.vue index 3f14a7a..4390cc9 100644 --- a/benchtop-fe/src/components/Instrument/NewInstrumentForm.vue +++ b/benchtop-fe/src/components/Instrument/NewInstrumentForm.vue @@ -3,65 +3,121 @@
- - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + +

Calibration Date

- -

Calibration Due Date

- -
Model - -
Serial Number - -
Channel - -
Transducer Model - -
Transducer Span - -
+

Calibration Date

+ +
+

Calibration Due Date

+ +
Model + +
Serial Number + +
Channel + +
Transducer Model + +
Transducer Span + +
\ No newline at end of file +const + channel = ref(""), + serial_number = ref(""), + model = ref(""), + transducer_model = ref(""), + transducer_span = ref(""), + due_date = ref(""), + date = ref(""), + flow = ["year", "month", "calendar"] + +const emit = defineEmits(); +watchEffect(() => { + emit("new-instrument-form", { + channel, + serial_number, + model, + transducer_model, + transducer_span, + due_date, + date, + }); +}); + diff --git a/benchtop-fe/src/components/Sheet.vue b/benchtop-fe/src/components/Sheet.vue index 286ddb8..a48d686 100644 --- a/benchtop-fe/src/components/Sheet.vue +++ b/benchtop-fe/src/components/Sheet.vue @@ -7,19 +7,18 @@
- +
- +
- +
- +
-
@@ -32,12 +31,51 @@ import NewCalibrationDeviceForm from "./CalibrationDevice/NewCalibrationDeviceFo import EnvironmentForm from "./EnvironmentForm.vue"; import UploadForm from "./UploadForm.vue"; -const upload_form_data = ref(); +const + upload_form_data = ref(), + calibration_form_data = ref(), + customer_form_data = ref(), + environment_form_data = ref(), + new_instrument_form_data = ref(), + instrument_form_data = ref(), + new_calibration_form_data = ref() + const uploadForm = (form) => { upload_form_data.value = form; -} +}; +const customerForm = (form) => { + customer_form_data.value = form; +}; -const emits = defineEmits(["uploadForm"]); +const environmentForm = (form) => { + environment_form_data.value = form; +}; + +const newInstrumentForm = (form) => { + new_instrument_form_data.value = form; +}; + +const instrumentForm = (form) => { + instrument_form_data.value = form; +}; + +const newCalibrationForm = (form) => { + new_calibration_form_data.value = form; +}; + +const calibrationForm = (form) => { + calibration_form_data.value = form; +}; + +const emits = defineEmits([ + "uploadForm", + "customerForm", + "environmentForm", + "instrumentForm", + "newInstrumentForm", + "calibrationForm", + "newCalibrationForm", +]); diff --git a/benchtop-fe/src/components/UploadForm.vue b/benchtop-fe/src/components/UploadForm.vue index d5acf60..3172ea2 100644 --- a/benchtop-fe/src/components/UploadForm.vue +++ b/benchtop-fe/src/components/UploadForm.vue @@ -81,10 +81,11 @@ \ No newline at end of file diff --git a/benchtop-fe/src/style.css b/benchtop-fe/src/style.css index cbec394..4539eb0 100644 --- a/benchtop-fe/src/style.css +++ b/benchtop-fe/src/style.css @@ -1,5 +1,6 @@ body { margin: 1rem; + background: url("/public/funky-lines.webp") } .card { @@ -7,6 +8,9 @@ body { } .card-header{ font-size: 2rem; + color:black; + font-weight: bold; + } .container { @@ -15,7 +19,7 @@ body { align-content: space-between; /* Your container needs a fixed height, and it * needs to be taller than your tallest column. */ - height: 1300px; + height: 1200px; border-radius: 3px; counter-reset: items; @@ -34,7 +38,7 @@ body { 0 8px 8px rgba(0,90,250,0.05), 0 16px 16px rgba(0,90,250,0.05); color: #fff; - padding: 15px; + /* padding: 15px; */ box-sizing: border-box; } .item::before { @@ -53,4 +57,6 @@ body { width: 0; order: 2; } -h3 { text-align: center; } \ No newline at end of file +h3 { + text-align: center; +} \ No newline at end of file