refactor: replace @iconify/tailwind with @egoist/tailwindcss-icons (#1154)
This commit is contained in:
@@ -66,7 +66,7 @@ export const BlockchainInfo = ({
|
||||
rel="noreferrer"
|
||||
href={`${SITE_URL}/about`}
|
||||
>
|
||||
<i className="icon-[mingcute--question-line]" />
|
||||
<i className="i-mingcute-question-line" />
|
||||
</a>
|
||||
</span>
|
||||
<ul className="space-y-2 text-[13px] text-gray-500 overflow-hidden">
|
||||
|
||||
@@ -226,7 +226,7 @@ export const CommentInput = ({
|
||||
{({ open }: { open: boolean }) => (
|
||||
<>
|
||||
<Popover.Button className="group items-center rounded-md px-2 text-xl text-zinc-400 hover:text-zinc-500 hidden sm:inline-flex">
|
||||
<span className="icon-[mingcute--emoji-2-line] text-2xl"></span>
|
||||
<span className="i-mingcute-emoji-2-line text-2xl"></span>
|
||||
</Popover.Button>
|
||||
<Popover.Panel className="absolute left-0 top-full z-10">
|
||||
<EmojiPicker
|
||||
@@ -276,7 +276,7 @@ export const CommentInput = ({
|
||||
)}
|
||||
childrenClassName="hidden sm:inline-flex ml-1"
|
||||
>
|
||||
<i className="icon-[mingcute--question-line]" />
|
||||
<i className="i-mingcute-question-line" />
|
||||
</Tooltip>
|
||||
</label>
|
||||
</div>
|
||||
|
||||
@@ -171,7 +171,7 @@ export const CommentItem = ({
|
||||
variant="text"
|
||||
onClick={() => setEditOpen(!editOpen)}
|
||||
>
|
||||
<i className="icon-[mingcute--edit-line] mx-1" />{" "}
|
||||
<i className="i-mingcute-edit-line mx-1" />{" "}
|
||||
{t(`${editOpen ? "Cancel " : ""}Edit`)}
|
||||
</Button>
|
||||
)}
|
||||
@@ -184,7 +184,7 @@ export const CommentItem = ({
|
||||
onClick={() => setDeleteConfirmModalOpen(true)}
|
||||
isLoading={deletePage.isLoading}
|
||||
>
|
||||
<i className="icon-[mingcute--delete-2-line] mx-1" />{" "}
|
||||
<i className="i-mingcute-delete-2-line mx-1" />{" "}
|
||||
{t("Delete")}
|
||||
</Button>
|
||||
<DeleteConfirmationModal
|
||||
|
||||
@@ -117,24 +117,24 @@ export const ConnectButton = ({
|
||||
const dropdownLinks: HeaderLinkType[] = [
|
||||
account?.character
|
||||
? {
|
||||
icon: "icon-[mingcute--home-1-line]",
|
||||
icon: "i-mingcute-home-1-line",
|
||||
label: t("My xLog") || "",
|
||||
href: getSiteLink({
|
||||
subdomain: account?.character?.handle || "",
|
||||
}),
|
||||
}
|
||||
: {
|
||||
icon: "icon-[mingcute--home-1-line]",
|
||||
icon: "i-mingcute-home-1-line",
|
||||
label: t("My xLog") || "",
|
||||
onClick: () => walletMintNewCharacterModal.show(),
|
||||
},
|
||||
{
|
||||
icon: "icon-[mingcute--grid-line]",
|
||||
icon: "i-mingcute-grid-line",
|
||||
label: t("Dashboard") || "",
|
||||
href: `${SITE_URL}/dashboard`,
|
||||
},
|
||||
{
|
||||
icon: "icon-[mingcute--copy-2-line]",
|
||||
icon: "i-mingcute-copy-2-line",
|
||||
label: t(copyLabelDisplay) || "",
|
||||
onClick: (e) => {
|
||||
e.preventDefault()
|
||||
@@ -144,7 +144,7 @@ export const ConnectButton = ({
|
||||
...(account?.type === "wallet"
|
||||
? [
|
||||
{
|
||||
icon: "icon-[mingcute--seal-line]",
|
||||
icon: "i-mingcute-seal-line",
|
||||
label: (
|
||||
<>
|
||||
{t("Operator Sign")} (
|
||||
@@ -165,7 +165,7 @@ export const ConnectButton = ({
|
||||
},
|
||||
},
|
||||
{
|
||||
icon: "icon-[mingcute--currency-euro-line]",
|
||||
icon: "i-mingcute-currency-euro-line",
|
||||
label: (
|
||||
<span className={InsufficientBalance ? "text-red-400" : ""}>
|
||||
{balance?.formatted.replace(/\.(\d{5})\d*$/, ".$1") ||
|
||||
@@ -176,20 +176,20 @@ export const ConnectButton = ({
|
||||
onClick: csbDetailModal.show,
|
||||
},
|
||||
{
|
||||
icon: "icon-[mingcute--repeat-line]",
|
||||
icon: "i-mingcute-repeat-line",
|
||||
label: t("Switch Characters") || "",
|
||||
onClick: selectCharactersModal.show,
|
||||
},
|
||||
]
|
||||
: [
|
||||
{
|
||||
icon: "icon-[mingcute--vip-2-line]",
|
||||
icon: "i-mingcute-vip-2-line",
|
||||
label: t("Upgrade to Wallet") || "",
|
||||
onClick: upgradeAccountModal.show,
|
||||
},
|
||||
]),
|
||||
{
|
||||
icon: "icon-[mingcute--exit-line]",
|
||||
icon: "i-mingcute-exit-line",
|
||||
label: t("Disconnect") || "",
|
||||
onClick: disconnect,
|
||||
},
|
||||
@@ -197,22 +197,22 @@ export const ConnectButton = ({
|
||||
|
||||
const addDropdownLinks: HeaderLinkType[] = [
|
||||
{
|
||||
icon: "icon-[mingcute--news-line]",
|
||||
icon: "i-mingcute-news-line",
|
||||
label: t("New Post") || "",
|
||||
href: `${SITE_URL}/dashboard/${account?.character?.handle}/editor?type=post`,
|
||||
},
|
||||
{
|
||||
icon: "icon-[mingcute--file-line]",
|
||||
icon: "i-mingcute-file-line",
|
||||
label: t("New Page") || "",
|
||||
href: `${SITE_URL}/dashboard/${account?.character?.handle}/editor?type=page`,
|
||||
},
|
||||
{
|
||||
icon: "icon-[mingcute--ins-line]",
|
||||
icon: "i-mingcute-ins-line",
|
||||
label: t("New Short") || "",
|
||||
href: `${SITE_URL}/dashboard/${account?.character?.handle}/editor?type=short`,
|
||||
},
|
||||
{
|
||||
icon: "icon-[mingcute--cloud-line]",
|
||||
icon: "i-mingcute-cloud-line",
|
||||
label: t("New Portfolio") || "",
|
||||
href: `${SITE_URL}/dashboard/${account?.character?.handle}/editor?type=portfolio`,
|
||||
},
|
||||
@@ -356,7 +356,7 @@ export const ConnectButton = ({
|
||||
</span>
|
||||
)}
|
||||
</div>
|
||||
<i className="icon-[mingcute--down-line] text-xl ml-[2px]" />
|
||||
<i className="i-mingcute-down-line text-xl ml-[2px]" />
|
||||
</>
|
||||
)}
|
||||
</button>
|
||||
|
||||
@@ -103,7 +103,7 @@ const ThemeSwitcher = () => {
|
||||
buildThemeTransition(e, "light")
|
||||
}}
|
||||
>
|
||||
<i className="icon-[mingcute--sun-line]" />
|
||||
<i className="i-mingcute-sun-line" />
|
||||
</button>
|
||||
<button
|
||||
aria-label="Switch to system theme"
|
||||
@@ -113,7 +113,7 @@ const ThemeSwitcher = () => {
|
||||
buildThemeTransition(e, "system")
|
||||
}}
|
||||
>
|
||||
<i className="icon-[mingcute--computer-line]" />
|
||||
<i className="i-mingcute-computer-line" />
|
||||
</button>
|
||||
<button
|
||||
aria-label="Switch to dark theme"
|
||||
@@ -123,7 +123,7 @@ const ThemeSwitcher = () => {
|
||||
buildThemeTransition(e, "dark")
|
||||
}}
|
||||
>
|
||||
<i className="icon-[mingcute--moon-line]" />
|
||||
<i className="i-mingcute-moon-line" />
|
||||
</button>
|
||||
</div>
|
||||
)
|
||||
|
||||
@@ -115,18 +115,18 @@ export const FollowingButton = ({
|
||||
{subscription.data ? (
|
||||
<>
|
||||
<span className="group-hover:hidden inline-flex items-center">
|
||||
<span className="icon-[mingcute--user-follow-fill] inline-block sm:mr-2"></span>{" "}
|
||||
<span className="i-mingcute-user-follow-fill inline-block sm:mr-2"></span>{" "}
|
||||
<span className="hidden sm:inline">{t("Following")}</span>
|
||||
</span>
|
||||
<span className="hidden group-hover:inline-flex items-center">
|
||||
<span className="icon-[mingcute--user-remove-fill] inline-block sm:mr-2"></span>{" "}
|
||||
<span className="i-mingcute-user-remove-fill inline-block sm:mr-2"></span>{" "}
|
||||
<span className="hidden sm:inline">{t("Unfollow")}</span>
|
||||
</span>
|
||||
</>
|
||||
) : (
|
||||
<span className="inline-flex items-center">
|
||||
{!isLoading && (
|
||||
<span className="icon-[mingcute--user-add-fill] inline-block sm:mr-2"></span>
|
||||
<span className="i-mingcute-user-add-fill inline-block sm:mr-2"></span>
|
||||
)}{" "}
|
||||
<span className="hidden sm:inline">{t("Follow")}</span>
|
||||
</span>
|
||||
|
||||
@@ -20,7 +20,7 @@ export function LanguageSwitch() {
|
||||
<Menu
|
||||
placement="top"
|
||||
target={
|
||||
<button className="inline-block icon-[mingcute--translate-2-line] text-2xl"></button>
|
||||
<button className="inline-block i-mingcute-translate-2-line text-2xl"></button>
|
||||
}
|
||||
dropdown={
|
||||
<>
|
||||
@@ -36,7 +36,7 @@ export function LanguageSwitch() {
|
||||
>
|
||||
<span>{nameMap[lo]}</span>
|
||||
{locale === lo && (
|
||||
<span className="ml-2 icon-[mingcute--check-line]"></span>
|
||||
<span className="ml-2 i-mingcute-check-line"></span>
|
||||
)}
|
||||
</Menu.Item>
|
||||
))}
|
||||
|
||||
@@ -33,7 +33,7 @@ export const PatronButton = ({
|
||||
>
|
||||
<span className="inline-flex items-center">
|
||||
<i className="text-red-400 text-xl inline-flex items-center">
|
||||
<i className="icon-[mingcute--heart-fill] inline-block" />
|
||||
<i className="i-mingcute-heart-fill inline-block" />
|
||||
</i>
|
||||
<span className="text-zinc-500 ml-1">{t("Patron")}</span>
|
||||
</span>
|
||||
|
||||
@@ -35,7 +35,7 @@ export const usePatronModal = () => {
|
||||
title: (
|
||||
<span className="inline-flex items-center justify-center w-full space-x-1">
|
||||
<span className="text-red-500 flex w-6 h-6 -mb-[1px]">
|
||||
<i className="icon-[mingcute--heart-fill] text-2xl -mb-[1px]" />
|
||||
<i className="i-mingcute-heart-fill text-2xl -mb-[1px]" />
|
||||
</span>
|
||||
<span className="truncate">{title}</span>
|
||||
</span>
|
||||
@@ -257,7 +257,7 @@ const PatronModal = ({
|
||||
</div>
|
||||
<div className="text-zinc-500 text-xs space-y-1 mt-2">
|
||||
<p className="flex items-center justify-center">
|
||||
<i className="icon-[mingcute--question-line] mr-1 text-sm" />
|
||||
<i className="i-mingcute-question-line mr-1 text-sm" />
|
||||
<UniLink href={MIRA_LINK}>
|
||||
{t("What is MIRA? Where can I get some?")}
|
||||
</UniLink>
|
||||
|
||||
@@ -95,7 +95,7 @@ const Card = ({
|
||||
>
|
||||
{comment && (
|
||||
<div className="font-medium text-zinc-700 line-clamp-2">
|
||||
<i className="icon-[mingcute--comment-fill] mr-2" />
|
||||
<i className="i-mingcute-comment-fill mr-2" />
|
||||
{comment}
|
||||
</div>
|
||||
)}
|
||||
@@ -158,7 +158,7 @@ const Card = ({
|
||||
</Tooltip>
|
||||
{!!post.stat?.portfolio?.videoViewsCount && (
|
||||
<span className="xlog-post-views inline-flex items-center">
|
||||
<i className="icon-[mingcute--youtube-line] mr-[2px] text-base" />
|
||||
<i className="i-mingcute-youtube-line mr-[2px] text-base" />
|
||||
<FormattedNumber
|
||||
value={post.stat.portfolio.videoViewsCount}
|
||||
/>
|
||||
@@ -166,7 +166,7 @@ const Card = ({
|
||||
)}
|
||||
{!!post.stat?.portfolio?.audoListensCount && (
|
||||
<span className="xlog-post-views inline-flex items-center">
|
||||
<i className="icon-[mingcute--headphone-line] mr-[2px] text-base" />
|
||||
<i className="i-mingcute-headphone-line mr-[2px] text-base" />
|
||||
<FormattedNumber
|
||||
value={post.stat.portfolio.audoListensCount}
|
||||
/>
|
||||
@@ -174,7 +174,7 @@ const Card = ({
|
||||
)}
|
||||
{!!post.stat?.portfolio?.projectStarsCount && (
|
||||
<span className="xlog-post-views inline-flex items-center">
|
||||
<i className="icon-[mingcute--star-line] mr-[2px] text-base" />
|
||||
<i className="i-mingcute-star-line mr-[2px] text-base" />
|
||||
<FormattedNumber
|
||||
value={post.stat.portfolio.projectStarsCount}
|
||||
/>
|
||||
@@ -182,7 +182,7 @@ const Card = ({
|
||||
)}
|
||||
{!!post.stat?.portfolio?.textViewsCount && (
|
||||
<span className="xlog-post-views inline-flex items-center">
|
||||
<i className="icon-[mingcute--eye-line] mr-[2px] text-base" />
|
||||
<i className="i-mingcute-eye-line mr-[2px] text-base" />
|
||||
<FormattedNumber
|
||||
value={post.stat.portfolio.textViewsCount}
|
||||
/>
|
||||
@@ -190,7 +190,7 @@ const Card = ({
|
||||
)}
|
||||
{!!post.stat?.portfolio?.commentsCount && (
|
||||
<span className="xlog-post-views inline-flex items-center">
|
||||
<i className="icon-[mingcute--comment-line] mr-[2px] text-base" />
|
||||
<i className="i-mingcute-comment-line mr-[2px] text-base" />
|
||||
<FormattedNumber
|
||||
value={post.stat.portfolio.commentsCount}
|
||||
/>
|
||||
@@ -207,25 +207,25 @@ const Card = ({
|
||||
router.push(`/tag/${post.metadata?.content?.tags?.[1]}`)
|
||||
}}
|
||||
>
|
||||
<i className="icon-[mingcute--tag-line] mr-[2px]" />
|
||||
<i className="i-mingcute-tag-line mr-[2px]" />
|
||||
{post.metadata?.content?.tags?.[1]}
|
||||
</span>
|
||||
)}
|
||||
{!isShort && !!post.stat?.viewDetailCount && (
|
||||
<span className="xlog-post-views inline-flex items-center">
|
||||
<i className="icon-[mingcute--eye-line] mr-[2px] text-base" />
|
||||
<i className="i-mingcute-eye-line mr-[2px] text-base" />
|
||||
<FormattedNumber value={post.stat?.viewDetailCount} />
|
||||
</span>
|
||||
)}
|
||||
{!!post.stat?.commentsCount && (
|
||||
<span className="xlog-post-views inline-flex items-center">
|
||||
<i className="icon-[mingcute--comment-line] mr-[2px] text-base" />
|
||||
<i className="i-mingcute-comment-line mr-[2px] text-base" />
|
||||
<FormattedNumber value={post.stat.commentsCount} />
|
||||
</span>
|
||||
)}
|
||||
{!post.stat?.commentsCount && (
|
||||
<span className="xlog-post-word-count sm:inline-flex items-center hidden">
|
||||
<i className="icon-[mingcute--sandglass-line] mr-[2px] text-sm" />
|
||||
<i className="i-mingcute-sandglass-line mr-[2px] text-sm" />
|
||||
<span
|
||||
style={{
|
||||
wordSpacing: "-.2ch",
|
||||
@@ -282,13 +282,13 @@ const Card = ({
|
||||
<span className="xlog-post-meta text-zinc-400 flex items-center text-[13px] truncate space-x-2 !ml-2">
|
||||
{!!post.stat?.likesCount && (
|
||||
<span className="xlog-post-views inline-flex items-center">
|
||||
<i className="icon-[mingcute--thumb-up-2-line] mr-[2px] text-base" />
|
||||
<i className="i-mingcute-thumb-up-2-line mr-[2px] text-base" />
|
||||
<FormattedNumber value={post.stat?.likesCount} />
|
||||
</span>
|
||||
)}
|
||||
{!!post.stat?.commentsCount && (
|
||||
<span className="xlog-post-views inline-flex items-center">
|
||||
<i className="icon-[mingcute--comment-line] mr-[2px] text-base" />
|
||||
<i className="i-mingcute-comment-line mr-[2px] text-base" />
|
||||
<FormattedNumber value={post.stat?.commentsCount} />
|
||||
</span>
|
||||
)}
|
||||
@@ -324,7 +324,7 @@ const Card = ({
|
||||
</div>
|
||||
{isPinned && (
|
||||
<span className="absolute top-2 right-2 text-xs border transition-colors text-zinc-500 inline-flex items-center bg-zinc-100 rounded-full px-2 py-[1.5px]">
|
||||
<i className="icon-[mingcute--pin-2-fill] mr-1" />
|
||||
<i className="i-mingcute-pin-2-fill mr-1" />
|
||||
{t("Pinned")}
|
||||
</span>
|
||||
)}
|
||||
|
||||
@@ -45,9 +45,7 @@ export const ReactionComment = ({
|
||||
>
|
||||
{(() => {
|
||||
const inner = (
|
||||
<i
|
||||
className={cn("icon-[mingcute--comment-fill]", "text-[33px]")}
|
||||
/>
|
||||
<i className={cn("i-mingcute-comment-fill", "text-[33px]")} />
|
||||
)
|
||||
return (
|
||||
<Tooltip label={t("Comments")} placement="right">
|
||||
|
||||
@@ -162,7 +162,7 @@ export const ReactionLike = ({
|
||||
const inner = (
|
||||
<i
|
||||
className={cn(
|
||||
"icon-[mingcute--thumb-up-2-fill]",
|
||||
"i-mingcute-thumb-up-2-fill",
|
||||
size === "sm"
|
||||
? "text-base"
|
||||
: vertical
|
||||
|
||||
@@ -129,7 +129,7 @@ export const ReactionMint = ({
|
||||
const inner = (
|
||||
<i
|
||||
className={cn(
|
||||
"icon-[mingcute--magic-1-fill]",
|
||||
"i-mingcute-magic-1-fill",
|
||||
size === "sm"
|
||||
? "text-base"
|
||||
: vertical
|
||||
|
||||
@@ -60,7 +60,7 @@ const shareList = [
|
||||
|
||||
{
|
||||
name: "Copy",
|
||||
icon: <i className="icon-[mingcute--copy-fill]" />,
|
||||
icon: <i className="i-mingcute-copy-fill" />,
|
||||
onClick: (data: ShareData) => {
|
||||
navigator.clipboard.writeText(data.url)
|
||||
toast.success("Copied to clipboard", {
|
||||
@@ -113,7 +113,7 @@ export const ReactionShare: FC<{
|
||||
const inner = (
|
||||
<i
|
||||
className={cn(
|
||||
"icon-[mingcute--share-forward-fill]",
|
||||
"i-mingcute-share-forward-fill",
|
||||
size === "sm"
|
||||
? "text-base"
|
||||
: vertical
|
||||
|
||||
@@ -90,7 +90,7 @@ export const ReactionTip = ({
|
||||
const inner = (
|
||||
<i
|
||||
className={cn(
|
||||
"icon-[mingcute--heart-fill]",
|
||||
"i-mingcute-heart-fill",
|
||||
vertical ? "text-[33px]" : "text-[38px]",
|
||||
)}
|
||||
/>
|
||||
|
||||
@@ -35,7 +35,7 @@ export const SearchInput = ({
|
||||
className="absolute left-0 top-1/2 -translate-y-1/2 text-2xl text-zinc-500 h-11 ml-4 flex items-center justify-center cursor-pointer"
|
||||
onClick={handleSubmit}
|
||||
>
|
||||
<i className="icon-[mingcute--search-line] block" />
|
||||
<i className="i-mingcute-search-line block" />
|
||||
</div>
|
||||
<input
|
||||
id="content"
|
||||
|
||||
@@ -11,11 +11,11 @@ const icons: {
|
||||
} = {
|
||||
"xLog contributor": {
|
||||
bg: "bg-zinc-700 text-white",
|
||||
icon: "icon-[mingcute--terminal-line]",
|
||||
icon: "i-mingcute-terminal-line",
|
||||
},
|
||||
Organization: {
|
||||
bg: "bg-sky-700 text-white",
|
||||
icon: "icon-[mingcute--building-1-line]",
|
||||
icon: "i-mingcute-building-1-line",
|
||||
},
|
||||
}
|
||||
|
||||
|
||||
@@ -244,9 +244,9 @@ export default function DualColumnEditor({
|
||||
onClick={() => setIsRendering(!isRendering)}
|
||||
>
|
||||
{isRendering ? (
|
||||
<i className="icon-[mingcute--right-line] text-2xl inline-block w-6 h-6" />
|
||||
<i className="i-mingcute-right-line text-2xl inline-block w-6 h-6" />
|
||||
) : (
|
||||
<i className="icon-[mingcute--left-line] text-2xl inline-block w-6 h-6" />
|
||||
<i className="i-mingcute-left-line text-2xl inline-block w-6 h-6" />
|
||||
)}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -44,9 +44,9 @@ export const OptionsButton = ({
|
||||
onClick={() => renderPage(!isRendering)}
|
||||
>
|
||||
{isRendering ? (
|
||||
<i className="icon-[mingcute--eye-close-line] text-xl inline-block w-5 h-5" />
|
||||
<i className="i-mingcute-eye-close-line text-xl inline-block w-5 h-5" />
|
||||
) : (
|
||||
<i className="icon-[mingcute--eye-2-line] text-xl inline-block w-5 h-5" />
|
||||
<i className="i-mingcute-eye-2-line text-xl inline-block w-5 h-5" />
|
||||
)}
|
||||
</div>
|
||||
<Popover className="relative">
|
||||
@@ -60,7 +60,7 @@ export const OptionsButton = ({
|
||||
// }}
|
||||
>
|
||||
<div className="bg-accent rounded-full cursor-pointer text-white w-6 h-6 flex justify-center items-center">
|
||||
<i className="icon-[mingcute--settings-6-line] text-xl inline-block w-5 h-5" />
|
||||
<i className="i-mingcute-settings-6-line text-xl inline-block w-5 h-5" />
|
||||
</div>
|
||||
</Popover.Button>
|
||||
<Transition
|
||||
@@ -88,9 +88,9 @@ export const OptionsButton = ({
|
||||
<Menu.Button>
|
||||
<div className="bg-accent rounded-full cursor-pointer text-white w-6 h-6 flex items-center justify-center">
|
||||
{open ? (
|
||||
<i className="icon-[mingcute--send-fill] text-2xl inline-block w-5 h-5" />
|
||||
<i className="i-mingcute-send-fill text-2xl inline-block w-5 h-5" />
|
||||
) : (
|
||||
<i className="icon-[mingcute--send-line] text-2xl inline-block w-5 h-5" />
|
||||
<i className="i-mingcute-send-line text-2xl inline-block w-5 h-5" />
|
||||
)}
|
||||
</div>
|
||||
</Menu.Button>
|
||||
|
||||
@@ -281,7 +281,7 @@ export const PagesManager = ({ type }: { type: NoteType }) => {
|
||||
router.push(`/dashboard/${subdomain}/editor?type=${type}`)
|
||||
}
|
||||
>
|
||||
<span className="icon-[mingcute--add-line] inline-block"></span>
|
||||
<span className="i-mingcute-add-line inline-block"></span>
|
||||
<span>
|
||||
{t(`New ${type.charAt(0).toUpperCase() + type.slice(1)}`)}
|
||||
</span>
|
||||
@@ -293,7 +293,7 @@ export const PagesManager = ({ type }: { type: NoteType }) => {
|
||||
placement="bottom"
|
||||
>
|
||||
<Button className={cn(`space-x-2`)} onClick={importFile}>
|
||||
<span className="icon-[mingcute--file-import-line] inline-block"></span>
|
||||
<span className="i-mingcute-file-import-line inline-block"></span>
|
||||
<span>{t("Import")}</span>
|
||||
</Button>
|
||||
</Tooltip>
|
||||
@@ -385,12 +385,12 @@ export const PagesManager = ({ type }: { type: NoteType }) => {
|
||||
<>
|
||||
{!!page.metadata?.content?.tags?.[1] && (
|
||||
<span className="xlog-post-tags border transition-colors text-zinc-500 inline-flex items-center bg-zinc-100 rounded-full px-2 py-[1.5px] truncate text-xs sm:text-[13px] mr-2">
|
||||
<i className="icon-[mingcute--tag-line] mr-[2px]" />
|
||||
<i className="i-mingcute-tag-line mr-[2px]" />
|
||||
{page.metadata?.content?.tags?.[1]}
|
||||
</span>
|
||||
)}
|
||||
<span className="xlog-post-word-count sm:inline-flex items-center hidden mr-2">
|
||||
<i className="icon-[mingcute--time-line] mr-[2px]" />
|
||||
<i className="i-mingcute-time-line mr-[2px]" />
|
||||
<span
|
||||
style={{
|
||||
wordSpacing: "-.2ch",
|
||||
@@ -401,7 +401,7 @@ export const PagesManager = ({ type }: { type: NoteType }) => {
|
||||
</span>
|
||||
{!!page.stat?.viewDetailCount && (
|
||||
<span className="xlog-post-views inline-flex items-center">
|
||||
<i className="icon-[mingcute--eye-line] mr-[2px]" />
|
||||
<i className="i-mingcute-eye-line mr-[2px]" />
|
||||
<span>{page.stat?.viewDetailCount}</span>
|
||||
</span>
|
||||
)}
|
||||
@@ -424,7 +424,7 @@ export const PagesManager = ({ type }: { type: NoteType }) => {
|
||||
<>
|
||||
<span className="mx-2">·</span>
|
||||
<span>
|
||||
<i className="icon-[mingcute--pin-2-fill] translate-y-[18%]" />{" "}
|
||||
<i className="i-mingcute-pin-2-fill translate-y-[18%]" />{" "}
|
||||
{t("Pinned")}
|
||||
</span>
|
||||
</>
|
||||
@@ -470,8 +470,8 @@ export const PagesManager = ({ type }: { type: NoteType }) => {
|
||||
batchSelected.includes(
|
||||
page.noteId || page.draftKey || 0,
|
||||
)
|
||||
? "icon-[mingcute--check-fill]"
|
||||
: "icon-[mingcute--add-line]"
|
||||
? "i-mingcute-check-fill"
|
||||
: "i-mingcute-add-line"
|
||||
} text-lg`}
|
||||
/>
|
||||
</button>
|
||||
@@ -490,7 +490,7 @@ export const PagesManager = ({ type }: { type: NoteType }) => {
|
||||
e.stopPropagation()
|
||||
}}
|
||||
>
|
||||
<i className="icon-[mingcute--more-1-line] text-2xl" />
|
||||
<i className="i-mingcute-more-1-line text-2xl" />
|
||||
</button>
|
||||
</Menu.Button>
|
||||
|
||||
|
||||
@@ -91,21 +91,19 @@ export const PagesManagerMenu = ({
|
||||
const items: Item[] = [
|
||||
{
|
||||
text: "Edit",
|
||||
icon: <span className="icon-[mingcute--edit-line] inline-block"></span>,
|
||||
icon: <span className="i-mingcute-edit-line inline-block"></span>,
|
||||
onClick() {
|
||||
router.push(editLink)
|
||||
},
|
||||
},
|
||||
{
|
||||
text: pinPage.isPinned ? "Unpin" : "Pin",
|
||||
icon: <span className="icon-[mingcute--pin-2-line] inline-block"></span>,
|
||||
icon: <span className="i-mingcute-pin-2-line inline-block"></span>,
|
||||
onClick: pinPage.togglePin,
|
||||
},
|
||||
{
|
||||
text: "Convert to " + (type === "post" ? "Page" : "Post"),
|
||||
icon: (
|
||||
<span className="icon-[mingcute--transfer-3-line] inline-block"></span>
|
||||
),
|
||||
icon: <span className="i-mingcute-transfer-3-line inline-block"></span>,
|
||||
onClick() {
|
||||
const toastId = toast.loading("Converting...")
|
||||
|
||||
@@ -135,7 +133,7 @@ export const PagesManagerMenu = ({
|
||||
},
|
||||
{
|
||||
text: "Preview",
|
||||
icon: <span className="icon-[mingcute--eye-line] inline-block"></span>,
|
||||
icon: <span className="i-mingcute-eye-line inline-block"></span>,
|
||||
onClick() {
|
||||
const slug = getNoteSlugFromNote(page)
|
||||
if (!slug) return
|
||||
@@ -144,9 +142,7 @@ export const PagesManagerMenu = ({
|
||||
},
|
||||
{
|
||||
text: "Share to Twitter",
|
||||
icon: (
|
||||
<span className="icon-[mingcute--twitter-line] inline-block"></span>
|
||||
),
|
||||
icon: <span className="i-mingcute-twitter-line inline-block"></span>,
|
||||
onClick() {
|
||||
if (site.data) {
|
||||
const twitterShareUrl = getTwitterShareUrl({
|
||||
@@ -160,9 +156,7 @@ export const PagesManagerMenu = ({
|
||||
},
|
||||
{
|
||||
text: "Delete",
|
||||
icon: (
|
||||
<span className="icon-[mingcute--delete-2-line] inline-block"></span>
|
||||
),
|
||||
icon: <span className="i-mingcute-delete-2-line inline-block"></span>,
|
||||
onClick() {
|
||||
setDeleteConfirmModalOpen(true)
|
||||
},
|
||||
|
||||
@@ -59,7 +59,7 @@ export const PublishButton = ({
|
||||
isDisabled={isSaving}
|
||||
className="!rounded-r-full"
|
||||
>
|
||||
<i className="icon-[mingcute--down-line]" />
|
||||
<i className="i-mingcute-down-line" />
|
||||
</Button>
|
||||
}
|
||||
dropdown={
|
||||
@@ -68,7 +68,7 @@ export const PublishButton = ({
|
||||
className="flex w-full h-8 hover:bg-zinc-100 items-center px-5"
|
||||
onClick={() => window.open(twitterShareUrl)}
|
||||
>
|
||||
<i className="icon-[mingcute--twitter-line] mr-1"></i>
|
||||
<i className="i-mingcute-twitter-line mr-1"></i>
|
||||
{t("Share to Twitter")}
|
||||
</button>
|
||||
{isModified && (
|
||||
@@ -76,7 +76,7 @@ export const PublishButton = ({
|
||||
className="flex w-full h-8 hover:bg-zinc-100 items-center px-5"
|
||||
onClick={discardChanges}
|
||||
>
|
||||
<i className="icon-[mingcute--delete-back-line] mr-1"></i>
|
||||
<i className="i-mingcute-delete-back-line mr-1"></i>
|
||||
{t("Discard Changes")}
|
||||
</button>
|
||||
)}
|
||||
@@ -84,7 +84,7 @@ export const PublishButton = ({
|
||||
className="flex w-full h-8 hover:bg-zinc-100 items-center px-5"
|
||||
onClick={() => setDeleteConfirmModalOpen(true)}
|
||||
>
|
||||
<i className="icon-[mingcute--delete-2-line] mr-1"></i>
|
||||
<i className="i-mingcute-delete-2-line mr-1"></i>
|
||||
{t("Delete")}
|
||||
</button>
|
||||
</div>
|
||||
|
||||
@@ -3,7 +3,7 @@ import { ICommand, wrapExecute } from "."
|
||||
export const AlignCenter: ICommand = {
|
||||
name: "align center",
|
||||
label: "Align Center",
|
||||
icon: "icon-[mingcute--align-center-line]",
|
||||
icon: "i-mingcute-align-center-line",
|
||||
execute: ({ view }) => {
|
||||
wrapExecute({ view, prepend: ":p[", append: "]{.center}" })
|
||||
},
|
||||
|
||||
@@ -3,7 +3,7 @@ import { ICommand, wrapExecute } from "."
|
||||
export const AlignRight: ICommand = {
|
||||
name: "align right",
|
||||
label: "Align Right",
|
||||
icon: "icon-[mingcute--align-right-line]",
|
||||
icon: "i-mingcute-align-right-line",
|
||||
execute: ({ view }) => {
|
||||
wrapExecute({ view, prepend: ":p[", append: "]{.right}" })
|
||||
},
|
||||
|
||||
@@ -9,7 +9,7 @@ const action = (view: EditorView) => {
|
||||
export const Bold: ICommand = {
|
||||
name: "bold",
|
||||
label: "Bold",
|
||||
icon: "icon-[mingcute--bold-line]",
|
||||
icon: "i-mingcute-bold-line",
|
||||
execute({ view }) {
|
||||
action(view)
|
||||
},
|
||||
|
||||
@@ -53,7 +53,7 @@ const uploadResources = async (text: string) => {
|
||||
export const Cloud: ICommand = {
|
||||
name: "cloud",
|
||||
label: "Upload All Images to IPFS",
|
||||
icon: "icon-[mingcute--upload-3-line]",
|
||||
icon: "i-mingcute-upload-3-line",
|
||||
execute: async ({ view }) => {
|
||||
const docJson = view.state.doc.toJSON()
|
||||
const newDocJson = await Promise.all(
|
||||
|
||||
@@ -3,7 +3,7 @@ import { ICommand, wrapExecute } from "."
|
||||
export const Code: ICommand = {
|
||||
name: "code",
|
||||
label: "Inline Code",
|
||||
icon: "icon-[mingcute--code-line]",
|
||||
icon: "i-mingcute-code-line",
|
||||
execute: ({ view }) => {
|
||||
wrapExecute({ view, prepend: "`", append: "`" })
|
||||
},
|
||||
|
||||
@@ -3,7 +3,7 @@ import { ICommand, wrapExecute } from "."
|
||||
export const CodeBlock: ICommand = {
|
||||
name: "codeblock",
|
||||
label: "Code Block",
|
||||
icon: "icon-[mingcute--web-line]",
|
||||
icon: "i-mingcute-web-line",
|
||||
execute: ({ view }) => {
|
||||
wrapExecute({ view, prepend: "```\n", append: "\n```" })
|
||||
},
|
||||
|
||||
@@ -5,7 +5,7 @@ import { ICommand, wrapExecute } from "."
|
||||
export const Emoji: ICommand<string> = {
|
||||
name: "emoji",
|
||||
label: "Emoji",
|
||||
icon: "icon-[mingcute--emoji-2-line]",
|
||||
icon: "i-mingcute-emoji-2-line",
|
||||
execute: ({ view, payload }) => {
|
||||
wrapExecute({ view, prepend: payload || "", append: "" })
|
||||
},
|
||||
|
||||
@@ -3,7 +3,7 @@ import { ICommand } from "."
|
||||
export const Focus: ICommand = {
|
||||
name: "focus",
|
||||
label: "Toggle Focus Mode",
|
||||
icon: "icon-[mingcute--fullscreen-line]",
|
||||
icon: "i-mingcute-fullscreen-line",
|
||||
execute: () => {
|
||||
let elem = document.getElementById("dashboard-main")
|
||||
if (!elem) {
|
||||
|
||||
@@ -3,7 +3,7 @@ import { ICommand, wrapExecute } from "."
|
||||
export const Formula: ICommand = {
|
||||
name: "formula",
|
||||
label: "Formula",
|
||||
icon: "icon-[mingcute--formula-line]",
|
||||
icon: "i-mingcute-formula-line",
|
||||
execute: ({ view }) => {
|
||||
wrapExecute({ view, prepend: "$$ ", append: " $$" })
|
||||
},
|
||||
|
||||
@@ -3,7 +3,7 @@ import { ICommand, prependExecute } from "."
|
||||
export const Heading: ICommand = {
|
||||
name: "heading",
|
||||
label: "Heading",
|
||||
icon: "icon-[mingcute--heading-2-line]",
|
||||
icon: "i-mingcute-heading-2-line",
|
||||
execute: ({ view }) => {
|
||||
prependExecute({ view, prepend: "## " })
|
||||
},
|
||||
|
||||
@@ -5,7 +5,7 @@ import { ICommand } from "."
|
||||
export const Help: ICommand = {
|
||||
name: "help",
|
||||
label: "Help: Markdown syntax and components used by xLog",
|
||||
icon: "icon-[mingcute--question-line]",
|
||||
icon: "i-mingcute-question-line",
|
||||
execute: ({ view }) => {
|
||||
window.open(
|
||||
`${getSiteLink({
|
||||
|
||||
@@ -9,7 +9,7 @@ const action = (view: EditorView) => {
|
||||
export const Italic: ICommand = {
|
||||
name: "italic",
|
||||
label: "Italic",
|
||||
icon: "icon-[mingcute--italic-line]",
|
||||
icon: "i-mingcute-italic-line",
|
||||
execute({ view }) {
|
||||
action(view)
|
||||
},
|
||||
|
||||
@@ -9,7 +9,7 @@ const action = (view: EditorView) => {
|
||||
export const Link: ICommand = {
|
||||
name: "link",
|
||||
label: "Link",
|
||||
icon: "icon-[mingcute--link-2-line]",
|
||||
icon: "i-mingcute-link-2-line",
|
||||
execute({ view }) {
|
||||
action(view)
|
||||
},
|
||||
|
||||
@@ -3,7 +3,7 @@ import { ICommand, wrapExecute } from "."
|
||||
export const ListOrdered: ICommand = {
|
||||
name: "list-ordered",
|
||||
label: "Ordered List",
|
||||
icon: "icon-[mingcute--list-ordered-line]",
|
||||
icon: "i-mingcute-list-ordered-line",
|
||||
execute: ({ view }) => {
|
||||
wrapExecute({ view, prepend: "1. ", append: "\n" })
|
||||
},
|
||||
|
||||
@@ -3,7 +3,7 @@ import { ICommand, wrapExecute } from "."
|
||||
export const ListUnordered: ICommand = {
|
||||
name: "list-unordered",
|
||||
label: "Unordered List",
|
||||
icon: "icon-[mingcute--list-check-line]",
|
||||
icon: "i-mingcute-list-check-line",
|
||||
execute: ({ view }) => {
|
||||
wrapExecute({ view, prepend: "- ", append: "\n" })
|
||||
},
|
||||
|
||||
@@ -3,7 +3,7 @@ import { ICommand, wrapExecute } from "."
|
||||
export const Mention: ICommand = {
|
||||
name: "mention",
|
||||
label: "Mention",
|
||||
icon: "icon-[mingcute--at-line]",
|
||||
icon: "i-mingcute-at-line",
|
||||
execute: ({ view }) => {
|
||||
wrapExecute({ view, prepend: "@", append: "" })
|
||||
},
|
||||
|
||||
@@ -101,7 +101,7 @@ export async function editorUpload(file: File, view: EditorView) {
|
||||
export const Multimedia: ICommand = {
|
||||
name: "upload-multimedia",
|
||||
label: "Upload Image, Audio or Video",
|
||||
icon: "icon-[mingcute--photo-album-line]",
|
||||
icon: "i-mingcute-photo-album-line",
|
||||
execute: ({ view }) => {
|
||||
const input = document.createElement("input")
|
||||
input.type = "file"
|
||||
|
||||
@@ -3,7 +3,7 @@ import { ICommand, wrapExecute } from "."
|
||||
export const Quote: ICommand = {
|
||||
name: "quote",
|
||||
label: "Quote",
|
||||
icon: "icon-[mingcute--quote-left-fill]",
|
||||
icon: "i-mingcute-quote-left-fill",
|
||||
execute: ({ view }) => {
|
||||
wrapExecute({ view, prepend: "> ", append: "\n" })
|
||||
},
|
||||
|
||||
@@ -3,7 +3,7 @@ import { ICommand, wrapExecute } from "."
|
||||
export const Strikethrough: ICommand = {
|
||||
name: "strikethrough",
|
||||
label: "Strikethrough",
|
||||
icon: "icon-[mingcute--strikethrough-line]",
|
||||
icon: "i-mingcute-strikethrough-line",
|
||||
execute: ({ view }) => {
|
||||
wrapExecute({ view, prepend: "~~", append: "~~" })
|
||||
},
|
||||
|
||||
@@ -9,7 +9,7 @@ const action = (view: EditorView) => {
|
||||
export const Underline: ICommand = {
|
||||
name: "underline",
|
||||
label: "Underline",
|
||||
icon: "icon-[mingcute--underline-line]",
|
||||
icon: "i-mingcute-underline-line",
|
||||
execute: ({ view }) => {
|
||||
action(view)
|
||||
},
|
||||
|
||||
@@ -166,7 +166,7 @@ export const HomeFeed = ({ type }: { type?: FeedType }) => {
|
||||
<div className="space-y-10">
|
||||
{hasFiltering && (
|
||||
<div className="flex items-center text-zinc-500">
|
||||
<i className="icon-[mingcute--sparkles-line] mr-2 text-lg" />
|
||||
<i className="i-mingcute-sparkles-line mr-2 text-lg" />
|
||||
<span className="mr-1 cursor-default">
|
||||
{t("Enable AI Filtering")}
|
||||
</span>
|
||||
@@ -175,7 +175,7 @@ export const HomeFeed = ({ type }: { type?: FeedType }) => {
|
||||
"Filter out possible low-quality content based on AI ratings",
|
||||
)}
|
||||
>
|
||||
<i className="icon-[mingcute--question-line]" />
|
||||
<i className="i-mingcute-question-line" />
|
||||
</Tooltip>
|
||||
<Switch
|
||||
checked={aiFiltering}
|
||||
|
||||
@@ -61,13 +61,13 @@ export default function PostCover({
|
||||
id={`swiper-button-prev-${uniqueKey}`}
|
||||
className="swiper-button left-2"
|
||||
>
|
||||
<i className="icon-[mingcute--left-fill]" />
|
||||
<i className="i-mingcute-left-fill" />
|
||||
</div>
|
||||
<div
|
||||
id={`swiper-button-next-${uniqueKey}`}
|
||||
className="swiper-button right-2"
|
||||
>
|
||||
<i className="icon-[mingcute--right-fill]" />
|
||||
<i className="i-mingcute-right-fill" />
|
||||
</div>
|
||||
</>
|
||||
) : images?.length === 1 ? (
|
||||
|
||||
@@ -37,7 +37,7 @@ export default function PostModal({
|
||||
}}
|
||||
>
|
||||
<UniLink className="block" href={window.location.href} target="_blank">
|
||||
<i className="icon-[mingcute--expand-player-line]" />
|
||||
<i className="i-mingcute-expand-player-line" />
|
||||
</UniLink>
|
||||
<UniLink
|
||||
className="block"
|
||||
@@ -46,7 +46,7 @@ export default function PostModal({
|
||||
})}
|
||||
target="_blank"
|
||||
>
|
||||
<i className="icon-[mingcute--user-3-line]" />
|
||||
<i className="i-mingcute-user-3-line" />
|
||||
</UniLink>
|
||||
</div>
|
||||
<div className="overflow-hidden rounded-xl flex flex-col">{children}</div>
|
||||
|
||||
@@ -21,7 +21,7 @@ export default async function PromotionLinks({
|
||||
subdomain: "xlog",
|
||||
})}/xlog-rss`}
|
||||
>
|
||||
<span className="inline-block icon-[mingcute--rss-2-fill] text-2xl"></span>
|
||||
<span className="inline-block i-mingcute-rss-2-fill text-2xl"></span>
|
||||
</UniLink>
|
||||
<Tooltip
|
||||
className="z-10 bg-white"
|
||||
@@ -45,7 +45,7 @@ export default async function PromotionLinks({
|
||||
className="flex-1 flex justify-center text-[#181717]"
|
||||
href={GITHUB_LINK}
|
||||
>
|
||||
<span className="inline-block icon-[mingcute--github-fill] text-2xl"></span>
|
||||
<span className="inline-block i-mingcute-github-fill text-2xl"></span>
|
||||
</UniLink>
|
||||
)}
|
||||
{DISCORD_LINK && (
|
||||
@@ -53,7 +53,7 @@ export default async function PromotionLinks({
|
||||
className="flex-1 flex justify-center text-[#7289da]"
|
||||
href={DISCORD_LINK}
|
||||
>
|
||||
<span className="inline-block icon-[mingcute--discord-fill] text-2xl"></span>
|
||||
<span className="inline-block i-mingcute-discord-fill text-2xl"></span>
|
||||
</UniLink>
|
||||
)}
|
||||
{TWITTER_LINK && (
|
||||
@@ -61,7 +61,7 @@ export default async function PromotionLinks({
|
||||
className="flex-1 flex justify-center text-[#1DA1F2]"
|
||||
href={TWITTER_LINK}
|
||||
>
|
||||
<span className="inline-block icon-[mingcute--twitter-fill] text-2xl"></span>
|
||||
<span className="inline-block i-mingcute-twitter-fill text-2xl"></span>
|
||||
</UniLink>
|
||||
)}
|
||||
</div>
|
||||
|
||||
@@ -10,7 +10,7 @@ export const BlockchainIcon = ({ className }: { className?: string }) => {
|
||||
"xlog-site-blockchain-icon text-green-600 inline-flex items-center",
|
||||
)}
|
||||
>
|
||||
<i className="icon-[mingcute--safety-certificate-line] text-lg max-w-full max-h-full inline-block" />
|
||||
<i className="i-mingcute-safety-certificate-line text-lg max-w-full max-h-full inline-block" />
|
||||
</span>
|
||||
)
|
||||
}
|
||||
|
||||
@@ -36,7 +36,7 @@ export const BackToTopFAB = () => {
|
||||
}}
|
||||
className="xlog-back-to-top"
|
||||
>
|
||||
<i className="icon-[mingcute--arow-to-up-line]"></i>
|
||||
<i className="i-mingcute-arow-to-up-line"></i>
|
||||
</FABBase>
|
||||
)
|
||||
}
|
||||
|
||||
@@ -33,7 +33,7 @@ export const EditButton = ({
|
||||
className="xlog-post-editor inline-flex items-center"
|
||||
href={`${SITE_URL}/dashboard/${handle}/editor?id=${noteId}&type=${type}`}
|
||||
>
|
||||
<i className="icon-[mingcute--edit-line] mx-1" /> {t("Edit")}
|
||||
<i className="i-mingcute-edit-line mx-1" /> {t("Edit")}
|
||||
</UniLink>
|
||||
)}
|
||||
</>
|
||||
|
||||
@@ -213,7 +213,7 @@ export const Platform = ({
|
||||
/>
|
||||
) : (
|
||||
<span className="rounded-md inline-flex text-white justify-center items-center bg-zinc-300">
|
||||
<i className="icon-[mingcute--planet-line] text-xl" />
|
||||
<i className="i-mingcute-planet-line text-xl" />
|
||||
</span>
|
||||
)}
|
||||
</span>
|
||||
|
||||
@@ -38,7 +38,7 @@ export default async function PostMeta({
|
||||
</>
|
||||
) : null}
|
||||
<span className="xlog-post-views inline-flex items-center">
|
||||
<i className="icon-[mingcute--eye-line] mr-[2px]" />
|
||||
<i className="i-mingcute-eye-line mr-[2px]" />
|
||||
<span>{page.stat?.viewDetailCount}</span>
|
||||
</span>
|
||||
<UniLink
|
||||
@@ -57,7 +57,7 @@ export default async function PostMeta({
|
||||
{summary && (
|
||||
<div className="xlog-post-summary border rounded-xl mt-5 p-4 space-y-2">
|
||||
<div className="font-bold text-zinc-700 flex items-center">
|
||||
<i className="icon-[mingcute--sparkles-line] mr-2 text-lg" />
|
||||
<i className="i-mingcute-sparkles-line mr-2 text-lg" />
|
||||
{translated?.["AI-generated summary"] || "AI-generated summary"}
|
||||
</div>
|
||||
<div className="text-zinc-500 leading-loose text-sm">{summary}</div>
|
||||
|
||||
@@ -38,7 +38,7 @@ export default function ShortList({
|
||||
>
|
||||
<Link href="/shorts">
|
||||
<h2 className="flex items-center font-bold text-lg">
|
||||
<i className="icon-[mingcute--ins-line] mr-1" />
|
||||
<i className="i-mingcute-ins-line mr-1" />
|
||||
{t("Shorts")}
|
||||
</h2>
|
||||
</Link>
|
||||
@@ -89,7 +89,7 @@ export default function ShortList({
|
||||
href="/shorts"
|
||||
className="bg-white rounded-full z-[1] w-8 h-8 flex items-center justify-center"
|
||||
>
|
||||
<i className="icon-[mingcute--right-fill]" />
|
||||
<i className="i-mingcute-right-fill" />
|
||||
</Link>
|
||||
</Tooltip>
|
||||
</div>
|
||||
|
||||
@@ -25,7 +25,7 @@ function MoreActions({ children }: React.PropsWithChildren<{}>) {
|
||||
aria-label="more"
|
||||
className="-mx-2 text-zinc-600"
|
||||
>
|
||||
<i className="icon-[mingcute--more-1-line] text-2xl" />
|
||||
<i className="i-mingcute-more-1-line text-2xl" />
|
||||
</Button>
|
||||
}
|
||||
dropdown={<div className="text-sm">{children}</div>}
|
||||
@@ -104,7 +104,7 @@ export const SiteHeaderMenu = ({
|
||||
text: "Search on this site",
|
||||
icon: (
|
||||
<span className="text-stone-400">
|
||||
<i className="icon-[mingcute--search-line] block" />
|
||||
<i className="i-mingcute-search-line block" />
|
||||
</span>
|
||||
),
|
||||
onClick: () => setSearchOpen(true),
|
||||
|
||||
@@ -28,7 +28,7 @@ export default async function TranslationInfo({
|
||||
)}
|
||||
>
|
||||
<span className="xlog-post-views inline-flex items-center">
|
||||
<i className="icon-[mingcute--translate-2-line] mr-[2px]" />
|
||||
<i className="i-mingcute-translate-2-line mr-[2px]" />
|
||||
<span>
|
||||
{t.rich("Translated by", {
|
||||
from: () => (
|
||||
|
||||
@@ -88,7 +88,7 @@ const APlayer = memo(function APlayer({
|
||||
onClick={playNow}
|
||||
className="p-2 rounded-full bg-accent opacity-90 hover:opacity-100 transition-opacity"
|
||||
>
|
||||
<i className="icon-[mingcute--play-fill] block text-4xl text-white" />
|
||||
<i className="i-mingcute-play-fill block text-4xl text-white" />
|
||||
</button>
|
||||
</Tooltip>
|
||||
</div>
|
||||
@@ -100,7 +100,7 @@ const APlayer = memo(function APlayer({
|
||||
onClick={addToList}
|
||||
className="p-2 rounded-full bg-gray-50 hover:bg-gray-100"
|
||||
>
|
||||
<i className="icon-[mingcute--calendar-add-line] block text-2xl" />
|
||||
<i className="i-mingcute-calendar-add-line block text-2xl" />
|
||||
</button>
|
||||
</Tooltip>
|
||||
</div>
|
||||
|
||||
@@ -7,7 +7,7 @@ export const EmptyState = ({ resource = "post" }: { resource?: string }) => {
|
||||
|
||||
return (
|
||||
<div className="text-center py-10 mb-10 text-2xl text-zinc-300 font-medium flex justify-center flex-col items-center">
|
||||
<span className="icon-[mingcute--ghost-line] text-5xl mb-2"></span>
|
||||
<span className="i-mingcute-ghost-line text-5xl mb-2"></span>
|
||||
<div className="capitalize">
|
||||
{" "}
|
||||
{t(`No ${resource.charAt(0).toUpperCase() + resource.slice(1)} Yet`)}
|
||||
|
||||
@@ -104,7 +104,7 @@ export const Modal = forwardRef<HTMLDivElement, ModalProps>(
|
||||
className="absolute right-4 w-7 h-7 text-xl cursor-pointer bg-white flex items-center justify-center"
|
||||
onClick={() => setOpen(false)}
|
||||
>
|
||||
<i className="icon-[mingcute--close-line] inline-block" />
|
||||
<i className="i-mingcute-close-line inline-block" />
|
||||
</span>
|
||||
</Dialog.Title>
|
||||
)}
|
||||
|
||||
Reference in New Issue
Block a user