Skip to content

Commit

Permalink
fix: suppression de la mention à react-helmet
Browse files Browse the repository at this point in the history
react@19 prendra en charge ces balises, en plus
  • Loading branch information
thom4parisot committed Dec 19, 2024
1 parent 9f0cb20 commit 7a5945f
Showing 1 changed file with 53 additions and 30 deletions.
83 changes: 53 additions & 30 deletions front/index.html
Original file line number Diff line number Diff line change
@@ -1,45 +1,68 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<link rel="icon" href="./favicon.ico">
<link rel="preconnect" href="https://analyseweb.huma-num.fr">
<meta http-equiv="x-ua-compatible" content="ie=edge">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<title data-react-helmet="true">Stylo</title>
<link rel="icon" type="image/png" sizes="32x32" href="./favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="./favicon-16x16.png">
<meta name="description" content="Stylo, online text editor for scholars">
<meta name="image" content="/favicon.ico">
<meta property="og:title" content="Stylo">
<meta property="og:description" content="Stylo, online text editor for scholars">
<meta property="og:image" content="/favicon.ico">
<meta name="twitter:card" content="summary_large_image">
<meta name="twitter:title" content="Stylo">
<meta name="twitter:description" content="Stylo, online text editor for scholars">
<meta name="twitter:image" content="/favicon.ico">
<meta charset="utf-8" />
<link rel="icon" href="./favicon.ico" />
<link rel="preconnect" href="https://analyseweb.huma-num.fr" />
<meta http-equiv="x-ua-compatible" content="ie=edge" />
<meta
name="viewport"
content="width=device-width, initial-scale=1, shrink-to-fit=no"
/>
<title>Stylo</title>
<link
rel="icon"
type="image/png"
sizes="32x32"
href="./favicon-32x32.png"
/>
<link
rel="icon"
type="image/png"
sizes="16x16"
href="./favicon-16x16.png"
/>
<meta name="description" content="Stylo, online text editor for scholars" />
<meta name="image" content="/favicon.ico" />
<meta property="og:title" content="Stylo" />
<meta
property="og:description"
content="Stylo, online text editor for scholars"
/>
<meta property="og:image" content="/favicon.ico" />
<meta name="twitter:card" content="summary_large_image" />
<meta name="twitter:title" content="Stylo" />
<meta
name="twitter:description"
content="Stylo, online text editor for scholars"
/>
<meta name="twitter:image" content="/favicon.ico" />
{{#if SNOWPACK_MATOMO}}
<!-- Matomo -->
<script>
var _paq = window._paq = window._paq || [];
var _paq = (window._paq = window._paq || [])
/* tracker methods like "setCustomDimension" should be called before "trackPageView" */
_paq.push(["setDoNotTrack", true]);
_paq.push(['requireConsent']);
_paq.push(['trackPageView']);
_paq.push(['enableLinkTracking']);
(function() {
var u="{{ SNOWPACK_MATOMO_URL }}";
_paq.push(['setTrackerUrl', u+'piwik.php']);
_paq.push(['setSiteId', '{{ SNOWPACK_MATOMO_SITE_ID }}']);
var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0];
g.async=true; g.src=u+'piwik.js'; s.parentNode.insertBefore(g,s);
})();
_paq.push(['setDoNotTrack', true])
_paq.push(['requireConsent'])
_paq.push(['trackPageView'])
_paq.push(['enableLinkTracking'])
;(function () {
var u = '{{ SNOWPACK_MATOMO_URL }}'
_paq.push(['setTrackerUrl', u + 'piwik.php'])
_paq.push(['setSiteId', '{{ SNOWPACK_MATOMO_SITE_ID }}'])
var d = document,
g = d.createElement('script'),
s = d.getElementsByTagName('script')[0]
g.async = true
g.src = u + 'piwik.js'
s.parentNode.insertBefore(g, s)
})()
</script>
<!-- End Matomo Code -->
{{/if}}
</head>
<body>
<div id="root" aria-live style="height: 100%;"></div>
<div id="root" aria-live style="height: 100%"></div>
<noscript>You need to enable JavaScript to run this app.</noscript>
<script type="module" src="./src/index.jsx"></script>
</body>
Expand Down

0 comments on commit 7a5945f

Please sign in to comment.