diff --git a/backend/build.gradle.kts b/backend/build.gradle.kts index 42ec984..91dccc4 100644 --- a/backend/build.gradle.kts +++ b/backend/build.gradle.kts @@ -25,15 +25,6 @@ ktor { ) ) } - jib { - from { - image = "openjdk:17-jdk-alpine" - } - to { - image = "vovochkastelmashchuk/nest2d" - tags = setOf("${project.version}") - } - } } repositories { diff --git a/nest2dvue/src/views/AddProjectPage.vue b/nest2dvue/src/views/AddProjectPage.vue index 6fe125a..da5cda5 100644 --- a/nest2dvue/src/views/AddProjectPage.vue +++ b/nest2dvue/src/views/AddProjectPage.vue @@ -26,7 +26,6 @@ import {ref} from 'vue'; import {API_URL} from "@/constants.js"; -const route = useRoute(); const projectName = ref(''); const mediaPreview = ref(null); const dxfFiles = ref([]); @@ -42,52 +41,8 @@ const handleDXFFilesChange = (event) => { }; import axios from 'axios'; -import {useRoute} from "vue-router"; import router from "@/router/index.js"; -const createProject = async (projectName) => { - try { - const response = await axios.post(`${API_URL}/project`, { - name: projectName - }); - return response.data; - } catch (error) { - console.error('Error creating project:', error); - } -}; - -const uploadPreviewImage = async (projectSlug, imageFile) => { - try { - const formData = new FormData(); - formData.append('file', imageFile); - - const response = await axios.post(`${API_URL}/project/${projectSlug}/preview`, formData, { - headers: { - 'Content-Type': 'multipart/form-data' - } - }); - return response.data; // Handle or display the response appropriately - } catch (error) { - console.error('Error uploading preview image:', error); - } -}; - -const uploadDXFFile = async (projectSlug, dxfFile) => { - try { - const formData = new FormData(); - formData.append('file', dxfFile); - - const response = await axios.post(`${API_URL}/files/${projectSlug}/dxf`, formData, { - headers: { - 'Content-Type': 'multipart/form-data' - } - }); - return response.data; - } catch (error) { - console.error('Error uploading DXF file:', error); - } -}; - const updateProgress = (completed, total) => { progress.value = Math.round((completed / total) * 100); }; @@ -156,4 +111,19 @@ button { border: none; border-radius: 5px; } +.progress-bar { + background-color: #f3f3f3; + border-radius: 5px; + position: relative; + margin-top: 20px; + height: 20px; + width: 100%; +} + +.progress-bar-fill { + background-color: #4caf50; + height: 100%; + border-radius: 5px; + transition: width 0.4s ease-in-out; +} diff --git a/nest2dvue/src/views/BlogView.vue b/nest2dvue/src/views/BlogView.vue index c0ecb13..038c65d 100644 --- a/nest2dvue/src/views/BlogView.vue +++ b/nest2dvue/src/views/BlogView.vue @@ -1,4 +1,31 @@