Skip to content

Commit

Permalink
@react-icons/all-files
Browse files Browse the repository at this point in the history
  • Loading branch information
djobbo committed Jan 19, 2024
1 parent f3d1a04 commit 08a384f
Show file tree
Hide file tree
Showing 13 changed files with 186 additions and 64 deletions.
18 changes: 8 additions & 10 deletions app/components/layout/SideNav.tsx
Original file line number Diff line number Diff line change
@@ -1,15 +1,13 @@
import { AppLink } from "ui/base/AppLink"
import { DiscordIcon } from "ui/icons"
import {
HiBookOpen,
HiChevronDoubleUp,
HiHeart,
HiHome,
HiLightningBolt,
HiUserGroup,
HiUsers,
HiX,
} from "react-icons/hi"
import { HiBookOpen } from "@react-icons/all-files/hi/HiBookOpen"
import { HiChevronDoubleUp } from "@react-icons/all-files/hi/HiChevronDoubleUp"
import { HiHeart } from "@react-icons/all-files/hi/HiHeart"
import { HiHome } from "@react-icons/all-files/hi/HiHome"
import { HiLightningBolt } from "@react-icons/all-files/hi/HiLightningBolt"
import { HiUserGroup } from "@react-icons/all-files/hi/HiUserGroup"
import { HiUsers } from "@react-icons/all-files/hi/HiUsers"
import { HiX } from "@react-icons/all-files/hi/HiX"
import { Image } from "@components/Image"
import { Tooltip } from "ui/base/Tooltip"
import { cleanString } from "common/helpers/cleanString"
Expand Down
4 changes: 3 additions & 1 deletion app/components/search/RankedPlayerItem.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
import { HiOutlineStar, HiStar } from "react-icons/hi2"
import { HiOutlineStar } from "@react-icons/all-files/hi2/HiOutlineStar"
import { HiStar } from "@react-icons/all-files/hi2/HiStar"

import { Image } from "@components/Image"
import { SearchboxItem } from "./SearchboxItem"
import { cleanString } from "common/helpers/cleanString"
Expand Down
3 changes: 2 additions & 1 deletion app/components/search/Searchbox.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { HiArrowUp } from "react-icons/hi"
import { HiArrowUp } from "@react-icons/all-files/hi/HiArrowUp"

