-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
2d48b77
commit b8df676
Showing
9 changed files
with
19,619 additions
and
576 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 |
---|---|---|
@@ -1,34 +1,26 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="utf-8" /> | ||
<link rel="icon" href="%PUBLIC_URL%/favicon.ico" /> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0"> | ||
<meta name="description" content="WikiDaheim ist ein Projekt von Freiwilligen der Wikimedia-Projekte wie Wikipedia, das sich mit dem Sammeln von Informationen über Gemeinden in ganz Österreich beschäftigt."> | ||
<meta name="theme-color" content="#000000" /> | ||
<link rel="apple-touch-icon" href="%PUBLIC_URL%/logo192.png" /> | ||
<link rel="manifest" href="%PUBLIC_URL%/manifest.json" /> | ||
<title>WikiDaheim: deine Heimat in der Wikipedia</title> | ||
</head> | ||
<body> | ||
<noscript> | ||
WikiDaheim ist ein Projekt von Freiwilligen der Wikimedia-Projekte wie Wikipedia, das sich mit dem Sammeln von Informationen über Gemeinden in ganz Österreich beschäftigt. | ||
WikiDaheim ist eine Webapplikation und benötigt daher JavaScript. Bitte aktiviere JavaScript für diese Webseite. | ||
</noscript> | ||
<div id="root"></div> | ||
|
||
<!-- Piwik --> | ||
<script type="text/javascript"> | ||
var _paq = _paq || []; | ||
_paq.push(['trackPageView']); | ||
_paq.push(['enableLinkTracking']); | ||
(function() { | ||
var u="//wikilovesmonuments.at/piwik/"; | ||
_paq.push(['setTrackerUrl', u+'piwik.php']); | ||
_paq.push(['setSiteId', '4']); | ||
var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0]; | ||
g.type='text/javascript'; g.async=true; g.defer=true; g.src=u+'piwik.js'; s.parentNode.insertBefore(g,s); | ||
})(); | ||
</script> | ||
</body> | ||
</html> | ||
<head> | ||
<meta charset="utf-8" /> | ||
<link rel="icon" href="%PUBLIC_URL%/favicon.ico" /> | ||
<meta name="viewport" | ||
content="width=device-width, initial-scale=1.0, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0"> | ||
<meta name="description" | ||
content="WikiDaheim ist ein Projekt von Freiwilligen der Wikimedia-Projekte wie Wikipedia, das sich mit dem Sammeln von Informationen über Gemeinden in ganz Österreich beschäftigt."> | ||
<meta name="theme-color" content="#000000" /> | ||
<link rel="apple-touch-icon" href="%PUBLIC_URL%/logo192.png" /> | ||
<link rel="manifest" href="%PUBLIC_URL%/manifest.json" /> | ||
<title>WikiDaheim: deine Heimat in der Wikipedia</title> | ||
</head> | ||
|
||
<body> | ||
<noscript> | ||
WikiDaheim ist ein Projekt von Freiwilligen der Wikimedia-Projekte wie Wikipedia, das sich mit dem Sammeln von | ||
Informationen über Gemeinden in ganz Österreich beschäftigt. | ||
WikiDaheim ist eine Webapplikation und benötigt daher JavaScript. Bitte aktiviere JavaScript für diese Webseite. | ||
</noscript> | ||
<div id="root"></div> | ||
</body> | ||
|
||
</html> |
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
104 changes: 57 additions & 47 deletions
104
src/components/Dashboard/Sidebar/CityInfo/ExternalLinkOverlay.jsx
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,54 +1,64 @@ | ||
import React, { Component } from 'react'; | ||
import PropTypes from 'prop-types'; | ||
import { FormattedMessage } from 'react-intl'; | ||
import React from "react"; | ||
import PropTypes from "prop-types"; | ||
import { FormattedMessage } from "react-intl"; | ||
|
||
class ExternalLinkOverlay extends Component { | ||
static propTypes = { | ||
title: PropTypes.object, | ||
text: PropTypes.object, | ||
link: PropTypes.string, | ||
closeAction: PropTypes.func, | ||
}; | ||
render() { | ||
const { title, text, link, closeAction } = this.props; | ||
|
||
return ( | ||
const ExternalLinkOverlay = ({ | ||
titleId, | ||
textId, | ||
link, | ||
onClick, | ||
closeAction, | ||
}) => { | ||
return ( | ||
<div // eslint-disable-line jsx-a11y/no-static-element-interactions | ||
className="ExternalLink-Overlay" | ||
onClick={closeAction} | ||
> | ||
<div // eslint-disable-line jsx-a11y/no-static-element-interactions | ||
className='ExternalLink-Overlay' | ||
onClick={ closeAction } | ||
className="ExternalLink-Overlay-Inner" | ||
onClick={(e) => e.stopPropagation()} | ||
> | ||
<div // eslint-disable-line jsx-a11y/no-static-element-interactions | ||
className='ExternalLink-Overlay-Inner' | ||
onClick={ (e) => e.stopPropagation() } | ||
<button className="ExternalLink-Close" onClick={closeAction}> | ||
<FormattedMessage | ||
id="cancel" | ||
description="Text for Cancel-Buttons" | ||
defaultMessage="Abbrechen" | ||
/> | ||
</button> | ||
<h1> | ||
<FormattedMessage id={titleId} /> | ||
</h1> | ||
<p> | ||
<FormattedMessage id={textId} /> | ||
</p> | ||
<a | ||
href={link || "#"} | ||
target="_blank" | ||
rel="noopener noreferrer" | ||
onClick={(e) => { | ||
if (onClick) { | ||
e.preventDefault(); | ||
onClick(); | ||
} | ||
closeAction(); | ||
}} | ||
> | ||
<button | ||
className='ExternalLink-Close' | ||
onClick={ closeAction } | ||
> | ||
<FormattedMessage | ||
id='cancel' | ||
description='Text for Cancel-Buttons' | ||
defaultMessage='Abbrechen' | ||
/> | ||
</button> | ||
<h1>{ title }</h1> | ||
<p>{ text }</p> | ||
<a | ||
href={ link } | ||
target='_blank' | ||
rel='noopener noreferrer' | ||
onClick={ closeAction } | ||
> | ||
<FormattedMessage | ||
id='cityinfo.openLink' | ||
description='Text for External Link-Buttons (from City Details View)' | ||
defaultMessage='Seite öffnen' | ||
/> | ||
</a> | ||
</div> | ||
<FormattedMessage | ||
id="cityinfo.openLink" | ||
description="Text for External Link-Buttons (from City Details View)" | ||
defaultMessage="Seite öffnen" | ||
/> | ||
</a> | ||
</div> | ||
); | ||
} | ||
} | ||
</div> | ||
); | ||
}; | ||
|
||
ExternalLinkOverlay.propTypes = { | ||
title: PropTypes.string, | ||
text: PropTypes.string, | ||
link: PropTypes.string, | ||
closeAction: PropTypes.func, | ||
}; | ||
|
||
export default ExternalLinkOverlay; |
Oops, something went wrong.