feat: ship a web app (#218)
* feat(orion): add endpoint for link metadata * refactor: cleanup comments * wip: plumbing for building a web app * setup deployment materials for web app * fix(web): favicon
This commit was merged in pull request #218.
This commit is contained in:
@@ -16,6 +16,7 @@ import { logError, toUserMessage } from "@/lib/errors";
|
||||
import { toast } from "sonner";
|
||||
import { PRIVACY_URL, SUPPORT_EMAIL, TERMS_URL } from "@/lib/constants";
|
||||
import { ArrowLeft } from "lucide-react";
|
||||
import { platform } from "@/lib/platform";
|
||||
|
||||
interface SettingsRowProps {
|
||||
icon: React.ReactNode;
|
||||
@@ -79,7 +80,7 @@ export default function SettingsPage() {
|
||||
const [version, setVersion] = useState<string>();
|
||||
|
||||
useEffect(() => {
|
||||
window.electronApp.getVersion().then(setVersion);
|
||||
platform.app.getVersion().then(setVersion);
|
||||
}, []);
|
||||
|
||||
const handleToggleEmailNotifications = async (checked: boolean) => {
|
||||
@@ -190,12 +191,12 @@ export default function SettingsPage() {
|
||||
<SettingsRow
|
||||
icon={<Shield className="size-4" />}
|
||||
label="Privacy Policy"
|
||||
onClick={() => window.electronLink.openExternal(PRIVACY_URL)}
|
||||
onClick={() => platform.link.openExternal(PRIVACY_URL)}
|
||||
/>
|
||||
<SettingsRow
|
||||
icon={<FileText className="size-4" />}
|
||||
label="Terms of Service"
|
||||
onClick={() => window.electronLink.openExternal(TERMS_URL)}
|
||||
onClick={() => platform.link.openExternal(TERMS_URL)}
|
||||
/>
|
||||
</SettingsGroup>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user