mirror of
https://github.com/tale/headplane.git
synced 2026-08-24 11:36:31 +00:00
feat: refactor several components and clean up ui
This commit is contained in:
@@ -2,7 +2,7 @@ import { eq, isNotNull } from "drizzle-orm";
|
||||
|
||||
import log from "~/utils/log";
|
||||
|
||||
import type { Route } from "../../layouts/+types/dashboard";
|
||||
import type { Route } from "../../layout/+types/app";
|
||||
import { ephemeralNodes } from "./schema";
|
||||
|
||||
export async function pruneEphemeralNodes({ context, request }: Route.LoaderArgs) {
|
||||
|
||||
@@ -234,6 +234,7 @@ export class AuthService {
|
||||
* Get the Headscale API key for making API calls.
|
||||
* OIDC sessions use the configured oidc.headscale_api_key.
|
||||
* API key sessions use the user-provided key stored in the cookie.
|
||||
* TODO: Get rid of this AI garbage
|
||||
*/
|
||||
getHeadscaleApiKey(principal: Principal, oidcApiKey?: string): string {
|
||||
if (principal.kind === "api_key") {
|
||||
|
||||
Reference in New Issue
Block a user