From 2506b8570023a0dab402d01ea6cba377d07b1947 Mon Sep 17 00:00:00 2001 From: Alexandre Rousseau Date: Fri, 10 Jan 2025 18:14:00 +0100 Subject: [PATCH] add logic to create file --- .../src/builder/panels/BuilderCodePanel.vue | 9 +++- .../ShareSourceFilesTree.vue | 18 +++++++ src/ui/src/core/index.ts | 48 ++++++++++++------- src/ui/src/core/sourceFiles.spec.ts | 31 ++++++++++++ src/ui/src/core/sourceFiles.ts | 26 ++++++++++ src/ui/src/core/useSourceFiles.spec.ts | 20 +++++++- src/writer/app_runner.py | 23 +++++++-- src/writer/serve.py | 16 ++++++- 8 files changed, 165 insertions(+), 26 deletions(-) diff --git a/src/ui/src/builder/panels/BuilderCodePanel.vue b/src/ui/src/builder/panels/BuilderCodePanel.vue index 3e347f61..a647eb6b 100644 --- a/src/ui/src/builder/panels/BuilderCodePanel.vue +++ b/src/ui/src/builder/panels/BuilderCodePanel.vue @@ -15,7 +15,9 @@ :source-files="sourceFileDraft as SourceFilesDirectory" :path-active="filepathOpen" :paths-unsaved="pathsUnsaved" + display-add-file-button class="BuilderCodePanel__content__tree" + @add-file="handleAddFile" @select="openFile" /> @@ -39,7 +41,7 @@