import {
KBarAnimator,
KBarPortal,
Expand Down
4 changes: 3 additions & 1 deletion app/components/stats/StatsHeader.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
import { AdsenseStatsHeader } from "common/analytics/Adsense"
import { Button } from "ui/base/Button"
import { DiscordIcon } from "ui/icons"
import { HiUserAdd, HiUserRemove } from "react-icons/hi"
import { HiUserAdd } from "@react-icons/all-files/hi/HiUserAdd"
import { HiUserRemove } from "@react-icons/all-files/hi/HiUserRemove"

import { MiscStatGroup } from "./MiscStatGroup"
import { ShareIcon } from "ui/icons"
import { cleanString } from "common/helpers/cleanString"
Expand Down
9 changes: 6 additions & 3 deletions app/components/stats/clan/ClanMember.tsx
Original file line number Diff line number Diff line change
@@ -1,13 +1,16 @@
import { AppLink } from "ui/base/AppLink"
import { Card } from "ui/base/Card"
import { FaCrown } from "react-icons/fa"
import { HiStar, HiUser, HiUserAdd } from "react-icons/hi"
import { FaCrown } from "@react-icons/all-files/fa/FaCrown"
import { HiStar } from "@react-icons/all-files/hi/HiStar"
import { HiUser } from "@react-icons/all-files/hi/HiUser"
import { HiUserAdd } from "@react-icons/all-files/hi/HiUserAdd"

import { MiscStatGroup } from "../MiscStatGroup"
import { cleanString } from "common/helpers/cleanString"
import { formatUnixTime } from "common/helpers/date"
import type { Clan } from "bhapi/types"
import type { ClanRank } from "bhapi/constants"
import type { IconType } from "react-icons"
import type { IconType } from "@react-icons/all-files"
import type { MiscStat } from "../MiscStatGroup"

type ClanMemberProps = {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
import { CollapsibleSection } from "@components/layout/CollapsibleSection"
import { FiTarget } from "react-icons/fi"
import { FiTarget } from "@react-icons/all-files/fi/FiTarget"
import { GeneralStats } from "../../GeneralStats"
import { HiChartBar, HiFire, HiHand } from "react-icons/hi"
import { HiChartBar } from "@react-icons/all-files/hi/HiChartBar"
import { HiFire } from "@react-icons/all-files/hi/HiFire"
import { HiHand } from "@react-icons/all-files/hi/HiHand"

import { MiscStatGroup } from "../../MiscStatGroup"
import { PlayerOverviewClanContent } from "./ClanContent"
import { PlayerOverviewRankedContent } from "./RankedContent"
Expand Down
7 changes: 6 additions & 1 deletion app/next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const COREHALLA_TWITTER_URL = "https://twitter.com/Corehalla"
const COREHALLA_KOFI_URL = "https://ko-fi.com/corehalla"

/** @type {import('next').NextConfig} */
module.exports = {
const config = {
reactStrictMode: true,
transpilePackages: [
"bhapi",
Expand Down Expand Up @@ -85,3 +85,8 @@ module.exports = {
]
},
}

const withBundleAnalyzer = require("@next/bundle-analyzer")({

Check failure on line 89 in app/next.config.js

View workflow job for this annotation

GitHub Actions / Analyze (Lint, pnpm ci:lint)

Require statement not part of import statement
enabled: process.env.ANALYZE === "true",
})
module.exports = withBundleAnalyzer(config)
3 changes: 2 additions & 1 deletion app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,10 @@
},
"dependencies": {
"@fontsource/montserrat": "^4.5.13",
"@next/bundle-analyzer": "^14.1.0",
"@radix-ui/react-collapsible": "^1.0.1",
"@radix-ui/react-tabs": "^1.0.1",
"@react-icons/all-files": "https://github.com/react-icons/react-icons/releases/download/v5.0.1/react-icons-all-files-5.0.1.tgz",
"@stitches/react": "^1.2.8",
"@tanstack/react-query": "^4.22.0",
"@trpc/client": "10.9.0",
Expand All @@ -32,7 +34,6 @@
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-hot-toast": "^2.4.0",
"react-icons": "^4.7.1",
"server": "workspace:*",
"ui": "workspace:*",
"web-parser": "workspace:*",
Expand Down
6 changes: 3 additions & 3 deletions app/public/sitemap-0.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" xmlns:news="http://www.google.com/schemas/sitemap-news/0.9" xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:mobile="http://www.google.com/schemas/sitemap-mobile/1.0" xmlns:image="http://www.google.com/schemas/sitemap-image/1.1" xmlns:video="http://www.google.com/schemas/sitemap-video/1.1">
<url><loc>http://localhost:3000</loc><lastmod>2024-01-19T03:26:51.331Z</lastmod><changefreq>daily</changefreq><priority>1</priority></url>
<url><loc>http://localhost:3000/@me/favorites</loc><lastmod>2024-01-19T03:26:51.331Z</lastmod><changefreq>daily</changefreq><priority>1</priority></url>
<url><loc>http://localhost:3000/calc</loc><lastmod>2024-01-19T03:26:51.331Z</lastmod><changefreq>daily</changefreq><priority>1</priority></url>
<url><loc>http://localhost:3000</loc><lastmod>2024-01-19T03:48:22.946Z</lastmod><changefreq>daily</changefreq><priority>1</priority></url>
<url><loc>http://localhost:3000/@me/favorites</loc><lastmod>2024-01-19T03:48:22.946Z</lastmod><changefreq>daily</changefreq><priority>1</priority></url>
<url><loc>http://localhost:3000/calc</loc><lastmod>2024-01-19T03:48:22.946Z</lastmod><changefreq>daily</changefreq><priority>1</priority></url>
</urlset>
8 changes: 3 additions & 5 deletions packages/ui/base/Pagination.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
import {
HiChevronDoubleLeft,
HiChevronLeft,
HiChevronRight,
} from "react-icons/hi"
import { HiChevronDoubleLeft } from "@react-icons/all-files/hi/HiChevronDoubleLeft"
import { HiChevronLeft } from "@react-icons/all-files/hi/HiChevronLeft"
import { HiChevronRight } from "@react-icons/all-files/hi/HiChevronRight"
import { Paginator } from "./Paginator"

type PaginationProps = {
Expand Down
40 changes: 21 additions & 19 deletions packages/ui/icons.tsx
Original file line number Diff line number Diff line change
@@ -1,22 +1,24 @@
import {
HiArrowSmRight,
HiChevronDoubleUp,
HiChevronDown,
HiChevronUp,
HiLightningBolt,
HiMenu,
HiOutlineInformationCircle,
HiOutlineQuestionMarkCircle,
HiSearch,
HiShare,
HiSortAscending,
HiSortDescending,
HiUser,
HiUserGroup,
HiUsers,
HiX,
} from "react-icons/hi"
import { SiDiscord, SiGithub, SiKofi, SiTwitter } from "react-icons/si"
import { HiArrowSmRight } from "@react-icons/all-files/hi/HiArrowSmRight"
import { HiChevronDoubleUp } from "@react-icons/all-files/hi/HiChevronDoubleUp"
import { HiChevronDown } from "@react-icons/all-files/hi/HiChevronDown"
import { HiChevronUp } from "@react-icons/all-files/hi/HiChevronUp"
import { HiLightningBolt } from "@react-icons/all-files/hi/HiLightningBolt"
import { HiMenu } from "@react-icons/all-files/hi/HiMenu"
import { HiOutlineInformationCircle } from "@react-icons/all-files/hi/HiOutlineInformationCircle"
import { HiOutlineQuestionMarkCircle } from "@react-icons/all-files/hi/HiOutlineQuestionMarkCircle"
import { HiSearch } from "@react-icons/all-files/hi/HiSearch"
import { HiShare } from "@react-icons/all-files/hi/HiShare"
import { HiSortAscending } from "@react-icons/all-files/hi/HiSortAscending"
import { HiSortDescending } from "@react-icons/all-files/hi/HiSortDescending"
import { HiUser } from "@react-icons/all-files/hi/HiUser"
import { HiUserGroup } from "@react-icons/all-files/hi/HiUserGroup"
import { HiUsers } from "@react-icons/all-files/hi/HiUsers"
import { HiX } from "@react-icons/all-files/hi/HiX"

import { SiDiscord } from "@react-icons/all-files/si/SiDiscord"
import { SiGithub } from "@react-icons/all-files/si/SiGithub"
import { SiKofi } from "@react-icons/all-files/si/SiKofi"
import { SiTwitter } from "@react-icons/all-files/si/SiTwitter"

// Common
export const CloseIcon = HiX
Expand Down
2 changes: 1 addition & 1 deletion packages/ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
"@radix-ui/react-popover": "^1.0.2",
"@radix-ui/react-progress": "^1.0.1",
"@radix-ui/react-tooltip": "^1.0.2",
"@react-icons/all-files": "https://github.com/react-icons/react-icons/releases/download/v5.0.1/react-icons-all-files-5.0.1.tgz",
"@stitches/react": "^1.2.8",
"bhapi": "workspace:*",
"common": "workspace:*",
Expand All @@ -33,7 +34,6 @@
"nprogress": "^0.2.0",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-icons": "^4.7.1",
"react-phone-input-2": "^2.15.1",
"react-select": "^5.7.0",
"react-table": "^7.8.0"
Expand Down
Loading

0 comments on commit 08a384f

Please sign in to comment.