Skip to content

Files

image

Functional

  • Navigate through folders
  • create files and folders
  • edit and upload files (see FileEdit)

Technical

  • filesState: all files on FS
  • folderList: all files in a folder
  • editableFile: current file
  • getState / postFilesState: get filesState and post changes to files (update, delete, new)
  • addFile / addFolder: create new items
  • breadcrumbs(String): folder path as string array and as string, also stored as cookie
  • folderListFromBreadCrumbs: create folderList of current folder
  • handleEdit: when edit button pressed: navigate back and forward through folders, edit current file
  • confirmDelete: when delete button pressed
  • socket files / handleFileState (->folderListFromBreadCrumbs)

Using component FileEdit, see Components

Server

FilesService.h and FilesService.cpp

UI

Files.svelte