-
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.
Feature/81 resources refactoring f (#134)
- Loading branch information
1 parent
f38e421
commit 4e880e2
Showing
70 changed files
with
1,054 additions
and
1,170 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,8 @@ | ||
src/common/components/fields/entry/TextEntry.tsx | ||
src/components/detailsPage/layout/content/DetailsContent.tsx | ||
src/components/detailsPage/layout/mainContent/DetailsMainContent.tsx | ||
src/components/detailsPage/layout/mainPage/DetailsPage.tsx | ||
src/components/detailsPage/pages/resources/components/map/ResourceMap.tsx | ||
src/components/home/Home.tsx | ||
src/components/main/App.js | ||
src/common/components/buttons/ShowMapToggleButton.tsx |
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 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 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,26 @@ | ||
{ | ||
"properties": {}, | ||
"name": "Module", | ||
"startingMapName": "CesiumMap", | ||
"maps": [ | ||
{ | ||
"type": "CesiumMap", | ||
"name": "CesiumMap" | ||
} | ||
], | ||
"layers": [ | ||
{ | ||
"type": "OpenStreetMapLayer", | ||
"name": "OpenStreetMapLayer(1)", | ||
"properties": { | ||
"attributions": { | ||
"provider": "OpenStreetMap contributors", | ||
"url": "http://www.openstreetmap.org/", | ||
"year": "2024" | ||
} | ||
}, | ||
"activeOnStartup": true, | ||
"zIndex": 0 | ||
} | ||
] | ||
} |
Large diffs are not rendered by default.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
.textEntryContainer { | ||
} | ||
|
||
.nameTextField { | ||
display: inline-block; | ||
margin-top: 0; | ||
margin-right: 1rem; | ||
font-weight: bold; | ||
|
||
overflow-wrap: break-word; | ||
word-wrap: break-word; | ||
} | ||
|
||
.valueTextField { | ||
margin-top: 0; | ||
display: inline-block; | ||
|
||
overflow-wrap: break-word; | ||
word-wrap: break-word; | ||
word-break: break-all; | ||
} | ||
|
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,24 @@ | ||
import React, { FC } from 'react'; | ||
import { useTranslation } from 'react-i18next'; | ||
|
||
import Text from '../text/Text'; | ||
|
||
import styles from './TextEntry.module.css' | ||
|
||
interface EntryProps { | ||
name: string; | ||
value: string; | ||
} | ||
|
||
const TextEntry: FC<EntryProps> = ({ name, value }) => { | ||
const { t } = useTranslation(); | ||
|
||
return ( | ||
<div className={styles.textEntryContainer}> | ||
<Text className={styles.nameTextField}>{name}</Text> | ||
<Text className={styles.valueTextField}>{value || t('common.not-specified')}</Text> | ||
</div> | ||
) | ||
} | ||
|
||
export default TextEntry |
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 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 |
---|---|---|
|
@@ -3,5 +3,4 @@ | |
|
||
overflow-wrap: break-word; | ||
word-wrap: break-word; | ||
/*word-break: break-all;*/ | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,19 @@ | ||
.main { | ||
margin: 0 3rem 3rem; | ||
box-sizing: border-box; | ||
} | ||
|
||
.horizontal { | ||
display: flex; | ||
flex-wrap: nowrap; | ||
justify-content: flex-start; | ||
align-items: center; | ||
gap: 30px; | ||
box-sizing: border-box; | ||
gap: 3rem; | ||
} | ||
|
||
.vertical { | ||
display: flex; | ||
flex-direction: column; | ||
align-items: stretch; | ||
width: 100%; | ||
gap: 30px; | ||
box-sizing: border-box; | ||
gap: 3rem; | ||
} |
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,29 @@ | ||
.myMapContainer { | ||
position: relative; | ||
width: 100%; | ||
height: 100%; | ||
background-color: var(--secondary-color-light); | ||
} | ||
.mapElement { | ||
position: absolute; | ||
top: 0; | ||
bottom: 0; | ||
left: 0; | ||
right: 0; | ||
overflow: hidden; | ||
} | ||
.cesium-widget, | ||
.cesium-widget canvas { | ||
width: 100%; | ||
height: 100%; | ||
touch-action: none; | ||
} | ||
.map-overlay { | ||
position: absolute; | ||
z-index: 1; | ||
} | ||
.controls { | ||
position: absolute; | ||
bottom: 20px; | ||
left: 15px; | ||
} |
Oops, something went wrong.