File uploading and fixes #261

Merged
bema merged 25 commits from bema/func/file_upload into master 2023-11-06 11:17:44 +01:00
Showing only changes of commit 90f28cfecd - Show all commits

View File

@@ -1,22 +1,22 @@
<script setup lang="ts">
import CodeEditorComponent from '@/components/CodeEditorComponent.vue';
import CodeEditorComponent from '@/components/CodeEditorComponent.vue'
import EncoderButton from '@/components/encoder/EncoderButtonComponent.vue'
import { ref } from 'vue';
import { ref } from 'vue'
const data : any = ref("")
const imageData = ref("")
const DoshowImage = ref(false)
const inputImage = ref();
const inputImage = ref()
function setTextFieldValue(newData: string) {
data.value = newData.toString()
DoshowImage.value = false;
DoshowImage.value = false
}
function showImage(newImage : string){
imageData.value = "data:image/jpeg;base64,"+newImage
DoshowImage.value = true;
DoshowImage.value = true
}
function convertImageToBase64(file : any){
@@ -28,7 +28,7 @@ function convertImageToBase64(file : any){
function clear(){
data.value = ""
imageData.value = ""
DoshowImage.value = false;
DoshowImage.value = false
inputImage.value.value = null
}