mirror of
https://github.com/usememos/memos.git
synced 2025-06-05 22:09:59 +02:00
chore: add resource service definition
This commit is contained in:
@ -46,18 +46,18 @@ const Header = () => {
|
||||
title: t("daily-review.title"),
|
||||
icon: <Icon.Calendar className="mr-3 w-6 h-auto opacity-70" />,
|
||||
};
|
||||
const exploreNavLink: NavLinkItem = {
|
||||
id: "header-explore",
|
||||
path: "/explore",
|
||||
title: t("common.explore"),
|
||||
icon: <Icon.Hash className="mr-3 w-6 h-auto opacity-70" />,
|
||||
};
|
||||
const resourcesNavLink: NavLinkItem = {
|
||||
id: "header-resources",
|
||||
path: "/resources",
|
||||
title: t("common.resources"),
|
||||
icon: <Icon.Paperclip className="mr-3 w-6 h-auto opacity-70" />,
|
||||
};
|
||||
const exploreNavLink: NavLinkItem = {
|
||||
id: "header-explore",
|
||||
path: "/explore",
|
||||
title: t("common.explore"),
|
||||
icon: <Icon.Hash className="mr-3 w-6 h-auto opacity-70" />,
|
||||
};
|
||||
const archivedNavLink: NavLinkItem = {
|
||||
id: "header-archived",
|
||||
path: "/archived",
|
||||
@ -78,7 +78,7 @@ const Header = () => {
|
||||
};
|
||||
|
||||
const navLinks: NavLinkItem[] = !isVisitorMode
|
||||
? [homeNavLink, dailyReviewNavLink, exploreNavLink, resourcesNavLink, archivedNavLink, settingNavLink]
|
||||
? [homeNavLink, dailyReviewNavLink, resourcesNavLink, exploreNavLink, archivedNavLink, settingNavLink]
|
||||
: [exploreNavLink, authNavLink];
|
||||
|
||||
return (
|
||||
|
@ -1,6 +1,5 @@
|
||||
import { getDateTimeString } from "@/helpers/datetime";
|
||||
import ResourceIcon from "./ResourceIcon";
|
||||
import "@/less/resource-card.less";
|
||||
|
||||
interface Props {
|
||||
resource: Resource;
|
||||
@ -8,7 +7,7 @@ interface Props {
|
||||
|
||||
const ResourceCard = ({ resource }: Props) => {
|
||||
return (
|
||||
<div className="resource-card">
|
||||
<div className="w-full p-2 relative flex flex-col justify-start hover:shadow hover:bg-slate-200 dark:hover:bg-slate-600 rounded-md">
|
||||
<div className="w-full flex flex-row justify-center items-center pb-2 pt-4 px-2">
|
||||
<ResourceIcon resource={resource} strokeWidth={0.5} />
|
||||
</div>
|
||||
|
Reference in New Issue
Block a user