Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
B
Bielefeld-CeBiTec-Temp-until-thaw
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
Package Registry
Model registry
Operate
Terraform modules
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
Liliana Sanfilippo
Bielefeld-CeBiTec-Temp-until-thaw
Commits
baeeada6
Commit
baeeada6
authored
7 months ago
by
Asal Sahami Moghaddam
Browse files
Options
Downloads
Patches
Plain Diff
Committing changes before pulling
parent
6bcd4be6
No related branches found
No related tags found
No related merge requests found
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
package.json
+4
-2
4 additions, 2 deletions
package.json
src/App/App.tsx
+65
-64
65 additions, 64 deletions
src/App/App.tsx
vite.config.js.timestamp-1722421512320-2974732830fc5.mjs
+347
-0
347 additions, 0 deletions
vite.config.js.timestamp-1722421512320-2974732830fc5.mjs
yarn.lock
+686
-455
686 additions, 455 deletions
yarn.lock
with
1102 additions
and
521 deletions
package.json
+
4
−
2
View file @
baeeada6
...
@@ -21,6 +21,7 @@
...
@@ -21,6 +21,7 @@
"
@refinedev/core
"
:
"
^4.53.0
"
,
"
@refinedev/core
"
:
"
^4.53.0
"
,
"
beautiful-react-diagrams
"
:
"
^0.5.1
"
,
"
beautiful-react-diagrams
"
:
"
^0.5.1
"
,
"
bootstrap
"
:
"
^5.3.3
"
,
"
bootstrap
"
:
"
^5.3.3
"
,
"
chart.js
"
:
"
^4.4.3
"
,
"
dangerously-set-html-content
"
:
"
^1.1.0
"
,
"
dangerously-set-html-content
"
:
"
^1.1.0
"
,
"
dompurify
"
:
"
^3.1.5
"
,
"
dompurify
"
:
"
^3.1.5
"
,
"
framer-motion
"
:
"
^11.2.13
"
,
"
framer-motion
"
:
"
^11.2.13
"
,
...
@@ -30,12 +31,13 @@
...
@@ -30,12 +31,13 @@
"
markmap-toolbar
"
:
"
^0.17.0
"
,
"
markmap-toolbar
"
:
"
^0.17.0
"
,
"
react
"
:
"
^18.2.0
"
,
"
react
"
:
"
^18.2.0
"
,
"
react-bootstrap
"
:
"
^2.10.2
"
,
"
react-bootstrap
"
:
"
^2.10.2
"
,
"
react-chartjs-2
"
:
"
^5.2.0
"
,
"
react-collapsed
"
:
"
^4.1.2
"
,
"
react-collapsed
"
:
"
^4.1.2
"
,
"
react-dom
"
:
"
^18.2.0
"
,
"
react-dom
"
:
"
^18.2.0
"
,
"
react-js-diagrams
"
:
"
^3.1.3
"
,
"
react-js-diagrams
"
:
"
^3.1.3
"
,
"
react-pdf
"
:
"
^9.0.0
"
,
"
react-pdf
"
:
"
^9.0.0
"
,
"
react-photo-album
"
:
"
^2.4.1
"
,
"
react-photo-album
"
:
"
^2.4.1
"
,
"
react-router-dom
"
:
"
^6.2
3
.0
"
,
"
react-router-dom
"
:
"
^6.2
6
.0
"
,
"
react-select
"
:
"
^5.8.0
"
,
"
react-select
"
:
"
^5.8.0
"
,
"
react-slick
"
:
"
^0.30.2
"
,
"
react-slick
"
:
"
^0.30.2
"
,
"
sass
"
:
"
^1.77.6
"
,
"
sass
"
:
"
^1.77.6
"
,
...
@@ -52,7 +54,7 @@
...
@@ -52,7 +54,7 @@
"
@types/react-slick
"
:
"
^0.23.13
"
,
"
@types/react-slick
"
:
"
^0.23.13
"
,
"
@typescript-eslint/eslint-plugin
"
:
"
^7.2.0
"
,
"
@typescript-eslint/eslint-plugin
"
:
"
^7.2.0
"
,
"
@typescript-eslint/parser
"
:
"
^7.2.0
"
,
"
@typescript-eslint/parser
"
:
"
^7.2.0
"
,
"
@vitejs/plugin-react
"
:
"
^4.
2
.1
"
,
"
@vitejs/plugin-react
"
:
"
^4.
3
.1
"
,
"
eslint
"
:
"
^8.57.0
"
,
"
eslint
"
:
"
^8.57.0
"
,
"
eslint-plugin-react-hooks
"
:
"
^4.6.0
"
,
"
eslint-plugin-react-hooks
"
:
"
^4.6.0
"
,
"
eslint-plugin-react-refresh
"
:
"
^0.4.6
"
,
"
eslint-plugin-react-refresh
"
:
"
^0.4.6
"
,
...
...
This diff is collapsed.
Click to expand it.
src/App/App.tsx
+
65
−
64
View file @
baeeada6
import
{
useState
,
useEffect
}
from
"
react
"
;
import
React
,
{
useEffect
}
from
"
react
"
;
import
"
./App.css
"
;
import
"
./App.css
"
;
import
"
../contents/example.css
"
import
"
../contents/example.css
"
;
import
"
./App.scss
"
;
import
"
./App.scss
"
;
import
'
beautiful-react-diagrams/styles.css
'
;
import
'
beautiful-react-diagrams/styles.css
'
;
import
"
bootstrap/dist/css/bootstrap.min.css
"
;
import
"
bootstrap/dist/css/bootstrap.min.css
"
;
import
{
Route
,
Route
s
}
from
"
react-router-dom
"
;
import
{
Route
s
,
Route
}
from
"
react-router-dom
"
;
import
{
Footer
}
from
"
../components/Footer.tsx
"
;
import
{
Footer
}
from
"
../components/Footer.tsx
"
;
import
{
NotFound
}
from
"
../components/NotFound.tsx
"
;
import
{
NotFound
}
from
"
../components/NotFound.tsx
"
;
import
{
Navbar
}
from
"
../components/Navbar.tsx
"
;
import
{
Navbar
}
from
"
../components/Navbar.tsx
"
;
...
@@ -12,12 +12,10 @@ import { getPathMapping } from "../utils/getPathMapping.ts";
...
@@ -12,12 +12,10 @@ import { getPathMapping } from "../utils/getPathMapping.ts";
import
{
stringToSlug
}
from
"
../utils/stringToSlug.ts
"
;
import
{
stringToSlug
}
from
"
../utils/stringToSlug.ts
"
;
import
{
Villbuttonrow
}
from
"
../components/Buttons.tsx
"
;
import
{
Villbuttonrow
}
from
"
../components/Buttons.tsx
"
;
import
"
../utils/highlight.js
"
;
import
"
../utils/highlight.js
"
;
import
LoadingScreen
from
"
../components/LoadingScreen.tsx
"
;
import
"
./LoadingScreen.css
"
;
import
"
./LoadingScreen.css
"
;
import
{
Description
}
from
"
../contents/description.tsx
"
;
const
App
=
()
=>
{
const
App
=
()
=>
{
const
[
isLoading
,
setIsLoading
]
=
useState
(
true
);
const
pathMapping
=
getPathMapping
();
const
pathMapping
=
getPathMapping
();
const
currentPath
=
const
currentPath
=
location
.
pathname
location
.
pathname
...
@@ -32,69 +30,72 @@ const App = () => {
...
@@ -32,69 +30,72 @@ const App = () => {
document
.
title
=
`
${
title
||
""
}
|
${
import
.
meta
.
env
.
VITE_TEAM_NAME
}
- iGEM
${
import
.
meta
.
env
.
VITE_TEAM_YEAR
}
`
;
document
.
title
=
`
${
title
||
""
}
|
${
import
.
meta
.
env
.
VITE_TEAM_NAME
}
- iGEM
${
import
.
meta
.
env
.
VITE_TEAM_YEAR
}
`
;
},
[
title
]);
},
[
title
]);
useEffect
(()
=>
{
const
timer
=
setTimeout
(()
=>
{
console
.
log
(
"
Hiding loading screen
"
);
setIsLoading
(
false
);
},
0
);
// Adjust the delay as needed, Update the loading state after 3 seconds
return
()
=>
{
console
.
log
(
"
Cleaning up timer
"
);
clearTimeout
(
timer
);
// Clear the timer on component unmount
};
},
[]);
return
(
return
(
<>
<>
{
isLoading
?
(
{
/* Navigation */
}
<
LoadingScreen
/>
<
Navbar
/>
)
:
(
<>
{
/* Navigation */
}
<
Navbar
/>
{
/* Header and PageContent */
}
{
/* Header and PageContent */
}
<
Routes
>
<
Routes
>
{
Object
.
entries
(
pathMapping
).
map
(([
path
,
{
header
:
Header
,
component
:
Component
,
navlist
:
Sidebar
}])
=>
(
{
Object
.
entries
(
pathMapping
).
map
(([
path
,
{
header
:
Header
,
component
:
Component
,
navlist
:
Sidebar
}])
=>
(
<
Route
<
Route
key
=
{
path
}
key
=
{
path
}
path
=
{
path
}
path
=
{
path
}
element
=
{
element
=
{
<>
<>
<
Header
/>
<
Header
/>
{
/* Page content */
}
{
/* Page content */
}
<
div
className
=
"container-fluid"
>
<
div
className
=
"container-fluid"
>
<
div
className
=
"row"
>
<
div
className
=
"row"
>
<
Sidebar
/>
<
Sidebar
/>
<
div
className
=
"col"
>
<
div
className
=
"col"
>
<
Component
/>
<
Component
/>
<
Villbuttonrow
/>
<
Villbuttonrow
/>
</
div
>
<
div
className
=
"col-1 d-none d-lg-block"
>
{
/* <!-- empty!--> */
}
</
div
>
</
div
>
</
div
>
</
div
>
{
/* End page content */
}
<
div
className
=
"col-1 d-none d-lg-block"
>
</>
{
/* <!-- empty!--> */
}
}
</
div
>
/>
</
div
>
))
}
</
div
>
<
Route
{
/* End page content */
}
path
=
"*"
</>
element
=
{
}
<>
/>
))
}
<
NotFound
/>
{
/* Add a route for the Description component */
}
</>
<
Route
}
path
=
"/description"
/>
element
=
{
</
Routes
>
<>
{
/* 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
>
</>
}
/>
<
Route
path
=
"*"
element
=
{
<>
<
NotFound
/>
</>
}
/>
</
Routes
>
{
/* Footer */
}
{
/* Footer */
}
<
Footer
/>
<
Footer
/>
</>
)
}
</>
</>
);
);
};
};
...
...
This diff is collapsed.
Click to expand it.
vite.config.js.timestamp-1722421512320-2974732830fc5.mjs
0 → 100644
+
347
−
0
View file @
baeeada6
This diff is collapsed.
Click to expand it.
yarn.lock
+
686
−
455
View file @
baeeada6
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