Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
B
Bielefeld-CeBiTec
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
2024 Competition
Bielefeld-CeBiTec
Commits
ce4e11a2
Commit
ce4e11a2
authored
7 months ago
by
Asal Sahami Moghaddam
Browse files
Options
Downloads
Patches
Plain Diff
asal
parent
347d86c4
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/App/App.tsx
+21
-20
21 additions, 20 deletions
src/App/App.tsx
src/contents/Graph.tsx
+1
-2
1 addition, 2 deletions
src/contents/Graph.tsx
with
22 additions
and
22 deletions
src/App/App.tsx
+
21
−
20
View file @
ce4e11a2
...
...
@@ -5,6 +5,7 @@ import "../contents/example.css"
import
"
./App.scss
"
;
import
'
beautiful-react-diagrams/styles.css
'
;
import
"
bootstrap/dist/css/bootstrap.min.css
"
;
import
"
./Graph.css
"
import
{
Routes
,
Route
}
from
"
react-router-dom
"
;
import
{
Footer
}
from
"
../components/Footer.tsx
"
;
import
{
NotFound
}
from
"
../components/NotFound.tsx
"
;
...
...
@@ -14,7 +15,7 @@ import { stringToSlug } from "../utils/stringToSlug.ts";
import
{
Villbuttonrow
}
from
"
../components/Buttons.tsx
"
;
import
"
../utils/highlight.js
"
;
import
"
./LoadingScreen.css
"
;
import
{
Description
}
from
"
../contents/description.tsx
"
;
//
import { Description } from "../contents/description.tsx";
const
App
=
()
=>
{
const
pathMapping
=
getPathMapping
();
...
...
@@ -63,26 +64,26 @@ const App = () => {
}
/>
))
}
{
/* Add a route for the Description component */
}
<
Route
path
=
"/description"
element
=
{
<>
{
/* Page content */
}
<
div
className
=
"container-fluid"
>
<
div
className
=
"row"
>
<
div
className
=
"col"
>
//
{
/* Add a route for the Description component */
}
//
<
Route
//
path="/description"
//
element={
//
<>
//
{/* Page content */}
//
<div className="container-fluid">
//
<div className="row">
//
<div className="col">
<
Description
/>
<
Villbuttonrow
/>
</
div
>
<
div
className
=
"col-1 d-none d-lg-block"
>
{
/* <!-- empty!--> */
}
</
div
>
</
div
>
</
div
>
</>
}
//
<Description />
//
<Villbuttonrow />
//
</div>
//
<div className="col-1 d-none d-lg-block">
//
{/* <!-- empty!--> */}
//
</div>
//
</div>
//
</div>
//
</>
//
}
/>
<
Route
...
...
This diff is collapsed.
Click to expand it.
src/contents/Graph.tsx
+
1
−
2
View file @
ce4e11a2
import
React
from
'
react
'
;
import
{
Pie
}
from
'
react-chartjs-2
'
;
import
{
Chart
as
ChartJS
,
ArcElement
,
Tooltip
,
Legend
}
from
'
chart.js
'
;
import
'
../App/Graph.css
'
;
ChartJS
.
register
(
ArcElement
,
Tooltip
,
Legend
);
...
...
@@ -34,7 +33,7 @@ const PieChart: React.FC = () => {
'
rgba(153, 102, 255, 1)
'
,
'
rgba(255, 159, 64, 1)
'
,
],
borderWidth
:
1
,
borderWidth
:
0.5
,
},
],
};
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment