mirror of
https://github.com/m1ngsama/FUJI.git
synced 2025-12-24 10:51:27 +00:00
Merge pull request #67 from wen-templari/deps
refactor: migrate NextUI to HeroUI
This commit is contained in:
commit
2c78456d9e
9 changed files with 2693 additions and 2159 deletions
2
.npmrc
2
.npmrc
|
|
@ -1 +1 @@
|
|||
public-hoist-pattern[]=*@nextui-org/*
|
||||
public-hoist-pattern[]=*@heroui/*
|
||||
|
|
@ -9,6 +9,7 @@
|
|||
"astro",
|
||||
"astrojs",
|
||||
"frontmatter",
|
||||
"heroui",
|
||||
"logto",
|
||||
"Logto",
|
||||
"logtoClient",
|
||||
|
|
|
|||
|
|
@ -24,7 +24,7 @@
|
|||
"@fullcalendar/react": "^6.1.15",
|
||||
"@headlessui/vue": "^1.7.23",
|
||||
"@logto/browser": "^2.2.18",
|
||||
"@nextui-org/react": "^2.4.8",
|
||||
"@heroui/react": "2.6.14",
|
||||
"@stylistic/eslint-plugin": "^2.8.0",
|
||||
"astro": "^4.16.18",
|
||||
"framer-motion": "^11.9.0",
|
||||
|
|
|
|||
4828
pnpm-lock.yaml
4828
pnpm-lock.yaml
File diff suppressed because it is too large
Load diff
|
|
@ -1,5 +1,5 @@
|
|||
import { useState } from "react"
|
||||
import { Navbar, NavbarBrand, NavbarContent, NavbarItem, NavbarMenuToggle, NavbarMenu, NavbarMenuItem, Link } from "@nextui-org/react"
|
||||
import { Navbar, NavbarBrand, NavbarContent, NavbarItem, NavbarMenuToggle, NavbarMenu, NavbarMenuItem, Link } from "@heroui/react"
|
||||
import { SITE_TITLE } from "../../consts"
|
||||
import CALogoWhite from "./assets/CA-logo-white.png"
|
||||
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ import {
|
|||
Popover,
|
||||
PopoverTrigger,
|
||||
PopoverContent,
|
||||
} from "@nextui-org/react"
|
||||
} from "@heroui/react"
|
||||
import { activeClient } from "../../../utils/client"
|
||||
|
||||
export default function JoinForm() {
|
||||
|
|
|
|||
|
|
@ -5,14 +5,14 @@ import {
|
|||
CardBody,
|
||||
CardFooter,
|
||||
// PaginationItem,
|
||||
} from "@nextui-org/react"
|
||||
} from "@heroui/react"
|
||||
import {
|
||||
activeClient,
|
||||
type GetFreshmanListResponse,
|
||||
} from "../../../utils/client"
|
||||
// activeClient.freshman.getFreshmanList();
|
||||
import { useEffect, useState } from "react"
|
||||
// import { Pagination } from "@nextui-org/react";
|
||||
// import { Pagination } from "@heroui/react";
|
||||
const FreshmanList = () => {
|
||||
const [freshmen, setFreshmen] = useState<GetFreshmanListResponse>({
|
||||
list: [],
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
import { Button, Link, Code } from "@nextui-org/react"
|
||||
import { Button, Link, Code } from "@heroui/react"
|
||||
|
||||
function QrCodeContent({ qrcode }: { qrcode: string }) {
|
||||
return (
|
||||
|
|
|
|||
|
|
@ -1,7 +1,10 @@
|
|||
import { nextui } from "@nextui-org/react"
|
||||
import { heroui } from "@heroui/react"
|
||||
/** @type {import('tailwindcss').Config} */
|
||||
export default {
|
||||
content: ["./src/**/*.{astro,html,js,jsx,md,mdx,svelte,ts,tsx,vue}", "./node_modules/@nextui-org/theme/dist/**/*.{js,ts,jsx,tsx}"],
|
||||
content: [
|
||||
"./src/**/*.{astro,html,js,jsx,md,mdx,svelte,ts,tsx,vue}",
|
||||
"./node_modules/@heroui/theme/dist/**/*.{js,ts,jsx,tsx}",
|
||||
],
|
||||
theme: {
|
||||
extend: {
|
||||
colors: {
|
||||
|
|
@ -10,5 +13,5 @@ export default {
|
|||
},
|
||||
},
|
||||
darkMode: ["selector", "body.theme-dark"],
|
||||
plugins: [nextui()],
|
||||
plugins: [heroui()],
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue