repo
stringlengths
7
64
file_url
stringlengths
81
338
file_path
stringlengths
5
257
content
stringlengths
0
32.8k
language
stringclasses
1 value
license
stringclasses
7 values
commit_sha
stringlengths
40
40
retrieved_at
stringdate
2026-01-04 15:25:31
2026-01-05 01:50:38
truncated
bool
2 classes
alitajs/ant-design-plus
https://github.com/alitajs/ant-design-plus/blob/8a37f7aa5dff2ebdfe0b583ad2a34d75d01a5b60/src/send-code/style/index.ts
src/send-code/style/index.ts
import '../../style/index.less';
typescript
MIT
8a37f7aa5dff2ebdfe0b583ad2a34d75d01a5b60
2026-01-05T05:01:20.733925Z
false
alitajs/ant-design-plus
https://github.com/alitajs/ant-design-plus/blob/8a37f7aa5dff2ebdfe0b583ad2a34d75d01a5b60/src/send-code/locale/en_US.tsx
src/send-code/locale/en_US.tsx
export default { initText: 'Get Captcha', runText: 'Regain after {%s} second', resetText: 'Regain Captcha' };
typescript
MIT
8a37f7aa5dff2ebdfe0b583ad2a34d75d01a5b60
2026-01-05T05:01:20.733925Z
false
alitajs/ant-design-plus
https://github.com/alitajs/ant-design-plus/blob/8a37f7aa5dff2ebdfe0b583ad2a34d75d01a5b60/src/send-code/locale/zh_CN.tsx
src/send-code/locale/zh_CN.tsx
export default { initText: '获取验证码', runText: '{%s}秒后重新获取', resetText: '重新获取验证码' };
typescript
MIT
8a37f7aa5dff2ebdfe0b583ad2a34d75d01a5b60
2026-01-05T05:01:20.733925Z
false
alitajs/ant-design-plus
https://github.com/alitajs/ant-design-plus/blob/8a37f7aa5dff2ebdfe0b583ad2a34d75d01a5b60/src/send-code/demo/demo-03.tsx
src/send-code/demo/demo-03.tsx
import React, { FC, useState } from 'react'; import { SendCode } from '@alitajs/antd-plus'; const Example: FC = () => { const [start, setStart] = useState(false); function handleClick() { setStart(true); } return ( <SendCode start={start} storageKey="plus-send-code" onClick={handleC...
typescript
MIT
8a37f7aa5dff2ebdfe0b583ad2a34d75d01a5b60
2026-01-05T05:01:20.733925Z
false
alitajs/ant-design-plus
https://github.com/alitajs/ant-design-plus/blob/8a37f7aa5dff2ebdfe0b583ad2a34d75d01a5b60/src/send-code/demo/customize.tsx
src/send-code/demo/customize.tsx
import React, { FC, useState } from 'react'; import { SendCode } from '@alitajs/antd-plus'; const Example: FC = () => { const [start, setStart] = useState(false); function handleClick() { setStart(true); } return ( <SendCode start={start} second={15} initText="点击" runText="剩余{...
typescript
MIT
8a37f7aa5dff2ebdfe0b583ad2a34d75d01a5b60
2026-01-05T05:01:20.733925Z
false
alitajs/ant-design-plus
https://github.com/alitajs/ant-design-plus/blob/8a37f7aa5dff2ebdfe0b583ad2a34d75d01a5b60/src/send-code/demo/simple.tsx
src/send-code/demo/simple.tsx
import React, { FC, useState } from 'react'; import { SendCode } from '@alitajs/antd-plus'; const Example: FC = () => { const [start, setStart] = useState(false); function handleClick() { setStart(true); } return ( <SendCode start={start} onClick={handleClick} onEnd={() => { ...
typescript
MIT
8a37f7aa5dff2ebdfe0b583ad2a34d75d01a5b60
2026-01-05T05:01:20.733925Z
false
alitajs/ant-design-plus
https://github.com/alitajs/ant-design-plus/blob/8a37f7aa5dff2ebdfe0b583ad2a34d75d01a5b60/src/error-boundary/error-boundary.tsx
src/error-boundary/error-boundary.tsx
import React, { Component, ComponentType, ErrorInfo } from 'react'; export interface ErrorBoundaryProps { fallback: ComponentType<{ error: ErrorInfo; componentStack: string }>; onError?: (error: Error, componentStack: string) => void; } interface ErrorBoundaryState { hasError: boolean; error?: ErrorInfo; } f...
typescript
MIT
8a37f7aa5dff2ebdfe0b583ad2a34d75d01a5b60
2026-01-05T05:01:20.733925Z
false
alitajs/ant-design-plus
https://github.com/alitajs/ant-design-plus/blob/8a37f7aa5dff2ebdfe0b583ad2a34d75d01a5b60/src/error-boundary/index.tsx
src/error-boundary/index.tsx
import ErrorBoundary from './error-boundary'; export default ErrorBoundary;
typescript
MIT
8a37f7aa5dff2ebdfe0b583ad2a34d75d01a5b60
2026-01-05T05:01:20.733925Z
false
alitajs/ant-design-plus
https://github.com/alitajs/ant-design-plus/blob/8a37f7aa5dff2ebdfe0b583ad2a34d75d01a5b60/src/error-boundary/style/index.tsx
src/error-boundary/style/index.tsx
import './index.less';
typescript
MIT
8a37f7aa5dff2ebdfe0b583ad2a34d75d01a5b60
2026-01-05T05:01:20.733925Z
false
alitajs/ant-design-plus
https://github.com/alitajs/ant-design-plus/blob/8a37f7aa5dff2ebdfe0b583ad2a34d75d01a5b60/src/error-boundary/demo/demo1.tsx
src/error-boundary/demo/demo1.tsx
import React, { FC, useState } from 'react'; import { Button } from 'antd'; import { ErrorBoundary } from '@alitajs/antd-plus'; const ErrorComponent: FC = () => { const [fail, setFail] = useState(false); if (fail) { throw new Error('This is an error from render.'); } return ( <div> <span style=...
typescript
MIT
8a37f7aa5dff2ebdfe0b583ad2a34d75d01a5b60
2026-01-05T05:01:20.733925Z
false
alitajs/ant-design-plus
https://github.com/alitajs/ant-design-plus/blob/8a37f7aa5dff2ebdfe0b583ad2a34d75d01a5b60/src/authorized/index.tsx
src/authorized/index.tsx
import Authorized from './authorized'; import Policy from '@pansy/policy'; import checkAuthority from './check-authority'; export { Policy }; export { checkAuthority }; export default Authorized;
typescript
MIT
8a37f7aa5dff2ebdfe0b583ad2a34d75d01a5b60
2026-01-05T05:01:20.733925Z
false
alitajs/ant-design-plus
https://github.com/alitajs/ant-design-plus/blob/8a37f7aa5dff2ebdfe0b583ad2a34d75d01a5b60/src/authorized/authorized.tsx
src/authorized/authorized.tsx
import React, { FC, ReactNode } from 'react'; import Policy from '@pansy/policy'; import isFunction from 'lodash/isFunction'; import checkAuthority, { Authority } from './check-authority'; export interface AuthorizedProps { authority?: Authority; noMatch?: ReactNode; policy?: Policy; } const Authorized: FC<Auth...
typescript
MIT
8a37f7aa5dff2ebdfe0b583ad2a34d75d01a5b60
2026-01-05T05:01:20.733925Z
false
alitajs/ant-design-plus
https://github.com/alitajs/ant-design-plus/blob/8a37f7aa5dff2ebdfe0b583ad2a34d75d01a5b60/src/authorized/check-authority.tsx
src/authorized/check-authority.tsx
import Policy from '@pansy/policy'; import isArray from 'lodash/isArray'; import isString from 'lodash/isString'; // 权限 export type Authority = string[] | string; /** * 权限检查方法 * @param { 权限判定 | Permission judgment } authority * @param { 权限验证方法 | no pass components } policy */ const checkAuthority = (policy: Polic...
typescript
MIT
8a37f7aa5dff2ebdfe0b583ad2a34d75d01a5b60
2026-01-05T05:01:20.733925Z
false
alitajs/ant-design-plus
https://github.com/alitajs/ant-design-plus/blob/8a37f7aa5dff2ebdfe0b583ad2a34d75d01a5b60/src/authorized/style/index.tsx
src/authorized/style/index.tsx
import '../../style/index.less';
typescript
MIT
8a37f7aa5dff2ebdfe0b583ad2a34d75d01a5b60
2026-01-05T05:01:20.733925Z
false
alitajs/ant-design-plus
https://github.com/alitajs/ant-design-plus/blob/8a37f7aa5dff2ebdfe0b583ad2a34d75d01a5b60/src/authorized/demo/customize.tsx
src/authorized/demo/customize.tsx
import React, { FC } from 'react'; import { Authorized } from '@alitajs/antd-plus'; import Policy from '@pansy/policy'; const Auth = (props: any) => { const actions = [ { module: 'module1', action: 'action1' }, { module: 'module1', action: 'action2' }, { module: 'module1', action: 'action3' }, { modu...
typescript
MIT
8a37f7aa5dff2ebdfe0b583ad2a34d75d01a5b60
2026-01-05T05:01:20.733925Z
false
alitajs/ant-design-plus
https://github.com/alitajs/ant-design-plus/blob/8a37f7aa5dff2ebdfe0b583ad2a34d75d01a5b60/src/authorized/demo/simple.tsx
src/authorized/demo/simple.tsx
import React, { FC } from 'react'; import { Button } from 'antd'; import { Authorized } from '@alitajs/antd-plus'; import Policy from '@pansy/policy'; const Auth = (props: any) => { const actions = [ { module: 'module1', action: 'action1' }, { module: 'module1', action: 'action2' }, { module: 'module1', ...
typescript
MIT
8a37f7aa5dff2ebdfe0b583ad2a34d75d01a5b60
2026-01-05T05:01:20.733925Z
false
alitajs/ant-design-plus
https://github.com/alitajs/ant-design-plus/blob/8a37f7aa5dff2ebdfe0b583ad2a34d75d01a5b60/src/button-list/button-list.tsx
src/button-list/button-list.tsx
import React, { useState } from 'react'; import classNames from 'classnames'; import { Button, Dropdown, Menu } from 'antd'; import { MoreOutlined, DownOutlined } from '@ant-design/icons'; import { ButtonSize, ButtonProps } from 'antd/lib/button'; export interface ActionButtonProps extends ButtonProps { text: string...
typescript
MIT
8a37f7aa5dff2ebdfe0b583ad2a34d75d01a5b60
2026-01-05T05:01:20.733925Z
false
alitajs/ant-design-plus
https://github.com/alitajs/ant-design-plus/blob/8a37f7aa5dff2ebdfe0b583ad2a34d75d01a5b60/src/button-list/index.tsx
src/button-list/index.tsx
import ButtonList from './button-list'; export default ButtonList;
typescript
MIT
8a37f7aa5dff2ebdfe0b583ad2a34d75d01a5b60
2026-01-05T05:01:20.733925Z
false
alitajs/ant-design-plus
https://github.com/alitajs/ant-design-plus/blob/8a37f7aa5dff2ebdfe0b583ad2a34d75d01a5b60/src/button-list/style/index.tsx
src/button-list/style/index.tsx
import './index.less';
typescript
MIT
8a37f7aa5dff2ebdfe0b583ad2a34d75d01a5b60
2026-01-05T05:01:20.733925Z
false
alitajs/ant-design-plus
https://github.com/alitajs/ant-design-plus/blob/8a37f7aa5dff2ebdfe0b583ad2a34d75d01a5b60/src/button-list/demo/simple.tsx
src/button-list/demo/simple.tsx
import React, { FC } from 'react'; import { ButtonList } from '@alitajs/antd-plus'; const Example: FC = () => { return ( <ButtonList size="small" list={[ { text: '新增', type: 'primary', onClick: () => console.log(1) }, { text: '修改', type: 'default', onClick: () => console.log(2) }, ...
typescript
MIT
8a37f7aa5dff2ebdfe0b583ad2a34d75d01a5b60
2026-01-05T05:01:20.733925Z
false
alitajs/ant-design-plus
https://github.com/alitajs/ant-design-plus/blob/8a37f7aa5dff2ebdfe0b583ad2a34d75d01a5b60/plugins/umi-plugin-antd-plus.ts
plugins/umi-plugin-antd-plus.ts
import { IApi } from 'umi'; export default (api: IApi) => { api.describe({ key: 'sensoroDesign', config: { schema(joi) { return joi.object({ dark: joi.boolean(), compact: joi.boolean() }); } } }); api.modifyBabelPresetOpts((opts) => { return { ...
typescript
MIT
8a37f7aa5dff2ebdfe0b583ad2a34d75d01a5b60
2026-01-05T05:01:20.733925Z
false
halolight/halolight
https://github.com/halolight/halolight/blob/b923ab0d92fb2fcfd83c5bead80a9a125f252c10/vitest.config.ts
vitest.config.ts
import react from "@vitejs/plugin-react" import { resolve } from "path" import { defineConfig } from "vitest/config" export default defineConfig({ plugins: [react()], test: { globals: true, environment: "jsdom", setupFiles: ["./src/__tests__/setup.ts"], include: ["src/**/*.{test,spec}.{ts,tsx}"], ...
typescript
MIT
b923ab0d92fb2fcfd83c5bead80a9a125f252c10
2026-01-05T05:01:18.490502Z
false
halolight/halolight
https://github.com/halolight/halolight/blob/b923ab0d92fb2fcfd83c5bead80a9a125f252c10/src/middleware.ts
src/middleware.ts
import type { NextRequest } from "next/server" import { NextResponse } from "next/server" import { isAuthRoute as checkAuthRoute, isPublicRoute as checkPublicRoute, } from "@/config/routes" /** * 安全响应头配置 * 包含 CSP、XSS 防护、点击劫持防护等 */ function addSecurityHeaders(response: NextResponse): NextResponse { // Content...
typescript
MIT
b923ab0d92fb2fcfd83c5bead80a9a125f252c10
2026-01-05T05:01:18.490502Z
false
halolight/halolight
https://github.com/halolight/halolight/blob/b923ab0d92fb2fcfd83c5bead80a9a125f252c10/src/app/layout.tsx
src/app/layout.tsx
import "./globals.css"; import type { Metadata, Viewport } from "next"; import localFont from "next/font/local"; import Script from "next/script"; import { AppProviders } from "@/providers/app-providers"; // 使用本地字体,避免依赖 Google Fonts(大陆访问受限) // 字体文件位于 public/fonts 目录 // 只预加载 Regular 字重,其他按需加载以减少首屏资源 const inter = loc...
typescript
MIT
b923ab0d92fb2fcfd83c5bead80a9a125f252c10
2026-01-05T05:01:18.490502Z
false
halolight/halolight
https://github.com/halolight/halolight/blob/b923ab0d92fb2fcfd83c5bead80a9a125f252c10/src/app/error.tsx
src/app/error.tsx
"use client" import { motion } from "framer-motion" import { AlertTriangle, Home, RefreshCw } from "lucide-react" import { useEffect } from "react" import { Button } from "@/components/ui/button" export default function Error({ error, reset, }: { error: Error & { digest?: string } reset: () => void }) { us...
typescript
MIT
b923ab0d92fb2fcfd83c5bead80a9a125f252c10
2026-01-05T05:01:18.490502Z
false
halolight/halolight
https://github.com/halolight/halolight/blob/b923ab0d92fb2fcfd83c5bead80a9a125f252c10/src/app/not-found.tsx
src/app/not-found.tsx
import { NotFoundContent } from "@/components/not-found-content" export default function NotFound() { return <NotFoundContent /> }
typescript
MIT
b923ab0d92fb2fcfd83c5bead80a9a125f252c10
2026-01-05T05:01:18.490502Z
false
halolight/halolight
https://github.com/halolight/halolight/blob/b923ab0d92fb2fcfd83c5bead80a9a125f252c10/src/app/(auth)/layout.tsx
src/app/(auth)/layout.tsx
import * as React from "react" // Cloudflare Pages 需要 Edge Runtime // export const runtime = "edge" // import { Footer } from "@/components/layout/footer" export default function AuthLayout({ children, }: { children: React.ReactNode }) { return ( <div className="relative h-dvh bg-background overflow-hidde...
typescript
MIT
b923ab0d92fb2fcfd83c5bead80a9a125f252c10
2026-01-05T05:01:18.490502Z
false
halolight/halolight
https://github.com/halolight/halolight/blob/b923ab0d92fb2fcfd83c5bead80a9a125f252c10/src/app/(auth)/login/page.tsx
src/app/(auth)/login/page.tsx
"use client" import { motion } from "framer-motion" import { Chrome, Eye, EyeOff, Github, Loader2, Lock, Mail, MessageCircle, Sparkles, User, } from "lucide-react" import Link from "next/link" import { useRouter, useSearchParams } from "next/navigation" import * as React from "react" import { Auth...
typescript
MIT
b923ab0d92fb2fcfd83c5bead80a9a125f252c10
2026-01-05T05:01:18.490502Z
false
halolight/halolight
https://github.com/halolight/halolight/blob/b923ab0d92fb2fcfd83c5bead80a9a125f252c10/src/app/(auth)/reset-password/page.tsx
src/app/(auth)/reset-password/page.tsx
"use client" import { motion } from "framer-motion" import { ArrowLeft, Check, CheckCircle2, Eye, EyeOff, Loader2, Lock, ShieldCheck, Sparkles, X } from "lucide-react" import Link from "next/link" import { useRouter, useSearchParams } from "next/navigation" import * as React from "react" import { AuthShell } from "@/...
typescript
MIT
b923ab0d92fb2fcfd83c5bead80a9a125f252c10
2026-01-05T05:01:18.490502Z
false
halolight/halolight
https://github.com/halolight/halolight/blob/b923ab0d92fb2fcfd83c5bead80a9a125f252c10/src/app/(auth)/forgot-password/page.tsx
src/app/(auth)/forgot-password/page.tsx
"use client" import { motion } from "framer-motion" import { ArrowLeft, CheckCircle2, Loader2, Mail, Shield, Sparkles } from "lucide-react" import Link from "next/link" import * as React from "react" import { AuthShell } from "@/components/auth/auth-shell" import { Button } from "@/components/ui/button" import { Card...
typescript
MIT
b923ab0d92fb2fcfd83c5bead80a9a125f252c10
2026-01-05T05:01:18.490502Z
false
halolight/halolight
https://github.com/halolight/halolight/blob/b923ab0d92fb2fcfd83c5bead80a9a125f252c10/src/app/(auth)/register/page.tsx
src/app/(auth)/register/page.tsx
"use client" import { motion } from "framer-motion" import { Check, Chrome, Eye, EyeOff, Github, Loader2, Lock, Mail, MessageCircle, Phone, Sparkles, User, X, } from "lucide-react" import Link from "next/link" import { useRouter } from "next/navigation" import * as React from "react" import ...
typescript
MIT
b923ab0d92fb2fcfd83c5bead80a9a125f252c10
2026-01-05T05:01:18.490502Z
false
halolight/halolight
https://github.com/halolight/halolight/blob/b923ab0d92fb2fcfd83c5bead80a9a125f252c10/src/app/(legal)/layout.tsx
src/app/(legal)/layout.tsx
import * as React from "react" import { LegalLayoutContent } from "@/components/layout/legal-layout-content" // Cloudflare Pages 需要 Edge Runtime // export const runtime = "edge" interface LegalLayoutProps { children: React.ReactNode } export default function LegalLayout({ children }: LegalLayoutProps) { return ...
typescript
MIT
b923ab0d92fb2fcfd83c5bead80a9a125f252c10
2026-01-05T05:01:18.490502Z
false
halolight/halolight
https://github.com/halolight/halolight/blob/b923ab0d92fb2fcfd83c5bead80a9a125f252c10/src/app/(legal)/terms/page.tsx
src/app/(legal)/terms/page.tsx
import { Metadata } from "next" export const metadata: Metadata = { title: "服务条款 | Admin Pro", description: "Admin Pro 服务条款", } export default function TermsPage() { return ( <article className="prose prose-slate dark:prose-invert max-w-none"> <h1 className="text-3xl font-bold tracking-tight text-fore...
typescript
MIT
b923ab0d92fb2fcfd83c5bead80a9a125f252c10
2026-01-05T05:01:18.490502Z
false
halolight/halolight
https://github.com/halolight/halolight/blob/b923ab0d92fb2fcfd83c5bead80a9a125f252c10/src/app/(legal)/privacy/page.tsx
src/app/(legal)/privacy/page.tsx
import { Metadata } from "next" export const metadata: Metadata = { title: "隐私政策 | Admin Pro", description: "Admin Pro 隐私政策", } export default function PrivacyPage() { return ( <article className="prose prose-slate dark:prose-invert max-w-none"> <h1 className="text-3xl font-bold tracking-tight text-fo...
typescript
MIT
b923ab0d92fb2fcfd83c5bead80a9a125f252c10
2026-01-05T05:01:18.490502Z
false
halolight/halolight
https://github.com/halolight/halolight/blob/b923ab0d92fb2fcfd83c5bead80a9a125f252c10/src/app/(dashboard)/layout.tsx
src/app/(dashboard)/layout.tsx
import * as React from "react" import { AdminLayout } from "@/components/layout/admin-layout" // Cloudflare Pages 需要 Edge Runtime // export const runtime = "edge" interface DashboardLayoutProps { children: React.ReactNode } export default function DashboardLayout({ children }: DashboardLayoutProps) { return <Ad...
typescript
MIT
b923ab0d92fb2fcfd83c5bead80a9a125f252c10
2026-01-05T05:01:18.490502Z
false
halolight/halolight
https://github.com/halolight/halolight/blob/b923ab0d92fb2fcfd83c5bead80a9a125f252c10/src/app/(dashboard)/page.tsx
src/app/(dashboard)/page.tsx
"use client" import dynamic from "next/dynamic" import { Skeleton } from "@/components/ui/skeleton" // 懒加载 Dashboard 组件,提升首屏加载性能 const ConfigurableDashboard = dynamic( () => import("@/components/dashboard").then((mod) => mod.ConfigurableDashboard), { loading: () => ( <div className="space-y-4"> ...
typescript
MIT
b923ab0d92fb2fcfd83c5bead80a9a125f252c10
2026-01-05T05:01:18.490502Z
false
halolight/halolight
https://github.com/halolight/halolight/blob/b923ab0d92fb2fcfd83c5bead80a9a125f252c10/src/app/(dashboard)/settings/page.tsx
src/app/(dashboard)/settings/page.tsx
"use client" import { motion } from "framer-motion" import { Bell, Database, Globe, Key, Palette, Shield, User, } from "lucide-react" import * as React from "react" import { Badge } from "@/components/ui/badge" import { Button } from "@/components/ui/button" import { Card, CardContent, CardDescription, ...
typescript
MIT
b923ab0d92fb2fcfd83c5bead80a9a125f252c10
2026-01-05T05:01:18.490502Z
false
halolight/halolight
https://github.com/halolight/halolight/blob/b923ab0d92fb2fcfd83c5bead80a9a125f252c10/src/app/(dashboard)/settings/teams/page.tsx
src/app/(dashboard)/settings/teams/page.tsx
"use client" import { motion } from "framer-motion" import { AlertCircle, Loader2, MoreHorizontal, Pencil, Plus, Trash2, Users, } from "lucide-react" import Link from "next/link" import * as React from "react" import { AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, Aler...
typescript
MIT
b923ab0d92fb2fcfd83c5bead80a9a125f252c10
2026-01-05T05:01:18.490502Z
false
halolight/halolight
https://github.com/halolight/halolight/blob/b923ab0d92fb2fcfd83c5bead80a9a125f252c10/src/app/(dashboard)/settings/teams/roles/page.tsx
src/app/(dashboard)/settings/teams/roles/page.tsx
"use client" import { motion } from "framer-motion" import { AlertCircle, Check, ChevronLeft, Loader2, MoreHorizontal, Pencil, Plus, Shield, Trash2, Users, } from "lucide-react" import Link from "next/link" import * as React from "react" import { AlertDialog, AlertDialogAction, AlertDialogCa...
typescript
MIT
b923ab0d92fb2fcfd83c5bead80a9a125f252c10
2026-01-05T05:01:18.490502Z
false
halolight/halolight
https://github.com/halolight/halolight/blob/b923ab0d92fb2fcfd83c5bead80a9a125f252c10/src/app/(dashboard)/messages/page.tsx
src/app/(dashboard)/messages/page.tsx
"use client" import { motion } from "framer-motion" import { Archive, File, Forward, Inbox, Loader2, Mail, MailOpen, Plus, Reply, Search, Send, Star, Trash2, } from "lucide-react" import * as React from "react" import { Avatar, AvatarFallback, AvatarImage } from "@/components/ui/avatar" impo...
typescript
MIT
b923ab0d92fb2fcfd83c5bead80a9a125f252c10
2026-01-05T05:01:18.490502Z
false
halolight/halolight
https://github.com/halolight/halolight/blob/b923ab0d92fb2fcfd83c5bead80a9a125f252c10/src/app/(dashboard)/files/page.tsx
src/app/(dashboard)/files/page.tsx
"use client" import { AnimatePresence, motion } from "framer-motion" import { ChevronRight, Clock, Download, Edit, File, FileArchive, FileAudio, FileImage, FileVideo, FolderOpen, FolderPlus, Grid, HardDrive, Home, Info, List, Loader2, MoreHorizontal, Search, Share2, Trash2, ...
typescript
MIT
b923ab0d92fb2fcfd83c5bead80a9a125f252c10
2026-01-05T05:01:18.490502Z
true
halolight/halolight
https://github.com/halolight/halolight/blob/b923ab0d92fb2fcfd83c5bead80a9a125f252c10/src/app/(dashboard)/profile/page.tsx
src/app/(dashboard)/profile/page.tsx
"use client" import { motion } from "framer-motion" import { Bell, Building, Camera, Key, Loader2, Mail, MapPin, Phone, Shield, User, } from "lucide-react" import * as React from "react" import { Avatar, AvatarFallback, AvatarImage } from "@/components/ui/avatar" import { Badge } from "@/component...
typescript
MIT
b923ab0d92fb2fcfd83c5bead80a9a125f252c10
2026-01-05T05:01:18.490502Z
false
halolight/halolight
https://github.com/halolight/halolight/blob/b923ab0d92fb2fcfd83c5bead80a9a125f252c10/src/app/(dashboard)/docs/page.tsx
src/app/(dashboard)/docs/page.tsx
"use client" import { motion } from "framer-motion" import { BarChart, Book, Calendar, ChevronRight, Code, ExternalLink, FileText, FolderOpen, MessageSquare, Search, Settings, Shield, Users, } from "lucide-react" import Link from "next/link" import * as React from "react" import { Badge } fr...
typescript
MIT
b923ab0d92fb2fcfd83c5bead80a9a125f252c10
2026-01-05T05:01:18.490502Z
false
halolight/halolight
https://github.com/halolight/halolight/blob/b923ab0d92fb2fcfd83c5bead80a9a125f252c10/src/app/(dashboard)/accounts/page.tsx
src/app/(dashboard)/accounts/page.tsx
"use client" import { Check, Crown, Shield, UserRoundCheck } from "lucide-react" import * as React from "react" import { Badge } from "@/components/ui/badge" import { Button } from "@/components/ui/button" import { Card, CardContent, CardDescription, CardHeader, CardTitle } from "@/components/ui/card" import { Separa...
typescript
MIT
b923ab0d92fb2fcfd83c5bead80a9a125f252c10
2026-01-05T05:01:18.490502Z
false
halolight/halolight
https://github.com/halolight/halolight/blob/b923ab0d92fb2fcfd83c5bead80a9a125f252c10/src/app/(dashboard)/users/page.tsx
src/app/(dashboard)/users/page.tsx
"use client" import { zodResolver } from "@hookform/resolvers/zod" import { motion } from "framer-motion" import { AlertCircle, Loader2, Mail, MoreHorizontal, Pencil, Plus, Shield, Trash2, } from "lucide-react" import * as React from "react" import { FormProvider, useForm, type UseFormReturn, useWatch ...
typescript
MIT
b923ab0d92fb2fcfd83c5bead80a9a125f252c10
2026-01-05T05:01:18.490502Z
false
halolight/halolight
https://github.com/halolight/halolight/blob/b923ab0d92fb2fcfd83c5bead80a9a125f252c10/src/app/(dashboard)/documents/page.tsx
src/app/(dashboard)/documents/page.tsx
"use client" import { AnimatePresence, motion } from "framer-motion" import { Clock, Download, Edit, Eye, File, FileCode, FileImage, FileSpreadsheet, FileText, FolderOpen, Grid, List, Loader2, Plus, Search, Share2, Star, StarOff, Tag, Trash2, User, Users, X, } from "lucide...
typescript
MIT
b923ab0d92fb2fcfd83c5bead80a9a125f252c10
2026-01-05T05:01:18.490502Z
true
halolight/halolight
https://github.com/halolight/halolight/blob/b923ab0d92fb2fcfd83c5bead80a9a125f252c10/src/app/(dashboard)/notifications/page.tsx
src/app/(dashboard)/notifications/page.tsx
"use client" import { motion } from "framer-motion" import { AlertCircle, Bell, Check, ClipboardList, Info, Loader2, MessageSquare, MoreHorizontal, Settings, Trash2, User, } from "lucide-react" import * as React from "react" import { Badge } from "@/components/ui/badge" import { Button } from "@...
typescript
MIT
b923ab0d92fb2fcfd83c5bead80a9a125f252c10
2026-01-05T05:01:18.490502Z
false
halolight/halolight
https://github.com/halolight/halolight/blob/b923ab0d92fb2fcfd83c5bead80a9a125f252c10/src/app/(dashboard)/calendar/page.tsx
src/app/(dashboard)/calendar/page.tsx
"use client" import { motion } from "framer-motion" import { Calendar as CalendarIcon, ChevronLeft, ChevronRight, Clock, Loader2, MapPin, Plus, Users, Video, } from "lucide-react" import * as React from "react" import { Badge } from "@/components/ui/badge" import { Button } from "@/components/ui/but...
typescript
MIT
b923ab0d92fb2fcfd83c5bead80a9a125f252c10
2026-01-05T05:01:18.490502Z
false
halolight/halolight
https://github.com/halolight/halolight/blob/b923ab0d92fb2fcfd83c5bead80a9a125f252c10/src/app/(dashboard)/analytics/page.tsx
src/app/(dashboard)/analytics/page.tsx
"use client" import { motion } from "framer-motion" import { Clock, Eye, MousePointerClick, TrendingDown, TrendingUp, Users, } from "lucide-react" import * as React from "react" import { Area, AreaChart, Bar, BarChart, CartesianGrid, Line, LineChart, ResponsiveContainer, Tooltip, XAxis,...
typescript
MIT
b923ab0d92fb2fcfd83c5bead80a9a125f252c10
2026-01-05T05:01:18.490502Z
false
halolight/halolight
https://github.com/halolight/halolight/blob/b923ab0d92fb2fcfd83c5bead80a9a125f252c10/src/mock/team.ts
src/mock/team.ts
import Mock from "mockjs" // 权限分组定义 export const permissionGroups = [ { group: "仪表盘", permissions: [{ key: "dashboard:view", label: "查看仪表盘" }], }, { group: "用户管理", permissions: [ { key: "users:view", label: "查看用户" }, { key: "users:create", label: "创建用户" }, { key: "users:edit", l...
typescript
MIT
b923ab0d92fb2fcfd83c5bead80a9a125f252c10
2026-01-05T05:01:18.490502Z
false
halolight/halolight
https://github.com/halolight/halolight/blob/b923ab0d92fb2fcfd83c5bead80a9a125f252c10/src/mock/message.ts
src/mock/message.ts
import Mock from "mockjs" // 生成会话数据的辅助函数 function generateConversation() { const type = Mock.Random.pick(["private", "group"]) as "private" | "group" const name = type === "group" ? Mock.Random.ctitle(3, 6) + "群" : Mock.Random.cname() return { id: Mock.Random.guid(), type, name, avatar: Mock.Ran...
typescript
MIT
b923ab0d92fb2fcfd83c5bead80a9a125f252c10
2026-01-05T05:01:18.490502Z
false
halolight/halolight
https://github.com/halolight/halolight/blob/b923ab0d92fb2fcfd83c5bead80a9a125f252c10/src/mock/calendar.ts
src/mock/calendar.ts
import Mock from "mockjs" // 日历事件列表 Mock.mock("/api/calendar/events", "get", () => { const events = [] const now = new Date() const currentYear = now.getFullYear() const currentMonth = now.getMonth() const currentDay = now.getDate() // 生成过去几天的事件(3-5个) for (let i = 0; i < 5; i++) { const daysAgo = Mo...
typescript
MIT
b923ab0d92fb2fcfd83c5bead80a9a125f252c10
2026-01-05T05:01:18.490502Z
false
halolight/halolight
https://github.com/halolight/halolight/blob/b923ab0d92fb2fcfd83c5bead80a9a125f252c10/src/mock/dashboard.ts
src/mock/dashboard.ts
import Mock from "mockjs" // 仪表盘统计数据 Mock.mock("/api/dashboard/stats", "get", () => { return { code: 200, message: "success", data: Mock.mock({ totalUsers: "@integer(1000, 50000)", totalRevenue: "@integer(100000, 9999999)", totalOrders: "@integer(500, 10000)", conversionRate: "@fl...
typescript
MIT
b923ab0d92fb2fcfd83c5bead80a9a125f252c10
2026-01-05T05:01:18.490502Z
false
halolight/halolight
https://github.com/halolight/halolight/blob/b923ab0d92fb2fcfd83c5bead80a9a125f252c10/src/mock/notification.ts
src/mock/notification.ts
import Mock from "mockjs" interface NotificationItem { id: string type: string title: string content: string read: boolean time: string createdAt: string sender: { id: string name: string avatar: string } } // 通知列表 Mock.mock("/api/notifications", "get", () => { const notifications: Not...
typescript
MIT
b923ab0d92fb2fcfd83c5bead80a9a125f252c10
2026-01-05T05:01:18.490502Z
false
halolight/halolight
https://github.com/halolight/halolight/blob/b923ab0d92fb2fcfd83c5bead80a9a125f252c10/src/mock/file.ts
src/mock/file.ts
import Mock from "mockjs" // 文件类型配置 const fileTypeConfig = { folder: { extensions: [""], mime: "folder" }, image: { extensions: [".jpg", ".png", ".gif", ".webp"], mime: "image/jpeg" }, video: { extensions: [".mp4", ".mov", ".avi"], mime: "video/mp4" }, audio: { extensions: [".mp3", ".wav", ".flac"], mime: "aud...
typescript
MIT
b923ab0d92fb2fcfd83c5bead80a9a125f252c10
2026-01-05T05:01:18.490502Z
false
halolight/halolight
https://github.com/halolight/halolight/blob/b923ab0d92fb2fcfd83c5bead80a9a125f252c10/src/mock/document.ts
src/mock/document.ts
import Mock from "mockjs" const folders = ["项目文档", "设计资源", "技术文档", "报表", "会议记录"] const fileExtensions: Record<string, string[]> = { pdf: [".pdf"], doc: [".doc", ".docx"], image: [".png", ".jpg", ".jpeg"], spreadsheet: [".xls", ".xlsx"], code: [".md", ".js", ".ts"], } function getRandomExtension(type: string...
typescript
MIT
b923ab0d92fb2fcfd83c5bead80a9a125f252c10
2026-01-05T05:01:18.490502Z
false
halolight/halolight
https://github.com/halolight/halolight/blob/b923ab0d92fb2fcfd83c5bead80a9a125f252c10/src/mock/user.ts
src/mock/user.ts
import Mock from "mockjs" const Random = Mock.Random // 角色列表 export const roles = [ { id: "admin", name: "admin", label: "超级管理员", permissions: ["*"] }, { id: "editor", name: "editor", label: "编辑员", permissions: ["dashboard:view", "users:view", "documents:*"] }, { id: "viewer", name: "viewer", label: "访客", permi...
typescript
MIT
b923ab0d92fb2fcfd83c5bead80a9a125f252c10
2026-01-05T05:01:18.490502Z
false
halolight/halolight
https://github.com/halolight/halolight/blob/b923ab0d92fb2fcfd83c5bead80a9a125f252c10/src/mock/index.ts
src/mock/index.ts
// Mock 数据统一入口 // 仅在客户端且开启 mock 时加载 export * from "./calendar" export * from "./dashboard" export * from "./document" export * from "./file" export * from "./message" export * from "./notification" export * from "./team" export * from "./user"
typescript
MIT
b923ab0d92fb2fcfd83c5bead80a9a125f252c10
2026-01-05T05:01:18.490502Z
false
halolight/halolight
https://github.com/halolight/halolight/blob/b923ab0d92fb2fcfd83c5bead80a9a125f252c10/src/hooks/use-dashboard-data.ts
src/hooks/use-dashboard-data.ts
import { useQuery, useQueryClient } from "@tanstack/react-query" import { tokenStorage } from "@/lib/api/client" type ApiResponse<T> = { code: number; message: string; data: T } const IS_MOCK_MODE = process.env.NEXT_PUBLIC_MOCK === "true" async function fetcher<T>(url: string): Promise<T> { const headers: Record<...
typescript
MIT
b923ab0d92fb2fcfd83c5bead80a9a125f252c10
2026-01-05T05:01:18.490502Z
false
halolight/halolight
https://github.com/halolight/halolight/blob/b923ab0d92fb2fcfd83c5bead80a9a125f252c10/src/hooks/use-title.ts
src/hooks/use-title.ts
"use client" import * as React from "react" interface UseTitleOptions { suffix?: string defaultTitle?: string resetOnUnmount?: boolean } export function useTitle(title: string | undefined, options: UseTitleOptions = {}) { const { suffix = "Admin Pro", defaultTitle, resetOnUnmount = false } = options const ...
typescript
MIT
b923ab0d92fb2fcfd83c5bead80a9a125f252c10
2026-01-05T05:01:18.490502Z
false
halolight/halolight
https://github.com/halolight/halolight/blob/b923ab0d92fb2fcfd83c5bead80a9a125f252c10/src/hooks/use-users.ts
src/hooks/use-users.ts
"use client" import { useQuery } from "@tanstack/react-query" import type { UserFormData } from "@/actions" import { batchDeleteUsersAction, createUserAction, deleteUserAction, updateUserAction, updateUserStatusAction, } from "@/actions" import { apiRouter } from "@/lib/api/api-router" import type { User, U...
typescript
MIT
b923ab0d92fb2fcfd83c5bead80a9a125f252c10
2026-01-05T05:01:18.490502Z
false
halolight/halolight
https://github.com/halolight/halolight/blob/b923ab0d92fb2fcfd83c5bead80a9a125f252c10/src/hooks/use-files.ts
src/hooks/use-files.ts
import { useMutation, useQuery, useQueryClient } from "@tanstack/react-query" import { fileService } from "@/lib/api/services" // 查询键 export const fileKeys = { all: ["files"] as const, lists: () => [...fileKeys.all, "list"] as const, list: (path?: string) => [...fileKeys.lists(), path] as const, storage: () =...
typescript
MIT
b923ab0d92fb2fcfd83c5bead80a9a125f252c10
2026-01-05T05:01:18.490502Z
false
halolight/halolight
https://github.com/halolight/halolight/blob/b923ab0d92fb2fcfd83c5bead80a9a125f252c10/src/hooks/use-dashboard.ts
src/hooks/use-dashboard.ts
import { useQuery } from "@tanstack/react-query" import { dashboardService } from "@/lib/api/services" // 查询键 export const dashboardKeys = { all: ["dashboard"] as const, stats: () => [...dashboardKeys.all, "stats"] as const, visits: () => [...dashboardKeys.all, "visits"] as const, sales: () => [...dashboardKe...
typescript
MIT
b923ab0d92fb2fcfd83c5bead80a9a125f252c10
2026-01-05T05:01:18.490502Z
false
halolight/halolight
https://github.com/halolight/halolight/blob/b923ab0d92fb2fcfd83c5bead80a9a125f252c10/src/hooks/use-keep-alive.tsx
src/hooks/use-keep-alive.tsx
"use client" import { usePathname } from "next/navigation" import * as React from "react" import { create } from "zustand" // 页面状态缓存 interface PageState { scrollY: number formData?: Record<string, unknown> customState?: Record<string, unknown> timestamp: number } interface PageCacheStore { cache: Map<strin...
typescript
MIT
b923ab0d92fb2fcfd83c5bead80a9a125f252c10
2026-01-05T05:01:18.490502Z
false
halolight/halolight
https://github.com/halolight/halolight/blob/b923ab0d92fb2fcfd83c5bead80a9a125f252c10/src/hooks/use-tdk.ts
src/hooks/use-tdk.ts
"use client" import * as React from "react" import type { TdkEntry } from "@/config/tdk" import { useTitle } from "./use-title" function updateMetaTag(name: string, content: string) { if (typeof document === "undefined") return let element = document.head.querySelector<HTMLMetaElement>(`meta[name="${name}"]`) ...
typescript
MIT
b923ab0d92fb2fcfd83c5bead80a9a125f252c10
2026-01-05T05:01:18.490502Z
false
halolight/halolight
https://github.com/halolight/halolight/blob/b923ab0d92fb2fcfd83c5bead80a9a125f252c10/src/hooks/use-documents.ts
src/hooks/use-documents.ts
"use client" import { useQuery } from "@tanstack/react-query" import type { DocumentFormData } from "@/actions" import { batchDeleteDocumentsAction, createDocumentAction, deleteDocumentAction, updateDocumentAction, } from "@/actions" import { apiRouter } from "@/lib/api/api-router" import type { Document } fr...
typescript
MIT
b923ab0d92fb2fcfd83c5bead80a9a125f252c10
2026-01-05T05:01:18.490502Z
false
halolight/halolight
https://github.com/halolight/halolight/blob/b923ab0d92fb2fcfd83c5bead80a9a125f252c10/src/hooks/use-messages.ts
src/hooks/use-messages.ts
import { useMutation, useQuery, useQueryClient } from "@tanstack/react-query" import {type Conversation,messageService } from "@/lib/api/services" // 查询键 export const messageKeys = { all: ["messages"] as const, conversations: () => [...messageKeys.all, "conversations"] as const, conversation: (id: string) => [....
typescript
MIT
b923ab0d92fb2fcfd83c5bead80a9a125f252c10
2026-01-05T05:01:18.490502Z
false
halolight/halolight
https://github.com/halolight/halolight/blob/b923ab0d92fb2fcfd83c5bead80a9a125f252c10/src/hooks/use-teams.ts
src/hooks/use-teams.ts
"use client" import { useMutation, useQuery, useQueryClient } from "@tanstack/react-query" import { roleService, teamService } from "@/lib/api/services" import type { RoleCreateRequest, RoleUpdateRequest, TeamCreateRequest, TeamUpdateRequest } from "@/lib/api/types" import { roleKeys, teamKeys } from "@/lib/query-key...
typescript
MIT
b923ab0d92fb2fcfd83c5bead80a9a125f252c10
2026-01-05T05:01:18.490502Z
false
halolight/halolight
https://github.com/halolight/halolight/blob/b923ab0d92fb2fcfd83c5bead80a9a125f252c10/src/hooks/use-action-mutation.ts
src/hooks/use-action-mutation.ts
"use client" import type { QueryKey } from "@tanstack/react-query" import { useMutation, useQueryClient } from "@tanstack/react-query" import { useCallback } from "react" import type { ActionResult } from "@/actions" // ============================================================================ // 类型定义 // =========...
typescript
MIT
b923ab0d92fb2fcfd83c5bead80a9a125f252c10
2026-01-05T05:01:18.490502Z
false
halolight/halolight
https://github.com/halolight/halolight/blob/b923ab0d92fb2fcfd83c5bead80a9a125f252c10/src/hooks/use-notifications.ts
src/hooks/use-notifications.ts
import { useMutation, useQuery, useQueryClient } from "@tanstack/react-query" import { notificationService } from "@/lib/api/services" // 查询键 export const notificationKeys = { all: ["notifications"] as const, lists: () => [...notificationKeys.all, "list"] as const, list: (filters: Record<string, unknown>) => ...
typescript
MIT
b923ab0d92fb2fcfd83c5bead80a9a125f252c10
2026-01-05T05:01:18.490502Z
false
halolight/halolight
https://github.com/halolight/halolight/blob/b923ab0d92fb2fcfd83c5bead80a9a125f252c10/src/hooks/use-calendar.ts
src/hooks/use-calendar.ts
"use client" import { useQuery } from "@tanstack/react-query" import type { CalendarEventFormData } from "@/actions" import { batchDeleteCalendarEventsAction, createCalendarEventAction, deleteCalendarEventAction, updateCalendarEventAction, } from "@/actions" import { apiRouter } from "@/lib/api/api-router" im...
typescript
MIT
b923ab0d92fb2fcfd83c5bead80a9a125f252c10
2026-01-05T05:01:18.490502Z
false
halolight/halolight
https://github.com/halolight/halolight/blob/b923ab0d92fb2fcfd83c5bead80a9a125f252c10/src/hooks/index.ts
src/hooks/index.ts
// Query Hooks export * from "./use-calendar" export * from "./use-dashboard" export * from "./use-documents" export * from "./use-files" export * from "./use-messages" export * from "./use-notifications" export * from "./use-users" // Utility Hooks export * from "./use-action-mutation" export * from "./use-title" //...
typescript
MIT
b923ab0d92fb2fcfd83c5bead80a9a125f252c10
2026-01-05T05:01:18.490502Z
false
halolight/halolight
https://github.com/halolight/halolight/blob/b923ab0d92fb2fcfd83c5bead80a9a125f252c10/src/hooks/use-chart-palette.ts
src/hooks/use-chart-palette.ts
import { useTheme } from "next-themes" import * as React from "react" type ChartPalette = { primary: string secondary: string tertiary: string quaternary: string quinary: string positive: string negative: string } const fallback: ChartPalette = { primary: "oklch(var(--chart-1))", secondary: "oklch(v...
typescript
MIT
b923ab0d92fb2fcfd83c5bead80a9a125f252c10
2026-01-05T05:01:18.490502Z
false
halolight/halolight
https://github.com/halolight/halolight/blob/b923ab0d92fb2fcfd83c5bead80a9a125f252c10/src/components/mock-provider.tsx
src/components/mock-provider.tsx
"use client" import { useEffect, useState } from "react" export function MockProvider({ children }: { children: React.ReactNode }) { const [ready, setReady] = useState(false) useEffect(() => { if (typeof window !== "undefined") { // 仅在开发环境且开启 mock 时加载 if (process.env.NEXT_PUBLIC_MOCK === "true") ...
typescript
MIT
b923ab0d92fb2fcfd83c5bead80a9a125f252c10
2026-01-05T05:01:18.490502Z
false
halolight/halolight
https://github.com/halolight/halolight/blob/b923ab0d92fb2fcfd83c5bead80a9a125f252c10/src/components/not-found-content.tsx
src/components/not-found-content.tsx
"use client" import { motion } from "framer-motion" import { ArrowLeft, Home, Search } from "lucide-react" import Link from "next/link" import { Button } from "@/components/ui/button" export function NotFoundContent() { return ( <div className="min-h-screen flex items-center justify-center bg-gradient-to-br fr...
typescript
MIT
b923ab0d92fb2fcfd83c5bead80a9a125f252c10
2026-01-05T05:01:18.490502Z
false
halolight/halolight
https://github.com/halolight/halolight/blob/b923ab0d92fb2fcfd83c5bead80a9a125f252c10/src/components/tdk-manager.tsx
src/components/tdk-manager.tsx
"use client" import { usePathname } from "next/navigation" import * as React from "react" import { getRouteTdk } from "@/config/tdk" import { useTdk } from "@/hooks/use-tdk" export function TdkManager() { const pathname = usePathname() const tdkEntry = React.useMemo(() => getRouteTdk(pathname), [pathname]) use...
typescript
MIT
b923ab0d92fb2fcfd83c5bead80a9a125f252c10
2026-01-05T05:01:18.490502Z
false
halolight/halolight
https://github.com/halolight/halolight/blob/b923ab0d92fb2fcfd83c5bead80a9a125f252c10/src/components/auth/auth-shell.tsx
src/components/auth/auth-shell.tsx
"use client" import { motion, useMotionValue, useTransform } from "framer-motion" import * as React from "react" import { cn } from "@/lib/utils" type Halo = { className?: string from: string to: string animate?: Parameters<typeof motion.div>[0]["animate"] transition?: Parameters<typeof motion.div>[0]["tra...
typescript
MIT
b923ab0d92fb2fcfd83c5bead80a9a125f252c10
2026-01-05T05:01:18.490502Z
false
halolight/halolight
https://github.com/halolight/halolight/blob/b923ab0d92fb2fcfd83c5bead80a9a125f252c10/src/components/data-table/data-table.tsx
src/components/data-table/data-table.tsx
"use client" import { AnimatePresence,motion } from "framer-motion" import { ArrowDown, ArrowUp, ArrowUpDown, ChevronLeft, ChevronRight, ChevronsLeft, ChevronsRight, Search, X, } from "lucide-react" import * as React from "react" import { Button } from "@/components/ui/button" import { Input } from ...
typescript
MIT
b923ab0d92fb2fcfd83c5bead80a9a125f252c10
2026-01-05T05:01:18.490502Z
false
halolight/halolight
https://github.com/halolight/halolight/blob/b923ab0d92fb2fcfd83c5bead80a9a125f252c10/src/components/data-table/index.ts
src/components/data-table/index.ts
export type { Column } from "./data-table" export { DataTable } from "./data-table"
typescript
MIT
b923ab0d92fb2fcfd83c5bead80a9a125f252c10
2026-01-05T05:01:18.490502Z
false
halolight/halolight
https://github.com/halolight/halolight/blob/b923ab0d92fb2fcfd83c5bead80a9a125f252c10/src/components/layout/command-menu.tsx
src/components/layout/command-menu.tsx
"use client" import { BarChart3, Calendar, FileText, FolderOpen, LayoutDashboard, LogOut, Mail, Moon, Search, Settings, ShieldCheck, Sun, UserCheck, Users, } from "lucide-react" import { usePathname, useRouter } from "next/navigation" import { useTheme } from "next-themes" import * as React...
typescript
MIT
b923ab0d92fb2fcfd83c5bead80a9a125f252c10
2026-01-05T05:01:18.490502Z
false
halolight/halolight
https://github.com/halolight/halolight/blob/b923ab0d92fb2fcfd83c5bead80a9a125f252c10/src/components/layout/sidebar.tsx
src/components/layout/sidebar.tsx
"use client" import { AnimatePresence, motion } from "framer-motion" import { ChevronDown, ChevronLeft } from "lucide-react" import Link from "next/link" import { usePathname, useRouter } from "next/navigation" import * as React from "react" import { createPortal } from "react-dom" import { Button } from "@/component...
typescript
MIT
b923ab0d92fb2fcfd83c5bead80a9a125f252c10
2026-01-05T05:01:18.490502Z
false
halolight/halolight
https://github.com/halolight/halolight/blob/b923ab0d92fb2fcfd83c5bead80a9a125f252c10/src/components/layout/footer.tsx
src/components/layout/footer.tsx
"use client" import { Heart } from "lucide-react" import Link from "next/link" import { projectInfo } from "@/lib/project-info" export function Footer() { const currentYear = new Date().getFullYear() return ( <footer className="border-t border-border/50 bg-background/80 backdrop-blur-sm"> <div classNa...
typescript
MIT
b923ab0d92fb2fcfd83c5bead80a9a125f252c10
2026-01-05T05:01:18.490502Z
false
halolight/halolight
https://github.com/halolight/halolight/blob/b923ab0d92fb2fcfd83c5bead80a9a125f252c10/src/components/layout/admin-layout.tsx
src/components/layout/admin-layout.tsx
"use client" import { AnimatePresence, motion } from "framer-motion" import { ShieldOff } from "lucide-react" import Link from "next/link" import { usePathname } from "next/navigation" import * as React from "react" import { BackToTop } from "@/components/ui/back-to-top" import { Button } from "@/components/ui/button...
typescript
MIT
b923ab0d92fb2fcfd83c5bead80a9a125f252c10
2026-01-05T05:01:18.490502Z
false
halolight/halolight
https://github.com/halolight/halolight/blob/b923ab0d92fb2fcfd83c5bead80a9a125f252c10/src/components/layout/quick-settings.tsx
src/components/layout/quick-settings.tsx
"use client" import { motion } from "framer-motion" import { Brush, Check, Monitor, Moon, Palette, PanelsTopLeft, Settings2, Smartphone, Sun, X, } from "lucide-react" import { useTheme } from "next-themes" import * as React from "react" import { Badge } from "@/components/ui/badge" import { Button...
typescript
MIT
b923ab0d92fb2fcfd83c5bead80a9a125f252c10
2026-01-05T05:01:18.490502Z
false
halolight/halolight
https://github.com/halolight/halolight/blob/b923ab0d92fb2fcfd83c5bead80a9a125f252c10/src/components/layout/tab-bar.tsx
src/components/layout/tab-bar.tsx
"use client" import { AnimatePresence, motion } from "framer-motion" import { Bell, Calendar, ChevronLeft, ChevronRight, FileText, FolderOpen, HelpCircle, Home, LineChart, Loader2, MessageSquare, Settings, ShieldCheck, User, Users, X, } from "lucide-react" import { usePathname, useRoute...
typescript
MIT
b923ab0d92fb2fcfd83c5bead80a9a125f252c10
2026-01-05T05:01:18.490502Z
false
halolight/halolight
https://github.com/halolight/halolight/blob/b923ab0d92fb2fcfd83c5bead80a9a125f252c10/src/components/layout/pending-overlay.tsx
src/components/layout/pending-overlay.tsx
"use client" import { AnimatePresence,motion } from "framer-motion" import { Coffee,Loader2, Sparkles, Zap } from "lucide-react" import * as React from "react" import { cn } from "@/lib/utils" interface PendingOverlayProps { /** 控制遮罩是否可见 */ visible: boolean /** 主要的标题,默认为 "正在前往" */ label?: string | null /**...
typescript
MIT
b923ab0d92fb2fcfd83c5bead80a9a125f252c10
2026-01-05T05:01:18.490502Z
false
halolight/halolight
https://github.com/halolight/halolight/blob/b923ab0d92fb2fcfd83c5bead80a9a125f252c10/src/components/layout/index.ts
src/components/layout/index.ts
export { AdminLayout } from "./admin-layout" export { CommandMenu } from "./command-menu" export { Header } from "./header" export { QuickSettings } from "./quick-settings" export { Sidebar } from "./sidebar" export { TabBar } from "./tab-bar" export { ThemeToggle } from "./theme-toggle"
typescript
MIT
b923ab0d92fb2fcfd83c5bead80a9a125f252c10
2026-01-05T05:01:18.490502Z
false
halolight/halolight
https://github.com/halolight/halolight/blob/b923ab0d92fb2fcfd83c5bead80a9a125f252c10/src/components/layout/header.tsx
src/components/layout/header.tsx
"use client" import { motion } from "framer-motion" import { AlertTriangle, Bell, HelpCircle, LogOut, Menu, Search, Settings, User } from "lucide-react" import Link from "next/link" import { useRouter } from "next/navigation" import * as React from "react" import { Avatar, AvatarFallback, AvatarImage } from "@/compon...
typescript
MIT
b923ab0d92fb2fcfd83c5bead80a9a125f252c10
2026-01-05T05:01:18.490502Z
false
halolight/halolight
https://github.com/halolight/halolight/blob/b923ab0d92fb2fcfd83c5bead80a9a125f252c10/src/components/layout/legal-layout-content.tsx
src/components/layout/legal-layout-content.tsx
"use client" import { ArrowLeft } from "lucide-react" import Link from "next/link" import * as React from "react" import { BackToTop } from "@/components/ui/back-to-top" import { Button } from "@/components/ui/button" interface LegalLayoutContentProps { children: React.ReactNode } export function LegalLayoutConte...
typescript
MIT
b923ab0d92fb2fcfd83c5bead80a9a125f252c10
2026-01-05T05:01:18.490502Z
false
halolight/halolight
https://github.com/halolight/halolight/blob/b923ab0d92fb2fcfd83c5bead80a9a125f252c10/src/components/layout/theme-toggle.tsx
src/components/layout/theme-toggle.tsx
"use client" import { motion } from "framer-motion" import { Monitor,Moon, Sun } from "lucide-react" import { useTheme } from "next-themes" import * as React from "react" import { Button } from "@/components/ui/button" import { DropdownMenu, DropdownMenuContent, DropdownMenuItem, DropdownMenuTrigger, } from "...
typescript
MIT
b923ab0d92fb2fcfd83c5bead80a9a125f252c10
2026-01-05T05:01:18.490502Z
false
halolight/halolight
https://github.com/halolight/halolight/blob/b923ab0d92fb2fcfd83c5bead80a9a125f252c10/src/components/dashboard/recent-activity.tsx
src/components/dashboard/recent-activity.tsx
"use client" import { motion } from "framer-motion" import * as React from "react" import { Avatar, AvatarFallback, AvatarImage } from "@/components/ui/avatar" import { Badge } from "@/components/ui/badge" import { Card, CardContent, CardDescription, CardHeader, CardTitle } from "@/components/ui/card" import { Scroll...
typescript
MIT
b923ab0d92fb2fcfd83c5bead80a9a125f252c10
2026-01-05T05:01:18.490502Z
false
halolight/halolight
https://github.com/halolight/halolight/blob/b923ab0d92fb2fcfd83c5bead80a9a125f252c10/src/components/dashboard/charts.tsx
src/components/dashboard/charts.tsx
"use client" import { motion } from "framer-motion" import * as React from "react" import { Area, AreaChart, Bar, BarChart, CartesianGrid, Cell, Pie, PieChart, ResponsiveContainer, Tooltip, XAxis, YAxis, } from "recharts" import { Card, CardContent, CardDescription, CardHeader, CardTitle } fro...
typescript
MIT
b923ab0d92fb2fcfd83c5bead80a9a125f252c10
2026-01-05T05:01:18.490502Z
false
halolight/halolight
https://github.com/halolight/halolight/blob/b923ab0d92fb2fcfd83c5bead80a9a125f252c10/src/components/dashboard/configurable-dashboard.tsx
src/components/dashboard/configurable-dashboard.tsx
"use client" import "react-grid-layout/css/styles.css" import "react-resizable/css/styles.css" import { BarChart, BarChart3, Bell, Calendar, CheckSquare, FilePlus, GripVertical, LineChart, PieChart, Plus, RotateCcw, Save, Settings, TrendingDown, TrendingUp, Users, X, Zap, } from "l...
typescript
MIT
b923ab0d92fb2fcfd83c5bead80a9a125f252c10
2026-01-05T05:01:18.490502Z
false
halolight/halolight
https://github.com/halolight/halolight/blob/b923ab0d92fb2fcfd83c5bead80a9a125f252c10/src/components/dashboard/stats-card.tsx
src/components/dashboard/stats-card.tsx
"use client" import { motion } from "framer-motion" import { LucideIcon } from "lucide-react" import * as React from "react" import { Card, CardContent, CardHeader, CardTitle } from "@/components/ui/card" import { cn } from "@/lib/utils" interface StatsCardProps { title: string value: string | number descripti...
typescript
MIT
b923ab0d92fb2fcfd83c5bead80a9a125f252c10
2026-01-05T05:01:18.490502Z
false
halolight/halolight
https://github.com/halolight/halolight/blob/b923ab0d92fb2fcfd83c5bead80a9a125f252c10/src/components/dashboard/index.ts
src/components/dashboard/index.ts
export { RevenueChart, SourceChart,TrafficChart } from "./charts" export { ConfigurableDashboard } from "./configurable-dashboard" export { RecentActivity } from "./recent-activity" export { StatsCard } from "./stats-card"
typescript
MIT
b923ab0d92fb2fcfd83c5bead80a9a125f252c10
2026-01-05T05:01:18.490502Z
false
halolight/halolight
https://github.com/halolight/halolight/blob/b923ab0d92fb2fcfd83c5bead80a9a125f252c10/src/components/ui/command-input-clear.tsx
src/components/ui/command-input-clear.tsx
"use client" import { Command as CommandPrimitive } from "cmdk" import { X } from "lucide-react" import * as React from "react" import { cn } from "@/lib/utils" interface CommandInputClearProps extends React.ComponentProps<typeof CommandPrimitive.Input> { showClear?: boolean } export const CommandInputClear = R...
typescript
MIT
b923ab0d92fb2fcfd83c5bead80a9a125f252c10
2026-01-05T05:01:18.490502Z
false
halolight/halolight
https://github.com/halolight/halolight/blob/b923ab0d92fb2fcfd83c5bead80a9a125f252c10/src/components/ui/table.tsx
src/components/ui/table.tsx
"use client" import * as React from "react" import { cn } from "@/lib/utils" function Table({ className, ...props }: React.ComponentProps<"table">) { return ( <div data-slot="table-container" className="relative w-full overflow-x-auto" > <table data-slot="table" className=...
typescript
MIT
b923ab0d92fb2fcfd83c5bead80a9a125f252c10
2026-01-05T05:01:18.490502Z
false
halolight/halolight
https://github.com/halolight/halolight/blob/b923ab0d92fb2fcfd83c5bead80a9a125f252c10/src/components/ui/avatar.tsx
src/components/ui/avatar.tsx
"use client" import * as AvatarPrimitive from "@radix-ui/react-avatar" import * as React from "react" import { cn } from "@/lib/utils" function Avatar({ className, ...props }: React.ComponentProps<typeof AvatarPrimitive.Root>) { return ( <AvatarPrimitive.Root data-slot="avatar" className={cn( ...
typescript
MIT
b923ab0d92fb2fcfd83c5bead80a9a125f252c10
2026-01-05T05:01:18.490502Z
false
halolight/halolight
https://github.com/halolight/halolight/blob/b923ab0d92fb2fcfd83c5bead80a9a125f252c10/src/components/ui/dialog.tsx
src/components/ui/dialog.tsx
"use client" import * as DialogPrimitive from "@radix-ui/react-dialog" import { XIcon } from "lucide-react" import * as React from "react" import { cn } from "@/lib/utils" function Dialog({ ...props }: React.ComponentProps<typeof DialogPrimitive.Root>) { return <DialogPrimitive.Root data-slot="dialog" {...props}...
typescript
MIT
b923ab0d92fb2fcfd83c5bead80a9a125f252c10
2026-01-05T05:01:18.490502Z
false
halolight/halolight
https://github.com/halolight/halolight/blob/b923ab0d92fb2fcfd83c5bead80a9a125f252c10/src/components/ui/label.tsx
src/components/ui/label.tsx
"use client" import * as LabelPrimitive from "@radix-ui/react-label" import * as React from "react" import { cn } from "@/lib/utils" function Label({ className, ...props }: React.ComponentProps<typeof LabelPrimitive.Root>) { return ( <LabelPrimitive.Root data-slot="label" className={cn( ...
typescript
MIT
b923ab0d92fb2fcfd83c5bead80a9a125f252c10
2026-01-05T05:01:18.490502Z
false