Skip to content

Latest commit

 

History

History
51 lines (40 loc) · 2.23 KB

README.md

File metadata and controls

51 lines (40 loc) · 2.23 KB

Frontend Documentation

The Icteridae frontend is using React and React Suite components. Most files are written with TypeScript. To allow easier configuration, Sass files are used for style sheets. Package management and running is done using yarn and Docker. Additionally, the force directed graph is rendered using the 2D variant of react-force-graph.

File Structure

only important files are included

frontend
│   README.md
│   package.json
│   yarn.lock
│   tsconfig.json
│   docker-compose.yml  # development compose file
│   prod.yml  # production compose file
│   Dockerfile  # development dockerfile
│   Dockerfile.prod  # production dockerfile   
│
└───public
│   
└───src
    |
    └───Components
    |   |
    |   └───App  # root, react-router
    |   └───Author  # author search/papers/relations
    |   └───Description  # faq, imprint 
    |   └───Front  # frontpage, recently opened papers
    |   └───General  # globally used components
    |   └───Graph  # generate and display the graph
    |   └───Navbar  # navigation bar on each site
    |   └───SavedPapers  # MyPapers tab, localstorage tree structures
    |   └───Search  # paper search
    |   
    └───Utils
        │   _colors.sass  # colors definition
        |   Config.tsx  # configuration file
        │   GeneralTypes.tsx  # typescript definitions for globally used types

Imprint

If you need to provide an imprint, navigate to Config.tsx and set the value of show_imprint to true. Enter your imprint in frontend/src/Components/Description/Privacy/PageImprint.tsx.

Structure Guidelines

Every page has its own directory in src/Components. TSX Components which are page-specific should also be in this directory. If there are at least two .sass files in a page directory, they need to be placed in a separate style-directory inside the page-directory. TSX Components which are used more than once should be in General.