diff --git a/app/components/Footer.tsx b/app/components/Footer.tsx index d377b6f..29a6417 100644 --- a/app/components/Footer.tsx +++ b/app/components/Footer.tsx @@ -1,6 +1,6 @@ import { CircleX } from "lucide-react"; -import Link from "~/components/Link"; +import Link from "~/components/link"; import cn from "~/utils/cn"; interface FooterProps { @@ -28,7 +28,7 @@ export default function Footer({ url, debug, healthy }: FooterProps) {
Headplane is free. Please consider{" "}
-
+
donating
{" "}
to support development.{" "}
diff --git a/app/components/Link.tsx b/app/components/Link.tsx
deleted file mode 100644
index a090dd1..0000000
--- a/app/components/Link.tsx
+++ /dev/null
@@ -1,32 +0,0 @@
-import { ExternalLink } from "lucide-react";
-
-import cn from "~/utils/cn";
-
-export interface LinkProps {
- to: string;
- name: string;
- children: string;
- className?: string;
-}
-
-export default function Link({ to, name: alt, children, className }: LinkProps) {
- return (
-
- {children}
-
Click this button to copy the command.{" "}
@@ -112,6 +113,7 @@ export default function NoAccess({ linkedUserName, osValue }: NoAccessProps) {
You can also download Tailscale on the{" "}
diff --git a/app/routes/auth/login/config-error.tsx b/app/routes/auth/login/config-error.tsx
index 613947c..65213ac 100644
--- a/app/routes/auth/login/config-error.tsx
+++ b/app/routes/auth/login/config-error.tsx
@@ -2,7 +2,7 @@ import { AlertCircle, CloudOff } from "lucide-react";
import Card from "~/components/Card";
import Code from "~/components/Code";
-import Link from "~/components/Link";
+import Link from "~/components/link";
import { OidcConnectorError } from "~/server/web/oidc-connector";
export function OidcDiscoveryFailedNotice() {
@@ -35,6 +35,7 @@ export function OidcConfigErrorNotice({ errors }: { errors: OidcConnectorError[]
))}
{" "}
diff --git a/app/routes/auth/login/page.tsx b/app/routes/auth/login/page.tsx
index 3bc6727..3df13c4 100644
--- a/app/routes/auth/login/page.tsx
+++ b/app/routes/auth/login/page.tsx
@@ -1,12 +1,12 @@
import { AlertCircle } from "lucide-react";
import { useEffect, useState } from "react";
-import { Form, Link as RemixLink, redirect, useSearchParams } from "react-router";
+import { Form, redirect, useSearchParams } from "react-router";
import Button from "~/components/Button";
import Card from "~/components/Card";
import Code from "~/components/Code";
import Input from "~/components/Input";
-import Link from "~/components/Link";
+import Link from "~/components/link";
import { useLiveData } from "~/utils/live-data";
import type { Route } from "./+types/page";
@@ -103,6 +103,7 @@ export default function Page({ loaderData, actionData }: Route.ComponentProps) {
Headplane is configured to use secure cookies, but this site is being served over an
insecure connection and login will not work correctly.{" "}
@@ -138,7 +139,7 @@ export default function Page({ loaderData, actionData }: Route.ComponentProps) {
{isOidcConnectorEnabled ? (
-
Headscale supports adding custom DNS records to your Tailnet. As of now, only A{" "}
and AAAA records are supported.{" "}
-
+
Learn More
-
Subnets let you expose physical network routes onto Tailscale.{" "} - + Learn More
diff --git a/app/routes/machines/overview.tsx b/app/routes/machines/overview.tsx index e5f8455..2f9741f 100644 --- a/app/routes/machines/overview.tsx +++ b/app/routes/machines/overview.tsx @@ -3,7 +3,7 @@ import { useMemo, useState } from "react"; import Code from "~/components/Code"; import Input from "~/components/Input"; -import Link from "~/components/Link"; +import Link from "~/components/link"; import Tooltip from "~/components/Tooltip"; import { Capabilities } from "~/server/web/roles"; import cn from "~/utils/cn"; @@ -151,6 +151,7 @@ export default function Page({ loaderData }: Route.ComponentProps) {Manage the devices connected to your Tailnet.{" "} diff --git a/app/routes/settings/auth-keys/dialogs/add-auth-key.tsx b/app/routes/settings/auth-keys/dialogs/add-auth-key.tsx index c0701ae..3784b80 100644 --- a/app/routes/settings/auth-keys/dialogs/add-auth-key.tsx +++ b/app/routes/settings/auth-keys/dialogs/add-auth-key.tsx @@ -5,7 +5,7 @@ import Button from "~/components/Button"; import Code from "~/components/Code"; import Dialog from "~/components/Dialog"; import Input from "~/components/Input"; -import Link from "~/components/Link"; +import Link from "~/components/link"; import NumberInput from "~/components/NumberInput"; import Select from "~/components/Select"; import Switch from "~/components/Switch"; @@ -204,6 +204,7 @@ export default function AddAuthKey({ Devices authenticated with this key will be automatically removed once they go offline.{" "} diff --git a/app/routes/settings/auth-keys/overview.tsx b/app/routes/settings/auth-keys/overview.tsx index 4d82991..e6395f5 100644 --- a/app/routes/settings/auth-keys/overview.tsx +++ b/app/routes/settings/auth-keys/overview.tsx @@ -1,9 +1,8 @@ import { FileKey2 } from "lucide-react"; import { useMemo, useState } from "react"; -import { Link as RemixLink } from "react-router"; import Code from "~/components/Code"; -import Link from "~/components/Link"; +import Link from "~/components/link"; import Notice from "~/components/Notice"; import Select from "~/components/Select"; import TableList from "~/components/TableList"; @@ -167,9 +166,9 @@ export default function Page({ return (
-
-
Click this button to copy the command.{" "}
@@ -270,6 +271,7 @@ export default function Page({
You can also download Tailscale on the{" "}