mirror of
https://github.com/m1ngsama/FUJI.git
synced 2025-12-24 10:51:27 +00:00
migrate to heroui
This commit is contained in:
parent
d7d15a2820
commit
fca8afd597
9 changed files with 2690 additions and 2641 deletions
2
.npmrc
2
.npmrc
|
|
@ -1 +1 @@
|
||||||
public-hoist-pattern[]=*@nextui-org/*
|
public-hoist-pattern[]=*@heroui/*
|
||||||
|
|
@ -9,6 +9,7 @@
|
||||||
"astro",
|
"astro",
|
||||||
"astrojs",
|
"astrojs",
|
||||||
"frontmatter",
|
"frontmatter",
|
||||||
|
"heroui",
|
||||||
"logto",
|
"logto",
|
||||||
"Logto",
|
"Logto",
|
||||||
"logtoClient",
|
"logtoClient",
|
||||||
|
|
|
||||||
|
|
@ -24,7 +24,7 @@
|
||||||
"@fullcalendar/react": "^6.1.15",
|
"@fullcalendar/react": "^6.1.15",
|
||||||
"@headlessui/vue": "^1.7.23",
|
"@headlessui/vue": "^1.7.23",
|
||||||
"@logto/browser": "^2.2.18",
|
"@logto/browser": "^2.2.18",
|
||||||
"@nextui-org/react": "^2.4.8",
|
"@heroui/react": "2.6.14",
|
||||||
"@stylistic/eslint-plugin": "^2.8.0",
|
"@stylistic/eslint-plugin": "^2.8.0",
|
||||||
"astro": "^4.16.18",
|
"astro": "^4.16.18",
|
||||||
"framer-motion": "^11.9.0",
|
"framer-motion": "^11.9.0",
|
||||||
|
|
|
||||||
5310
pnpm-lock.yaml
5310
pnpm-lock.yaml
File diff suppressed because it is too large
Load diff
|
|
@ -1,5 +1,5 @@
|
||||||
import { useState } from "react"
|
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 { SITE_TITLE } from "../../consts"
|
||||||
|
|
||||||
export default function App() {
|
export default function App() {
|
||||||
|
|
|
||||||
|
|
@ -7,7 +7,7 @@ import {
|
||||||
Popover,
|
Popover,
|
||||||
PopoverTrigger,
|
PopoverTrigger,
|
||||||
PopoverContent,
|
PopoverContent,
|
||||||
} from "@nextui-org/react"
|
} from "@heroui/react"
|
||||||
import { activeClient } from "../../../utils/client"
|
import { activeClient } from "../../../utils/client"
|
||||||
|
|
||||||
export default function JoinForm() {
|
export default function JoinForm() {
|
||||||
|
|
|
||||||
|
|
@ -5,14 +5,14 @@ import {
|
||||||
CardBody,
|
CardBody,
|
||||||
CardFooter,
|
CardFooter,
|
||||||
// PaginationItem,
|
// PaginationItem,
|
||||||
} from "@nextui-org/react"
|
} from "@heroui/react"
|
||||||
import {
|
import {
|
||||||
activeClient,
|
activeClient,
|
||||||
type GetFreshmanListResponse,
|
type GetFreshmanListResponse,
|
||||||
} from "../../../utils/client"
|
} from "../../../utils/client"
|
||||||
// activeClient.freshman.getFreshmanList();
|
// activeClient.freshman.getFreshmanList();
|
||||||
import { useEffect, useState } from "react"
|
import { useEffect, useState } from "react"
|
||||||
// import { Pagination } from "@nextui-org/react";
|
// import { Pagination } from "@heroui/react";
|
||||||
const FreshmanList = () => {
|
const FreshmanList = () => {
|
||||||
const [freshmen, setFreshmen] = useState<GetFreshmanListResponse>({
|
const [freshmen, setFreshmen] = useState<GetFreshmanListResponse>({
|
||||||
list: [],
|
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 }) {
|
function QrCodeContent({ qrcode }: { qrcode: string }) {
|
||||||
return (
|
return (
|
||||||
|
|
|
||||||
|
|
@ -1,9 +1,9 @@
|
||||||
import { nextui } from "@nextui-org/react"
|
import { heroui } from "@heroui/react"
|
||||||
/** @type {import('tailwindcss').Config} */
|
/** @type {import('tailwindcss').Config} */
|
||||||
export default {
|
export default {
|
||||||
content: [
|
content: [
|
||||||
"./src/**/*.{astro,html,js,jsx,md,mdx,svelte,ts,tsx,vue}",
|
"./src/**/*.{astro,html,js,jsx,md,mdx,svelte,ts,tsx,vue}",
|
||||||
"./node_modules/@nextui-org/theme/dist/**/*.{js,ts,jsx,tsx}",
|
"./node_modules/@heroui/theme/dist/**/*.{js,ts,jsx,tsx}",
|
||||||
],
|
],
|
||||||
theme: {
|
theme: {
|
||||||
extend: {
|
extend: {
|
||||||
|
|
@ -13,5 +13,5 @@ export default {
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
darkMode: "class",
|
darkMode: "class",
|
||||||
plugins: [nextui()],
|
plugins: [heroui()],
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue