1
0
forked from baron/baron-sso

Biome check devfront (lint + format)

This commit is contained in:
2026-03-18 10:06:39 +09:00
parent d305398326
commit 551cd62808
4 changed files with 13 additions and 10 deletions

View File

@@ -11,12 +11,12 @@ import {
import { useEffect, useRef, useState } from "react";
import { useAuth } from "react-oidc-context";
import { NavLink, Outlet, useNavigate } from "react-router-dom";
import { fetchMe } from "../../features/auth/authApi";
import { t } from "../../lib/i18n";
import { resolveProfileRole } from "../../lib/role";
import LanguageSelector from "../common/LanguageSelector";
import { Toaster } from "../ui/toaster";
import { Badge } from "../ui/badge";
import { fetchMe } from "../../features/auth/authApi";
import { Toaster } from "../ui/toaster";
const navItems = [
{

View File

@@ -1,11 +1,11 @@
import { useQuery } from "@tanstack/react-query";
import {
User,
Shield,
Briefcase,
Mail,
Fingerprint,
Building2,
Fingerprint,
Mail,
Shield,
User,
} from "lucide-react";
import { useState } from "react";
import { useAuth } from "react-oidc-context";
@@ -16,8 +16,8 @@ import {
CardHeader,
CardTitle,
} from "../../components/ui/card";
import { fetchMe } from "../auth/authApi";
import { t } from "../../lib/i18n";
import { fetchMe } from "../auth/authApi";
function ProfilePage() {
const auth = useAuth();

View File

@@ -1,9 +1,9 @@
import { expect, test } from "@playwright/test";
import {
type Consent,
installDevApiMock,
makeClient,
seedAuth,
type Consent,
} from "./helpers/devfront-fixtures";
test.describe("DevFront consents", () => {

View File

@@ -124,10 +124,13 @@ export async function seedAuth(page: Page, role?: string) {
headers: { "Access-Control-Allow-Origin": "*" },
});
} else {
await route.fulfill({ status: 200, body: "ok", headers: { "Access-Control-Allow-Origin": "*" } });
await route.fulfill({
status: 200,
body: "ok",
headers: { "Access-Control-Allow-Origin": "*" },
});
}
});
}
function json(route: Route, payload: unknown, status = 200) {