forked from markusbink/basisdokument-implementierung
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'dev' into 1-ui-beitrag
- Loading branch information
Showing
16 changed files
with
452 additions
and
57 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
--- | ||
name: Feature request | ||
about: Describe the desired functionality and relevant acceptance criteria | ||
title: '' | ||
labels: '' | ||
assignees: '' | ||
|
||
--- | ||
|
||
**Beschreibung des Features** | ||
Kurze Beschreibung | ||
|
||
**Akzeptanzkriterien** | ||
- [ ] Acceptance Criteria 1 | ||
- [ ] Acceptance Criteria 2 | ||
- [ ] Acceptance Criteria 3 | ||
|
||
**optional: Screenshots** |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,46 +1,7 @@ | ||
# Getting Started with Create React App | ||
# Basisdokument | ||
|
||
This project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app). | ||
This app enables lawyers to create their previous analogue correspondence in a digital environment, which means that a variety of useful features can be used which eases the proccess of working on cases. The current [list of features](https://github.com/markusbink/basisdokument-implementierung/wiki/3.-Ausgangslage-&-User-Stories) can be seen in the corresponding Wiki. | ||
|
||
## Available Scripts | ||
## Running the project locally | ||
|
||
In the project directory, you can run: | ||
|
||
### `npm start` | ||
|
||
Runs the app in the development mode.\ | ||
Open [http://localhost:3000](http://localhost:3000) to view it in the browser. | ||
|
||
The page will reload if you make edits.\ | ||
You will also see any lint errors in the console. | ||
|
||
### `npm test` | ||
|
||
Launches the test runner in the interactive watch mode.\ | ||
See the section about [running tests](https://facebook.github.io/create-react-app/docs/running-tests) for more information. | ||
|
||
### `npm run build` | ||
|
||
Builds the app for production to the `build` folder.\ | ||
It correctly bundles React in production mode and optimizes the build for the best performance. | ||
|
||
The build is minified and the filenames include the hashes.\ | ||
Your app is ready to be deployed! | ||
|
||
See the section about [deployment](https://facebook.github.io/create-react-app/docs/deployment) for more information. | ||
|
||
### `npm run eject` | ||
|
||
**Note: this is a one-way operation. Once you `eject`, you can’t go back!** | ||
|
||
If you aren’t satisfied with the build tool and configuration choices, you can `eject` at any time. This command will remove the single build dependency from your project. | ||
|
||
Instead, it will copy all the configuration files and the transitive dependencies (webpack, Babel, ESLint, etc) right into your project so you have full control over them. All of the commands except `eject` will still work, but they will point to the copied scripts so you can tweak them. At this point you’re on your own. | ||
|
||
You don’t have to ever use `eject`. The curated feature set is suitable for small and middle deployments, and you shouldn’t feel obligated to use this feature. However we understand that this tool wouldn’t be useful if you couldn’t customize it when you are ready for it. | ||
|
||
## Learn More | ||
|
||
You can learn more in the [Create React App documentation](https://facebook.github.io/create-react-app/docs/getting-started). | ||
|
||
To learn React, check out the [React documentation](https://reactjs.org/). | ||
To get started, download the project, `cd` into the root directory and install all dependencies using `npm install` or any other package manager of your choosing. After all dependencies have successfully been installed, you can run `npm start` in your terminal which opens the app in your browser under the following URL [http://localhost:3000](http://localhost:3000). |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
export interface BookmarkProps { | ||
id: string; | ||
title: string; | ||
referenceTo?: string; | ||
} | ||
|
||
export const Bookmark: React.FC<BookmarkProps> = (bookmark: BookmarkProps) => { | ||
return ( | ||
<div className="font-normal"> | ||
<div>{bookmark.title}</div> | ||
<div>{bookmark.referenceTo}</div> | ||
</div> | ||
); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
export interface HintProps { | ||
id: string; | ||
title: string; | ||
content?: string; | ||
author: string; | ||
timestamp: Date; | ||
referenceTo?: string; | ||
} | ||
|
||
export const Hint: React.FC<HintProps> = (hint: HintProps) => { | ||
return ( | ||
<div className="font-normal"> | ||
<div>{hint.title}</div> | ||
<div>{hint.content}</div> | ||
<div>{hint.author}</div> | ||
<div>{hint.timestamp.getDate()}</div> | ||
<div>{hint.referenceTo}</div> | ||
</div> | ||
); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
export interface NoteProps { | ||
id: string; | ||
title: string; | ||
content?: string; | ||
author: string; | ||
timestamp: Date; | ||
referenceTo?: string; | ||
} | ||
|
||
export const Note: React.FC<NoteProps> = (note: NoteProps) => { | ||
return ( | ||
<div className="font-normal"> | ||
<div>{note.title}</div> | ||
<div>{note.content}</div> | ||
<div>{note.author}</div> | ||
<div>{note.timestamp.getDate()}</div> | ||
<div>{note.referenceTo}</div> | ||
</div> | ||
); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
import { useState } from "react"; | ||
import { SidebarHeader } from "./SidebarHeader"; | ||
import { SidebarNotes } from "./SidebarNotes"; | ||
import cx from "classnames"; | ||
import { SidebarHints } from "./SidebarHints"; | ||
import { SidebarBookmarks } from "./SidebarBookmarks"; | ||
|
||
const sidebars = [ | ||
{ | ||
name: "Notes", | ||
jsxElem: <SidebarNotes key="Notes"></SidebarNotes>, | ||
}, | ||
{ | ||
name: "Hints", | ||
jsxElem: <SidebarHints key="Hints"></SidebarHints>, | ||
}, | ||
{ | ||
name: "Bookmarks", | ||
jsxElem: <SidebarBookmarks key="Bookmarks"></SidebarBookmarks>, | ||
}, | ||
]; | ||
|
||
export const Sidebar = () => { | ||
const [activeSidebar, setActiveSidebar] = useState<string>(sidebars[0].name); | ||
const [sidebarOpen, setSidebarOpen] = useState<boolean>(true); | ||
|
||
return ( | ||
<aside | ||
className={cx( | ||
"h-full overflow-y-clip shadow-lg divide-y-[1px] divide-lightGrey transition-width duration-300", | ||
{ | ||
"w-[65px] overflow-hidden": !sidebarOpen, | ||
"w-[400px]": sidebarOpen, | ||
} | ||
)} | ||
> | ||
<SidebarHeader | ||
setActiveSidebar={setActiveSidebar} | ||
sidebarOpen={sidebarOpen} | ||
setSidebarOpen={setSidebarOpen} | ||
/> | ||
{sidebars.map( | ||
(sidebar) => | ||
sidebar.name === activeSidebar && sidebarOpen && sidebar.jsxElem | ||
)} | ||
</aside> | ||
); | ||
}; |
Oops, something went wrong.