Skip to content

Commit

Permalink
Merge branch 'uat'
Browse files Browse the repository at this point in the history
# Conflicts:
#	src/components/TimeLine/utils.js
  • Loading branch information
martinheppner committed Aug 19, 2024
2 parents 1b4248e + d6eb2b5 commit 600ddc3
Show file tree
Hide file tree
Showing 30 changed files with 438 additions and 11,935 deletions.
14 changes: 12 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-helmet": "^6.1.0",
"react-helmet-async": "^1.3.0",
"react-helmet-async": "^2.0.5",
"react-horizontal-scrolling-menu": "^2.8.2",
"react-i18next": "^12.2.2",
"react-infinite-scroll-component": "^6.1.0",
Expand All @@ -46,7 +46,7 @@
"redux": "^4.1.2",
"redux-thunk": "^2.4.1",
"uuid": "^9.0.0",
"watch": "^1.0.2",
"watch": "^0.13.0",
"web-vitals": "^3.3.0",
"webpack-cli": "^5.1.4"
},
Expand All @@ -62,6 +62,13 @@
"eject": "react-scripts eject"
},
"eslintConfig": {
"plugins":[
"react-hooks"
],
"rules": {
"react-hooks/rules-of-hooks": "error",
"react-hooks/exhaustive-deps": "warn"
},
"extends": [
"react-app",
"react-app/jest"
Expand All @@ -76,6 +83,9 @@
"clean-webpack-plugin": "^4.0.0",
"copy-webpack-plugin": "^11.0.0",
"css-loader": "^6.7.3",
"eslint": "^8.57.0",
"eslint-plugin-react": "^7.35.0",
"eslint-plugin-react-hooks": "^4.6.2",
"file-loader": "^6.2.0",
"html-loader": "^4.2.0",
"html-webpack-plugin": "^5.5.0",
Expand Down
Binary file modified public/img/startpunkt.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified public/img/zielpunkt.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion public/index-ch.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<!DOCTYPE html>
<html lang id="html-tag">
<html lang="de" id="html-tag">
<head>
<link rel="alternate" href="https://www.zuugle.si" hreflang="sl-si" />
<link rel="canonical" href="https://www.zuugle.at" hreflang="de-at" />
Expand Down
2 changes: 1 addition & 1 deletion public/index-de.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<!DOCTYPE html>
<html lang id="html-tag">
<html lang="de" id="html-tag">
<head>
<link rel="alternate" href="https://www.zuugle.si" hreflang="sl-si" />
<link rel="canonical" href="https://www.zuugle.at" hreflang="de-at" />
Expand Down
2 changes: 1 addition & 1 deletion public/index-fr.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<!DOCTYPE html>
<html lang id="html-tag">
<html lang="fr" id="html-tag">
<head>
<link rel="alternate" href="https://www.zuugle.si" hreflang="sl-si" />
<link rel="alternate" href="https://www.zuugle.at" hreflang="de-at" />
Expand Down
2 changes: 1 addition & 1 deletion public/index-it.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<!DOCTYPE html>
<html lang id="html-tag">
<html lang="it" id="html-tag">
<head>
<link rel="alternate" href="https://www.zuugle.si" hreflang="sl-si" />
<link rel="alternate" href="https://www.zuugle.at" hreflang="de-at" />
Expand Down
2 changes: 1 addition & 1 deletion public/index-li.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<!DOCTYPE html>
<html lang id="html-tag">
<html lang="de" id="html-tag">
<head>
<link rel="alternate" href="https://www.zuugle.si" hreflang="sl-si" />
<link rel="canonical" href="https://www.zuugle.at" hreflang="de-at" />
Expand Down
2 changes: 1 addition & 1 deletion public/index-si.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<!DOCTYPE html>
<html lang id="html-tag">
<html lang="sl" id="html-tag">
<head>
<link rel="canonical" href="https://www.zuugle.si" hreflang="sl-si" />
<link rel="alternate" href="https://www.zuugle.at" hreflang="de-at" />
Expand Down
2 changes: 1 addition & 1 deletion public/index.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<!DOCTYPE html>
<html lang id="html-tag">
<html lang="de" id="html-tag">
<head>
<link rel="alternate" href="https://www.zuugle.si" hreflang="sl-si" />
<link rel="canonical" href="https://www.zuugle.at" hreflang="de-at" />
Expand Down
3 changes: 3 additions & 0 deletions public/robots.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
User-agent: *
Disallow:
Crawl-delay: 5
27 changes: 14 additions & 13 deletions src/actions/tourActions.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,19 +38,20 @@ export function loadFilter(data = {}) {

const language = i18next.resolvedLanguage;
return (dispatch, getState) => {
return loadList(
dispatch,
getState,
LOAD_TOUR_FILTER,
LOAD_TOUR_FILTER_DONE,
"tours",
data,
"tours/filter",
"filter",
false,
undefined,
language
);
data.domain = window.location.host;
return loadList(
dispatch,
getState,
LOAD_TOUR_FILTER,
LOAD_TOUR_FILTER_DONE,
"tours",
data,
"tours/filter",
"filter",
false,
undefined,
language
);
};
}

Expand Down
4 changes: 2 additions & 2 deletions src/components/DomainMenu/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -477,7 +477,7 @@ const secondMenu = [
src={`/app_static/img/logo-white.png`}
height={"19px"}
width={"34px"}
alt="logo white"
alt="Logo Zuugle"
/>
<Typography
style={{
Expand Down Expand Up @@ -512,7 +512,7 @@ const secondMenu = [
src={`/app_static/img/logo30.png`}
height={"19px"}
width={"34px"}
alt="logo30"
alt="Logo Zuugle"
onClick={() => {
setShowDomainMenu(false);
window.location.replace(item.url);
Expand Down
6 changes: 6 additions & 0 deletions src/components/Footer/Footer.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ export default function Footer({}) {
src="/app_static/img/Logo_BMK_gefoerdert_EN_RGB.png"
height="122px"
width="206px"
alt="Funded by www.bmk.gv.at"
/>
</a>
</Grid>
Expand All @@ -42,6 +43,7 @@ export default function Footer({}) {
src="/app_static/img/Alpenkonvention_logo_gruen.png"
height="75px"
width="317px"
alt="Logo Alpenkonvention"
/>
</a>
</Grid>
Expand Down Expand Up @@ -70,6 +72,7 @@ export default function Footer({}) {
src={`/app_static/img/logo140.png`}
height={"20px"}
width={"36px"}
alt="Logo Zuugle"
/>
</Grid>
<Grid item xs md={3} >
Expand Down Expand Up @@ -123,6 +126,7 @@ export default function Footer({}) {
window.open("https://www.facebook.com/bahnzumberg/")
}
loading="lazy"
alt="Facebook"
/>{" "}
&nbsp;{" "}
<img
Expand All @@ -135,6 +139,7 @@ export default function Footer({}) {
window.open("https://www.instagram.com/bahnzumberg/")
}
loading="lazy"
alt="Instagram"
/>{" "}
&nbsp;{" "}
<img
Expand All @@ -145,6 +150,7 @@ export default function Footer({}) {
style={{ marginLeft: "5px" }}
onClick={() => window.open("https://github.com/bahnzumberg/")}
loading="lazy"
alt="GitHub"
/>
</Box>
</Grid>
Expand Down
8 changes: 4 additions & 4 deletions src/components/InteractiveMap.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,13 @@ export default function InteractiveMap({ tourTitle, gpxPositions, anreiseGpxPosi

const startIcon = L.icon({
iconUrl: '/app_static/img/startpunkt.png',
iconSize: [30, 40],
iconAnchor: [15, 41],
iconSize: [33, 45],
iconAnchor: [16, 46],
});
const endIcon = L.icon({
iconUrl: '/app_static/img/zielpunkt.png',
iconSize: [30, 40],
iconAnchor: [15, 41],
iconSize: [33, 45],
iconAnchor: [16, 46],
});

const StartMarker = ({ position }) => {
Expand Down
15 changes: 10 additions & 5 deletions src/components/Itinerary/Itinerary.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,15 @@ import ItineraryTourTimeLineContainer from "../TimeLine/ItineraryTourTimeLineCon
import { useTranslation } from "react-i18next";
import { Divider, Typography } from "@mui/material";

const Itinerary = ({ connectionData, dateIndex, onDateIndexUpdate, tour, validTour, city }) => {
const Itinerary = ({ connectionData, dateIndex, updateConnIndex, tour, validTour, city, idOne }) => {

const { t } = useTranslation();

const tourDuration = !!tour && !!tour.duration ? tour.duration : undefined;
// const validTour = !!tour && tour?.active ;

// console.log("L13 dateIndex :",dateIndex)
// console.log("L14 tourDuration :",tourDuration)
// console.log("L15 validTour :",validTour)

return (
<div className="tour-detail-itinerary-container">
Expand All @@ -25,16 +27,19 @@ const Itinerary = ({ connectionData, dateIndex, onDateIndexUpdate, tour, validTo
<ItineraryCalendar
connectionData={connectionData}
dateIndex={dateIndex}
onDateIndexUpdate={onDateIndexUpdate}
></ItineraryCalendar>
updateConnIndex={updateConnIndex}
/>
<Divider sx={{ my: "24px" }} />
{!!connectionData && (
<ItineraryTourTimeLineContainer
connections={connectionData[dateIndex]}
// connections={connectionData[dateIndex]}
connections={connectionData}
dateIndex={dateIndex}
loading={false}
duration={tourDuration}
tour={tour}
city={city}
idOne={idOne}
/>
)}
</>
Expand Down
8 changes: 2 additions & 6 deletions src/components/Itinerary/ItineraryCalendar.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ const isSelectedDay = (date, selectedDay) => {
const ItineraryCalendar = ({
connectionData,
dateIndex,
onDateIndexUpdate,
updateConnIndex
}) => {
const { t, i18n } = useTranslation();
let selectedDay = dateIndex;
Expand All @@ -48,10 +48,6 @@ const ItineraryCalendar = ({
days = _.map(connectionData, (con) => moment(con.date));
}

const setSelectedDay = (index) => {
onDateIndexUpdate(index);
};

return (
<div className="tour-detail-itinerary-calendar">
<div className="tour-detail-itinerary-calendar-selected-day">
Expand All @@ -78,7 +74,7 @@ const ItineraryCalendar = ({
? "tour-detail-itinerary-calendar-grid-selected"
: "tour-detail-itinerary-calendar-date"
}`}
onClick={() => setSelectedDay(index)}
onClick={() => updateConnIndex(index)}
>
{dd.date()}
</div>
Expand Down
2 changes: 1 addition & 1 deletion src/components/LanguageMenu/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ function LanguageMenu() {
src={`/app_static/img/langIcon.png`}
height={"23px"}
width={"23px"}
alt="language icon"
alt="Change Language here"
/>
</span>
{showLanguageMenu && (
Expand Down
16 changes: 0 additions & 16 deletions src/components/Map/MountinImage.jsx

This file was deleted.

4 changes: 2 additions & 2 deletions src/components/Map/TourMapContainer.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,8 @@ function TourMapContainer({
return L.icon({
iconUrl: "app_static/img/startpunkt.png", //the acutal picture
// shadowUrl: "app_static/img/pin-shadow.png", //the shadow of the icon
iconSize: [30, 40], //size of the icon
iconAnchor: [15, 41],
iconSize: [33, 45], //size of the icon
iconAnchor: [16, 46],
});
};

Expand Down
5 changes: 4 additions & 1 deletion src/components/Search/Search.js
Original file line number Diff line number Diff line change
Expand Up @@ -893,7 +893,9 @@ export function Search({
className="filter-icon-container"
>
{!!isMain ? (
<IconButton onClick={() => openFilter()}>
<IconButton
onClick={() => openFilter()}
aria-label="Filter">
<FilterIcon
sx={{
transition: "stroke 0.3s",
Expand All @@ -905,6 +907,7 @@ export function Search({
) : (
<IconButton
onClick={handleGoButton}
aria-label="Go"
sx={{
"&:hover": {
background: "#7aa8ff",
Expand Down
Loading

0 comments on commit 600ddc3

Please sign in to comment.