This commit is contained in:
ppc
2024-11-18 22:00:54 +00:00
parent 2fe9238d02
commit 89101c5d5f
2 changed files with 45 additions and 1 deletions
+6 -1
View File
@@ -15,6 +15,7 @@ import {ThemeProvider} from "@/components/theme-provider.tsx";
import CardManager from "@/pages/card-manager.tsx";
import ServerCardIn from "@/pages/card-in-screen.tsx";
import ServerListing from "@/pages/server-listing.tsx";
import Privacy from "@/pages/privacy.tsx";
// iOS PWAs show the navigation bar when changing routes
// HashRouter doesn't have this issue as the URL never changes
@@ -38,7 +39,11 @@ const router = createHashRouter([
path: x,
element: <CardManager/>
};
})
}),
{
path: "/privacy",
element: <Privacy/>
}
])
createRoot(document.getElementById('root')!).render(
+39
View File
@@ -0,0 +1,39 @@
// Google Play forces a Privacy Policy even for closed tests...
import {Server} from "lucide-react";
import {useNavigate} from "react-router-dom";
import {Button} from "@/components/ui/button.tsx";
import {AMFooter} from "@/components/am-footer.tsx";
import {AMHeader} from "@/components/am-header.tsx";
function PrivacyPolicy() {
const navigate = useNavigate();
return (
<main className="flex flex-col gap-5 container min-h-screen py-10">
<AMHeader title="AMNet">
<Button variant="ghost" size={"default"} onClick={() => navigate('/')}>
<Server className="h-4 w-4 sm:mr-2"/>
<span className="hidden sm:block">Manage Servers</span>
</Button>
</AMHeader>
<div className="flex flex-col gap-4 w-full flex-grow">
<h4 className="font-semibold text-2xl">Privacy</h4>
<p>The AMNet card switcher collects and stores the following information locally (on-device):</p>
<ul className="list-disc">
<li>Server Addresses</li>
<li>Server Information (including machine name, identifiers and metrics that are cached and updated on each load)</li>
<li>Card Names and Access Codes</li>
</ul>
<p>The card switcher does <strong>NOT</strong> send any data to external servers or services, except to perform the card-in action where only the card number is transmitted.</p>
</div>
<AMFooter/>
</main>
)
}
export default PrivacyPolicy;