Skip to content

Files

Latest commit

 

History

History

src

React Project Source Code

This folder contains the JavaScript/FontEnd side of things

Structure

HTML

There are 3 entry points, which all server different purposes. Depending on what is needed the one of these 3 files will be copied to the project root.

CSS

  • base.css contains the css variable definitions and styling for html tags
  • App.css contains the base layout of the app

JavaScript

  • comps Contains reusable components All comps are bundled into a single fragment in Comps.ts. It is also the target for @comps imports, which is defined in the Vite & TypeScript configs

  • pages Contains all pages All pages reachable from the Side bar

  • util Utility functions Sorted by Page, Comp, or whatever. Rough sorting should suffice, since the functions will be used across the whole project.

  • worker The WebWorkers

    • export.worker.ts Compiles the data from indexedDB and sends it to the main thread. Then from there a write-stream (tauri-plugin/fs) saves the data to the systems download folder
    • import.worker.ts Converts the assigned columns in the Upload-Page into rows and inserts them into a database and oStore
    • table.worker.ts Returns the requested rows to the table, for display
  • types All TypeScript type definitions, sorted like factor/src/