forked from DGNum/infrastructure
Tom Hubrecht
ecbad0a638
This adds subdirectories for the different types of systems, for the modules and the machines
131 lines
6.3 KiB
Diff
131 lines
6.3 KiB
Diff
diff --git a/src/app/layout.tsx b/src/app/layout.tsx
|
|
index d4c1466..83a99c0 100644
|
|
--- a/src/app/layout.tsx
|
|
+++ b/src/app/layout.tsx
|
|
@@ -1,6 +1,5 @@
|
|
import { Metadata } from 'next'
|
|
import { Karla } from 'next/font/google'
|
|
-import { Analytics } from '@vercel/analytics/react'
|
|
|
|
import Egg from '/src/components/Egg/Egg'
|
|
import Settings from '/src/components/Settings/Settings'
|
|
@@ -44,7 +43,6 @@ const RootLayout = async ({ children }: { children: React.ReactNode }) => {
|
|
|
|
{children}
|
|
|
|
- <Analytics />
|
|
</body>
|
|
</html>
|
|
}
|
|
diff --git a/src/app/page.tsx b/src/app/page.tsx
|
|
index ced131b..6b01a5d 100644
|
|
--- a/src/app/page.tsx
|
|
+++ b/src/app/page.tsx
|
|
@@ -43,13 +43,9 @@ const Page = async () => {
|
|
<DownloadButtons />
|
|
|
|
<P><Trans i18nKey="about.content.p3" t={t} i18n={i18n}>_<a href="https://bengrant.dev" target="_blank" rel="noreferrer noopener author">_</a>_</Trans></P>
|
|
- <P><Trans i18nKey="about.content.p4" t={t} i18n={i18n}>_<a href="https://github.com/GRA0007/crab.fit" target="_blank" rel="noreferrer noopener">_</a>_<Link href="/privacy" rel="license">_</Link>_</Trans></P>
|
|
<P>{t('about.content.p6')}</P>
|
|
- <P>{t('about.content.p5')}</P>
|
|
</Content>
|
|
</Section>
|
|
-
|
|
- <Footer />
|
|
</>
|
|
}
|
|
|
|
diff --git a/src/app/privacy/GoogleTranslate.tsx b/src/app/privacy/GoogleTranslate.tsx
|
|
deleted file mode 100644
|
|
index 57f28c5..0000000
|
|
--- a/src/app/privacy/GoogleTranslate.tsx
|
|
+++ /dev/null
|
|
@@ -1,29 +0,0 @@
|
|
-'use client'
|
|
-
|
|
-import { useEffect, useState } from 'react'
|
|
-
|
|
-const TRANSLATION_DISCLAIMER = 'While the translated document is provided for your convenience, the English version as displayed at https://crab.fit is legally binding.'
|
|
-
|
|
-interface GoogleTranslateProps {
|
|
- children: React.ReactNode
|
|
- language: string
|
|
-}
|
|
-
|
|
-// Show a link to translate the privacy policy to the user's preferred language
|
|
-const GoogleTranslate = ({ language, children }: GoogleTranslateProps) => {
|
|
- const [content, setContent] = useState<string>()
|
|
-
|
|
- useEffect(() => {
|
|
- setContent(document.querySelector<HTMLDivElement>('#policy')?.innerText)
|
|
- }, [])
|
|
-
|
|
- return content ? <p>
|
|
- <a
|
|
- href={`https://translate.google.com/?sl=en&tl=${language.substring(0, 2)}&text=${encodeURIComponent(`${TRANSLATION_DISCLAIMER}\n\n${content}`)}&op=translate`}
|
|
- target="_blank"
|
|
- rel="noreferrer noopener"
|
|
- >{children}</a>
|
|
- </p> : null
|
|
-}
|
|
-
|
|
-export default GoogleTranslate
|
|
diff --git a/src/app/privacy/page.tsx b/src/app/privacy/page.tsx
|
|
index 6fa88a5..3a78935 100644
|
|
--- a/src/app/privacy/page.tsx
|
|
+++ b/src/app/privacy/page.tsx
|
|
@@ -1,6 +1,5 @@
|
|
import { Metadata } from 'next'
|
|
|
|
-import GoogleTranslate from '/src/app/privacy/GoogleTranslate'
|
|
import Button from '/src/components/Button/Button'
|
|
import Content from '/src/components/Content/Content'
|
|
import Footer from '/src/components/Footer/Footer'
|
|
@@ -28,8 +27,6 @@ const Page = async () => {
|
|
|
|
<h1>{t('privacy:name')}</h1>
|
|
|
|
- {!i18n.language.startsWith('en') && <GoogleTranslate language={i18n.language}>{t('privacy:translate')}</GoogleTranslate>}
|
|
-
|
|
<h3>Crab Fit</h3>
|
|
<div id="policy">
|
|
<P>This SERVICE is provided by Benjamin Grant at no cost and is intended for use as is.</P>
|
|
@@ -37,12 +34,7 @@ const Page = async () => {
|
|
<P>If you choose to use the Service, then you agree to the collection and use of information in relation to this policy. The Personal Information that is collected is used for providing and improving the Service. Your information will not be used or shared with anyone except as described in this Privacy Policy.</P>
|
|
|
|
<h2>Information Collection and Use</h2>
|
|
- <P>The Service uses third party services that may collect information used to identify you.</P>
|
|
- <P>Links to privacy policies of the third party service providers used by the Service:</P>
|
|
- <Ul>
|
|
- <li><a href="https://www.google.com/policies/privacy/" target="blank">Google Play Services</a> (only used for Google Calendar sync)</li>
|
|
- <li><a href="https://vercel.com/docs/concepts/analytics/privacy-policy" target="blank">Vercel Analytics</a></li>
|
|
- </Ul>
|
|
+ <P>The Service uses no third party services that may collect information used to identify you.</P>
|
|
|
|
<h2>Log Data</h2>
|
|
<P>When you use the Service, in the case of an error, data and information is collected to improve the Service, which may include your IP address, device name, operating system version, app configuration and the time and date of the error.</P>
|
|
@@ -51,16 +43,6 @@ const Page = async () => {
|
|
<P>Cookies are files with a small amount of data that are commonly used as anonymous unique identifiers. These are sent to your browser from the websites that you visit and are stored on your device's internal memory.</P>
|
|
<P>Cookies are used by Google Analytics to track you across the web and provide anonymous statistics to improve the Service.</P>
|
|
|
|
- <h2>Service Providers</h2>
|
|
- <P>Third-party companies may be employed for the following reasons:</P>
|
|
- <Ul>
|
|
- <li>To facilitate the Service</li>
|
|
- <li>To provide the Service on our behalf</li>
|
|
- <li>To perform Service-related services</li>
|
|
- <li>To assist in analyzing how the Service is used</li>
|
|
- </Ul>
|
|
- <P>To perform these tasks, the third parties may have access to your Personal Information, but are obligated not to disclose or use this information for any purpose except the above.</P>
|
|
-
|
|
<h2>Security</h2>
|
|
<P>Personal Information that is shared via the Service is protected, however remember that no method of transmission over the internet, or method of electronic storage is 100% secure and reliable, so take care when sharing Personal Information.</P>
|
|
<p className={styles.note}>Events that are created will be automatically permanently erased from storage after <strong>3 months</strong> of inactivity.</p>
|
|
@@ -76,7 +58,7 @@ const Page = async () => {
|
|
<P>Last updated: 2023-06-10</P>
|
|
|
|
<h2>Contact Us</h2>
|
|
- <P>If you have any questions or suggestions about the Privacy Policy, do not hesitate to contact us at <a href="mailto:contact@crab.fit">contact@crab.fit</a>.</P>
|
|
+ <P>If you have any questions or suggestions about the Privacy Policy, do not hesitate to contact us at <a href="mailto:contact@dgnum.eu">contact@dgnum.eu</a>.</P>
|
|
</div>
|
|
</Content>
|