From f4842500f23f6a40cc4e3b50d0529132ae594cee Mon Sep 17 00:00:00 2001 From: Paz Date: Wed, 1 Jan 2025 20:26:22 +0100 Subject: [PATCH] added functionality to create new files and directories --- frontend/src/assets/main.css | 1 + frontend/src/components/NavigationSidebar.vue | 104 +++++++++++++++++- .../src/components/icons/FilePlusIcon.vue | 6 + .../src/components/icons/FolderPlusIcon.vue | 5 + frontend/src/repository/directory.ts | 11 +- frontend/src/views/HomeView.vue | 2 +- internal/onyx/notes.go | 2 +- onyx.env | 2 +- testdata/Top Level 1/Deep/Whatever.md | 1 + 9 files changed, 128 insertions(+), 6 deletions(-) create mode 100644 frontend/src/components/icons/FilePlusIcon.vue create mode 100644 frontend/src/components/icons/FolderPlusIcon.vue create mode 100644 testdata/Top Level 1/Deep/Whatever.md diff --git a/frontend/src/assets/main.css b/frontend/src/assets/main.css index 4117c31..9e57669 100644 --- a/frontend/src/assets/main.css +++ b/frontend/src/assets/main.css @@ -50,6 +50,7 @@ button { } + .button-row { display: flex; gap: 1rem; diff --git a/frontend/src/components/NavigationSidebar.vue b/frontend/src/components/NavigationSidebar.vue index ee79964..bf08c99 100644 --- a/frontend/src/components/NavigationSidebar.vue +++ b/frontend/src/components/NavigationSidebar.vue @@ -1,10 +1,63 @@