1
0
forked from baron/baron-sso

ci: add code check badges and coverage reports

This commit is contained in:
2026-05-29 12:05:43 +09:00
parent c489c7c38f
commit a830242947
164 changed files with 9059 additions and 2012 deletions

View File

@@ -1,8 +1,6 @@
import axios from "axios";
import { shouldStartLoginRedirect } from "../../../common/core/auth";
import {
shouldSuppressDevelopmentSessionRedirect,
} from "../../../common/core/session";
import { shouldSuppressDevelopmentSessionRedirect } from "../../../common/core/session";
import { userManager } from "./auth";
let isRedirectingToLogin = false;

View File

@@ -1,5 +1,7 @@
const CLIENT_DEBUG_LOG_ENABLED = new Set(["1", "true", "yes", "y", "on"]).has(
String(import.meta.env.VITE_CLIENT_LOG_DEBUG ?? "").trim().toLowerCase(),
String(import.meta.env.VITE_CLIENT_LOG_DEBUG ?? "")
.trim()
.toLowerCase(),
);
export function debugLog(...args: Parameters<typeof console.debug>) {

View File

@@ -1,4 +1,8 @@
import { DEFAULT_LOCALE, LOCALE_STORAGE_KEY, type Locale } from "../../../common/core/i18n";
import {
DEFAULT_LOCALE,
LOCALE_STORAGE_KEY,
type Locale,
} from "../../../common/core/i18n";
function isLocale(value: string): value is Locale {
return value === "ko" || value === "en";

View File

@@ -1,11 +1,11 @@
import { describe, expect, it } from "vitest";
import {
isSuperAdminRole,
normalizeAdminRole,
ROLE_RP_ADMIN,
ROLE_SUPER_ADMIN,
ROLE_TENANT_ADMIN,
ROLE_USER,
isSuperAdminRole,
normalizeAdminRole,
} from "./roles";
describe("admin role helpers", () => {

View File

@@ -3,8 +3,8 @@ import {
readSessionExpiryEnabled,
SESSION_RENEW_THRESHOLD_MS,
shouldAttemptSlidingSessionRenew,
shouldSuppressDevelopmentSessionRedirect,
shouldAttemptUnlimitedSessionRenew,
shouldSuppressDevelopmentSessionRedirect,
writeSessionExpiryEnabled,
} from "./sessionSliding";

View File

@@ -1,9 +1,9 @@
export {
DEFAULT_SESSION_RENEW_THROTTLE_MS as SESSION_RENEW_THROTTLE_MS,
DEFAULT_SESSION_RENEW_THRESHOLD_MS as SESSION_RENEW_THRESHOLD_MS,
DEFAULT_SESSION_RENEW_THROTTLE_MS as SESSION_RENEW_THROTTLE_MS,
readSessionExpiryEnabled,
shouldAttemptSlidingSessionRenew,
shouldSuppressDevelopmentSessionRedirect,
shouldAttemptUnlimitedSessionRenew,
shouldSuppressDevelopmentSessionRedirect,
writeSessionExpiryEnabled,
} from "../../../common/core/session";

View File

@@ -1,7 +1,7 @@
import { describe, expect, it } from "vitest";
import {
type SortConfig,
compareNullableValues,
type SortConfig,
sortItems,
toggleSort,
} from "../../../common/core/utils";