mirror of
https://gitea.tendokyu.moe/ppc/amnet.git
synced 2026-09-27 09:23:03 +03:00
more fun
This commit is contained in:
@@ -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(
|
||||
|
||||
@@ -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;
|
||||
Reference in New Issue
Block a user