From 96501e7828dbb0ae92448dbe850e9154b6e1e98d Mon Sep 17 00:00:00 2001 From: Sriman Achanta <68172138+srimanachanta@users.noreply.github.com> Date: Mon, 26 Jun 2023 01:52:29 -0400 Subject: [PATCH] Update CameraAndPipelineSelect.vue --- .../pipeline/CameraAndPipelineSelect.vue | 141 ------------------ 1 file changed, 141 deletions(-) diff --git a/photon-client/src/components/pipeline/CameraAndPipelineSelect.vue b/photon-client/src/components/pipeline/CameraAndPipelineSelect.vue index bc20c5218f..9a0306e0d9 100644 --- a/photon-client/src/components/pipeline/CameraAndPipelineSelect.vue +++ b/photon-client/src/components/pipeline/CameraAndPipelineSelect.vue @@ -106,26 +106,6 @@ /> - showPipeImportDialog = true"> - - - - - - - - - @@ -228,85 +208,6 @@ - - - Import Pipeline Settings - - Import a previously exported PhotonVision pipeline to this device. - - - - Select File - - - - - mdi-close - - - mdi-check-bold - - - - - - - - - - - Import Pipeline - - - No, take me back - - - - - - @@ -382,15 +283,6 @@ export default { set(value) { value; // nop, since we have the dialog for this } - }, - checkImportedPipelineFile() { - if(this.pipelineImportData === undefined) { - return "No File Uploaded" - } else if(this.pipelineImportData === null) { - return "Corrupt or Malformed JSON File" - } else { - return "" - } } }, methods: { @@ -476,26 +368,6 @@ export default { this.discardPipelineNameChange(); } }, - handlePipelineImportFile(event) { - // TODO, parse required info. null if malformed, else data - event; - this.pipelineImportData = {} - }, - _checkPipelineName(name) { - const pipelineNameChangeRegex = RegExp("^[A-Za-z0-9_ \\-)(]*[A-Za-z0-9][A-Za-z0-9_ \\-)(.]*$") - if (pipelineNameChangeRegex.test(name)) { - for (let pipe in this.$store.getters.pipelineList) { - if (this.$store.getters.pipelineList.hasOwnProperty(pipe)) { - if (name === this.$store.getters.pipelineList[pipe]) { - return "A pipeline with this name already exists" - } - } - } - } else { - return "A pipeline name can only contain letters, numbers, and spaces" - } - return "" - }, duplicatePipeline() { this.handleInputWithIndex("duplicatePipeline", this.currentPipelineIndex); }, @@ -504,19 +376,6 @@ export default { this.isPipelineNameEdit = false; this.newPipelineName = ""; }, - exportPipelineToJson() { - // TODO determine what data needs to be exported, and export it to JSON - }, - createPipelineFromImportedFile() { - // this.pipelineImportData - // this.importedPipelineName - // TODO, create a new pipeline using the data, rename it using the name, then select it or whatever order the backend wants - }, - cancelPipelineImport() { - this.showPipeImportDialog = false; - this.pipelineImportData = undefined; - this.importedPipelineName = "" - } } }